/* ========== CSS VARIABLES ========== */
:root {
    --terracotta: #E76F51;
    --terracotta-light: #F4A261;
    --terracotta-deep: #C85A32;
    --beige: #FAF8F5;
    --beige-dark: #EFE8DC;
    --beige-warm: #F6F2E9;
    --gold: #D4AF37;
    --gold-light: #E9C46A;
    --gold-pale: #F5E8C8;
    --ink: #18222D;
    --ink-soft: #2C3A4B;
    --ink-softer: #6B7C93;
    --ivory: #FDFBF7;
    --ivory-warm: #FAF7F0;
    --indigo: #202938;
    --indigo-light: #37475D;
    --forest: #26543C;
    --burnt: #E76F51;
    --burnt-light: #F4A261;
    --cream-shadow: rgba(231, 111, 81, 0.1);
    --shadow-warm: 0 12px 40px rgba(231, 111, 81, 0.16);
    --shadow-book: 0 20px 50px rgba(24, 34, 45, 0.25);
    --shadow-float: 0 8px 30px rgba(212, 175, 55, 0.25);
    --border-patta: 2px solid rgba(212, 175, 55, 0.4);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ui: 'Plus Jakarta Sans', sans-serif;
    --font-brand: 'Cinzel', serif;
    --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background: var(--ivory);
    color: var(--ink);
    overflow-x: clip;
    position: relative;
}

/* Hide OS default cursor everywhere on desktop ONLY when custom cursor JS is active */
@media (min-width: 992px) and (pointer: fine) {
    body.custom-cursor-active,
    body.custom-cursor-active *,
    body.custom-cursor-active *::before,
    body.custom-cursor-active *::after {
        cursor: none !important;
    }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' strokeTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========== PRECISION GOLDEN FOUNTAIN PEN NIB CURSOR ========== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 999999;
    will-change: transform;
    mix-blend-mode: normal;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translate3d(-100px, -100px, 0);
}

.cursor svg {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    filter: drop-shadow(1px 2px 5px rgba(26, 16, 8, 0.45));
}

/* Hover States for Interactive Elements */
.cursor.hover svg {
    transform: scale(1.25) rotate(-6deg);
    filter: drop-shadow(0 4px 12px rgba(155, 58, 26, 0.65));
}

/* Click Press State */
.cursor.active svg {
    transform: scale(0.9) translate(1px, 1px);
}

/* ========== PATTACHITRA BORDER PATTERN ========== */
.patta-border {
    position: relative;
}

.patta-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg,
            var(--gold) 0px, var(--gold) 8px,
            var(--terracotta) 8px, var(--terracotta) 16px,
            var(--gold-light) 16px, var(--gold-light) 20px,
            var(--terracotta) 20px, var(--terracotta) 28px,
            var(--gold) 28px, var(--gold) 36px);
}

.patta-line {
    height: 4px;
    background: repeating-linear-gradient(90deg,
            var(--gold) 0px, var(--gold) 6px,
            var(--terracotta-light) 6px, var(--terracotta-light) 12px,
            var(--gold-pale) 12px, var(--gold-pale) 16px,
            var(--terracotta-light) 16px, var(--terracotta-light) 22px,
            var(--gold) 22px, var(--gold) 28px);
    border-radius: 2px;
    margin: 24px 0;
}

/* ========== NAVIGATION ========== */
nav#mainNav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 250, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 150, 58, 0.3);
    transition: var(--transition);
}

nav#mainNav.scrolled {
    background: rgba(254, 250, 240, 0.98);
    box-shadow: 0 2px 30px rgba(155, 58, 26, 0.12);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo-brand:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(231, 111, 81, 0.15));
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.2));
}

.user-nav-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta-outline {
    padding: 8px 18px;
    background: transparent;
    color: var(--terracotta);
    border: 1.5px solid var(--terracotta);
    border-radius: 30px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-cta-outline:hover {
    background: var(--terracotta);
    color: white;
}

.admin-badge-btn {
    background: #202938 !important;
    color: var(--gold-light) !important;
    border: 1px solid var(--gold) !important;
}

.admin-badge-btn:hover {
    background: #37475D !important;
    color: white !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: var(--terracotta);
    background: rgba(155, 58, 26, 0.06);
}

.nav-link.active {
    color: var(--terracotta);
}

.nav-search {
    flex: 1;
    max-width: 320px;
    position: relative;
    margin-left: auto;
}

.nav-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: rgba(245, 230, 200, 0.6);
    border: 1.5px solid rgba(201, 150, 58, 0.35);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: var(--transition-fast);
}

.nav-search input::placeholder {
    color: rgba(26, 16, 8, 0.4);
    font-style: italic;
}

.nav-search input:focus {
    border-color: var(--gold);
    background: rgba(245, 230, 200, 0.9);
    box-shadow: 0 0 0 3px rgba(201, 150, 58, 0.15);
}

.nav-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 15px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 150, 58, 0.35);
    background: transparent;
    color: var(--ink-soft);
    font-size: 17px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.nav-btn:hover {
    background: rgba(155, 58, 26, 0.08);
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--terracotta);
    color: white;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cta {
    padding: 10px 22px;
    background: var(--terracotta);
    color: white;
    border-radius: 30px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--terracotta-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-float);
}

/* ========== REBUILT ODIA LANGUAGE SWITCHER BUTTON ========== */
.lang-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: linear-gradient(135deg, rgba(231, 111, 81, 0.08), rgba(212, 175, 55, 0.12));
    border: 1.5px solid rgba(231, 111, 81, 0.35);
    border-radius: 30px;
    color: var(--terracotta-deep);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.08);
}

.lang-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.lang-toggle-btn:hover::before {
    left: 140%;
}

.lang-toggle-btn:hover {
    background: var(--terracotta);
    color: #FFFFFF;
    border-color: var(--terracotta);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.28);
}

.lang-globe-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-toggle-btn:hover .lang-globe-icon {
    transform: rotate(20deg) scale(1.1);
}

.lang-label-text {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.lang-live-pulse {
    width: 6px;
    height: 6px;
    background: #E9C46A;
    border-radius: 50%;
    box-shadow: 0 0 8px #E9C46A;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.25); }
}

.lang-toggle-btn:active {
    transform: scale(0.96);
}

[lang="or"] {
    line-height: 1.6;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, #1A0C06 0%, #2C1508 30%, #3D1D08 60%, #1A1008 100%);
    padding-top: 72px;
}

.hero-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 150, 58, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 30%, rgba(155, 58, 26, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 60%, rgba(44, 62, 122, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-scene {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    overflow: hidden;
}

/* Temple silhouettes */
.temple-row {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
}

.temple {
    position: relative;
    flex-shrink: 0;
}

.temple svg {
    display: block;
}

/* Street ground */
.street-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(44, 30, 10, 0.95), transparent);
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

/* Floating books */
.floating-book {
    position: absolute;
    animation: floatBook ease-in-out infinite;
    opacity: 0.85;
    filter: drop-shadow(0 8px 20px rgba(201, 150, 58, 0.3));
}

@keyframes floatBook {

    0%,
    100% {
        transform: translateY(0px) rotate(var(--rot-start));
    }

    50% {
        transform: translateY(-18px) rotate(var(--rot-end));
    }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding-bottom: 100px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(52px, 7vw, 100px);
    font-weight: 900;
    line-height: 0.95;
    color: var(--ivory);
    max-width: 900px;
    position: relative;
}

.hero-headline em {
    font-style: italic;
    font-weight: 900;
    color: var(--gold-light);
    background: linear-gradient(135deg, #FFE89E 0%, #D4A346 50%, #FFDF79 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding: 0 2px;
}

.hero-headline em::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 2px;
    right: 2px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4A346, #FFE89E, #D4A346, transparent);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(212, 163, 70, 0.4);
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 20px;
    color: rgba(245, 230, 200, 0.75);
    max-width: 540px;
    line-height: 1.6;
    font-weight: 300;
}

/* Search bar */
.hero-search {
    width: 100%;
    max-width: 680px;
    position: relative;
}

.search-book-shape {
    display: flex;
    align-items: center;
    background: rgba(254, 250, 240, 0.96);
    border-radius: 16px 2px 16px 2px;
    border: 2px solid rgba(201, 150, 58, 0.5);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 16, 8, 0.5), 0 0 0 1px rgba(201, 150, 58, 0.2);
    transition: var(--transition);
}

.search-book-shape:focus-within {
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(26, 16, 8, 0.5), 0 0 0 3px rgba(201, 150, 58, 0.25);
}

.search-spine {
    width: 24px;
    height: 70px;
    background: linear-gradient(180deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-spine::after {
    content: '';
    position: absolute;
    inset: 4px 3px;
    border: 1px solid rgba(201, 150, 58, 0.4);
    border-radius: 1px;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.search-main-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--ink);
    padding: 20px 0;
}

.search-main-input::placeholder {
    color: rgba(26, 16, 8, 0.35);
    font-style: italic;
}

.search-divider {
    width: 1px;
    height: 30px;
    background: rgba(201, 150, 58, 0.3);
    flex-shrink: 0;
}

.search-mood-btn {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold);
    text-transform: uppercase;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    padding: 0 4px;
}

.search-submit {
    width: 70px;
    height: 70px;
    background: var(--terracotta);
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-submit:hover {
    background: var(--terracotta-deep);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.search-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 150, 58, 0.35);
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(245, 230, 200, 0.8);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-tag:hover {
    background: rgba(201, 150, 58, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta));
    color: white;
    border-radius: 4px 20px 4px 20px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(155, 58, 26, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(155, 58, 26, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    padding: 15px 34px;
    background: transparent;
    color: var(--gold-light);
    border-radius: 20px 4px 20px 4px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1.5px solid rgba(201, 150, 58, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(201, 150, 58, 0.15);
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 8px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.hero-stat-label {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(245, 230, 200, 0.5);
    margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(201, 150, 58, 0.6);
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBob 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes scrollBob {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ========== SECTION BASE ========== */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '◆';
    font-size: 6px;
    color: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-title em {
    font-style: italic;
    color: var(--terracotta);
}

.section-desc {
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(26, 16, 8, 0.6);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== ANNOUNCE BAR ========== */
.announce-bar {
    background: linear-gradient(90deg, var(--terracotta-deep), var(--terracotta), var(--terracotta-deep));
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 999;
}

.announce-track {
    display: flex;
    animation: announceScroll 30s linear infinite;
    white-space: nowrap;
}

.announce-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 40px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.announce-dot {
    color: var(--gold-light);
    font-size: 8px;
}

@keyframes announceScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========== MOOD SECTION ========== */
.moods-section {
    background: var(--ivory-warm);
}

.moods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mood-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(26, 16, 8, 0.15);
}

.mood-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-book);
}

.mood-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.mood-card:hover .mood-bg {
    transform: scale(1.06);
}

.mood-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 16, 8, 0.85) 0%, rgba(26, 16, 8, 0.3) 50%, transparent 100%);
    transition: var(--transition);
}

.mood-card:hover .mood-overlay {
    background: linear-gradient(to top, rgba(26, 16, 8, 0.92) 0%, rgba(26, 16, 8, 0.4) 60%, rgba(155, 58, 26, 0.1) 100%);
}

.mood-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
    color: white;
}

.mood-emoji {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.mood-label {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.mood-count {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    text-transform: uppercase;
}

.mood-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: translate(4px, -4px);
    transition: var(--transition);
}

.mood-card:hover .mood-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mood card backgrounds */
.mood-rainy {
    background: linear-gradient(135deg, #1a2a4a, #2d4a7a, #1a3a5a);
}

.mood-dreamers {
    background: linear-gradient(135deg, #4a1a4a, #7a2d7a, #2a1a3a);
}

.mood-startup {
    background: linear-gradient(135deg, #1a3a1a, #2d6a2d, #1a2a1a);
}

.mood-upsc {
    background: linear-gradient(135deg, #3a2a1a, #6a4a2d, #2a1a0a);
}

.mood-spiritual {
    background: linear-gradient(135deg, #3a1a10, #7a3010, #2a1008);
}

.mood-children {
    background: linear-gradient(135deg, #1a3a3a, #2d7a6a, #1a2a2a);
}

.mood-productivity {
    background: linear-gradient(135deg, #2a2a3a, #4a4a7a, #1a1a2a);
}

.mood-odia {
    background: linear-gradient(135deg, #3a1a10, #9B3A1A, #2a0e08);
}

/* ========== BOOK CARDS ========== */
.books-masonry {
    columns: 4;
    column-gap: 20px;
}

.books-masonry .book-card {
    break-inside: avoid;
    margin-bottom: 20px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

.book-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(26, 16, 8, 0.08);
    border: 1px solid rgba(201, 150, 58, 0.15);
}

.book-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(26, 16, 8, 0.2), 0 0 0 1px rgba(201, 150, 58, 0.3);
}

.book-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--beige);
}

.book-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.book-card:hover .book-img-wrap img {
    transform: scale(1.06);
}

.book-ribbon {
    position: absolute;
    top: 12px;
    left: 0;
    background: var(--terracotta);
    color: white;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px 4px 12px;
    clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%);
}

.book-trending {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 10px;
}

.book-wishlist {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(26, 16, 8, 0.15);
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition);
    cursor: pointer;
}

.book-card:hover .book-wishlist {
    opacity: 1;
    transform: translateY(0);
}

/* --- Forms & Auth --- */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-book);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--patta-black);
    font-size: 14px;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-color);
}

/* ========== MINI CART / READING SHELF SIDEBAR ========== */
.mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 16, 8, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: min(440px, 100vw);
    height: 100vh;
    background: #fdfbf7;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(26, 16, 8, 0.35);
}

.mini-cart.open {
    transform: translateX(0);
}

.mini-cart-header {
    padding: 24px 28px;
    border-bottom: 1.5px solid var(--beige-warm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.mini-cart-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-cart-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.mini-cart-count-badge {
    background: var(--terracotta);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    font-family: var(--font-ui);
}

.mini-cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--beige-warm);
    background: var(--ivory-warm);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    transition: var(--transition-fast);
}

.mini-cart-close:hover {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
    transform: rotate(90deg);
}

.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Shelf Item Card */
.shelf-item-card {
    display: flex;
    gap: 14px;
    background: white;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--beige-warm);
    box-shadow: 0 2px 8px rgba(26,16,8,0.04);
    position: relative;
    transition: var(--transition);
}

.shelf-item-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(201,150,58,0.12);
}

.shelf-item-card.combo-item {
    border-left: 3.5px solid var(--gold);
}

.shelf-item-card.mag-item {
    border-left: 3.5px solid var(--forest);
}

.shelf-item-img {
    width: 64px;
    height: 85px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--ivory-warm);
    border: 1px solid var(--beige-warm);
    flex-shrink: 0;
}

.shelf-item-img-placeholder {
    width: 64px;
    height: 85px;
    border-radius: 8px;
    background: var(--ivory-warm);
    border: 1px solid var(--beige-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.shelf-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shelf-item-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-bottom: 2px;
}

.shelf-item-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shelf-item-meta {
    font-size: 11.5px;
    color: var(--ink-softer);
    font-style: italic;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shelf-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.shelf-item-price {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--terracotta);
}

.shelf-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--beige-warm);
    border-radius: 6px;
    background: var(--ivory);
    overflow: hidden;
}

.shelf-qty-btn {
    border: none;
    background: transparent;
    width: 26px;
    height: 26px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.shelf-qty-btn:hover {
    background: var(--gold);
    color: white;
}

.shelf-qty-val {
    width: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
}

.shelf-item-remove {
    background: none;
    border: none;
    color: var(--ink-softer);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.shelf-item-remove:hover {
    color: #c53030;
    transform: scale(1.15);
}

/* Empty State inside Shelf */
.mini-cart-empty {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mini-cart-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.mini-cart-empty-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.mini-cart-empty-desc {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 260px;
    margin-bottom: 24px;
}

/* Shelf Footer */
.mini-cart-footer {
    padding: 22px 28px;
    background: white;
    border-top: 1.5px solid var(--beige-warm);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.mini-cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.mini-cart-subtotal-lbl {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-softer);
}

.mini-cart-subtotal-val {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--terracotta);
}

.mini-cart-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--forest);
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-shelf-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--ink);
    color: white;
    border-radius: 12px;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(26, 16, 8, 0.2);
    margin-bottom: 8px;
    border: none;
}

.btn-shelf-checkout:hover {
    background: var(--terracotta);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 58, 26, 0.3);
}

.btn-shelf-cart-link {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    padding: 6px;
    transition: var(--transition-fast);
}

.btn-shelf-cart-link:hover {
    color: var(--terracotta);
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 3000;
    background: var(--ink);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(26, 16, 8, 0.4);
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    border-left: 4px solid var(--gold);
    max-width: 320px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ========== PROGRESS BAR (BOOKMARK) ========== */
.reading-progress {
    position: fixed;
    top: 72px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--gold));
    z-index: 999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(180deg, #1A1008 0%, #0D0804 100%);
    color: rgba(245, 230, 200, 0.6);
    padding: 80px 0 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px 60px;
}

.footer-logo-main {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--ivory);
    margin-bottom: 4px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

/* ========== FOOTER DETAILS ========== */
.footer-logo-sub {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-desc {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 150, 58, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: rgba(201, 150, 58, 0.25);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ivory);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 15px;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-link:hover {
    color: var(--gold);
    padding-left: 6px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}

.contact-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(201, 150, 58, 0.2);
    padding: 30px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ========== BOOK CARD INFO ========== */
.book-info {
    padding: 20px;
}

.book-genre {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.book-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 4px;
}

.book-title a {
    color: inherit;
    transition: color 0.2s;
}

.book-title a:hover {
    color: var(--terracotta);
}

.book-author {
    font-family: var(--font-body);
    font-size: 13px;
    font-style: italic;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.book-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-now {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--terracotta);
}

.price-was {
    font-family: var(--font-body);
    font-size: 13px;
    text-decoration: line-through;
    color: rgba(26, 16, 8, 0.35);
}

.price-badge {
    background: rgba(155, 58, 26, 0.1);
    color: var(--terracotta);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.btn-cart {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta));
    color: white;
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 58, 26, 0.35);
}

/* ========== MINI CART ITEMS ========== */
.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.mini-cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dashed rgba(201, 150, 58, 0.2);
}

.mini-cart-book-img {
    width: 50px;
    height: 70px;
    background: var(--beige);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.mini-cart-book-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.mini-cart-book-author {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--ink-soft);
    font-style: italic;
    margin-top: 2px;
}

.mini-cart-book-price {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--terracotta);
    margin-top: 6px;
}

.mini-cart-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(201, 150, 58, 0.25);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-total-label {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink-soft);
}

.cart-total-amount {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--terracotta);
}

/* ========== 3D BOOK COVER ========== */
.book-3d-wrap {
    perspective: 1200px;
    position: relative;
}

.book-3d {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 2/3;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: rgba(0, 0, 0, 0.35) 20px 20px 40px;
    border-radius: 2px 7px 7px 2px;
    margin: 0 auto;
}

.book-3d:hover {
    transform: rotateY(-18deg) rotateX(4deg);
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    transform: translateZ(16px);
    border-radius: 2px 6px 6px 2px;
    overflow: hidden;
    box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.1);
}

.book-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--ink);
    transform: rotateY(180deg) translateZ(16px);
    border-radius: 6px 2px 2px 6px;
}

.book-spine {
    position: absolute;
    width: 32px;
    height: 100%;
    background: linear-gradient(90deg, var(--terracotta-deep) 0%, var(--terracotta) 40%, var(--terracotta-deep) 100%);
    transform: rotateY(-90deg) translateZ(16px);
    transform-origin: left;
    border-radius: 2px 0 0 2px;
}



/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .moods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-search {
        display: none;
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 16px;
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .hero-headline {
        font-size: 42px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px;
    }

    .mini-cart {
        width: 100%;
    }

    .moods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .moods-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
    }
}

/* ========== SECTION ORNAMENT ========== */
.section-ornament {
    text-align: center;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

/* ========== SHELF SECTION ========== */
.shelf-section {
    background: var(--ivory);
}

.shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.see-all {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--terracotta);
    transition: var(--transition-fast);
}

.see-all:hover {
    color: var(--terracotta-deep);
}

.shelf-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.shelf-tab {
    padding: 8px 18px;
    background: transparent;
    border: 1.5px solid rgba(201, 150, 58, 0.3);
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: var(--transition-fast);
}

.shelf-tab:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.shelf-tab.active {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
}

.shelf-scroll-wrap {
    position: relative;
}

.shelf-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.shelf-scroll::-webkit-scrollbar {
    display: none;
}

.shelf-scroll .book-card {
    min-width: 230px;
    flex-shrink: 0;
}

.shelf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 1.5px solid var(--gold-pale);
    border-radius: 50%;
    font-size: 22px;
    color: var(--ink-soft);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26, 16, 8, 0.12);
    transition: var(--transition-fast);
}

.shelf-nav:hover {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
}

.shelf-nav-prev {
    left: -22px;
}

.shelf-nav-next {
    right: -22px;
}

/* Book card extras */
.book-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.stars {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 1px;
}

.rating-num {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--ink-soft);
}

.book-delivery {
    font-family: var(--font-ui);
    font-size: 10px;
    color: var(--forest);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* ========== ODIA BANNER ========== */
.odia-banner {
    background: linear-gradient(135deg, #1A0C06, #2C1508, #3D1D08);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.odia-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.odia-palm-leaf {
    background: rgba(245, 223, 160, 0.12);
    border: 1px solid rgba(201, 150, 58, 0.3);
    border-radius: 4px 16px 4px 16px;
    padding: 40px;
    font-family: var(--font-display);
    font-size: 22px;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.6;
    text-align: center;
    position: relative;
}

.odia-palm-leaf::before {
    content: '📜';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
}

.odia-eyebrow {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.odia-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--ivory);
    line-height: 1.1;
    margin-bottom: 20px;
}

.odia-title em {
    color: var(--gold-light);
}

.odia-body {
    font-family: var(--font-body);
    font-size: 17px;
    color: rgba(245, 230, 200, 0.7);
    line-height: 1.7;
    margin-bottom: 30px;
}

.odia-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.odia-stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-light);
}

.odia-stat-label {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(201, 150, 58, 0.6);
}

/* ========== PLANS / MEMBERSHIP ========== */
.membership-section {
    background: var(--ivory-warm);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1.5px solid rgba(201, 150, 58, 0.2);
    box-shadow: 0 4px 20px rgba(26, 16, 8, 0.06);
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-book);
}

.plan-card.featured {
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(155, 58, 26, 0.35);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.plan-badge {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.plan-card.featured .plan-badge {
    color: var(--gold-light);
}

.plan-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 0;
}

.plan-card.featured .plan-price {
    color: var(--gold-light);
}

.plan-period {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.plan-card.featured .plan-period {
    color: rgba(255, 255, 255, 0.7);
}

.plan-features {
    text-align: left;
    margin-bottom: 30px;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(201, 150, 58, 0.15);
}

.plan-card.featured .plan-feature {
    border-color: rgba(255, 255, 255, 0.15);
}

.plan-feature-dot {
    width: 22px;
    height: 22px;
    background: rgba(45, 90, 39, 0.15);
    color: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.plan-card.featured .plan-feature-dot {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-plan {
    display: block;
    padding: 14px 24px;
    background: var(--terracotta);
    color: white;
    border-radius: 12px;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    box-shadow: 0 4px 16px rgba(155, 58, 26, 0.25);
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 58, 26, 0.35);
}

.plan-card.featured .btn-plan {
    background: white;
    color: var(--terracotta);
}

/* ========== DELIVERY SECTION ========== */
.delivery-section {
    background: var(--ivory-warm);
    padding: 100px 0;
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.delivery-track-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-book);
    border: 1.5px solid var(--gold-pale);
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(201, 150, 58, 0.2);
}

.track-order {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
}

.track-id {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.track-status-badge {
    padding: 6px 16px;
    background: rgba(45, 90, 39, 0.1);
    color: var(--forest);
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.track-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.track-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    position: relative;
    opacity: 0.4;
}

.track-step.done,
.track-step.active {
    opacity: 1;
}

.track-step::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 44px;
    width: 2px;
    height: calc(100% - 28px);
    background: rgba(201, 150, 58, 0.2);
}

.track-step:last-child::before {
    display: none;
}

.track-step.done::before {
    background: var(--forest);
}

.track-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--beige-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid var(--gold-pale);
}

.track-step.done .track-dot {
    background: var(--forest);
    color: white;
    border-color: var(--forest);
}

.track-step.active .track-dot {
    background: var(--terracotta);
    border-color: var(--terracotta);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(155, 58, 26, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px transparent;
    }
}

.track-step-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.track-step-time {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: 0.5px;
}

.delivery-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.delivery-feature {
    flex: 1;
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--gold-pale);
}

.df-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.df-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.df-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* ========== QUIZ SECTION ========== */
.quiz-section {
    background: linear-gradient(135deg, var(--terracotta-deep), var(--terracotta), var(--terracotta-light));
    padding: 80px 0;
}

.quiz-card {
    background: white;
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-book);
}

.quiz-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.quiz-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.quiz-title em {
    color: var(--terracotta);
}

.quiz-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink-soft);
    margin-bottom: 30px;
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.quiz-option {
    padding: 10px 20px;
    border: 1.5px solid var(--gold-pale);
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: var(--transition-fast);
}

.quiz-option:hover,
.quiz-option.selected {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    background: linear-gradient(135deg, #1A0C06, #2C1508);
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 150, 58, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 15px;
    font-style: italic;
    color: rgba(245, 230, 200, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
}

.author-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--ivory);
}

.author-loc {
    font-family: var(--font-ui);
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 0.5px;
}

/* ========== FAQ SECTION ========== */
.faq-section {
    background: var(--ivory-warm);
    padding: 100px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 1.5px solid rgba(201, 150, 58, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--terracotta);
}

.faq-q {
    padding: 20px 24px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 22px;
    color: var(--terracotta);
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.7;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding: 0 24px 20px;
}

/* ========== NEWSLETTER ========== */
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 30px auto 0;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border: 1.5px solid rgba(201, 150, 58, 0.4);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    background: white;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--gold);
}

.newsletter-submit {
    padding: 16px 28px;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.newsletter-submit:hover {
    background: var(--terracotta-deep);
    transform: translateY(-2px);
}

/* ========== COMMUNITY ACTION BUTTONS ========== */
.community-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition);
    color: white !important;
    font-family: var(--font-ui);
    box-shadow: 0 4px 18px rgba(26, 16, 8, 0.1);
    min-width: 240px;
}
.community-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 16, 8, 0.18);
}
.community-btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
.community-btn-wa:hover {
    background: linear-gradient(135deg, #20bd5a, #0e7065);
}
.community-btn-ig {
    background: linear-gradient(135deg, #833ab4, #fd1d1d 50%, #fcb045);
}
.community-btn-ig:hover {
    filter: brightness(1.08);
}

/* ========== HOMEPAGE JS HELPERS ========== */
.btn-outline {
    padding: 15px 34px;
    background: transparent;
    border-radius: 20px 4px 20px 4px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1.5px solid rgba(201, 150, 58, 0.5);
    cursor: pointer;
    transition: var(--transition);
    color: var(--ink-soft);
}

.btn-outline:hover {
    background: rgba(201, 150, 58, 0.15);
    border-color: var(--gold);
}

/* ========== MOBILE MENU BUTTON (book-themed) ========== */
.mobile-menu-btn {
    display: none;
    /* shown only on mobile via media query */
    align-items: center;
    gap: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mmb-spine {
    display: block;
    width: 6px;
    height: 36px;
    background: linear-gradient(180deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
    border-radius: 2px 0 0 2px;
    flex-shrink: 0;
}

.mmb-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--beige);
    border: 1.5px solid rgba(201, 150, 58, 0.4);
    border-left: none;
    height: 36px;
    padding: 0 8px;
    border-radius: 0 3px 3px 0;
}

.mmb-lines span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink-soft);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu-btn.open .mmb-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open .mmb-lines span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .mmb-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-right {
    display: none;
    /* shown only on mobile */
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ========== MOBILE DRAWER ========== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: var(--ivory);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    visibility: hidden;
    box-shadow: -8px 0 40px rgba(26, 16, 8, 0.18);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 24px 32px;
    overflow-y: auto;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 150, 58, 0.2);
    flex-shrink: 0;
}

.mobile-drawer-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.mobile-drawer-close {
    background: rgba(155, 58, 26, 0.08);
    border: 1px solid rgba(155, 58, 26, 0.2);
    color: var(--terracotta);
    font-size: 16px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.mobile-drawer-close:hover {
    background: var(--terracotta);
    color: white;
}

/* Compact search inside drawer */
.mobile-drawer-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 230, 200, 0.6);
    border: 1.5px solid rgba(201, 150, 58, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.mobile-drawer-search span {
    font-size: 15px;
    flex-shrink: 0;
}

.mobile-drawer-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--ink);
    outline: none;
}

.mobile-drawer-search input::placeholder {
    color: rgba(26, 16, 8, 0.4);
    font-style: italic;
}

.mobile-drawer-search button {
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* Nav links inside drawer */
.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-drawer-nav a:hover {
    background: rgba(155, 58, 26, 0.07);
    color: var(--terracotta);
}

.mobile-drawer-divider {
    height: 1px;
    background: rgba(201, 150, 58, 0.2);
    margin: 18px 0;
}

/* Footer action buttons in drawer */
.mobile-drawer-footer,
.mobile-drawer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(201, 150, 58, 0.22);
    flex-shrink: 0;
}

.mobile-drawer-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--terracotta);
    color: white;
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(155, 58, 26, 0.22);
}

.mobile-drawer-cta:hover {
    background: var(--terracotta-deep);
}

.mobile-drawer-cta-outline {
    background: transparent;
    border: 1.5px solid var(--terracotta);
    color: var(--terracotta);
    box-shadow: none;
}

.mobile-drawer-cta-outline:hover {
    background: rgba(155, 58, 26, 0.08);
}

.mobile-drawer-lang-btn,
.mobile-drawer-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    background: rgba(201, 150, 58, 0.12);
    border: 1.5px solid rgba(201, 150, 58, 0.35);
    color: var(--terracotta);
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.mobile-drawer-lang-btn:hover,
.mobile-drawer-lang:hover {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
}

/* Backdrop */
.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 16, 8, 0.5);
    z-index: 1999;
    backdrop-filter: blur(3px);
}

.mobile-drawer-backdrop.open {
    display: block;
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */
@media (max-width: 991px) {

    .cursor,
    .cursor-follower {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    .container {
        padding: 0 24px;
    }

    section {
        padding: 60px 0;
    }

    /* Hide desktop nav elements, show mobile controls */
    .nav-links,
    .nav-search,
    .nav-actions {
        display: none !important;
    }

    .mobile-nav-right {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Slim navbar */
    .nav-inner {
        height: 64px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
    }

    .logo img {
        height: 46px;
    }

    /* Hero adjustments */
    .hero {
        align-items: flex-start;
        padding-top: 120px;
    }

    .hero-headline {
        font-size: 48px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-search {
        max-width: 100%;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    /* Grids – 2 cols */
    .books-masonry {
        columns: 2;
        column-gap: 16px;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .moods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .curation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vendor-grid {
        grid-template-columns: 1fr;
    }

    /* Memberships */
    .plans-grid {
        flex-direction: column;
        align-items: center;
    }

    .plan-card {
        width: 100%;
        max-width: 400px;
    }

    .plan-card-pro {
        transform: none !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom>div {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {

    /* Hero extra tweaks */
    .hero-headline {
        font-size: 38px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .container {
        max-width: 100% !important;
        overflow-x: clip !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Grids: stack correctly for mobile */
    .books-grid {
        display: grid !important;
        grid-template-columns: repeat(2, calc(50% - 6px)) !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .book-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .book-card .book-img-wrap {
        height: 160px !important;
    }

    .book-info {
        padding: 10px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .book-title {
        font-size: 13px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
    }

    .book-author {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .book-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }

    .price-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        width: 100%;
    }

    .price-now {
        font-size: 14px;
        line-height: 1;
    }

    .price-was {
        font-size: 12px;
    }

    .btn-cart {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 4px;
        font-size: 11px;
        margin-top: 4px;
    }

    .books-masonry {
        columns: 2;
    }

    .moods-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Admin layout overrides */
    .admin-grid,
    .edit-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    /* Store specific overrides */
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .cart-grid {
        grid-template-columns: 1fr;
    }

    /* Search Layout Fixes for Mobile */
    .search-book-shape {
        max-width: 100%;
    }

    .search-input-wrap {
        padding: 0 10px;
        gap: 8px;
    }

    .search-main-input {
        font-size: 14px;
        padding: 12px 0;
    }

    .search-submit {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .search-spine {
        height: 50px;
        width: 14px;
    }

    /* Navigation Mobile Actions Tweaks */
    .nav-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .nav-actions .lang-toggle-btn {
        display: none;
    }

    /* Only hide language button, keep profile/CTAs visible */
}

/* ========== PAGE LAYOUT CLASSES (desktop defaults) ========== */

/* Shop page — sidebar + grid */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.shop-book-card .book-img-wrap {
    height: 260px;
}

/* Book Detail */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Cart page */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    margin-top: 40px;
}

/* Checkout page */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    margin-top: 40px;
}

/* Profile page */
.profile-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
}

/* Checkout form rows */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ========== MOBILE OVERRIDES FOR PAGE LAYOUTS ========== */
@media (max-width: 991px) {

    /* Shop: hide sidebar, show books full width */
    .shop-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-layout aside {
        display: none;
        /* filters hidden on mobile — can be toggled if needed */
    }

    /* Detail: stack image above text */
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-layout .book-3d-wrap {
        padding: 20px !important;
    }

    .detail-layout .book-3d {
        max-width: 200px; /* Smaller book on small screens */
    }

    .detail-layout h1.section-title {
        font-size: 32px !important;
    }

    /* Cart: stack summary below items */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cart-layout>div:last-child>div {
        position: static !important;
        /* un-sticky on mobile */
    }

    /* Checkout: stack order summary below form */
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .checkout-layout>div:last-child>div {
        position: static !important;
    }

    /* Profile: stack sidebar above orders/wishlist */
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Checkout form rows: stack on small screens */
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    /* Cart item mobile: wrap tightly */
    .cart-item-row {
        flex-direction: column;
        gap: 16px;
    }

    /* Book detail CTAs: stack on mobile */
    .book-detail-ctas {
        flex-direction: column;
        gap: 12px;
    }

    .book-detail-ctas a,
    .book-detail-ctas button {
        flex: none !important;
        width: 100% !important;
    }

    /* Hero search on mobile */
    .hero-search {
        padding: 0 16px;
    }

    .search-book-shape {
        border-radius: 10px;
    }

    /* Section paddings */
    section {
        padding: 48px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Profile order row: stack on mobile */
    .order-row-flex {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start !important;
    }
}

@media (max-width: 480px) {

    /* Hero further reduction */
    .hero-headline {
        font-size: 32px !important;
    }

    .hero-sub {
        font-size: 14px !important;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-stat-num {
        font-size: 22px;
    }

    /* Book cards even more compact on very small phones */
    .book-card .book-img-wrap {
        height: 160px !important;
    }

    .book-title {
        font-size: 13px;
    }

    .price-now {
        font-size: 14px;
    }

    .btn-cart {
        font-size: 10px;
        padding: 6px 4px;
    }

    /* Cart item: make book cover smaller */
    .cart-item-thumb {
        width: 80px !important;
        height: 110px !important;
    }

    /* Announce bar text */
    .announce-item {
        font-size: 10px;
        padding: 0 20px;
    }

    /* Book detail price row */
    .price-flex-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ========== SUB-PAGE LAYOUT CLASSES ========== */

/* Order Detail */
.order-head-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Explore (Hata) page */
.explore-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Vendor Dashboard */
.vendor-dash-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* Checkout Success */
.success-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.success-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Vendor dashboard header flex */
.vendor-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 2px solid var(--gold-pale);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

/* Auth pages — make cards fully fill narrow viewports */
.auth-card {
    width: 100%;
    box-sizing: border-box;
}

/* ========== SUB-PAGE MOBILE OVERRIDES ========== */
@media (max-width: 991px) {

    /* Order Detail: stack tracking below items */
    .order-detail-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .order-head-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Explore page: hide sidebar, full width */
    .explore-layout {
        grid-template-columns: 1fr;
    }

    .explore-layout aside {
        display: none;
    }

    /* Vendor dashboard: stats above collection */
    .vendor-dash-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Vendor table: horizontally scrollable */
    .vendor-dash-layout table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Membership: plans already handled by plans-grid flex -> column */

    /* Auth cards: reduce padding on small screens */
    .auth-card {
        padding: 30px 24px !important;
        max-width: 100% !important;
    }

    /* Checkout success: stack info grid */
    .success-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .success-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .success-ctas a {
        text-align: center;
        width: 100% !important;
        padding: 16px !important;
    }

    /* Checkout success card: trim padding */
    .success-ctas+* {
        padding: 40px 20px !important;
    }
}

@media (max-width: 600px) {

    /* Vendor header: stack button below title */
    .vendor-dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vendor-dash-header a {
        width: 100%;
        text-align: center;
    }

    /* Membership section top gap */
    .membership-section {
        padding-top: 20px !important;
    }

    /* Order detail: smaller text */
    .order-detail-layout h1 {
        font-size: 28px !important;
    }

    /* Auth heading sizes */
    .auth-card h2 {
        font-size: 24px !important;
    }
}

/* ========================================================
   PRODUCTION MOBILE — FULL SITE AUDIT
   Covers all sections in home.html and sub-pages
   ======================================================== */

/* ---- Odia Literature Banner ---- */
@media (max-width: 991px) {
    .odia-banner {
        padding: 60px 0;
    }

    .odia-banner-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
    }

    .odia-visual {
        order: 2;
    }

    /* move palm-leaf below text */
    .odia-content {
        order: 1;
    }

    .odia-palm-leaf {
        font-size: 17px;
        padding: 24px;
    }

    .odia-title {
        font-size: clamp(26px, 6vw, 40px);
    }

    .odia-body {
        font-size: 15px;
    }

    .odia-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .odia-stat-num {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .odia-banner-inner {
        padding: 0 16px;
    }

    .odia-palm-leaf {
        font-size: 14px;
        padding: 18px;
    }

    .odia-title {
        font-size: 24px;
    }
}

/* ---- Testimonials / Reviews ---- */
@media (max-width: 991px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        gap: 12px;
    }

    .testimonial-text {
        font-size: 14px;
    }
}

/* ---- FAQ Section ---- */
@media (max-width: 991px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-grid {
        max-width: 100%;
    }

    .faq-q {
        font-size: 15px;
        padding: 16px 18px;
    }

    .faq-a {
        font-size: 14px;
    }
}

/* ---- Newsletter ---- */
@media (max-width: 991px) {
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
    }

    .newsletter-input {
        width: 100%;
    }

    .newsletter-submit {
        width: 100%;
        padding: 16px;
    }

    /* Newsletter container in faq-section */
    .newsletter-inner {
        padding: 36px 24px !important;
    }
}

/* ---- Delivery Section ---- */
@media (max-width: 991px) {
    .delivery-section {
        padding: 60px 0;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .delivery-features {
        flex-direction: column;
        gap: 16px;
    }
}

/* ---- Membership Plans ---- */
@media (max-width: 991px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .plan-card.featured {
        transform: none;
    }

    .plan-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 480px) {
    .plans-grid {
        max-width: 100%;
    }

    .plan-card {
        padding: 28px 20px;
    }

    .plan-price {
        font-size: 34px;
    }
}

/* ---- Hero Section (final production) ---- */
@media (max-width: 991px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-eyebrow {
        font-size: 10px;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-stats {
        justify-content: flex-start;
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-stat-num {
        font-size: 22px;
    }

    .hero-stat-label {
        font-size: 9px;
    }

    /* Floating books — hide on mobile to reduce visual noise */
    .floating-book {
        display: none;
    }
}

/* ---- Shelf / Book Carousels ---- */
@media (max-width: 991px) {
    .shelf-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .shelf-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .shelf-tab {
        white-space: nowrap;
    }

    .shelf-scroll {
        scroll-snap-type: x mandatory;
    }

    .book-card {
        scroll-snap-align: start;
        min-width: 200px;
    }

    .shelf-nav {
        display: none;
    }

    /* replaced by swipe on mobile */
}

/* ---- Section header ---- */
@media (max-width: 991px) {
    .section-title {
        font-size: clamp(24px, 6vw, 42px) !important;
    }

    .section-desc {
        font-size: 15px;
    }

    .section-header {
        margin-bottom: 32px;
    }
}

/* ---- Footer ---- */
@media (max-width: 991px) {
    footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-col-title {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom>div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 40px 0 20px;
    }
}

/* ---- Announce Bar ---- */
@media (max-width: 600px) {
    .announce-bar {
        font-size: 10px;
    }

    .announce-item {
        padding: 0 16px;
    }
}

/* ---- Book Detail page (final) ---- */
@media (max-width: 991px) {

    /* Meta grid (language / stock) */
    .book-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* CTA buttons */
    .book-action-row {
        flex-direction: column;
        gap: 12px;
    }

    .book-action-row > a,
    .book-action-row > button {
        width: 100% !important;
        flex: none !important;
    }

    /* Remove 'hover to interact' hint on touch devices */
    .hover-hint {
        display: none;
    }
}

/* ---- Cart item rows (inner flex) ---- */
@media (max-width: 600px) {

    /* Cart item flex: image + details */
    .cart-item-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cart-item-inner>div:first-child {
        width: 100% !important;
        height: 140px !important;
    }

    /* Cart item bottom row: price + qty + remove */
    .cart-item-bottom {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ---- Wishlist grid in Profile ---- */
@media (max-width: 600px) {
    .wishlist-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Checkout form ---- */
@media (max-width: 600px) {
    .checkout-form-wrap {
        padding: 24px 16px !important;
    }

    .checkout-form-wrap h3 {
        font-size: 20px !important;
    }
}

/* ---- Explore sort bar ---- */
@media (max-width: 991px) {
    .explore-sort-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .explore-sort-bar select {
        width: 100%;
    }
}

/* ---- Global touch improvements ---- */
@media (max-width: 991px) {

    /* Ensure tap targets are at least 44px */
    .nav-btn,
    .btn-cart,
    .btn-plan,
    .mobile-drawer-cta {
        min-height: 44px;
    }

    /* Smooth scroll everywhere */
    html {
        scroll-behavior: smooth;
    }

    /* Remove hover-only effects on touch */
    .book-card:hover {
        transform: none;
        box-shadow: none;
    }

    .plan-card:hover {
        transform: none;
    }

    /* Prevent horizontal overflow globally */
    body {
        overflow-x: clip;
    }

    .container,
    section,
    footer,
    nav {
        max-width: 100vw;
    }
}

/* ========== COMPACT UI & REVIEW TOGGLE (Production Level) ========== */

/* Hero Search & Stats - Mobile Optimization */
@media (max-width: 768px) {
    .hero-search {
        padding: 0 10px;
    }

    .search-book-shape {
        border-radius: 12px 2px 12px 2px;
    }

    .search-main-input {
        font-size: 15px;
        padding: 14px 0;
    }

    .search-spine {
        height: 54px;
        width: 12px;
    }

    .search-submit {
        width: 54px;
        height: 54px;
        font-size: 18px;
    }

    .search-tags {
        margin-top: 10px;
        gap: 6px;
    }

    .search-tag {
        padding: 4px 10px;
        font-size: 10px;
    }

    .hero-stats {
        gap: 15px;
        justify-content: center;
        padding-top: 4px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 400px;
    }

    .hero-stat {
        background: rgba(255, 255, 255, 0.03);
        padding: 12px;
        border-radius: 12px;
        border: 1px solid rgba(201, 150, 58, 0.1);
    }

    .hero-stat-num {
        font-size: 20px;
    }

    .hero-stat-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero-content {
        gap: 20px;
        padding-bottom: 60px;
    }
}

/* Review Toggle System */
.reviews-container {
    position: relative;
    transition: var(--transition-slow);
}

.reviews-collapsed {
    max-height: 400px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.review-toggle-btn {
    display: none;
    width: 100%;
    padding: 15px;
    background: var(--ivory-warm);
    border: 1.5px solid var(--gold-pale);
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 20px white;
}

@media (max-width: 768px) {
    .review-toggle-btn {
        display: block;
    }

    /* Page spacing for bottom nav */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ===================================================
   MOBILE BOTTOM APP BAR
   =================================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(26, 16, 8, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201, 150, 58, 0.25);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
    z-index: 998;
    justify-content: space-around;
    align-items: center;
    padding-left: 8px;
    padding-right: 8px;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }
}

.mob-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(245, 230, 200, 0.6);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    max-width: 72px;
    -webkit-tap-highlight-color: transparent;
}

.mob-tab svg {
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.mob-tab:active {
    transform: scale(0.92);
}

.mob-tab.active {
    color: var(--gold-light);
    background: rgba(201, 150, 58, 0.12);
}

.mob-tab.active svg {
    stroke: var(--gold-light);
    transform: translateY(-1px);
}

.mob-tab-combo .mob-tab-badge-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-combo-pill {
    position: absolute;
    top: -6px;
    right: -12px;
    background: linear-gradient(135deg, #FF6B35, #C4531E);
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    line-height: 1.2;
    animation: pulseGlow 2s infinite ease-in-out;
}

.mob-cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--terracotta);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #1A1008;
    line-height: 1;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,107,53,0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 8px rgba(255,107,53,0.7); }
}

/* ===================================================
   SHOP & SEARCH EMPTY STATES
   =================================================== */
.shop-empty-wrapper {
    width: 100%;
    margin-top: 10px;
}

.shop-empty-card {
    background: white;
    border: 1.5px solid var(--gold-pale);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.shop-empty-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(201, 150, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.shop-mobile-chips {
    display: none;
}

@media (max-width: 900px) {
    .shop-mobile-chips {
        display: flex;
    }
}

.mob-chip {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 30px;
    background: white;
    border: 1px solid var(--gold-pale);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mob-chip.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
    box-shadow: 0 4px 12px rgba(196, 83, 30, 0.25);
}

/* ===================================================
   SHOP HEADER & IN-PAGE SEARCH
   =================================================== */
.shop-header-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.shop-search-form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 420px;
}

.shop-search-input-wrap {
    position: relative;
    flex: 1;
}

.shop-search-input {
    width: 100%;
    padding: 12px 38px 12px 42px;
    border-radius: 50px;
    border: 1.5px solid var(--gold-pale);
    background: white;
    font-family: var(--font-body);
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.shop-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 150, 58, 0.15);
}

.shop-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.shop-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-softer);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.shop-search-clear:hover {
    background: var(--terracotta);
    color: white;
}

.shop-search-btn {
    padding: 0 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

/* ===================================================
   MOBILE CONTROLS & FILTER TOGGLE
   =================================================== */
.shop-mobile-controls {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .shop-mobile-controls {
        display: flex;
    }
}

.mob-filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: white;
    border: 1.5px solid var(--gold-pale);
    border-radius: 14px;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mob-filter-toggle-btn:active {
    transform: scale(0.98);
}

.mob-filter-count-badge {
    background: var(--terracotta);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
}

/* ===================================================
   ACTIVE FILTER BAR
   =================================================== */
.shop-active-filters-bar {
    background: rgba(201, 150, 58, 0.08);
    border: 1px solid var(--gold-pale);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.active-filter-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.active-count-label {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
    margin-right: 4px;
}

.active-pill {
    background: white;
    border: 1px solid var(--gold-pale);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.active-pill a {
    color: var(--ink-softer);
    text-decoration: none;
    font-weight: 800;
    font-size: 11px;
    margin-left: 2px;
}

.active-pill a:hover {
    color: var(--terracotta);
}

.pill-query {
    color: var(--terracotta);
    border-color: rgba(196, 83, 30, 0.3);
}

.pill-category {
    color: var(--gold);
    border-color: rgba(201, 150, 58, 0.3);
}

.pill-mood {
    color: var(--forest);
    border-color: rgba(45, 90, 39, 0.3);
}

.pill-heritage {
    color: var(--terracotta);
    background: #FFF8F0;
    border-color: rgba(196, 83, 30, 0.3);
}

.clear-all-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--terracotta);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.clear-all-link:hover {
    opacity: 0.8;
}

/* ===================================================
   SHOP LAYOUT & SIDEBAR FILTERS
   =================================================== */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar {
    background: white;
    border: 1.5px solid var(--gold-pale);
    border-radius: 20px;
    padding: 24px 20px;
    position: sticky;
    top: 90px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-sidebar {
        display: none;
        position: static;
        margin-bottom: 24px;
    }

    .shop-sidebar.mob-expanded {
        display: block;
        animation: fadeInDown 0.3s ease-out;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--gold-pale);
}

.sidebar-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.sidebar-reset-btn {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--terracotta);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(196, 83, 30, 0.08);
    transition: all 0.2s ease;
}

.sidebar-reset-btn:hover {
    background: var(--terracotta);
    color: white;
}

.filter-group {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--gold-pale);
}

.filter-subtitle-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.filter-subtitle-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
}

.filter-subtitle {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-softer);
    margin: 0;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--ink-soft);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.filter-link:hover {
    background: rgba(201, 150, 58, 0.08);
    color: var(--ink);
    transform: translateX(3px);
}

.filter-link.active {
    background: linear-gradient(135deg, var(--terracotta), #D95D24);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(196, 83, 30, 0.25);
    transform: translateX(2px);
}

.filter-link-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-active-dot {
    font-size: 10px;
    color: #FFE58F;
    animation: pulse 2s infinite;
}

.heritage-filter-link {
    border: 1px dashed rgba(201, 150, 58, 0.4);
    background: rgba(201, 150, 58, 0.04);
}

.heritage-filter-link.active {
    border-style: solid;
}

.shop-results-container {
    min-width: 0;
    width: 100%;
}

/* ===================================================
   500x500 BOOK CARDS & AUTO-SWIPE MULTI-IMAGE CAROUSEL
   =================================================== */
.book-card {
    position: relative;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 18px rgba(26, 16, 8, 0.06);
    border: 1.5px solid rgba(201, 150, 58, 0.18);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(26, 16, 8, 0.12), 0 0 0 1px rgba(201, 150, 58, 0.4);
    border-color: var(--gold);
}

/* 500x500 Square 1:1 Aspect Ratio Container */
.book-card .book-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #FAF6EE;
    border-bottom: 1px solid var(--gold-pale);
}

.book-card-slider-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.book-card-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.book-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.book-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
    transform: scale(0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.book-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.book-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-card:hover .book-slide.active img {
    transform: scale(1.05);
}

.book-cover-placeholder {
    font-size: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FAF6EE, #EFE6D5);
}

/* Badges Stack on Card */
.book-badge-stack {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
    pointer-events: none;
}

.book-ribbon {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: fit-content;
}

.ribbon-heritage {
    background: linear-gradient(135deg, #2D5A27, #1B3B17);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.discount-ribbon {
    background: linear-gradient(135deg, #C4531E, #9B3A1A);
}

.ribbon-bestseller {
    background: linear-gradient(135deg, #D4A346, #B08226);
    color: #1A1008;
    font-weight: 900;
}

.book-stock-badge {
    background: rgba(26, 16, 8, 0.85);
    backdrop-filter: blur(4px);
    color: #FFDF79;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(201, 150, 58, 0.4);
    width: fit-content;
}

/* Wishlist Button on Card */
.book-card .book-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    border: 1px solid var(--gold-pale);
    cursor: pointer;
    z-index: 6;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.book-card:hover .book-wishlist {
    opacity: 1;
    transform: scale(1.06);
}

.book-card .book-wishlist.active,
.book-card .book-wishlist:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
    background: white;
}

/* Multi-image Slider Dots & Navigation */
.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 6;
    background: rgba(26, 16, 8, 0.6);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dot.active {
    width: 16px;
    border-radius: 4px;
    background: var(--gold-light);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gold-pale);
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.slider-prev { left: 8px; }
.slider-next { right: 8px; }

.book-card:hover .slider-arrow {
    opacity: 0.9;
}

.slider-arrow:hover {
    opacity: 1 !important;
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
}

/* Card Body Details */
.book-card .book-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
}

.book-genre-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.book-genre {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold);
}

.book-lang-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-softer);
    background: var(--ivory);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--gold-pale);
}

.book-card .book-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.book-card .book-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.book-card .book-title a:hover {
    color: var(--terracotta);
}

.book-card .book-author {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-card .book-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.book-rating .stars {
    color: #F59E0B;
    font-size: 12px;
    letter-spacing: 1px;
}

.book-rating .rating-num {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--ink-softer);
    font-weight: 600;
}

.book-card .book-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--ivory-warm);
}

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-now {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--terracotta);
}

.price-was {
    font-size: 12px;
    color: var(--ink-softer);
    text-decoration: line-through;
}

.btn-cart {
    padding: 7px 16px;
    background: var(--terracotta);
    color: white;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(196, 83, 30, 0.25);
}

.btn-cart:hover {
    background: #A33A12;
    transform: scale(1.05);
}

.out-of-stock-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-softer);
    background: var(--ivory-warm);
    padding: 4px 10px;
    border-radius: 12px;
}

/* ===================================================
   REDESIGNED PRODUCT DETAIL PAGE
   =================================================== */
.book-breadcrumb {
    display: none !important;
}

.book-breadcrumb a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.book-breadcrumb a:hover {
    color: var(--terracotta);
}

.bc-sep { color: var(--gold); font-size: 12px; }
.bc-current { color: var(--ink); font-weight: 600; }

.detail-product-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .detail-product-layout {
        grid-template-columns: 400px 1fr;
        gap: 28px;
    }
}

@media (max-width: 850px) {
    .detail-product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Left: 500x500 Interactive Gallery */
.product-gallery-col {
    position: sticky;
    top: 90px;
}

@media (max-width: 850px) {
    .product-gallery-col {
        position: static;
    }
}

.product-gallery-card {
    background: white;
    border: 1.5px solid var(--gold-pale);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.product-main-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #FAF6EE;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    border: 1px solid var(--gold-pale);
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease, transform 0.4s ease;
}

.product-main-image-wrap:hover .product-main-img {
    transform: scale(1.04);
}

.product-img-ph {
    font-size: 90px;
}

.gallery-badge-stack {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.gallery-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(26, 16, 8, 0.75);
    backdrop-filter: blur(6px);
    color: white;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.product-main-image-wrap:hover .gallery-zoom-btn {
    background: var(--terracotta);
}

.gallery-counter-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(26, 16, 8, 0.75);
    backdrop-filter: blur(6px);
    color: #FFE58F;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(201, 150, 58, 0.4);
}

/* 3 Thumbnail Selector Strip */
.product-thumbnails-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.gallery-thumb-btn {
    background: #FAF6EE;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.gallery-thumb-btn img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-thumb-btn .thumb-label {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.gallery-thumb-btn:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.gallery-thumb-btn.active {
    border-color: var(--terracotta);
    background: #FFF8F4;
    box-shadow: 0 4px 12px rgba(196, 83, 30, 0.2);
}

.gallery-thumb-btn.active .thumb-label {
    color: var(--terracotta);
}

/* Trust Badges Under Gallery */
.product-trust-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.trust-pill {
    background: white;
    border: 1.5px solid var(--gold-pale);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon { font-size: 22px; flex-shrink: 0; }
.trust-pill strong { display: block; font-size: 13px; color: var(--ink); }
.trust-pill span { font-size: 11px; color: var(--ink-soft); }

/* Right: Product Details Panel */
.product-main-card {
    background: white;
    border: 1.5px solid var(--gold-pale);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
    .product-main-card { padding: 20px 16px; }
}

.product-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-genre-pill {
    background: rgba(201, 150, 58, 0.12);
    color: #8C6215;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
}

.product-lang-pill {
    background: var(--ivory);
    border: 1px solid var(--gold-pale);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.product-trend-pill {
    background: rgba(196, 83, 30, 0.1);
    color: var(--terracotta);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}

.product-detail-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 8px;
}

@media (max-width: 600px) {
    .product-detail-title { font-size: 24px; }
}

.product-detail-author {
    font-size: 16px;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.product-detail-author strong { color: var(--ink); }
.author-dot { margin: 0 6px; color: var(--gold); }
.author-pub { font-size: 13px; color: var(--ink-softer); }

.product-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.stars-gold { color: #F59E0B; letter-spacing: 2px; font-size: 14px; }
.rating-val { font-weight: 700; color: var(--ink); }
.rating-pipe { color: var(--gold-pale); }
.rating-reviews-link { color: var(--terracotta); font-weight: 700; text-decoration: none; }
.verified-badge { color: var(--forest); font-weight: 700; }

/* Pricing Card */
.product-pricing-card {
    background: linear-gradient(135deg, #FFFDF9, #FDF7EB);
    border: 1.5px solid var(--gold-pale);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.price-main-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.price-hero {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--terracotta);
}

.price-mrp {
    font-size: 18px;
    color: var(--ink-softer);
    text-decoration: line-through;
}

.discount-badge-lg {
    background: #10B981;
    color: white;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}

.savings-note {
    font-size: 13px;
    color: var(--forest);
    margin-top: 8px;
    font-weight: 500;
}

/* Stock Status */
.stock-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

.stock-pill.in-stock {
    background: rgba(16, 185, 129, 0.12);
    color: var(--forest);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-pill.out-of-stock {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.urgency-pill {
    font-size: 12px;
    font-weight: 800;
    color: var(--terracotta);
    animation: pulse 1.8s infinite;
}

/* Action Buttons Group */
.product-actions-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.action-buttons-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-buy-now {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(196, 83, 30, 0.35);
}

.btn-add-shelf {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    background: white;
    border: 1.5px solid var(--gold-pale);
    color: var(--ink);
}

.btn-add-shelf:hover {
    border-color: var(--gold);
    background: var(--ivory);
}

.btn-wishlist-detail {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: white;
    border: 1.5px solid var(--gold-pale);
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-wishlist-detail:hover,
.btn-wishlist-detail.active {
    color: var(--terracotta);
    border-color: var(--terracotta);
    background: #FFF8F4;
}



/* Description & Specs */
.detail-block-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--gold-pale);
}

.detail-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 30px;
}

.product-specs-card {
    margin-bottom: 36px;
}

.specs-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .specs-table { grid-template-columns: 1fr; }
}

.spec-row {
    background: var(--ivory);
    border: 1px solid var(--gold-pale);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-key {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gold);
}

.spec-val {
    font-size: 14px;
    color: var(--ink);
}

/* Reviews Styling */
.product-reviews-section {
    margin-top: 40px;
}

.reviews-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--gold-pale);
}

.reviews-section-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.review-count-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--terracotta);
    background: rgba(196, 83, 30, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.review-form-card {
    background: var(--ivory);
    padding: 24px;
    border-radius: 16px;
    border: 1.5px solid var(--gold-pale);
    margin-bottom: 30px;
}

.review-form-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold);
    margin-bottom: 6px;
}

.review-select,
.review-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--gold-pale);
    background: white;
    font-family: var(--font-body);
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.review-textarea {
    height: 110px;
    resize: vertical;
}

.review-card-item {
    padding: 18px 0;
    border-bottom: 1px dashed var(--gold-pale);
}

.review-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C4531E, #E6B84A);
    color: white;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.reviewer-rating { font-size: 11px; color: #F59E0B; margin-top: 2px; }
.review-date { font-size: 12px; color: var(--ink-softer); }
.review-comment-body { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.review-login-prompt {
    background: var(--beige-warm);
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
}

.review-login-prompt a {
    color: var(--terracotta);
    font-weight: 700;
}

/* Related Books Section */
.related-books-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1.5px solid var(--gold-pale);
}

.related-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

/* Lightbox Modal */
.product-lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 10, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-lightbox-modal.open {
    display: flex;
    animation: fadeInDown 0.25s ease-out;
}

.lightbox-content-box {
    position: relative;
    max-width: 650px;
    width: 100%;
    text-align: center;
}

.lightbox-content-box img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(201, 150, 58, 0.4);
    object-fit: contain;
    background: white;
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close-btn:hover {
    background: var(--terracotta);
}

.lightbox-nav-row {
    margin-top: 14px;
}

.lightbox-title {
    color: white;
    font-family: var(--font-display);
    font-size: 18px;
}

/* ==========================================================================
   READER STORIES (TESTIMONIALS & REVIEW CAROUSEL / FORM)
   ========================================================================== */
.testimonials-section {
    background: linear-gradient(180deg, #180B05 0%, #241107 50%, #1A0C06 100%);
    padding: 85px 0 95px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(201, 150, 58, 0.2);
    border-bottom: 1px solid rgba(201, 150, 58, 0.2);
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 150, 58, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.stories-wrapper {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .stories-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* LEFT: LUXURY BOOK-FRAME & PAGE CAROUSEL */
.stories-carousel-col {
    display: flex;
    flex-direction: column;
}

.stories-book-frame {
    position: relative;
    background: #FAF4E8;
    border-radius: 20px;
    border: 1.5px solid rgba(201, 150, 58, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(201, 150, 58, 0.06);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.book-spine-accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(180deg, #B85D19 0%, #C9963A 50%, #8C2808 100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.stories-carousel-viewport {
    position: relative;
    flex: 1;
    min-height: 340px;
    perspective: 1400px;
}

/* 3D Page Swiping Animation */
.story-page-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 36px 36px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transform-origin: left center;
    transform: translateX(80px) rotateY(-20deg) scale(0.95);
    transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.65s cubic-bezier(0.23, 1, 0.32, 1);
    backface-visibility: hidden;
}

.story-page-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) rotateY(0deg) scale(1);
    z-index: 3;
}

.story-page-slide.prev-slide {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-80px) rotateY(20deg) scale(0.95);
    z-index: 1;
}

.story-page-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.story-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.story-stars {
    color: #F59E0B;
    font-size: 18px;
    letter-spacing: 3px;
}

.story-badge {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    background: rgba(45, 90, 39, 0.12);
    color: #235921;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(45, 90, 39, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-quote-mark {
    font-family: 'Cinzel', serif;
    font-size: 64px;
    line-height: 0.8;
    color: rgba(201, 150, 58, 0.25);
    margin-bottom: -10px;
    user-select: none;
}

.story-quote-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: #2C1810;
    font-style: italic;
    flex: 1;
    margin-bottom: 20px;
    overflow-y: auto;
    max-height: 190px;
}

.story-author-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px dashed rgba(201, 150, 58, 0.35);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-display);
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.story-avatar-gradient-1 {
    background: linear-gradient(135deg, #B85D19, #8C2808);
}

.story-avatar-gradient-2 {
    background: linear-gradient(135deg, #C9963A, #7E5E1E);
}

.story-author-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: #1F100B;
}

.story-author-loc {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #7C6053;
    margin-top: 2px;
}

/* CAROUSEL CONTROLS */
.story-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 14px 28px;
    background: #EFE6D5;
    border-top: 1px solid rgba(201, 150, 58, 0.25);
    z-index: 5;
}

.story-nav-btn {
    background: white;
    border: 1px solid rgba(201, 150, 58, 0.4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #6D411B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.story-nav-btn:hover {
    background: #B85D19;
    color: white;
    border-color: #B85D19;
    transform: scale(1.08);
}

.story-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.story-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(201, 150, 58, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.story-dot.active {
    width: 22px;
    background: #B85D19;
}

.story-counter {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    color: #8A6440;
}

/* RIGHT: SUBMIT REVIEW FORM CARD */
.stories-form-col {
    display: flex;
    flex-direction: column;
}

.story-submit-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(201, 150, 58, 0.3);
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.story-form-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(201, 150, 58, 0.2);
}

.story-form-title span {
    font-size: 28px;
}

.story-form-title h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #F5E8D8;
    margin-bottom: 2px;
}

.story-form-title p {
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.star-rating-picker {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-pick {
    background: none;
    border: none;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
    padding: 0 2px;
    line-height: 1;
}

.star-pick.active {
    color: #FBBF24;
}

.star-pick:hover {
    transform: scale(1.25);
}

.star-rating-label {
    margin-left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #FBBF24;
    font-family: var(--font-ui);
}

.story-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #E7C99B;
    margin-bottom: 6px;
}

.story-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 576px) {
    .story-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.story-input, .story-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 150, 58, 0.3);
    border-radius: 10px;
    padding: 11px 14px;
    color: #FAF5EB;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.story-input:focus, .story-textarea:focus {
    outline: none;
    border-color: #C9963A;
    box-shadow: 0 0 0 3px rgba(201, 150, 58, 0.2);
}

.story-submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #B85D19 0%, #8C2808 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(184, 93, 25, 0.35);
    transition: all 0.25s ease;
}

.story-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(184, 93, 25, 0.5);
    background: linear-gradient(135deg, #C9681E 0%, #9F2E09 100%);
}

/* COMMUNITY BUTTONS */
.community-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 26px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    color: white;
}

.community-btn-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.community-btn-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ==========================================================================
   GOOGLE AUTH (PASSWORDLESS SIGN-IN / SIGN-UP)
   ========================================================================== */
.btn-google-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #FFFFFF;
    color: #1F2937;
    border: 1.5px solid rgba(201, 150, 58, 0.4);
    padding: 13px 20px;
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    margin-bottom: 20px;
    text-decoration: none;
}

.btn-google-auth:hover {
    background: #FAF7F2;
    border-color: #B85D19;
    box-shadow: 0 6px 20px rgba(184, 93, 25, 0.18);
    transform: translateY(-2px);
    color: #111827;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
    color: rgba(26, 16, 8, 0.5);
    font-family: var(--font-ui);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(201, 150, 58, 0.3);
}

.auth-divider span {
    padding: 0 14px;
}

/* Google Prompt / Modal */
.google-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.google-modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.google-modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1.5px solid rgba(201, 150, 58, 0.4);
    max-width: 440px;
    width: 100%;
    padding: 36px 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    position: relative;
}

.google-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.2s;
}

.google-modal-close:hover {
    color: var(--terracotta);
}

/* ==========================================================================
   ACCESSIBILITY (a11y) & KEYBOARD FOCUS STYLES (WCAG 2.1 AA Compliant)
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2.5px solid var(--terracotta, #9B3A1A) !important;
    outline-offset: 3px !important;
}

.skip-link:focus {
    top: 12px !important;
    outline: 3px solid var(--gold, #C9963A) !important;
}

/* Ensure contrast for badges and buttons */
.badge, .f-badge, .book-ribbon {
    font-weight: 700 !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================================
   FAST, PREMIUM TOAST NOTIFICATION
   =================================================== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 460px;
    width: auto;
    background: #18222D;
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    z-index: 100000;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.toast-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--terracotta);
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.toast-text {
    color: #FAF8F5;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.toast-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--terracotta) 0%, #B85D19 100%);
    color: #FFFFFF !important;
    border: none;
    padding: 7px 14px;
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(184, 93, 25, 0.3);
    transition: all 0.2s ease;
    margin-left: 4px;
    text-decoration: none;
}

.toast-btn:hover {
    background: linear-gradient(135deg, #F4A261 0%, var(--terracotta) 100%);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(184, 93, 25, 0.45);
}

@media (max-width: 640px) {
    .toast {
        left: 14px;
        right: 14px;
        bottom: 16px;
        max-width: calc(100vw - 28px);
        padding: 10px 14px;
        gap: 10px;
    }

    .toast-text {
        font-size: 12.5px;
    }

    .toast-btn {
        padding: 6px 11px;
        font-size: 11.5px;
    }
}

/* ==========================================================================
   BUTTON STYLES & UNIFIED DESIGN SYSTEM (CACHE FIX)
   ========================================================================== */
.btn-checkout,
.btn-checkout-main,
.btn-place-order,
.mobile-checkout-btn,
.mobile-co-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--terracotta) 0%, #B85D19 100%);
    color: #FFFFFF !important;
    border: none;
    border-radius: 14px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(184, 93, 25, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-checkout:hover,
.btn-checkout-main:hover,
.btn-place-order:hover,
.mobile-checkout-btn:hover,
.mobile-co-btn:hover {
    background: linear-gradient(135deg, #F4A261 0%, var(--terracotta) 100%);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(184, 93, 25, 0.45);
}

.btn-checkout:active,
.btn-checkout-main:active,
.btn-place-order:active {
    transform: translateY(0);
}

.btn-continue-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: transparent;
    color: var(--ink-soft);
    border: 1.5px solid rgba(201, 150, 58, 0.4);
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-continue-shop:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    background: rgba(231, 111, 81, 0.05);
}

.btn-combo-add,
.btn-mag-order,
.btn-mag-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--terracotta);
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(231, 111, 81, 0.3);
    transition: all 0.2s ease;
}

.btn-combo-add:hover,
.btn-mag-order:hover,
.btn-mag-cart:hover {
    background: var(--terracotta-deep);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.45);
}

.btn-gold,
.btn-gold-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #E6B84A 0%, #C9963A 100%);
    color: #1A0A04 !important;
    border: none;
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(201, 150, 58, 0.3);
    transition: all 0.2s ease;
}

.btn-gold:hover,
.btn-gold-sm:hover {
    background: linear-gradient(135deg, #FFE8A3 0%, #E6B84A 100%);
    color: #1A0A04 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 150, 58, 0.45);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-danger {
    background: #DC2626;
    color: #FFFFFF !important;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #B91C1C;
    color: #FFFFFF !important;
}

.btn-dark {
    background: #1F2937;
    color: #FFFFFF !important;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-dark:hover {
    background: #111827;
    color: #FFFFFF !important;
}

.btn-save, .btn-edit, .btn-view, .btn-upload-file, .btn-topbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(201, 150, 58, 0.12);
    color: #2C1A08;
    border: 1px solid rgba(201, 150, 58, 0.4);
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover, .btn-edit:hover, .btn-view:hover, .btn-upload-file:hover, .btn-topbar:hover {
    background: #C9963A;
    color: #FFFFFF !important;
}

.btn-error-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--terracotta);
    color: #FFFFFF !important;
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(231, 111, 81, 0.35);
    transition: all 0.2s ease;
}

.btn-error-primary:hover {
    background: var(--terracotta-deep);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-error-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    color: var(--ink);
    border: 1.5px solid rgba(201, 150, 58, 0.4);
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-error-secondary:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    background: rgba(231, 111, 81, 0.05);
}

.coupon-btn {
    padding: 10px 18px;
    background: var(--terracotta);
    color: #FFFFFF !important;
    border: none;
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.coupon-btn:hover {
    background: var(--terracotta-deep);
    color: #FFFFFF !important;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory-warm);
    border: 1px solid rgba(201, 150, 58, 0.3);
    border-radius: 6px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--gold-pale);
    border-color: var(--gold);
}

.error-search-btn {
    padding: 12px 20px;
    background: var(--terracotta);
    color: #FFFFFF !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.mag-tab-btn, .stock-counter-btn, .print-btn {
    padding: 8px 14px;
    background: rgba(201, 150, 58, 0.12);
    color: var(--ink);
    border: 1px solid rgba(201, 150, 58, 0.4);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.mag-tab-btn:hover, .stock-counter-btn:hover, .print-btn:hover {
    background: var(--gold);
    color: #FFFFFF !important;
}

