/*
Theme Name: BookWareHouse (Astra Child)
Theme URI: https://bookdrop.shop
Description: Custom accessible, senior-friendly redesign of BookWareHouse/BookDrop, built as a child theme of Astra with WooCommerce integration.
Author: BookDrop
Template: astra
Version: 1.0.0
Text Domain: bookwarehouse-child
*/

/* 
  Design System for BookWareHouse
  Prioritizing: High contrast, large fonts, accessibility, modern aesthetics
*/

:root {
    /* Color Palette - Warm & Inviting */
    --color-primary: #D35400; /* Rich orange/amber */
    --color-primary-hover: #A04000;
    --color-secondary: #2C3E50; /* Deep blue-gray for text */
    --color-background: #FDFEFE; /* Almost white */
    --color-surface: #F4F6F6; /* Soft gray for cards */
    --color-text-main: #17202A; /* Very dark for readability */
    --color-text-muted: #566573;
    --color-accent: #F1C40F;
    
    /* Typography - Large & Readable */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Base font size explicitly large */
    --text-base: 22px; 
    --text-sm: 18px;
    --text-lg: 26px;
    --text-xl: 36px;
    --text-2xl: 48px;
    --text-3xl: 64px;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* UI Elements */
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(211, 84, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation (Glassmorphism) */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    padding: 0.9rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 120px !important;
    max-height: 120px !important;
    width: auto !important;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
}

/* Make ALL logo images inside the header white and 120px */
.glass-header .logo img,
.glass-header .custom-logo,
.header-container .logo img,
.header-container .custom-logo-link img,
a.custom-logo-link img.custom-logo {
    filter: brightness(0) invert(1) !important;
    height: 120px !important;
    max-height: 120px !important;
    width: auto !important;
}

/* Footer logo — 120px white on dark background */
.footer .logo-img,
.footer .logo img,
.footer .custom-logo,
.footer .custom-logo-link img,
.footer-brand img,
.footer-brand .logo-img,
.site-footer img,
.footer-widget img {
    filter: brightness(0) invert(1) !important;
    height: 120px !important;
    max-height: 120px !important;
    width: auto !important;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    color: #ffffff;
    font-size: var(--text-lg);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    gap: 1.5rem;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: var(--text-xl);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-primary);
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
}

/* ============ USER AVATAR BUTTON ============ */
.user-avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.user-avatar-btn:hover {
    border-color: var(--color-primary);
    background: rgba(211, 84, 0, 0.15);
    transform: scale(1.1);
}

.user-avatar-btn.logged-in {
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-heading);
}

/* ============ ACCOUNT PANEL ============ */
.account-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.account-overlay.open {
    opacity: 1;
    visibility: visible;
}

.account-panel {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    height: 100%;
    background: #111;
    z-index: 99999 !important;
    box-shadow: 10px 0 40px rgba(0,0,0,0.3);
    transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.account-panel.open {
    left: 0;
}

.account-panel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.account-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-logo,
.account-panel-header img,
.account-panel-header .custom-logo,
.account-panel-header .custom-logo-link img {
    height: 120px !important;
    max-height: 120px !important;
    width: auto !important;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
    display: block;
    margin: 0 auto;
}

/* Move the close button to the right via absolute positioning */
.account-close {
    position: absolute !important;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.account-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.account-body {
    padding: 2rem;
    flex: 1;
}

.account-greeting {
    text-align: center;
    margin-bottom: 2rem;
}

.greeting-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #aaa;
    border: 3px solid rgba(255,255,255,0.08);
}

.greeting-avatar.logged-in {
    background: linear-gradient(135deg, var(--color-primary), #e67e22);
    color: #fff;
    border-color: rgba(255,165,0,0.3);
    box-shadow: 0 0 25px rgba(211, 84, 0, 0.3);
}

.account-greeting h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.account-greeting p {
    color: #888;
    font-size: 15px;
    line-height: 1.5;
}

.member-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 14px !important;
}

.member-badge i {
    -webkit-text-fill-color: #f1c40f;
}

/* Login Form */
.login-form {
    margin-top: 1.5rem;
}

.login-field {
    position: relative;
    margin-bottom: 1rem;
}

.login-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

.login-field input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.login-field input::placeholder {
    color: #666;
}

.login-field input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.15);
}

.login-btn {
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.9rem;
}

.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.login-divider span {
    position: relative;
    background: #111;
    padding: 0 1rem;
    color: #666;
    font-size: 13px;
}

.social-login {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    border-color: var(--color-primary);
    color: #fff;
    background: rgba(211, 84, 0, 0.15);
    transform: translateY(-2px);
}

.login-register {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 14px;
}

.login-register a {
    color: var(--color-primary);
    font-weight: 600;
}

.login-register a:hover {
    text-decoration: underline;
}

/* Account Nav (Logged In) */
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #ccc;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.2s;
}

.account-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.account-nav a i {
    width: 20px;
    text-align: center;
    color: var(--color-primary);
    font-size: 16px;
}

.btn-logout {
    width: 100%;
    padding: 0.9rem;
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
}

.btn-logout i {
    margin-right: 6px;
}

/* Account Footer */
.account-panel-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
}

.account-panel-footer h4 {
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.account-panel-footer h4 i {
    margin-right: 6px;
    color: var(--color-primary);
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.support-links a {
    color: #777;
    font-size: 13px;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s;
}

.support-links a:hover {
    color: #fff;
    border-color: var(--color-primary);
    background: rgba(211, 84, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.4);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: var(--text-lg);
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: var(--text-lg);
    border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: var(--space-xl);
    background: linear-gradient(135deg, rgba(253,254,254,1) 0%, rgba(244,246,246,1) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero .bwh-hero-badge {
    display: inline-block !important;
    background-color: rgba(211, 84, 0, 0.1) !important;
    color: var(--color-primary) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: var(--text-sm) !important;
    line-height: normal !important;
    margin-bottom: 1.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-indent: 0 !important;
}

.hero-content p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(211,84,0,0.2) 0%, rgba(253,254,254,0) 70%);
    z-index: 1;
    filter: blur(40px);
}

/* Shop Section & Categories Section */
.shop-section {
    background-color: white;
    padding-bottom: var(--space-lg);
}

.categories-section {
    background-color: #f9fafb;
    padding-bottom: var(--space-xl);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.shop-header-banner,
.categories-header-banner {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('hero_books.png') center/cover;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: var(--space-lg);
    border-bottom: 5px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.categories-header-banner {
    background: linear-gradient(rgba(211, 84, 0, 0.85), rgba(44, 62, 80, 0.85)), url('hero_books.png') center/cover;
}

.shop-header-banner h2,
.categories-header-banner h2 {
    color: white;
    font-size: var(--text-2xl);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Bar */
.shop-search {
    display: flex;
    max-width: 800px;
    margin: 0 auto var(--space-md);
    border: 2px solid #000;
    border-radius: 8px;
    overflow: hidden;
}

.shop-search input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    font-size: var(--text-sm);
    border: none;
    outline: none;
    font-family: var(--font-body);
}

.shop-search .search-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0 2rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.shop-search .search-btn:hover {
    background-color: #333;
}

/* Sort Tabs */
.shop-sort-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.sort-tab {
    padding: 0.8rem 2.5rem;
    background-color: #f5f5f5;
    border: none;
    border-radius: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
}

.sort-tab:hover {
    background-color: #e0e0e0;
}

.sort-tab.active {
    background-color: #000;
    color: #fff;
}

/* Categories */
.shop-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: var(--space-lg);
    padding: 0 2rem;
}

.cat-link {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color 0.2s;
}

.cat-link:hover {
    color: var(--color-primary);
}

.cat-link.active {
    color: #000;
    font-weight: 700;
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 0 2rem;
}

.shop-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.shop-card-image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.shop-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
    transition: transform 0.4s;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.card-format {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(211, 84, 0, 0.9);
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.shop-card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-genre {
    background: var(--color-surface);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-secondary);
}

.card-rating,
.star-rating,
.woocommerce-product-rating {
    display: none !important;
}

.product-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #000;
    line-height: 1.3;
}

.product-author {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.product-narrator, .product-duration {
    font-size: 13px;
    color: #888;
    margin-bottom: 0.2rem;
}

.product-narrator i, .product-duration i {
    width: 16px;
    margin-right: 4px;
    color: var(--color-primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
}

.product-price .old-price {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-price .new-price {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-primary);
}

.btn-add-cart {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.btn-add-cart:hover {
    background-color: var(--color-primary);
    transform: scale(1.02);
}

.btn-add-cart i {
    margin-right: 6px;
}

/* ============ CHECKOUT PANEL ============ */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.checkout-overlay.open {
    opacity: 1;
    visibility: visible;
}

.checkout-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 420px;
    height: 100%;
    background: #fff;
    z-index: 99999 !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.checkout-panel.open {
    right: 0;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #1a1a1a;
    color: #fff;
    flex-shrink: 0;
}

.checkout-header h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.checkout-header h2 i {
    margin-right: 8px;
    color: var(--color-primary);
}

.checkout-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.checkout-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ============ BWH CUSTOM MINI CART DESIGN ============ */

.checkout-items .woocommerce-mini-cart {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Item container card */
.checkout-items .bwh-cart-item,
.checkout-items .woocommerce-mini-cart-item {
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem !important;
    padding: 1.25rem 1.5rem !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fff !important;
    position: relative !important;
    transition: all 0.2s ease !important;
}

.checkout-items .bwh-cart-item:hover,
.checkout-items .woocommerce-mini-cart-item:hover {
    background: #fafafa !important;
}

/* Image */
.bwh-cart-item-img {
    width: 65px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bwh-cart-item-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 4px;
}

/* Info column */
.bwh-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.bwh-cart-item-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #17202A;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bwh-cart-item-title:hover {
    color: var(--color-primary);
}

.bwh-cart-item-price {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary);
}

/* Quantity Row (+ / - buttons) */
.bwh-cart-item-qty-row {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
}

.bwh-qty-controls {
    display: inline-flex;
    align-items: center;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    padding: 2px;
}

.bwh-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #ffffff;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bwh-qty-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.bwh-qty-val {
    min-width: 32px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: #17202A;
}

/* Trash Can Remove button */
.bwh-cart-remove {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.bwh-cart-remove:hover {
    background: #e74c3c !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Summary Box */
.bwh-cart-summary-box {
    padding: 1.5rem;
    background: #fafafa;
    border-top: 2px solid #eee;
    margin-top: auto;
}

.bwh-cart-summary-box .total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.25rem !important;
    font-family: var(--font-heading) !important;
    font-size: 1.15rem !important;
}

.bwh-cart-summary-box .total strong {
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.bwh-cart-summary-box .total .woocommerce-Price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #17202A;
}

.bwh-cart-summary-box .buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 !important;
    background: transparent !important;
}

.bwh-view-cart-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 13px 20px !important;
    background: #ffffff !important;
    color: #17202A !important;
    border: 2px solid #17202A !important;
    border-radius: 10px !important;
    font-family: var(--font-heading) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.bwh-view-cart-btn:hover {
    background: #17202A !important;
    color: #ffffff !important;
}

.bwh-checkout-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 15px 20px !important;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.25s !important;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.35) !important;
}

.bwh-checkout-btn:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.45) !important;
}

/* Empty Cart View — Solves Double Empty Message */
.bwh-empty-cart-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    margin: auto 0;
}

.bwh-empty-cart-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(211, 84, 0, 0.1), rgba(230, 126, 34, 0.2));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(211, 84, 0, 0.15);
}

.bwh-empty-cart-view h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #17202A;
    margin-bottom: 0.5rem;
}

.bwh-empty-cart-view p {
    font-size: 15px;
    color: #777;
    margin-bottom: 2rem;
    max-width: 260px;
    line-height: 1.5;
}

.bwh-continue-shopping-btn {
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 100px !important;
}

/* Hide any duplicate theme/plugin empty message elements */
.checkout-items .woocommerce-mini-cart__empty-message,
.checkout-items .empty:not(.bwh-empty-cart-view) {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .checkout-panel {
        width: 100% !important;
        right: -100% !important;
    }
    .checkout-panel.open {
        right: 0 !important;
    }
}

/* ---- Scrollbar styling for cart ---- */
.checkout-items::-webkit-scrollbar {
    width: 4px;
}
.checkout-items::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
.checkout-items::-webkit-scrollbar-track {
    background: transparent;
}

/* ============ ORDER MODAL ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.modal-content p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-order-id {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: 1rem 0;
}

/* Audiobook Request Section */
.request-audiobook-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--color-surface) 0%, #ffffff 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.request-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.request-content h2 {
    font-size: var(--text-2xl);
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.request-content p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.request-price-tag {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    font-weight: 800;
    font-size: var(--text-lg);
    padding: 1rem 2rem;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
    transform: rotate(-2deg);
}

.request-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

.request-form-wrapper h3 {
    margin-bottom: 2rem;
    font-size: var(--text-xl);
    text-align: center;
    color: var(--color-text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: var(--transition);
    background: #f9f9f9;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.form-note {
    text-align: center;
    font-size: 14px;
    color: #27ae60;
    margin-top: 1rem;
    font-weight: 600;
}

/* Promo Section */
.promo-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-surface);
}

.promo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.promo-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-secondary);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: var(--text-lg);
    color: #BDC3C7;
    max-width: 500px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #BDC3C7;
    font-size: var(--text-lg);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #BDC3C7;
    font-size: var(--text-sm);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   DESKTOP ONLY (≥769px)
   ============================================================ */
@media (min-width: 769px) {
    .mobile-hamburger {
        display: none !important;
    }

    .mobile-nav-drawer {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: none !important;
    }

    .main-nav {
        display: flex !important;
    }

    .header-actions {
        display: flex !important;
    }
}

/* ============================================================
   TABLETS (≤992px)
   ============================================================ */
@media (max-width: 992px) {
    .hero-container, .promo-container, .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .request-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .request-form-wrapper {
        padding: 2rem;
    }
}

/* ============================================================
   MOBILE ONLY (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --text-base: 17px;
        --text-sm: 14px;
        --text-lg: 19px;
        --text-xl: 24px;
        --text-2xl: 30px;
        --text-3xl: 36px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Hide desktop nav on mobile */
    .main-nav {
        display: none !important;
    }

    /* ---------- HEADER (Mobile Layout with Centered Logo) ---------- */
    .glass-header {
        padding: 0.6rem 0;
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        width: 100% !important;
        min-height: 48px;
    }

    /* Left: Hamburger Button */
    .mobile-hamburger {
        order: 1 !important;
        margin: 0 !important;
        float: none !important;
        z-index: 10 !important;
        cursor: pointer;
    }

    /* Center: Logo (DEAD-CENTERED on mobile, overrides Astra floats/orders) */
    .header-container .logo,
    .glass-header .logo,
    .glass-header .custom-logo-link {
        order: 2 !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        float: none !important;
        z-index: 5 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .logo-img,
    .glass-header .custom-logo-link img,
    .glass-header .custom-logo {
        max-height: 38px !important;
        height: 38px !important;
        width: auto !important;
        max-width: 140px !important;
        margin: 0 !important;
        float: none !important;
        display: block !important;
    }

    /* Right: Cart & Account Icons */
    .header-actions {
        order: 3 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        float: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        z-index: 10 !important;
    }

    .icon-btn {
        font-size: 1.1rem;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10;
        cursor: pointer;
    }

    .user-avatar-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
        position: relative;
        z-index: 10;
        cursor: pointer;
    }

    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -5px;
        right: -6px;
    }

    /* ---------- HAMBURGER BUTTON ---------- */
    .mobile-hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
        z-index: 10;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger-line {
        display: block;
        width: 22px;
        height: 2.5px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform-origin: center;
    }

    /* Animated X when active */
    .mobile-hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .mobile-hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* ---------- MOBILE NAV DRAWER ---------- */
    .mobile-nav-drawer {
        display: flex !important;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        background: rgba(10, 10, 10, 0.98);
        border-top: 1px solid rgba(255,255,255,0.08);
        transition: max-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                    padding 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 0 1.5rem;
    }

    .mobile-nav-drawer.open {
        max-height: 400px;
        padding: 0.75rem 1.5rem 1rem;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 0.5rem;
        color: #ddd;
        font-size: 16px;
        font-weight: 600;
        font-family: var(--font-body);
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: all 0.2s;
    }

    .mobile-nav-link:last-child {
        border-bottom: none;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        color: var(--color-primary);
        background: rgba(211, 84, 0, 0.08);
        border-radius: 8px;
    }

    .mobile-nav-link.active {
        color: var(--color-primary);
    }

    .mobile-nav-link i {
        width: 20px;
        text-align: center;
        font-size: 15px;
        color: var(--color-primary);
    }

    /* ---------- HERO ---------- */
    .hero {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: var(--text-2xl);
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: var(--text-sm);
        margin-bottom: 1.5rem;
    }

    .bwh-hero-badge,
    .hero .bwh-hero-badge {
        font-size: 12px !important;
        padding: 0.35rem 1rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
        font-size: 16px;
    }

    .hero-image-wrapper {
        max-width: 280px;
        margin: 1.5rem auto 0;
    }

    .hero-image {
        animation: none;
    }

    /* ---------- SHOP SECTION ---------- */
    .shop-section {
        padding-bottom: 2rem;
    }

    .shop-header-banner {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .shop-header-banner h2 {
        font-size: var(--text-xl);
    }

    /* ---------- SEARCH BAR ---------- */
    .shop-search {
        border: 2px solid rgba(0,0,0,0.15);
        border-radius: 12px;
        margin-bottom: 1.25rem;
    }

    .shop-search input {
        font-size: 15px;
        padding: 0.85rem 1rem;
    }

    .shop-search .search-btn {
        padding: 0 1.25rem;
        font-size: 1rem;
        border-radius: 0 10px 10px 0;
    }

    /* ---------- SORT TABS (MOBILE) ---------- */
    .shop-sort-tabs {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        flex-wrap: wrap;
    }

    .sort-tab {
        padding: 0.6rem 1.2rem;
        font-size: 13px;
        border-radius: 6px;
    }

    /* ---------- CATEGORY LINKS (MOBILE) ---------- */
    .shop-categories {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.6rem 1rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .shop-categories .cat-link {
        font-size: 13px;
        color: #666;
        text-decoration: none;
        padding: 0.2rem 0.4rem;
        transition: color 0.2s;
    }

    .shop-categories .cat-link:hover,
    .shop-categories .cat-link.active {
        color: #000;
        font-weight: 700;
        background: transparent;
    }

    /* ---------- PRODUCT GRID ---------- */
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        padding: 0;
    }

    .shop-card {
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    .shop-card-image img {
        border-radius: 14px 14px 0 0;
        aspect-ratio: 3/4;
    }

    .card-badge {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 0.2rem 0.55rem;
    }

    .card-format {
        bottom: 8px;
        right: 8px;
        font-size: 10px;
        padding: 0.15rem 0.5rem;
    }

    .shop-card-info {
        padding: 0.75rem;
    }

    .card-meta {
        margin-bottom: 0.4rem;
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .card-genre {
        font-size: 10px;
        padding: 0.15rem 0.5rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .card-genre a {
        color: inherit;
        text-decoration: none;
    }

    .product-title {
        font-size: 14px;
        margin-bottom: 0.2rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-title a {
        color: inherit;
        text-decoration: none;
    }

    .product-price {
        margin: 0.5rem 0;
        gap: 0.4rem;
    }

    .product-price .old-price {
        font-size: 12px;
    }

    .product-price .new-price {
        font-size: 18px;
    }

    .btn-add-cart {
        padding: 0.6rem 0.75rem;
        font-size: 13px;
        border-radius: 8px;
    }




    /* ---------- ACCOUNT PANEL (MOBILE) ---------- */
    .account-panel {
        width: 100%;
        max-width: 100%;
        left: -105%;
    }

    .account-panel.open {
        left: 0;
    }

    .account-panel-header {
        padding: 1rem 1.25rem;
    }

    .account-logo {
        height: 36px;
    }

    .account-body {
        padding: 1.25rem;
    }

    .greeting-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .account-greeting h3 {
        font-size: 1.2rem;
    }

    .account-nav a {
        padding: 0.85rem 0.75rem;
        font-size: 15px;
    }

    .account-panel-footer {
        padding: 1rem 1.25rem;
    }

    /* ---------- CHECKOUT / CART PANEL (MOBILE) ---------- */
    .checkout-panel {
        width: 100%;
        max-width: 100%;
        right: -105%;
    }

    .checkout-panel.open {
        right: 0;
    }

    .checkout-header {
        padding: 1rem 1.25rem;
    }

    .checkout-items {
        padding: 0.75rem 1rem;
    }

    /* ---------- REQUEST AUDIOBOOK ---------- */
    .request-audiobook-section {
        padding: 2.5rem 0;
    }

    .request-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    .request-content h2 {
        font-size: var(--text-xl);
    }

    .request-content p {
        font-size: var(--text-sm);
        margin-bottom: 1rem;
    }

    .request-form-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .request-form-wrapper h3 {
        font-size: var(--text-lg);
        margin-bottom: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 15px;
        padding: 0.85rem;
    }

    /* ---------- PROMO SECTION ---------- */
    .promo-section {
        padding: 2.5rem 0;
    }

    .promo-container {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .promo-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .promo-content h2 {
        font-size: var(--text-xl);
    }

    .promo-content p {
        font-size: var(--text-sm);
    }

    .feature-list li {
        font-size: var(--text-sm);
        gap: 0.5rem;
    }

    .feature-list i {
        font-size: 1.1rem;
    }

    /* ---------- FOOTER ---------- */
    .footer {
        padding: 2rem 0 1.5rem;
        margin-bottom: 0;
    }

    .footer-top {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-brand .logo-img {
        height: 40px !important;
    }

    .footer-brand p {
        font-size: var(--text-sm);
    }

    .footer-links h3 {
        font-size: var(--text-lg);
        margin-bottom: 1rem;
    }

    .footer-links a {
        font-size: var(--text-sm);
    }

    .footer-bottom {
        font-size: 13px;
        padding-top: 1rem;
    }

    .footer-links, .footer-brand {
        text-align: center;
    }

    /* ---------- PAGINATION ---------- */
    .bwh-pagination .page-numbers {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
    }

    /* ---------- SORT TABS ---------- */
    .shop-sort-tabs {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .sort-tab {
        padding: 0.5rem 1rem;
        font-size: 13px;
    }
}

/* ============================================================
   RESPONSIVE — Very Small Phones (≤400px)
   ============================================================ */
@media (max-width: 400px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .shop-card-info {
        padding: 0.5rem;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price .new-price {
        font-size: 16px;
    }

    .btn-add-cart {
        padding: 0.5rem;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .logo-img {
        height: 32px !important;
    }

    .mobile-hamburger {
        width: 32px;
        height: 32px;
    }

    .hamburger-line {
        width: 18px;
        height: 2px;
    }
}

.bwh-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: var(--space-md) 0;
    flex-wrap: wrap;
}
.bwh-pagination .page-numbers {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
}
.bwh-pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
}

/* ==========================================================================
   WooCommerce integration overrides
   Re-skins WooCommerce's native mini-cart & notices to match the
   BookWareHouse design tokens defined above, since the cart panel now
   renders real WooCommerce markup instead of the old JS mock-up.
   ========================================================================== */

/* ==========================================================================
   WOOCOMMERCE MINI-CART (Slide-Out Side Panel)
   ========================================================================== */

.checkout-panel .widget_shopping_cart_content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Empty cart message styling */
.checkout-panel p.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 3rem 1rem !important;
    font-size: 1.1rem;
    color: #888 !important;
    background: transparent !important;
    border: none !important;
    margin: auto 0;
}

/* Hide duplicate empty cart message if injected twice */
.checkout-panel p.woocommerce-mini-cart__empty-message ~ p.woocommerce-mini-cart__empty-message {
    display: none !important;
}

.checkout-panel ul.woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.checkout-panel ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    padding: 1.25rem 0 !important;
    border-bottom: 1px solid #eee !important;
    position: relative !important;
    background: transparent !important;
}

/* Flex row container for Image + Title */
.checkout-panel ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a:not(.remove) {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.checkout-panel ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a:not(.remove) img {
    width: 60px !important;
    min-width: 60px !important;
    height: 75px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    float: none !important;
    margin: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.checkout-panel ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

/* Red Trash Icon for Removing Item */
.checkout-panel ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    font-size: 0 !important;
    color: #e74c3c !important;
    background: transparent !important;
    text-decoration: none !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    margin-left: 0.25rem !important;
    flex-shrink: 0 !important;
    float: none !important;
}

.checkout-panel ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove::before {
    content: '\f2ed' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    color: #e74c3c !important;
}

.checkout-panel ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove:hover {
    background: rgba(231, 76, 60, 0.12) !important;
}

/* Subtotal Box */
.checkout-panel .woocommerce-mini-cart__total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.25rem 0 !important;
    border-top: 2px solid #eee !important;
    border-bottom: none !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    background: transparent !important;
    color: #1a1a1a !important;
    margin-top: auto !important;
}

.checkout-panel .woocommerce-mini-cart__total strong {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

.checkout-panel .woocommerce-mini-cart__total .amount {
    color: var(--color-primary) !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
}

/* Cart Side Panel Buttons — Hide View Cart, Keep Single Checkout Button (Screenshot 3 Design) */
.checkout-panel .woocommerce-mini-cart__buttons {
    padding: 0 0 1rem 0 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Hide View Cart Button */
.checkout-panel .woocommerce-mini-cart__buttons a.button:not(.checkout) {
    display: none !important;
}

/* Single Orange Checkout Button */
.checkout-panel .woocommerce-mini-cart__buttons a.checkout {
    display: block !important;
    width: 100% !important;
    padding: 1rem !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(211,84,0,0.3) !important;
    transition: all 0.2s !important;
}

.checkout-panel .woocommerce-mini-cart__buttons a.checkout:hover {
    background: #ba4a00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(211,84,0,0.4) !important;
}

/* ==========================================================================
   WOOCOMMERCE STANDALONE PAGES OVERHAUL (/checkout/, /cart/, /my-account/)
   ========================================================================== */

/* Page Padding under Glass Header */
.woocommerce-page main,
.woocommerce-checkout main,
.woocommerce-cart main,
.woocommerce-account main {
    padding-top: 6rem;
    padding-bottom: 4rem;
    min-height: 80vh;
}

.woocommerce-page .site-content,
.woocommerce-checkout .site-content,
.woocommerce-cart .site-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Headings */
.woocommerce-page h1.entry-title,
.woocommerce-page h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--color-primary) !important;
    background-color: #f9f9f9 !important;
    color: #222 !important;
    border-radius: 8px;
    padding: 1rem 1.5rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--color-primary) !important;
}

/* WooCommerce Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 0.85rem 1.75rem !important;
    border: none !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    padding: 1rem 2rem !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #ba4a00 !important;
}

/* Checkout Page Grid Layout */
.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

.woocommerce-billing-fields__field-wrapper .form-row input,
.woocommerce-billing-fields__field-wrapper .form-row select,
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea {
    border: 1.5px solid #ddd !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 15px !important;
    background: #fff !important;
    color: #1a1a1a !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(211,84,0,0.15) !important;
}

/* Order Review Container */
#order_review {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.woocommerce-checkout-review-order-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 0.85rem 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order-table .order-total td .amount {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.3rem;
}

/* Add-to-cart loading spinner state */
.btn-add-cart.loading {
    opacity: .6;
    pointer-events: none;
}

.card-genre a { color: inherit; text-decoration: none; }

/* ============================================================
   PRODUCT IMAGE FIX — Uniform, Professional Card Images
   ============================================================ */

/* Force all product card images into a consistent frame */
.shop-card-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 3/4;
}

.shop-card-image img,
.shop-card-image .attachment-medium,
.shop-card-image .wp-post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    aspect-ratio: unset !important;
    padding: 12px;
    background: #f5f5f5;
    transition: transform 0.4s;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.05);
}

/* Also fix WooCommerce default product grid images (if any leak through) */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 280px !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 12px 12px 0 0;
}

/* ============================================================
   REMOVE REVIEWS TAB
   ============================================================ */
.woocommerce-tabs ul.tabs li.reviews_tab,
.woocommerce-Tabs-panel--reviews,
#tab-reviews,
.woocommerce-Reviews {
    display: none !important;
}

/* ============================================================
   BWH SINGLE PRODUCT / AUDIOBOOK DETAILS PAGE — PREMIUM REDESIGN
   ============================================================ */

/* Main page layout wrapper */
.single-product .site-content,
.single-product .entry-content,
.single-product .woocommerce-page-main {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.single-product .site-main,
.single-product .woocommerce-page-main {
    padding-top: 130px;
}

/* Hide Astra default floating sale badge outside of our frame */
.single-product > span.onsale,
.single-product .woocommerce-product-gallery span.onsale {
    display: none !important;
}

.bwh-single-product-wrapper {
    margin: 0 auto;
    padding: 1rem 0 4rem;
}

/* Two-column hero grid */
.bwh-single-product-hero {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* Left column media box */
.bwh-single-product-media {
    position: sticky;
    top: 130px;
}

.bwh-single-product-cover-frame {
    position: relative;
    background: #f8f8f8;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    overflow: hidden;
}

.bwh-single-cover-img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px;
    object-fit: contain !important;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.bwh-single-product-cover-frame:hover .bwh-single-cover-img {
    transform: scale(1.03);
}

.bwh-single-sale-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.4);
    z-index: 2;
}

.bwh-single-format-tag {
    margin-top: 1.2rem;
    text-align: center;
    background: rgba(211, 84, 0, 0.08);
    color: var(--color-primary);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    border: 1px dashed rgba(211, 84, 0, 0.3);
}

.bwh-single-format-tag i {
    margin-right: 6px;
}

/* Right column details box */
.bwh-single-product-details {
    display: flex;
    flex-direction: column;
}

.bwh-single-category {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.bwh-single-category a {
    color: var(--color-primary);
    text-decoration: none;
}

.bwh-single-product-title {
    font-family: var(--font-heading) !important;
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    color: #17202A !important;
    line-height: 1.25 !important;
    margin-bottom: 1.25rem !important;
}

/* Price row */
.bwh-single-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #eeeeee;
}

.bwh-single-old-price {
    font-size: 1.4rem;
    color: #999999;
    text-decoration: line-through;
    font-weight: 400;
}

.bwh-single-price {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-primary);
}

.bwh-single-save-badge {
    background: #27ae60;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
}

/* Feature highlights list */
.bwh-single-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bwh-single-feature-list li {
    font-size: 16px;
    color: #444444;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bwh-single-feature-list i {
    color: #27ae60;
    font-size: 18px;
    flex-shrink: 0;
}

/* Cart action row */
.bwh-single-action-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.bwh-single-qty-box {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    height: 56px;
}

.bwh-single-qty-btn {
    width: 44px;
    height: 100%;
    border: none;
    background: #ffffff;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    transition: background 0.15s;
}

.bwh-single-qty-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

#bwh-single-qty-input {
    width: 50px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #17202A !important;
    -moz-appearance: textfield;
}

#bwh-single-qty-input::-webkit-outer-spin-button,
#bwh-single-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bwh-single-add-btn {
    flex: 1;
    height: 56px;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    box-shadow: 0 4px 18px rgba(211, 84, 0, 0.35) !important;
    text-transform: none !important;
}

.bwh-single-add-btn:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.45) !important;
}

/* Safe checkout box */
.bwh-single-safe-box {
    background: #fafafa;
    border: 2px dashed #e0e0e0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.bwh-safe-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #555555;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bwh-safe-title i {
    color: #27ae60;
}

.bwh-safe-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    color: #777777;
    flex-wrap: wrap;
}

.bwh-safe-icons span {
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    margin-left: auto;
}

/* Description Section */
.bwh-single-product-description-section {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 2.5rem;
    margin-bottom: 4rem;
}

.bwh-section-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.bwh-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #17202A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bwh-section-header h2 i {
    color: var(--color-primary);
}

.bwh-description-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444444;
}

.bwh-description-content p {
    margin-bottom: 1.2rem;
}

/* Related section */
.bwh-related-products-section {
    margin-top: 3rem;
}

.bwh-related-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #17202A;
    margin-bottom: 2rem;
}

/* Responsive Single Product */
@media (max-width: 992px) {
    .bwh-single-product-hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .bwh-single-product-media {
        position: static;
        max-width: 420px;
        margin: 0 auto;
    }

    .bwh-single-product-title {
        font-size: 2rem !important;
    }
}

/* ============================================================
   BWH CHECKOUT PAGE — PREMIUM BRANDING & REDESIGN
   ============================================================ */

/* 1. Page Background & Main Layout */
.woocommerce-checkout,
.wcf-checkout-page,
.wfc-wrapper,
body.woocommerce-checkout {
    background-color: #f8f9fa !important;
    font-family: var(--font-body) !important;
    color: #17202A !important;
}

/* 2. Header Bar Replacement — covers ALL FunnelKit/WooCommerce checkout headers
   FunnelKit uses: .wcf-header, header#wcf-header, .fcf-header, .fkcf-header
   Astra uses:    .ast-checkout-header, .checkout-nav
   We force #0A0A0A (dark) on every possible selector */
.wfc-header,
.wcf-header,
.wcf-checkout-header,
.wcf-header-container,
.wcf-header-wrap,
.wfc-checkout-header,
header#wcf-header,
#wcf-main-header,
.fcf-header,
.fkcf-header,
.funnelkit-checkout-header,
[class*="wcf-header"],
[class*="wfc-header"],
[class*="fkcf-header"],
[id*="wcf-header"],
body.wcf-checkout-page header,
body.wcf-funnelkit-checkout header,
body.woocommerce-checkout .ast-checkout-header,
body.woocommerce-checkout .checkout-nav,
body.woocommerce-checkout header.site-header {
    background: #0A0A0A !important;
    background-color: #0A0A0A !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding: 1.25rem 2rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
}

/* Force any green/colored inline style override */
body.wcf-checkout-page header *,
body.woocommerce-checkout .ast-checkout-header * {
    border-color: rgba(255,255,255,0.15) !important;
}

/* Header Text / Logo */
.wfc-header img,
.wcf-checkout-header img,
.wcf-header img,
.wcf-logo-image,
.wfc-logo img,
.wcf-logo img,
div[class*="wcf"] img,
div[class*="wfc"] img {
    filter: brightness(0) invert(1) !important;
    height: 120px !important;
    max-height: 120px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Header Navigation Links & Text */
.wfc-header a,
.wcf-checkout-header a,
.wcf-header a,
.wfc-header span,
.wcf-checkout-header span,
.wcf-header span,
.wcf-security-text {
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.wfc-header a:hover,
.wcf-checkout-header a:hover,
.wcf-header a:hover {
    color: var(--color-primary) !important;
}

/* 3. Main Form Container Card */
.wcf-embed-checkout-form,
.wcf-checkout-form,
.wfc-content-wrapper,
#wcf-embed-checkout-form,
.woocommerce-checkout form.checkout,
.wcf-box {
    max-width: 1100px !important;
    margin: 2.5rem auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Inside Form Section Cards */
.wcf-embed-checkout-form-two-column,
.wcf-step,
.wcf-customer-info,
.wcf-order-wrap,
.wfc-checkout-container,
#customer_details,
#order_review,
.woocommerce-checkout-review-order,
.wcf-box-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 2.25rem !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 2rem !important;
}

/* Section Headings */
.wcf-embed-checkout-form h3,
.wcf-checkout-form h3,
.woocommerce-checkout h3,
#customer_details h3,
#order_review_heading {
    font-family: var(--font-heading) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #17202A !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

/* Coupon Box Link */
.wcf-embed-checkout-form .woocommerce-form-coupon-toggle,
.wcf-embed-checkout-form .checkout_coupon {
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    color: var(--color-primary) !important;
    background: rgba(211, 84, 0, 0.06) !important;
    border: 1px dashed rgba(211, 84, 0, 0.3) !important;
    border-radius: 10px !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

/* 4. Inputs & Form Controls */
.wcf-embed-checkout-form input[type="text"],
.wcf-embed-checkout-form input[type="email"],
.wcf-embed-checkout-form input[type="tel"],
.wcf-embed-checkout-form input[type="password"],
.wcf-embed-checkout-form select,
.wcf-embed-checkout-form textarea,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    height: 52px !important;
    padding: 0.8rem 1.25rem !important;
    background: #ffffff !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    color: #17202A !important;
    transition: all 0.2s ease !important;
}

.wcf-embed-checkout-form textarea,
.woocommerce-checkout textarea {
    height: auto !important;
}

.wcf-embed-checkout-form input:focus,
.wcf-embed-checkout-form select:focus,
.wcf-embed-checkout-form textarea:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: var(--color-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.12) !important;
}

/* Field Labels */
.wcf-embed-checkout-form label,
.woocommerce-checkout label {
    font-family: var(--font-heading) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #444444 !important;
    margin-bottom: 0.4rem !important;
}

/* 5. Order Summary Table & Pricing */
.wcf-order-summary-wrap,
.woocommerce-checkout-review-order-table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
}

.woocommerce-checkout-review-order-table .cart_item td.product-name {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: #17202A !important;
}

.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
    font-family: var(--font-heading) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #17202A !important;
}

.woocommerce-checkout-review-order-table .order-total .amount {
    color: var(--color-primary) !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
}

/* Product Thumbnail in Checkout Order Summary */
.wcf-product-image img,
.woocommerce-checkout-review-order-table img {
    width: 55px !important;
    height: 70px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    background: #f5f5f5 !important;
    padding: 4px !important;
    border: 1px solid #eee !important;
}

/* 6. Payment Methods Box */
#payment,
.wcf-payment-option-wrap,
.wc_payment_methods {
    background: #fafafa !important;
    border: 1px solid #eeeeee !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
}

.wc_payment_methods li.wc_payment_method {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.wc_payment_methods li.wc_payment_method:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.wc_payment_methods label {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #17202A !important;
}

/* 7. Place Order Button */
#place_order,
.wcf-btn-checkout,
.woocommerce-checkout button[type="submit"],
.wcf-checkout-btn-wrap button {
    width: 100% !important;
    height: 58px !important;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 18px rgba(211, 84, 0, 0.35) !important;
    margin-top: 1.5rem !important;
}

#place_order:hover,
.wcf-btn-checkout:hover,
.woocommerce-checkout button[type="submit"]:hover,
.wcf-checkout-btn-wrap button:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.45) !important;
}

/* ============================================================
   HERO SEARCH BAR
   ============================================================ */
.hero-search-form {
    margin-top: 2rem;
    width: 100%;
    max-width: 580px;
}
.hero-search-inner {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 6px 6px 6px 22px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-search-inner:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.2);
}
.hero-search-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}
.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 10px 0;
}
.hero-search-input::placeholder { color: rgba(255,255,255,0.45); }
.hero-search-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary), #e67e22);
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 12px 22px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.hero-search-btn:hover {
    background: linear-gradient(135deg, #e67e22, var(--color-primary));
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
}

/* ============================================================
   SHOP CONTROLS PANEL (Search + Sort + Categories)
   ============================================================ */
.bwh-shop-controls {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Search inside shop */
.bwh-search-wrap { margin-bottom: 1.75rem; }
.bwh-search-form { width: 100%; }
.bwh-search-inner {
    display: flex;
    align-items: center;
    background: #f7f8fa;
    border: 2px solid #e8eaed;
    border-radius: 50px;
    padding: 6px 6px 6px 22px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bwh-search-inner:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(211,84,0,0.1);
    background: #fff;
}
.bwh-search-icon {
    color: #aaaaaa;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}
.bwh-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #17202A;
    font-family: var(--font-body);
    font-size: 16px;
    padding: 10px 0;
}
.bwh-search-input::placeholder { color: #aaaaaa; font-size: 15px; }
.bwh-search-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary), #e67e22);
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 13px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.bwh-search-btn:hover {
    background: linear-gradient(135deg, #e67e22, var(--color-primary));
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(211,84,0,0.35);
}

/* Sort Row */
.bwh-sort-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.bwh-sort-label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.bwh-sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.bwh-sort-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    background: #f9f9f9;
    color: #555;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.bwh-sort-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(211,84,0,0.06);
    transform: translateY(-1px);
}
.bwh-sort-tab.active {
    background: linear-gradient(135deg, var(--color-primary), #e67e22);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(211,84,0,0.3);
    transform: translateY(-1px);
}

/* Category Pills */
.bwh-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}
.bwh-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 50px;
    border: 1.5px solid #e8e8e8;
    background: #f4f5f6;
    color: #555;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.bwh-cat-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(211,84,0,0.05);
}
.bwh-cat-pill.active {
    background: #17202A;
    border-color: #17202A;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 640px) {
    .bwh-shop-controls { padding: 1.5rem 1.25rem; }
    .bwh-search-btn { font-size: 13px; padding: 11px 16px; }
    .bwh-sort-row { flex-direction: column; align-items: flex-start; }
    .hero-search-form { max-width: 100%; }
    .hero-search-btn { font-size: 13px; padding: 10px 16px; }
}
