/* ==========================================================================
   SHREE MATA — BEAUTIFUL PREMIUM BOOKSTORE HOMEPAGE DESIGN SYSTEM
   Art Direction: Editorial Bookstore × Cinematic Product Presentation × Modern Commerce
   ========================================================================== */

/* ── 1. DESIGN TOKENS ── */
:root {
    /* Color Palette */
    --bg-warm-ivory: #F7F3EA;
    --bg-ivory-light: #FAF7F1;
    --bg-ivory-surface: #F0EAE0;
    --bg-white-premium: #FFFDF9;
    --bg-white-pure: #FFFFFF;
    
    --text-ink: #101820;
    --text-body: #2B3642;
    --text-secondary: #667085;
    --text-muted: #8E9BAE;
    
    --navy-deep: #102A43;
    --navy-dark: #0A1B2C;
    --navy-surface: #173859;
    --navy-border: rgba(16, 42, 67, 0.12);
    
    --gold-muted: #C99A35;
    --gold-soft: #E7D39C;
    --gold-pale: #FAF5E8;
    --gold-dark: #A47820;
    --gold-border: rgba(201, 154, 53, 0.35);
    
    --status-success: #15803D;
    --status-success-bg: #DCFCE7;
    --status-error: #D92D20;
    --status-error-bg: #FEE2E2;
    
    --border-editorial: #E8E2D5;
    --border-light: #F0EAE0;
    --border-subtle: rgba(16, 24, 32, 0.08);
    
    /* Typography */
    --sm-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sm-price-font: var(--sm-font-ui);
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: var(--sm-font-ui);
    --font-size-price: 20px;
    
    /* Shadows & Elevations */
    --shadow-soft: 0 4px 20px -2px rgba(16, 24, 32, 0.05), 0 2px 6px -1px rgba(16, 24, 32, 0.02);
    --shadow-card: 0 10px 30px -5px rgba(16, 24, 32, 0.06), 0 4px 10px -2px rgba(16, 24, 32, 0.02);
    --shadow-card-hover: 0 20px 40px -8px rgba(16, 24, 32, 0.12), 0 8px 16px -4px rgba(16, 24, 32, 0.05);
    --shadow-book-primary: 0 35px 70px -15px rgba(16, 24, 32, 0.5), 0 16px 32px -8px rgba(16, 24, 32, 0.28);
    --shadow-book-secondary: 0 22px 48px -10px rgba(16, 24, 32, 0.38), 0 10px 22px -5px rgba(16, 24, 32, 0.22);
    --shadow-book-rear: 0 16px 36px -8px rgba(16, 24, 32, 0.32);
    
    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Layout Dimensions */
    --container-max: 1400px;
    --page-gutter: 36px;
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 180ms ease;
    --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 2. GLOBAL RESET & BASE ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-warm-ivory);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-warm-ivory);
    color: var(--text-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
}

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

button, input, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    width: 100%;
}

/* ── 3. REFINED SESSION INTRO ── */
#cinematicIntro {
    position: fixed;
    inset: 0;
    background: var(--navy-dark, #0A1B2C);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

#cinematicIntro.intro-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Static Logo Container (No transform on parent) */
.intro-logo-wrap {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    position: relative;
    margin: 0 auto 18px;
}

/* Soft Gold Halo Glow behind Logo */
.intro-halo {
    position: absolute;
    inset: -24px;
    background: radial-gradient(
        circle,
        rgba(212, 167, 44, 0.22) 0%,
        rgba(212, 167, 44, 0.08) 35%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: haloFadeIn 600ms 150ms ease-out forwards;
}

/* Stable One-Shot Logo Reveal (No repeating transforms or jitter) */
.intro-logo {
    width: 100%;
    max-width: 110px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.32));
    transform: translate3d(0, 8px, 0) scale(0.96);
    opacity: 0;
    animation: introLogoIn 600ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Brand Text Reveal (1-time reveal, then completely stable) */
.intro-brand {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-white-pure, #FFFFFF);
    letter-spacing: 1.5px;
    line-height: 1.2;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    animation: introTitleIn 550ms 350ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.intro-title span {
    color: var(--gold-soft, #E7D39C);
}

/* Micro Gold Light Sweep */
.intro-sweep-wrap {
    width: 120px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
    animation: introSweepWrapIn 500ms 650ms ease forwards;
}

.intro-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 167, 44, 0.3) 20%,
        rgba(231, 211, 156, 0.95) 50%,
        rgba(212, 167, 44, 0.3) 80%,
        transparent 100%
    );
    animation: introSweepMove 500ms 750ms ease-out forwards;
}

.intro-sub {
    font-family: var(--sm-font-ui, 'Inter', sans-serif);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold-pale, #FAF5E8);
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0;
    transform: translate3d(0, 6px, 0);
    animation: introSubIn 550ms 500ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Decorative Ambient Particles (Drift softly in background) */
.intro-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.intro-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: introParticleDrift linear infinite;
}

.dot-1 { width: 2px; height: 2px; background: rgba(212, 167, 44, 0.6); left: 15%; top: 75%; animation-duration: 9s; animation-delay: 0.1s; }
.dot-2 { width: 3px; height: 3px; background: rgba(255, 255, 255, 0.45); left: 28%; top: 85%; animation-duration: 11s; animation-delay: 0.3s; }
.dot-3 { width: 2px; height: 2px; background: rgba(212, 167, 44, 0.5); left: 45%; top: 80%; animation-duration: 10s; animation-delay: 0.2s; }
.dot-4 { width: 1.5px; height: 1.5px; background: rgba(255, 255, 255, 0.4); left: 62%; top: 90%; animation-duration: 12s; animation-delay: 0.4s; }
.dot-5 { width: 2.5px; height: 2.5px; background: rgba(212, 167, 44, 0.55); left: 78%; top: 78%; animation-duration: 9.5s; animation-delay: 0.1s; }
.dot-6 { width: 2px; height: 2px; background: rgba(255, 255, 255, 0.5); left: 88%; top: 82%; animation-duration: 10.5s; animation-delay: 0.5s; }
.dot-7 { width: 1.5px; height: 1.5px; background: rgba(212, 167, 44, 0.45); left: 22%; top: 60%; animation-duration: 11s; animation-delay: 0.6s; }
.dot-8 { width: 2px; height: 2px; background: rgba(255, 255, 255, 0.4); left: 72%; top: 65%; animation-duration: 12s; animation-delay: 0.2s; }
.dot-9 { width: 2px; height: 2px; background: rgba(212, 167, 44, 0.5); left: 35%; top: 70%; animation-duration: 10s; animation-delay: 0.7s; }
.dot-10 { width: 1.5px; height: 1.5px; background: rgba(255, 255, 255, 0.45); left: 52%; top: 68%; animation-duration: 11.5s; animation-delay: 0.3s; }

/* Keyframes - Precise, Jitter-Free Transforms */
@keyframes introLogoIn {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes haloFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

@keyframes introTitleIn {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes introSubIn {
    from {
        opacity: 0;
        transform: translate3d(0, 6px, 0);
    }
    to {
        opacity: 0.92;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes introSweepWrapIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes introSweepMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes introParticleDrift {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    15% { opacity: 0.6; }
    85% { opacity: 0.6; }
    100% { transform: translate3d(10px, -120px, 0); opacity: 0; }
}

/* Mobile Breakpoint */
@media (max-width: 600px) {
    .intro-logo-wrap {
        width: 84px;
        height: 84px;
        margin-bottom: 14px;
    }

    .intro-logo {
        max-width: 84px;
    }

    .intro-halo {
        inset: -14px;
        filter: blur(8px);
    }

    .intro-title {
        font-size: 24px;
    }

    .intro-sub {
        font-size: 10px;
        letter-spacing: 2.2px;
    }

    .intro-sweep-wrap {
        width: 90px;
    }

    /* Keep only 4-6 particles on mobile */
    .dot-7, .dot-8, .dot-9, .dot-10 {
        display: none;
    }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #cinematicIntro {
        display: none !important;
    }
    .intro-logo,
    .intro-halo,
    .intro-title,
    .intro-sub,
    .intro-sweep-wrap,
    .intro-sweep,
    .intro-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .intro-particles {
        display: none !important;
    }
}

/* ── 4. TOP ANNOUNCEMENT BAR ── */
.top-bar {
    background: var(--text-ink);
    color: #E2E8F0;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-gold-pill {
    background: var(--gold-muted);
    color: var(--text-ink);
    font-size: 10px;
    font-weight: 800;
    padding: 2.5px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.top-bar-link {
    color: #CBD5E1;
    font-size: 12.5px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.top-bar-link:hover {
    color: var(--bg-white-pure);
}

/* ── 5. PREMIUM HEADER ── */
.main-header {
    background: var(--bg-white-premium);
    border-bottom: 1px solid var(--border-editorial);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-smooth), background-color var(--transition-smooth), height var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(255, 253, 249, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(16, 24, 32, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: height var(--transition-smooth);
}

.main-header.scrolled .header-inner {
    height: 72px;
}

/* Brand Identity */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-ink);
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.brand-sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold-muted);
}

/* Primary Header Navigation Links */
.header-nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-item-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-body);
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-item-link:hover,
.nav-item-link.active {
    color: var(--text-ink);
}

.nav-item-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-muted);
    transition: width var(--transition-fast);
}

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

.nav-badge-accent {
    font-size: 10px;
    font-weight: 700;
    background: var(--gold-pale);
    color: var(--gold-dark);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gold-border);
    margin-left: 5px;
}

/* Wide Search Field (Flexible - shrinks gracefully on compact viewports) */
.header-search {
    flex: 1 1 240px;
    max-width: 380px;
    min-width: 120px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-warm-ivory);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-full);
    height: 44px;
    padding: 4px 6px 4px 16px;
    width: 100%;
    min-width: 0;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box:focus-within {
    background: var(--bg-white-pure);
    border-color: var(--gold-muted);
    box-shadow: 0 0 0 3px rgba(201, 154, 53, 0.16);
}

.search-icon {
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 8px;
    flex-shrink: 0;
}

.search-input {
    flex: 1 1 auto;
    background: transparent;
    font-size: 13.5px;
    color: var(--text-ink);
    min-width: 0;
    width: 100%;
}

.search-input::placeholder {
    color: var(--text-secondary);
    font-size: 13px;
}

.search-btn {
    background: var(--navy-deep);
    color: var(--bg-white-pure);
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--transition-fast);
}

.search-btn:hover {
    background: var(--text-ink);
}

/* User & Cart Controls - Desktop Right Action Group: Account | Orders | Cart */
.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

.auth-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-ink);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.btn-login .btn-login-icon {
    display: none;
}

.btn-login .btn-login-text {
    display: inline;
}

.btn-login:hover {
    background: var(--bg-ivory-surface);
}

.btn-signup {
    font-size: 13px;
    font-weight: 600;
    background: var(--text-ink);
    color: var(--bg-white-pure);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-signup:hover {
    background: var(--navy-deep);
    transform: translateY(-1px);
}

/* Logged-in User Dropdown (Pill Trigger + Accessible Menu) */
.user-nav-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.user-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    padding: 0 16px;
    height: 44px;
    min-height: 44px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-ink);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    user-select: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    max-width: 220px;
    min-width: 0;
}

.user-name-badge:hover,
.user-name-badge:focus-visible,
.user-nav-wrap.open .user-name-badge {
    border-color: var(--gold-muted);
    background: var(--bg-warm-ivory);
    box-shadow: 0 0 0 3px rgba(201, 154, 53, 0.14);
}

.user-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--navy-deep);
    flex-shrink: 0;
}

.user-name-block {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
    min-width: 0;
}

.user-greeting {
    display: none;
}

.user-name-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    font-weight: 600;
    color: var(--text-ink);
    vertical-align: middle;
}

.dropdown-chevron {
    font-size: 11px;
    color: var(--text-secondary);
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms;
    flex-shrink: 0;
    margin-left: 2px;
}

.user-nav-wrap.open .dropdown-chevron {
    transform: rotate(180deg);
    color: var(--gold-muted);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 270px;
    min-width: 260px;
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.15), 0 8px 16px -6px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1), transform 200ms cubic-bezier(0.16, 1, 0.3, 1), visibility 200ms;
}

.user-nav-wrap.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 18px 10px;
    display: flex;
    flex-direction: column;
}

.dropdown-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    background: var(--bg-warm-ivory, #f8f6f0);
    border: 1px solid var(--border-editorial, #e2dcd0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dropdown-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-ink, #101820);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    line-height: 1.2;
}

.dropdown-user-email {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.dropdown-item-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-body);
    transition: all var(--transition-fast);
}

.dropdown-item-link:hover,
.dropdown-item-link:focus-visible {
    background: var(--bg-warm-ivory);
    color: var(--text-ink);
    padding-left: 24px;
}

.dropdown-item-icon {
    font-size: 18px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-editorial);
    margin: 8px 0;
}

.btn-logout-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 20px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--status-error);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    transition: all var(--transition-fast);
}

.btn-logout-item:hover,
.btn-logout-item:focus-visible {
    background: var(--status-error-bg);
    padding-left: 24px;
}

/* Header Orders Link (Desktop Action Group) */
.header-orders-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.header-orders-link:hover,
.header-orders-link:focus-visible {
    color: var(--text-ink);
    background: var(--bg-ivory-surface);
}

.header-orders-link::after {
    display: none !important;
}

/* Header Cart Button */
.btn-cart-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-ivory-surface);
    border: 1px solid var(--border-editorial);
    color: var(--text-ink);
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-cart-header:hover {
    background: var(--text-ink);
    color: var(--bg-white-pure);
    border-color: var(--text-ink);
}

.btn-cart-header:hover .cart-count-badge {
    background: var(--gold-muted);
    color: var(--text-ink);
}

.cart-count-badge {
    background: var(--navy-deep);
    color: var(--bg-white-pure);
    font-size: 11.5px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

/* Mobile Menu Toggle Button (Hidden on Desktop by default) */
.mobile-menu-toggle,
#mobileMenuToggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-warm-ivory);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-sm);
    font-size: 20px;
    color: var(--text-ink);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover,
#mobileMenuToggle:hover {
    background: var(--bg-white-pure);
    border-color: var(--gold-muted);
}

/* Mobile Navigation Drawer (Fixed Off-Canvas Overlay) */
.mobile-nav-drawer,
#mobileNavDrawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: visibility 0.28s;
}

.mobile-nav-drawer.open,
.mobile-nav-drawer.is-open,
#mobileNavDrawer.open,
#mobileNavDrawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.drawer-backdrop,
#drawerBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 32, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mobile-nav-drawer.open .drawer-backdrop,
.mobile-nav-drawer.is-open .drawer-backdrop,
#mobileNavDrawer.open #drawerBackdrop,
#mobileNavDrawer.is-open #drawerBackdrop {
    opacity: 1;
}

.drawer-content {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100%;
    height: 100dvh;
    background: var(--bg-white-pure);
    box-shadow: -4px 0 24px rgba(16, 24, 32, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2001;
    overflow-y: auto;
}

.mobile-nav-drawer.open .drawer-content,
.mobile-nav-drawer.is-open .drawer-content,
#mobileNavDrawer.open .drawer-content,
#mobileNavDrawer.is-open .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-editorial);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-close-btn {
    font-size: 26px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.drawer-close-btn:hover {
    color: var(--text-ink);
}

.drawer-nav {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-ink);
    min-height: 44px;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--transition-fast);
}

.drawer-link:hover, .drawer-link:active {
    background: var(--bg-warm-ivory);
    color: var(--gold-dark);
}

.drawer-auth {
    padding: 20px 24px;
    border-top: 1px solid var(--border-editorial);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 360px) {
    .user-dropdown-menu,
    .dropdown-content {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        right: -6px !important;
    }
}

/* Strict Desktop Isolation Rule: Never render on desktop (>= 1024px) */
@media (min-width: 1024px) {
    #mobileNavDrawer,
    .mobile-nav-drawer,
    #drawerBackdrop,
    .drawer-backdrop,
    #mobileMenuToggle,
    .mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ── 6. CINEMATIC HERO SECTION ── */
.hero-wrapper {
    background: radial-gradient(circle at 75% 35%, rgba(201, 154, 53, 0.09) 0%, transparent 65%),
                linear-gradient(180deg, var(--bg-white-premium) 0%, var(--bg-warm-ivory) 100%);
    border-bottom: 1px solid var(--border-editorial);
    padding: 76px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 1.15fr;
    align-items: center;
    gap: 48px;
}

/* Left Hero Content */
.hero-text-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 2;
}

.hero-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-pale);
    border: 1px solid var(--gold-border);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-dark);
    width: fit-content;
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.85rem, 4.8vw + 0.5rem, 5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--text-ink);
    letter-spacing: -0.5px;
}

.hero-heading .serif-italic {
    font-style: italic;
    font-weight: 600;
    color: var(--navy-deep);
}

.hero-heading .gold-accent {
    color: var(--gold-muted);
}

.hero-subtext {
    font-size: clamp(1.05rem, 1.1vw + 0.15rem, 1.25rem);
    color: var(--text-body);
    line-height: 1.7;
    max-width: 560px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--text-ink);
    color: var(--bg-white-pure);
    font-size: 15.5px;
    font-weight: 600;
    padding: 15px 34px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(16, 24, 32, 0.22);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-hero-primary:hover {
    background: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 24, 32, 0.28);
}

.btn-hero-secondary {
    background: var(--bg-white-pure);
    color: var(--text-ink);
    border: 1px solid var(--border-editorial);
    font-size: 15.5px;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
    background: var(--bg-ivory-surface);
    border-color: var(--gold-muted);
    transform: translateY(-2px);
}

.hero-guarantee-strip {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--border-editorial);
    flex-wrap: wrap;
}

.hero-guarantee-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-guarantee-item span:first-child {
    color: var(--gold-muted);
    font-weight: 800;
}

/* ── 7. DOMINATING PHYSICAL 3D REAL BOOK STAGE ── */
.hero-stage-wrap {
    perspective: 1100px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 520px;
}

.hero-3d-book-stage {
    position: relative;
    width: 580px;
    height: 480px;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.hero-3d-book-stage.is-dragging,
body.hero-stage-dragging,
body.hero-stage-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.hero-3d-book-stage.is-dragging * {
    pointer-events: none;
}

/* Dual-tier Floor Contact Shadows */
.hero-floor-shadow {
    position: absolute;
    bottom: -15px;
    left: 8%;
    width: 84%;
    height: 44px;
    background: radial-gradient(ellipse at center, rgba(16, 24, 32, 0.40) 0%, rgba(16, 24, 32, 0.12) 50%, transparent 75%);
    transform: rotateX(80deg) translateZ(-30px);
    filter: blur(10px);
    border-radius: 50%;
    pointer-events: none;
}

.hero-floor-shadow-ambient {
    position: absolute;
    bottom: -32px;
    left: 2%;
    width: 96%;
    height: 68px;
    background: radial-gradient(ellipse at center, rgba(16, 24, 32, 0.20) 0%, rgba(16, 24, 32, 0.04) 55%, transparent 75%);
    transform: rotateX(80deg) translateZ(-45px);
    filter: blur(20px);
    border-radius: 50%;
    pointer-events: none;
}

/* Layer 1: Rear Left Book (Science Textbook) */
.book-3d-rear-left {
    position: absolute;
    left: 20px;
    bottom: 85px;
    width: 195px;
    height: 270px;
    transform-style: preserve-3d;
    transform: translate3d(0, 0, -70px) rotateY(16deg);
    filter: drop-shadow(0 16px 24px rgba(16, 24, 32, 0.22));
    border-radius: 2px 6px 6px 2px;
    overflow: hidden;
    background: #FAF7F0;
    border: 1px solid rgba(0, 0, 0, 0.16);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    animation: bookRearLeftBreathe 8.8s ease-in-out infinite;
    cursor: pointer;
    z-index: 2;
}

.book-3d-rear-left:hover {
    transform: translate3d(0, -4px, -55px) rotateY(16deg);
    filter: drop-shadow(0 22px 30px rgba(16, 24, 32, 0.30));
}

.book-3d-rear-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layer 2: Secondary Left Book (Social Science Textbook) */
.book-3d-back-left {
    position: absolute;
    left: 70px;
    bottom: 55px;
    width: 220px;
    height: 305px;
    transform-style: preserve-3d;
    transform: translate3d(0, 0, -25px) rotateY(9deg);
    filter: drop-shadow(0 20px 28px rgba(16, 24, 32, 0.26));
    border-radius: 3px 7px 7px 3px;
    overflow: hidden;
    background: #FAF7F0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    animation: bookBackLeftBreathe 6.5s ease-in-out infinite;
    cursor: pointer;
    z-index: 4;
}

.book-3d-back-left:hover {
    transform: translate3d(0, -4px, -10px) rotateY(9deg);
    filter: drop-shadow(0 26px 36px rgba(16, 24, 32, 0.34));
}

.book-3d-back-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layer 3: Secondary Right Book (English Textbook) */
.book-3d-back-right {
    position: absolute;
    right: 50px;
    bottom: 55px;
    width: 215px;
    height: 300px;
    transform-style: preserve-3d;
    transform: translate3d(0, 0, -25px) rotateY(-9deg);
    filter: drop-shadow(0 20px 28px rgba(16, 24, 32, 0.26));
    border-radius: 3px 7px 7px 3px;
    overflow: hidden;
    background: #FAF7F0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    animation: bookBackRightBreathe 7.2s ease-in-out infinite;
    cursor: pointer;
    z-index: 4;
}

.book-3d-back-right:hover {
    transform: translate3d(0, -4px, -10px) rotateY(-9deg);
    filter: drop-shadow(0 26px 36px rgba(16, 24, 32, 0.34));
}

.book-3d-back-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layer 4: Rear Right Book (Kannada/Supporting Textbook) */
.book-3d-rear-right {
    position: absolute;
    right: 20px;
    bottom: 85px;
    width: 195px;
    height: 270px;
    transform-style: preserve-3d;
    transform: translate3d(0, 0, -70px) rotateY(-16deg);
    filter: drop-shadow(0 16px 24px rgba(16, 24, 32, 0.22));
    border-radius: 2px 6px 6px 2px;
    overflow: hidden;
    background: #FAF7F0;
    border: 1px solid rgba(0, 0, 0, 0.16);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    animation: bookRearRightBreathe 8.8s ease-in-out infinite;
    cursor: pointer;
    z-index: 2;
}

.book-3d-rear-right:hover {
    transform: translate3d(0, -4px, -55px) rotateY(-16deg);
    filter: drop-shadow(0 22px 30px rgba(16, 24, 32, 0.30));
}

.book-3d-rear-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layer 4: Dominating Primary Facing 3D Book (Mathematics Textbook) */
.book-3d-primary {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translate3d(0, 0, 70px) rotateY(-2deg) rotateX(1deg);
    width: 270px;
    height: 375px;
    transform-style: preserve-3d;
    filter: drop-shadow(0 28px 38px rgba(16, 24, 32, 0.36)) drop-shadow(0 10px 18px rgba(16, 24, 32, 0.20));
    border-radius: 4px 10px 10px 4px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    animation: bookPrimaryBreathe 8.0s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
}

.book-3d-primary:hover {
    transform: translateX(-50%) translate3d(0, -4px, 85px) rotateY(-2deg) rotateX(1deg);
    filter: drop-shadow(0 34px 48px rgba(16, 24, 32, 0.44)) drop-shadow(0 14px 22px rgba(16, 24, 32, 0.25));
}

/* 3D Spine Construction */
.book-3d-primary-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 26px;
    transform-origin: left;
    transform: rotateY(-90deg);
    background: linear-gradient(90deg, #071522 0%, #102A43 50%, #1A3E61 100%);
    border-radius: 3px 0 0 3px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

/* Page Block Thickness */
.book-3d-primary-pages {
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 22px;
    transform-origin: right;
    transform: rotateY(90deg) translateZ(-10px);
    background: repeating-linear-gradient(to bottom, #FAF7F0, #FAF7F0 2px, #DFD6C2 3px, #D2C6AD 4px);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.25);
}

.book-3d-primary-cover {
    position: absolute;
    inset: 0;
    border-radius: 3px 9px 9px 3px;
    overflow: hidden;
    background: #FAF7F0;
    border: 1px solid rgba(0, 0, 0, 0.16);
}

.book-3d-primary-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Edition Badge */
.hero-edition-badge {
    position: absolute;
    bottom: 12px;
    right: 0px;
    transform: translateZ(40px);
    background: var(--bg-white-pure);
    border: 1px solid var(--gold-muted);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    box-shadow: 0 10px 25px rgba(16, 24, 32, 0.15);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 12;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-edition-label {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold-dark);
}

.hero-edition-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-ink);
}

/* ── Subtle Individual Book Breathing Animations ── */
@keyframes bookPrimaryBreathe {
    0%, 100% {
        transform: translateX(-50%) translate3d(0, 0, 70px) rotateY(-2deg) rotateX(1deg);
    }
    50% {
        transform: translateX(-50%) translate3d(0, -3.5px, 72px) rotateY(-1deg) rotateX(1.8deg);
    }
}

@keyframes bookBackLeftBreathe {
    0%, 100% {
        transform: translate3d(0, 0, -25px) rotateY(9deg) rotateX(0deg);
    }
    50% {
        transform: translate3d(0, -3px, -23px) rotateY(10.5deg) rotateX(-0.8deg);
    }
}

@keyframes bookBackRightBreathe {
    0%, 100% {
        transform: translate3d(0, 0, -25px) rotateY(-9deg) rotateX(0deg);
    }
    50% {
        transform: translate3d(0, -3px, -23px) rotateY(-7.5deg) rotateX(0.8deg);
    }
}

@keyframes bookRearLeftBreathe {
    0%, 100% {
        transform: translate3d(0, 0, -70px) rotateY(16deg) rotateX(0deg);
    }
    50% {
        transform: translate3d(0, -2.5px, -68px) rotateY(17.5deg) rotateX(-1deg);
    }
}

@keyframes bookRearRightBreathe {
    0%, 100% {
        transform: translate3d(0, 0, -70px) rotateY(-16deg) rotateX(0deg);
    }
    50% {
        transform: translate3d(0, -2.5px, -68px) rotateY(-17.5deg) rotateX(1deg);
    }
}

@keyframes heroBooksFloatMobile {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-3d-book-stage,
    .book-3d-primary,
    .book-3d-rear-left,
    .book-3d-rear-right,
    .book-3d-back-left,
    .book-3d-back-right {
        animation: none !important;
        transition: none !important;
    }
}

/* ── 8. QUICK CATEGORY DISCOVERY SECTION ── */
.discovery-section {
    padding: 48px 0 60px;
    border-bottom: 1px solid var(--border-editorial);
    background: var(--bg-white-premium);
}

.discovery-subsection {
    margin-bottom: 36px;
}

.discovery-subsection:last-child {
    margin-bottom: 0;
}

.discovery-subhead-wrap {
    margin-bottom: 16px;
}

.discovery-subhead {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-ink);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discovery-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Shop by Class Grid */
.discovery-class-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.discovery-class-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-warm-ivory);
    border: 1px solid var(--border-editorial);
    border-radius: 14px;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-ink);
    cursor: pointer;
    transition: all var(--transition-fast, 0.2s ease);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(16, 24, 32, 0.04);
    min-height: 52px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.discovery-class-btn:hover {
    background: var(--bg-white-pure);
    border-color: var(--gold-primary, #d4a72c);
    color: #9a7309;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 167, 44, 0.16);
}

.discovery-class-btn:active,
.discovery-class-btn.active {
    background: #fff8e7;
    border-color: var(--gold-primary, #d4a72c);
    color: #845f06;
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(212, 167, 44, 0.22);
}

.discovery-class-icon {
    font-size: 17px;
    line-height: 1;
}

.discovery-class-title {
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Shop by Combo Card */
.discovery-combo-card {
    background: linear-gradient(135deg, #fdfbf7 0%, #f7f1e6 100%);
    border: 1px solid var(--gold-border, rgba(212, 167, 44, 0.35));
    border-radius: 16px;
    padding: 26px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: 0 4px 20px rgba(16, 24, 32, 0.05);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast, 0.2s ease);
}

.discovery-combo-card:hover {
    border-color: var(--gold-primary, #d4a72c);
    box-shadow: 0 8px 24px rgba(212, 167, 44, 0.14);
}

.discovery-combo-content {
    flex: 1;
    min-width: 0;
}

.discovery-combo-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #845f06;
    background: rgba(212, 167, 44, 0.16);
    border: 1px solid rgba(212, 167, 44, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.discovery-combo-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-ink);
    margin: 0 0 6px 0;
}

.discovery-combo-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 18px 0;
    max-width: 560px;
    line-height: 1.45;
}

.discovery-combo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #101820 0%, #1e293b 100%);
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 24, 32, 0.18);
    cursor: pointer;
    min-height: 44px;
}

.discovery-combo-btn:hover {
    background: linear-gradient(135deg, #d4a72c 0%, #b88a1b 100%);
    color: #101820 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 167, 44, 0.35);
}

.discovery-combo-btn svg {
    transition: transform 0.2s ease;
}

.discovery-combo-btn:hover svg {
    transform: translateX(3px);
}

.discovery-combo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 167, 44, 0.22) 0%, rgba(212, 167, 44, 0.05) 70%, transparent 100%);
    border: 1px dashed rgba(212, 167, 44, 0.4);
    flex-shrink: 0;
}

.discovery-combo-icon-bubble {
    font-size: 42px;
    line-height: 1;
}

/* ── 9. SECTION HEADINGS & STRUCTURE ── */
.home-section {
    padding: 88px 0;
    position: relative;
}

.section-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
}

.section-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-muted);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 2.6vw + 0.5rem, 3.1rem);
    font-weight: 700;
    color: var(--text-ink);
    line-height: 1.18;
}

.section-desc {
    font-size: 15.5px;
    color: var(--text-secondary);
    max-width: 620px;
}

.btn-view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: 1px solid var(--border-editorial);
    background: var(--bg-white-pure);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-view-all:hover {
    border-color: var(--gold-muted);
    background: var(--bg-ivory-surface);
}

/* ── 10. CLASS 10 CAMPAIGN BANNER ── */
.class-feature-banner {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
    border-radius: var(--radius-xl);
    padding: 52px 56px;
    color: var(--bg-white-pure);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(11, 30, 48, 0.35);
}

.class-feature-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(201, 154, 53, 0.16) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.class-feature-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 2;
}

.class-feature-pill {
    background: rgba(201, 154, 53, 0.22);
    border: 1px solid var(--gold-muted);
    color: var(--gold-soft);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.class-feature-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 2.4vw + 0.5rem, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--bg-white-pure);
}

.class-feature-desc {
    font-size: 15.5px;
    color: #CBD5E1;
    line-height: 1.65;
    max-width: 520px;
}

.class-feature-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.class-subject-tag {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #E2E8F0;
}

.class-feature-actions {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.btn-class-primary {
    background: var(--gold-muted);
    color: var(--text-ink);
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(201, 154, 53, 0.3);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-class-primary:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
}

.btn-class-secondary {
    background: transparent;
    color: var(--bg-white-pure);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-class-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--bg-white-pure);
}

/* Layered 3D Book Visual in Class 10 Banner */
.class-feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    perspective: 1000px;
}

.class-book-thumb {
    width: 145px;
    height: 200px;
    border-radius: 3px 8px 8px 3px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: rotateY(-8deg) translateY(-8px);
    transition: transform var(--transition-smooth);
}

.class-book-thumb:hover {
    transform: translateY(-16px) scale(1.06);
}

.class-book-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback Grade Chips Scroll */
.class-chips-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.class-chip-pill {
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.class-chip-pill:hover,
.class-chip-pill.active {
    background: var(--navy-deep);
    color: var(--bg-white-pure);
    border-color: var(--navy-deep);
}

/* ── 11. SHOP BY SUBJECT CARDS ── */
.subjects-real-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.subject-real-card {
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.subject-real-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--gold-muted);
}

.subject-thumb-box {
    width: 100%;
    height: 165px;
    background: var(--bg-warm-ivory);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-editorial);
}

.subject-thumb-box img {
    height: 140px;
    width: auto;
    object-fit: contain;
    border-radius: 2px 5px 5px 2px;
    box-shadow: 0 8px 18px rgba(16, 24, 32, 0.16);
    transition: transform var(--transition-smooth);
}

.subject-real-card:hover .subject-thumb-box img {
    transform: scale(1.06);
}

.subject-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-ink);
}

.subject-meta {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: -6px;
}

.subject-explore-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: color var(--transition-fast);
}

.subject-real-card:hover .subject-explore-link {
    color: var(--gold-dark);
}

/* ── 12. COMPLETE SET SHOWCASE (SECOND WOW MOMENT) ── */
.bundle-hero-showcase {
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-xl);
    padding: 52px;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    align-items: center;
    gap: 56px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.bundle-3d-visual-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm-ivory);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-lg);
    padding: 28px;
    min-height: 320px;
}

.bundle-3d-visual-wrap img {
    max-height: 280px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 45px rgba(16, 24, 32, 0.2);
    transition: transform var(--transition-smooth);
}

.bundle-hero-showcase:hover .bundle-3d-visual-wrap img {
    transform: translateY(-5px) scale(1.03);
}

.bundle-details-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bundle-savings-badge {
    background: var(--gold-pale);
    border: 1px solid var(--gold-border);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
}

.bundle-name-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 2.4vw + 0.4rem, 2.75rem);
    font-weight: 700;
    color: var(--text-ink);
    line-height: 1.18;
}

.bundle-books-list {
    font-size: 15.5px;
    color: var(--text-body);
    line-height: 1.65;
}

.bundle-price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 4px 0;
}

.bundle-price-current {
    font-family: var(--sm-price-font) !important;
    font-size: var(--font-size-price, 20px) !important;
    font-weight: 700;
    color: var(--text-ink);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.bundle-price-mrp {
    font-family: var(--sm-price-font) !important;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.bundle-save-amt {
    font-family: var(--sm-price-font) !important;
    background: var(--status-success-bg);
    color: var(--status-success);
    font-size: 12.5px;
    font-weight: 700;
    padding: 3.5px 12px;
    border-radius: var(--radius-full);
    font-variant-numeric: tabular-nums;
}

.bundle-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-bundle-buy {
    background: var(--text-ink);
    color: var(--bg-white-pure);
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(16, 24, 32, 0.18);
    transition: all var(--transition-fast);
}

.btn-bundle-buy:hover {
    background: var(--navy-deep);
    transform: translateY(-2px);
}

.btn-bundle-cart {
    background: var(--gold-muted);
    color: var(--text-ink);
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-bundle-cart:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
}

.btn-bundle-view {
    background: var(--bg-white-pure);
    color: var(--text-ink);
    border: 1px solid var(--border-editorial);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-bundle-view:hover {
    background: var(--bg-ivory-surface);
    border-color: var(--gold-muted);
}

/* ── 13. FEATURED BOOKSTORE CATALOG GRID ── */
.books-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-lg);
    padding: 16px 26px;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-soft);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.filter-select {
    background: var(--bg-warm-ivory);
    border: 1px solid var(--border-editorial);
    color: var(--text-ink);
    padding: 9px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--gold-muted);
}

.books-count-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn {
    background: var(--bg-warm-ivory);
    border: 1px solid var(--border-editorial);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn.active,
.view-btn:hover {
    background: var(--text-ink);
    color: var(--bg-white-pure);
    border-color: var(--text-ink);
}

/* Catalog Product Grid (4-5 columns) */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.book-card {
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(201, 154, 53, 0.45);
}

.book-image-container {
    width: 100%;
    height: 230px;
    background: var(--bg-warm-ivory);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-editorial);
    margin-bottom: 16px;
}

.book-cover {
    height: 195px;
    width: auto;
    object-fit: contain;
    border-radius: 2px 6px 6px 2px;
    box-shadow: 0 12px 26px rgba(16, 24, 32, 0.16);
    transition: transform var(--transition-smooth);
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

.book-card h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-ink);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.book-author {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.book-price {
    font-family: var(--sm-price-font) !important;
    font-size: var(--font-size-price, 20px) !important;
    font-weight: 700;
    color: var(--text-ink);
    line-height: 1.2;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

.book-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.btn-primary {
    background: var(--text-ink);
    color: var(--bg-white-pure);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: background var(--transition-fast);
}

.btn-primary:hover {
    background: var(--navy-deep);
}

.btn-secondary {
    background: var(--bg-warm-ivory);
    color: var(--text-ink);
    border: 1px solid var(--border-editorial);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-ivory-surface);
    border-color: var(--gold-muted);
}

.btn-disabled {
    background: #E2E8F0 !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Stock Overlays */
.stock-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3.5px 9px;
    border-radius: var(--radius-sm);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.stock-overlay.out-of-stock {
    background: var(--status-error-bg);
    color: var(--status-error);
    border: 1px solid #FCA5A5;
}

.stock-overlay.limited-stock {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.cashback-sticker {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--status-success-bg);
    color: var(--status-success);
    border: 1px solid #86EFAC;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

/* Skeleton Loading Cards */
.skeleton-card {
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skeleton-thumb {
    width: 100%;
    height: 230px;
    background: linear-gradient(90deg, var(--bg-warm-ivory) 25%, #EFE9DC 50%, var(--bg-warm-ivory) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, var(--bg-warm-ivory) 25%, #EFE9DC 50%, var(--bg-warm-ivory) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-line.short {
    width: 60%;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty & Loading States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 14px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-editorial);
    border-top-color: var(--gold-muted);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state-box {
    background: var(--bg-white-pure);
    border: 1px dashed var(--border-editorial);
    border-radius: var(--radius-lg);
    padding: 56px;
    text-align: center;
}

/* Pagination */
.pagination-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    color: var(--text-ink);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--text-ink);
    color: var(--bg-white-pure);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white-pure);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-ink);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-number.active,
.page-number:hover {
    background: var(--text-ink);
    color: var(--bg-white-pure);
    border-color: var(--text-ink);
}

.load-more-btn {
    background: var(--navy-deep);
    color: var(--bg-white-pure);
    padding: 11px 26px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ── 14. EDITORIAL SPECIAL OFFERS BANNER ── */
.special-offers-section {
    padding: 40px 0;
}

.editorial-offer-banner {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-surface) 100%);
    border-radius: var(--radius-xl);
    padding: 48px 56px;
    color: var(--bg-white-pure);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.editorial-offer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 680px;
    z-index: 2;
}

.editorial-offer-pill {
    background: rgba(201, 154, 53, 0.25);
    border: 1px solid var(--gold-muted);
    color: var(--gold-soft);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.editorial-offer-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 2.2vw + 0.5rem, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bg-white-pure);
}

.editorial-offer-desc {
    font-size: 15px;
    color: #CBD5E1;
    line-height: 1.6;
}

.btn-editorial-offer {
    background: var(--gold-muted);
    color: var(--text-ink);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 6px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-editorial-offer:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
}

/* ── 15. UNDERSTATED TRUST STRIP ── */
.trust-strip-wrapper {
    background: var(--bg-white-pure);
    border-top: 1px solid var(--border-editorial);
    border-bottom: 1px solid var(--border-editorial);
    padding: 48px 0;
}

.trust-grid-six {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.trust-item-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.trust-item-icon {
    font-size: 28px;
    color: var(--gold-muted);
}

.trust-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-ink);
}

.trust-item-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ── 16. LUXURY FOOTER ── */
.site-footer,
.main-footer,
.global-footer,
footer.site-footer,
footer.main-footer,
footer {
    background: var(--bg-ivory-light, #FAF7F1);
    color: var(--text-body, #2B3642);
    padding: 64px 0 32px;
    border-top: 1px solid var(--sm-border, #E7E1D6);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 48px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-logo,
.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.footer-brand-title,
.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-ink, #101820);
}

.footer-desc,
.footer-tagline {
    font-size: 13.5px;
    color: var(--text-secondary, #667085);
    line-height: 1.7;
    max-width: 340px;
}

.footer-col-title,
.footer-column h3,
.footer-column h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-dark, #A47820);
    margin-bottom: 18px;
    opacity: 1;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links-list li a,
.footer-links-list a,
.footer-column a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body, #2B3642);
    text-decoration: none;
    opacity: 1;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links-list li a:hover,
.footer-links-list a:hover,
.footer-column a:hover {
    color: var(--gold-dark, #A47820);
    transform: translateX(2px);
}

.footer-contact-info {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
}

.footer-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans, 'Inter', sans-serif);
    color: var(--text-ink, #101820);
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(212, 167, 44, 0.08);
    border: 1px solid rgba(212, 167, 44, 0.25);
    border-radius: 6px;
    transition: all var(--transition-fast, 0.2s ease);
    width: fit-content;
    min-height: 38px;
    box-sizing: border-box;
}

.footer-phone-link:hover {
    background: rgba(212, 167, 44, 0.16);
    border-color: var(--gold-dark, #A47820);
    color: var(--gold-dark, #A47820);
    transform: translateY(-1px);
}

.footer-phone-link .phone-icon {
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--sm-border, #E7E1D6);
    font-size: 13px;
    color: var(--text-secondary, #667085);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom a {
    color: var(--text-secondary, #667085);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-ink, #101820);
}

/* ── 17. NOTIFICATIONS & MODALS (PRESERVED) ── */
.dropup-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--navy-dark);
    color: var(--bg-white-pure);
    border: 1px solid var(--gold-muted);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    box-shadow: var(--shadow-card);
    z-index: 9999;
    max-width: 360px;
    display: none;
}

.dropup-notification.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.dropup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    color: #94A3B8;
    font-size: 16px;
    cursor: pointer;
}

.dropup-offer-title {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 4px;
    color: var(--gold-soft);
}

.dropup-offer-message {
    font-size: 13px;
    color: #E2E8F0;
    line-height: 1.45;
}

/* Preserved Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 32, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white-pure);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    margin: 10vh auto;
    box-shadow: var(--shadow-card-hover);
    border: 1px solid var(--border-editorial);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-editorial);
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
}

.modal-header .close {
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 24px;
}

.delivery-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.delivery-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-warm-ivory);
    border: 1px solid var(--border-editorial);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.delivery-option:hover,
.payment-option:hover {
    background: var(--bg-white-pure);
    border-color: var(--gold-muted);
    box-shadow: var(--shadow-soft);
}

/* ── 18. WIDESCREEN & RESPONSIVE BREAKPOINTS ── */
@media (min-width: 1700px) {
    .hero-grid {
        gap: 64px;
    }
    
    .hero-3d-book-stage {
        width: 620px;
        height: 510px;
    }
    
    .book-3d-primary {
        width: 290px;
        height: 400px;
    }
    
    .book-3d-back-left {
        width: 235px;
        height: 325px;
    }
    
    .book-3d-back-right {
        width: 230px;
        height: 320px;
    }
    
    .book-3d-rear-left,
    .book-3d-rear-right {
        width: 210px;
        height: 290px;
    }
}

@media (max-width: 1280px) {
    .hero-3d-book-stage {
        width: 480px;
        height: 420px;
    }
    
    .book-3d-primary {
        width: 235px;
        height: 325px;
    }
    
    .book-3d-back-left {
        width: 190px;
        height: 265px;
    }
    
    .book-3d-back-right {
        width: 185px;
        height: 260px;
    }
    
    .book-3d-rear-left,
    .book-3d-rear-right {
        display: none;
    }
}

@media (max-width: 1200px) {
    .trust-grid-six {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Compact Desktop Navigation & Header Scaling (1025px – 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .header-inner {
        gap: 16px;
    }
    .header-nav-links {
        gap: 18px;
    }
    .header-search {
        max-width: 320px;
    }
    .user-name-text {
        max-width: 110px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .header-inner {
        gap: 12px;
    }
    .header-nav-links {
        gap: 12px;
    }
    .nav-item-link {
        font-size: 13px;
    }
    .nav-badge-accent {
        padding: 1px 5px;
        font-size: 9.5px;
    }
    .header-search {
        min-width: 120px;
        max-width: 260px;
    }
    .search-box {
        height: 42px;
        padding: 3px 5px 3px 12px;
    }
    .search-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .user-name-text {
        max-width: 100px;
    }
    .user-name-badge {
        padding: 0 12px;
        gap: 6px;
    }
    .header-orders-link {
        padding: 0 10px;
    }
    .btn-cart-header {
        padding: 0 12px;
        gap: 6px;
    }
    .header-actions {
        gap: 12px;
    }
}

@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-text-col {
        align-items: center;
    }
    
    .hero-subtext {
        max-width: 100%;
    }
    
    .hero-cta-row {
        justify-content: center;
    }
    
    .hero-guarantee-strip {
        justify-content: center;
    }
    
    .bundle-hero-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px;
    }
    
    .class-feature-banner {
        grid-template-columns: 1fr;
        padding: 40px 32px;
    }
}

/* ==========================================================================
   SHREE MATA — PURPOSE-BUILT MOBILE & TABLET DESIGN SYSTEM (320px – 1024px)
   Strict isolation: Desktop >= 1025px remains 100% untouched.
   ========================================================================== */

/* ── 1. TABLET BREAKPOINT (max-width: 1024px) ── */
@media (max-width: 1024px) {
    :root {
        --page-gutter: 24px;
    }
}

/* ── 2. MOBILE & PHONE BREAKPOINT (max-width: 768px) ── */
@media (max-width: 768px) {
    :root {
        --page-gutter: 20px;
    }

    /* ── Global Reset for Zero Overflow ── */
    html, body {
        max-width: 100vw;
        overflow-x: clip;
    }

    /* ── Announcement Top Bar ── */
    .top-bar {
        padding: 7px var(--page-gutter);
    }
    
    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }
    
    .top-bar-left {
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
        font-size: clamp(11px, 2.9vw, 12px);
        line-height: 1.35;
        width: 100%;
        flex-wrap: wrap;
    }

    .badge-gold-pill {
        font-size: 9.5px;
        padding: 2px 7px;
    }
    
    .top-bar-right {
        display: none !important;
    }

    /* ── Mobile Header: Clean Two-Row Architecture ── */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-editorial, #e2dcd0);
    }

    .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        height: auto;
        min-height: auto;
        padding: 6px 0 8px;
        row-gap: 6px;
    }

    /* ROW 1 Left (Item 1): Mobile Hamburger Menu */
    .mobile-menu-toggle,
    #mobileMenuToggle {
        order: 1;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        font-size: 22px;
        line-height: 1;
        background: var(--bg-warm-ivory, #f8f6f0) !important;
        border: 1.5px solid var(--border-editorial, #e2dcd0) !important;
        border-radius: 10px;
        color: var(--text-ink, #101820) !important;
        cursor: pointer;
        flex-shrink: 0;
        margin-right: 6px;
    }

    .mobile-menu-toggle:hover,
    #mobileMenuToggle:hover,
    .mobile-menu-toggle:active,
    #mobileMenuToggle:active {
        background: #efebe1 !important;
        border-color: #d4a72c !important;
        color: #101820 !important;
    }

    /* ROW 1 Left (Item 2): Brand Logo */
    .brand-logo {
        order: 2;
        flex: 0 1 auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-right: auto;
        min-width: 0;
        text-decoration: none;
    }

    .brand-logo img {
        width: auto;
        height: 44px;
        max-height: 46px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .brand-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .brand-title {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--text-ink, #101820);
    }

    .brand-sub {
        font-size: 8.5px;
        letter-spacing: 0.8px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #64748b;
    }

    /* ROW 1 Right: [Account] [Cart] */
    .header-actions {
        order: 3;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    /* Hide desktop nav links & standalone Orders text from mobile header */
    .header-nav-links,
    .header-orders-link {
        display: none !important;
    }

    /* Clean Auth Display: Hide whichever state has display:none */
    #userLinks[style*="display: none"],
    #userLinks[style*="display:none"],
    #authLinks[style*="display: none"],
    #authLinks[style*="display:none"],
    .user-nav-wrap[style*="display: none"],
    .user-nav-wrap[style*="display:none"],
    .auth-group[style*="display: none"],
    .auth-group[style*="display:none"] {
        display: none !important;
    }

    /* Guest Auth on mobile header */
    .auth-group:not([style*="display: none"]):not([style*="display:none"]) {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .auth-group .btn-signup {
        display: none !important;
    }

    .auth-group .btn-login {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--bg-warm-ivory, #f8f6f0);
        border: 1.5px solid var(--border-editorial, #e2dcd0);
        color: var(--text-ink, #101820);
        box-shadow: 0 1px 3px rgba(16, 24, 32, 0.04);
        transition: all var(--transition-fast, 0.2s ease);
        text-decoration: none;
    }

    .auth-group .btn-login .btn-login-text {
        display: none !important;
    }

    .auth-group .btn-login .btn-login-icon {
        display: inline-flex !important;
        font-size: 18px;
        line-height: 1;
    }

    /* Logged-in User Badge on mobile header */
    .user-nav-wrap:not([style*="display: none"]):not([style*="display:none"]) {
        display: inline-flex;
        align-items: center;
    }

    .user-name-badge,
    #userMenuBtn {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: var(--bg-warm-ivory, #f8f6f0);
        border: 1.5px solid var(--border-editorial, #e2dcd0);
        color: var(--text-ink, #101820);
    }

    .user-name-block,
    .user-name-text,
    #userName,
    .dropdown-chevron {
        display: none !important;
    }

    .user-avatar-icon {
        font-size: 18px !important;
        margin: 0 !important;
    }

    /* ── COMPACT MOBILE ACCOUNT DROPDOWN ── */
    .user-dropdown-menu,
    .dropdown-content {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        width: min(300px, calc(100vw - 24px)) !important;
        max-width: 300px !important;
        height: auto !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 12px !important;
        border-radius: 16px !important;
        background: #FFFFFF !important;
        border: 1.5px solid #e2dcd0 !important;
        box-shadow: 0 12px 36px -4px rgba(16, 24, 32, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        box-sizing: border-box !important;
        z-index: 1200 !important;
    }

    .dropdown-header {
        padding: 4px 6px 8px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .dropdown-user-profile {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .dropdown-user-avatar {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 50% !important;
        background: #f8f6f0 !important;
        border: 1px solid #e2dcd0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        flex-shrink: 0 !important;
    }

    .dropdown-user-info {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
    }

    .dropdown-user-name {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #101820 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .dropdown-user-email {
        font-size: 12px !important;
        color: #64748b !important;
        line-height: 1.2 !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .dropdown-divider {
        height: 1px !important;
        background: #f1ede4 !important;
        margin: 6px 0 !important;
    }

    .user-dropdown-menu a,
    .dropdown-item,
    .dropdown-item-link,
    .btn-logout-item {
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 10px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        transition: background 0.15s ease !important;
    }

    .user-dropdown-menu a:hover,
    .user-dropdown-menu a:active,
    .dropdown-item-link:hover,
    .dropdown-item-link:active {
        background: #f8f6f0 !important;
        color: #101820 !important;
        padding-left: 10px !important;
    }

    .dropdown-item-icon {
        font-size: 18px !important;
        width: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .btn-logout-item {
        color: #dc2626 !important;
    }

    .btn-logout-item:hover,
    .btn-logout-item:active {
        background: #fef2f2 !important;
        color: #b91c1c !important;
    }

    /* Cart Button on mobile header */
    .btn-cart-header,
    #cartLink {
        min-width: 44px;
        min-height: 44px;
        height: 44px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border-radius: 22px;
        font-size: 16px;
        background: var(--text-ink, #101820);
        color: #ffffff;
        text-decoration: none;
        border: none;
    }

    .btn-cart-header .cart-text,
    #cartLink .cart-text {
        display: none !important;
    }

    .cart-count-badge,
    #cartCount {
        font-size: 11px;
        font-weight: 800;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 10px;
        background: var(--brand-gold, #d4a72c);
        color: var(--text-ink, #101820);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ROW 2: Compact Full-Width Search Bar */
    .header-search {
        order: 4;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100% !important;
        display: block !important;
        margin-top: 2px;
    }

    .header-search .search-box {
        width: 100%;
        height: 40px;
        min-height: 40px;
        padding: 3px 4px 3px 12px;
        border-radius: 20px;
        background: var(--bg-warm-ivory, #f8f6f0);
        border: 1.5px solid var(--border-editorial, #e2dcd0);
        display: flex;
        align-items: center;
    }

    .header-search .search-icon {
        font-size: 14px;
        margin-right: 6px;
        flex-shrink: 0;
    }

    .header-search .search-input {
        font-size: 13px;
        height: 100%;
        padding: 0 4px;
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        min-width: 0;
    }

    .header-search .search-btn {
        height: 32px;
        min-height: 32px;
        padding: 0 13px;
        font-size: 12px;
        border-radius: 16px;
        flex-shrink: 0;
        background: var(--text-ink, #101820);
        color: #ffffff;
        font-weight: 600;
        border: none;
        cursor: pointer;
    }

    /* ── Hero Mobile Proportions ── */
    .hero-wrapper {
        padding: 40px 0 44px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .hero-text-col {
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .hero-pill-tag {
        font-size: 11px;
        padding: 4px 14px;
    }

    .hero-heading {
        font-size: clamp(32px, 9.2vw, 44px);
        line-height: 1.04;
        letter-spacing: -0.5px;
    }

    .hero-subtext {
        font-size: 14px;
        line-height: 1.55;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-cta-row {
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-top: 4px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Trust Indicators */
    .hero-guarantee-strip {
        justify-content: center;
        gap: 8px 16px;
        margin-top: 4px;
        padding-top: 14px;
        width: 100%;
    }

    .hero-guarantee-item {
        font-size: 12.5px;
        text-align: center;
    }

    /* 3D Book Stage Visual */
    .hero-stage-wrap {
        perspective: 900px;
        min-height: 290px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin-top: 6px;
    }

    .hero-3d-book-stage {
        width: min(88vw, 360px);
        max-width: 100%;
        height: 280px;
        margin: 0 auto;
        animation: heroBooksFloatMobile 6s ease-in-out infinite;
    }

    .book-3d-primary {
        width: 175px;
        height: 245px;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%) translate3d(0, 0, 30px) rotateY(-2deg) rotateX(1deg);
        filter: drop-shadow(0 14px 20px rgba(16, 24, 32, 0.28));
        animation: none;
    }

    .book-3d-back-left {
        width: 135px;
        height: 190px;
        left: calc(50% - 130px);
        bottom: 38px;
        transform: translate3d(0, 0, -10px) rotateY(6deg);
        filter: drop-shadow(0 10px 16px rgba(16, 24, 32, 0.20));
        animation: none;
    }

    .book-3d-back-right {
        width: 130px;
        height: 185px;
        right: calc(50% - 130px);
        left: auto;
        bottom: 38px;
        transform: translate3d(0, 0, -10px) rotateY(-6deg);
        filter: drop-shadow(0 10px 16px rgba(16, 24, 32, 0.20));
        animation: none;
    }

    .book-3d-rear-left {
        display: block;
        width: 105px;
        height: 150px;
        left: calc(50% - 165px);
        bottom: 55px;
        transform: translate3d(0, 0, -35px) rotateY(10deg);
        opacity: 0.85;
        filter: drop-shadow(0 8px 12px rgba(16, 24, 32, 0.16));
        animation: none;
    }

    .book-3d-rear-right {
        display: block;
        width: 105px;
        height: 150px;
        left: auto;
        right: calc(50% - 165px);
        bottom: 55px;
        transform: translate3d(0, 0, -35px) rotateY(-10deg);
        opacity: 0.85;
        filter: drop-shadow(0 8px 12px rgba(16, 24, 32, 0.16));
        animation: none;
    }

    .hero-edition-badge {
        position: absolute;
        right: 0px;
        bottom: 2px;
        max-width: calc(100% - 16px);
        transform: translateZ(15px);
        padding: 6px 12px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }

    .hero-edition-label {
        font-size: 9px;
    }

    .hero-edition-title {
        font-size: 11.5px;
    }

    /* ── Quick Discovery Section (Mobile) ── */
    .discovery-section {
        padding: 32px 0 40px;
    }

    .discovery-subsection {
        margin-bottom: 28px;
    }

    .discovery-class-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .discovery-class-btn {
        padding: 12px 10px;
        font-size: 14px;
        min-height: 48px;
        border-radius: 12px;
    }

    .discovery-combo-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
        gap: 16px;
        border-radius: 14px;
    }

    .discovery-combo-visual {
        display: none;
    }

    .discovery-combo-desc {
        margin-bottom: 16px;
        font-size: 0.9rem;
    }

    .discovery-combo-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* ── Section Typography & Spacing ── */
    .home-section {
        padding: 48px 0;
    }

    .section-header-wrap {
        margin-bottom: 24px;
        gap: 14px;
    }

    .section-kicker {
        font-size: 11.5px;
        letter-spacing: 1.2px;
    }

    .section-title,
    .home-section .section-title {
        font-size: clamp(26px, 7vw, 32px);
        line-height: 1.18;
    }

    .section-desc,
    .home-section .section-desc {
        font-size: 14px;
        line-height: 1.55;
        max-width: 100%;
    }

    .btn-view-all {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 18px;
        font-size: 13.5px;
    }

    /* ── Class 10 Campaign Banner ── */
    .class-feature-banner {
        grid-template-columns: 1fr;
        padding: clamp(28px, 6vw, 36px) clamp(16px, 4vw, 24px);
        gap: 26px;
        border-radius: var(--radius-lg);
        width: 100%;
        max-width: 100%;
    }

    .class-feature-title {
        font-size: clamp(24px, 6.2vw, 28px);
        line-height: 1.2;
    }

    .class-feature-desc {
        font-size: 14px;
        line-height: 1.55;
    }

    .class-feature-badges {
        gap: 6px;
    }

    .class-subject-tag {
        font-size: 12px;
        padding: 4px 9px;
    }

    .class-feature-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-class-primary,
    .btn-class-secondary {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px 16px;
        font-size: 14px;
    }

    .class-feature-visual {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        max-width: 100%;
        perspective: none;
        margin-top: 8px;
    }

    .class-book-thumb {
        width: 108px;
        height: 152px;
        margin: 0 -10px;
        transform: none;
        flex-shrink: 0;
    }

    .class-book-thumb:nth-child(2) {
        z-index: 2;
        transform: translateY(-6px) scale(1.04);
    }

    /* ── Complete Book Sets Showcase ── */
    .bundle-hero-showcase {
        grid-template-columns: 1fr;
        padding: clamp(24px, 5vw, 32px) clamp(16px, 4vw, 22px);
        gap: 22px;
    }

    .bundle-3d-visual-wrap {
        min-height: auto;
        padding: 16px;
    }

    .bundle-3d-visual-wrap img {
        max-height: 200px;
    }

    .bundle-name-title {
        font-size: clamp(22px, 6vw, 26px);
    }

    .bundle-books-list {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .bundle-actions-row {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .btn-bundle-buy,
    .btn-bundle-cart,
    .btn-bundle-view {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* ── Catalog Toolbar ── */
    .books-toolbar {
        padding: 14px 16px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    .filter-select {
        min-height: 44px;
        flex: 1 1 120px;
        font-size: 13px;
    }

    .books-count-status {
        font-size: 13px;
    }

    /* ── Trust Section Strip ── */
    .trust-grid-six {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 14px;
    }

    .trust-item-box {
        gap: 6px;
    }

    .trust-item-title {
        font-size: 13.5px;
    }

    .trust-item-desc {
        font-size: 11.5px;
    }

    /* ── Global Footer Mobile ── */
    .site-footer,
    .main-footer,
    .global-footer,
    footer {
        padding: 44px 0 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 32px;
    }

    .footer-brand-col {
        gap: 12px;
    }

    .footer-brand-title {
        font-size: 22px;
    }

    .footer-desc {
        font-size: 13.5px;
        max-width: 100%;
    }

    .footer-contact-info {
        margin-top: 6px;
    }

    .footer-phone-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14.5px;
        font-weight: 700;
        background: var(--bg-white-pure);
        border: 1.5px solid var(--border-editorial);
        padding: 10px 18px;
        border-radius: var(--radius-full);
        color: var(--navy-deep);
        box-shadow: 0 1px 3px rgba(16, 24, 32, 0.04);
    }

    .footer-care-phone {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-ink);
    }

    .footer-links-list li a {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-top: 22px;
    }

    .footer-bottom div {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Interactive controls tap target fallback */
    button, 
    a.btn-primary, 
    a.btn-secondary {
        min-height: 44px;
    }
}

/* ── 3. ADAPTIVE PRODUCT GRID (381px – 640px) ── */
/* 2 columns when cards remain at least ~170–180px wide with readable titles & 44px actions */
@media (min-width: 381px) and (max-width: 640px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .book-card {
        padding: 12px 10px;
    }

    .book-image-container {
        height: 165px;
        margin-bottom: 10px;
    }

    .book-cover {
        height: 145px;
    }

    .book-card h3 {
        font-size: 13px;
        min-height: 34px;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .book-author {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .book-price {
        font-size: 16px !important;
        margin-bottom: 8px;
    }

    .book-actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .book-actions .btn-primary,
    .book-actions .btn-secondary {
        min-height: 44px;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12.5px;
        padding: 10px 8px;
    }
}

/* Intermediate tablet product grid */
@media (min-width: 641px) and (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
    }

    .book-actions .btn-primary,
    .book-actions .btn-secondary {
        min-height: 44px;
    }
}

/* ── 4. SMALL MOBILE VIEWPORT (max-width: 390px) ── */
@media (max-width: 390px) {
    :root {
        --page-gutter: 16px;
    }

    .hero-cta-row {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }
}

/* ── 5. NARROW MOBILE VIEWPORT (max-width: 380px) ── */
/* When screen cannot comfortably support 2 columns >= 170px, switch cleanly to 1 column */
@media (max-width: 380px) {
    .books-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .book-card {
        padding: 16px;
    }

    .book-image-container {
        height: 220px;
    }

    .book-cover {
        height: 190px;
    }

    .book-card h3 {
        font-size: 15px;
        min-height: auto;
    }

    .book-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .book-actions .btn-primary,
    .book-actions .btn-secondary {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13.5px;
    }
}

/* ── 6. COMPACT PHONE BREAKPOINT (max-width: 360px) ── */
@media (max-width: 360px) {
    /* For Class 10 banner, hide 3rd cover and overlap cleanly so remaining 2 stay prominent */
    .class-book-thumb:nth-child(3) {
        display: none !important;
    }

    .class-book-thumb {
        width: 110px;
        height: 155px;
        margin: 0 -8px;
    }

    .trust-grid-six {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ── 7. ULTRA-NARROW / 320px VIEWPORT (max-width: 340px) ── */
@media (max-width: 340px) {
    :root {
        --page-gutter: 14px;
    }

    .brand-title {
        font-size: 15.5px;
    }

    .brand-sub {
        font-size: 8.5px;
        letter-spacing: 1px;
    }

    .discovery-class-grid {
        gap: 8px;
    }

    .discovery-class-btn {
        padding: 10px 6px;
        font-size: 13px;
        gap: 6px;
        min-height: 44px;
    }

    .discovery-class-icon {
        font-size: 14px;
    }

    .discovery-combo-card {
        padding: 16px 12px;
    }

    .discovery-combo-title {
        font-size: 1.15rem;
    }

    .discovery-combo-desc {
        font-size: 0.85rem;
    }

    .book-actions {
        grid-template-columns: 1fr;
    }
}
