/* ========================================================
   LibroVerse - Ultra-Luxury Digital Bookstore Design System
   ======================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
    /* Palette: Obsidian Black & Champagne Gold */
    --bg-dark: #07080c;
    --bg-surface: #0e1017;
    --bg-surface-elevated: #151824;
    --bg-glass: rgba(15, 17, 26, 0.75);
    --bg-glass-card: rgba(22, 25, 38, 0.65);
    
    /* Luxury Gold Gradients & Accents */
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa820a;
    --gold-metallic: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --gold-gradient-soft: linear-gradient(135deg, #d4af37 0%, #e2b857 50%, #f5d77f 100%);
    --gold-glow: rgba(212, 175, 55, 0.25);
    --gold-border: rgba(212, 175, 55, 0.3);
    --gold-border-glow: rgba(243, 229, 171, 0.6);
    
    /* Text Colors */
    --text-primary: #f8f9fa;
    --text-secondary: #a0a5b5;
    --text-muted: #64697a;
    --text-gold: #e2b857;

    /* Functional Colors */
    --success: #10b981;
    --danger: #ef4444;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(212, 175, 55, 0.4);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-display: 'Cinzel', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;

    /* Elevation & Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.8);
    --shadow-luxury: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--gold-glow);

    /* Transitions & Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Selection --- */
::selection {
    background: var(--gold-primary);
    color: #000;
}

/* --- Ambient Glowing Orbs --- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.bg-glow-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 40%;
    right: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.bg-glow-3 {
    bottom: -10%;
    left: 20%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

/* --- Typography Helpers --- */
h1, h2, h3, .font-serif {
    font-family: var(--font-serif);
    letter-spacing: -0.01em;
}

.font-display {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

.gold-gradient-text {
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gold-text {
    color: var(--gold-primary);
}

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold-metallic);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* --- Utility Containers --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

.section {
    padding: 110px 0;
    position: relative;
    z-index: 1;
}

.category-section {
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.category-section.alt-bg {
    background: var(--bg-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.luxury-subtitle-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.15;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 20px auto 0;
    font-weight: 300;
}

/* --- Luxury Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-gold {
    background: var(--gold-gradient-soft);
    color: #07080c;
    box-shadow: 0 4px 25px var(--gold-glow);
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, #e5c158 0%, #f7e19e 100%);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-subtle);
    color: var(--text-primary);
    backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-border);
    color: var(--gold-light);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border-color: var(--gold-border);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all var(--transition-smooth);
}

.header.scrolled {
    padding: 14px 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2) 0%, var(--bg-surface-elevated) 100%);
    border: 1px solid var(--gold-border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--gold-light);
    box-shadow: 0 0 20px var(--gold-glow);
    letter-spacing: 0.1em;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.logo-accent {
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.logo-accent {
    color: var(--gold-primary);
}

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

.nav-link {
    padding: 8px 18px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.icon-btn:hover {
    border-color: var(--gold-border);
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--gold-gradient-soft);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform var(--transition-smooth);
}

.cart-count.visible {
    transform: scale(1);
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: none;
}

.badge-dot.visible {
    display: block;
}

/* Search Input Expanded */
.search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0 6px 0 16px;
    transition: all var(--transition-smooth);
}

.search-wrapper.expanded {
    background: var(--bg-surface-elevated);
    border-color: var(--gold-border);
    box-shadow: 0 0 20px var(--gold-glow);
}

.search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 10px 0;
    width: 0;
    transition: width var(--transition-smooth);
    font-size: 0.88rem;
}

.search-wrapper.expanded .search-input {
    width: 220px;
}

.search-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.search-btn:hover {
    color: var(--gold-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-smooth);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
    background: var(--gold-light);
}

.mobile-menu-btn.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
    background: var(--gold-light);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.luxury-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.gold-sparkle {
    color: var(--gold-primary);
}

.hero-title {
    font-size: clamp(3rem, 5.5vw, 4.8rem);
    font-weight: 500;
    line-height: 1.08;
    margin-bottom: 24px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.stat-unit {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold-primary);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 6px;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* 3D Showcase in Hero */
.hero-showcase {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-card {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-luxury);
}

.showcase-card img {
    width: 240px;
    height: 360px;
    object-fit: cover;
    display: block;
}

.card-center {
    z-index: 3;
    transform: scale(1) translateY(0);
}

.card-center img {
    width: 270px;
    height: 410px;
}

.card-gold-frame {
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold-border-glow);
    border-radius: var(--radius-md);
    pointer-events: none;
    z-index: 4;
}

.card-glass-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 12px 16px;
    background: rgba(7, 8, 12, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    z-index: 5;
}

.tag-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold-light);
}

.tag-author {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-back {
    z-index: 1;
    transform: rotate(-12deg) translateX(-140px) scale(0.85);
    opacity: 0.7;
}

.card-front {
    z-index: 2;
    transform: rotate(10deg) translateX(140px) scale(0.88);
    opacity: 0.85;
}

.hero-showcase:hover .card-back {
    transform: rotate(-16deg) translateX(-170px) scale(0.88);
    opacity: 0.9;
}

.hero-showcase:hover .card-front {
    transform: rotate(14deg) translateX(170px) scale(0.92);
    opacity: 0.95;
}

/* --- Features Section --- */
.luxury-features {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 50px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.luxury-feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: background var(--transition-smooth);
}

.luxury-feature-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feature-gold-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--gold-glow);
}

.feature-info h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Filter Tabs --- */
.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 55px;
}

.filter-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--gold-gradient-soft);
    color: #07080c;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--gold-glow);
}

/* --- Books Grid --- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 36px;
}

.book-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-border);
    box-shadow: var(--shadow-luxury);
    background: rgba(22, 25, 38, 0.85);
}

.book-cover-container {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
    box-shadow: var(--shadow-md);
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.book-badge-luxury {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.badge-gold {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
}

.badge-sale {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.badge-new {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.book-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.book-genre {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.book-title-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.book-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
}

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

.rating-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--gold-primary);
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-add-cart {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--gold-gradient-soft);
    color: #07080c;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-wish {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wish:hover,
.btn-wish.active {
    border-color: rgba(239, 68, 68, 0.5);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* --- Categories Section --- */
.categories-section {
    background: var(--bg-surface);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.category-card-luxury {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.category-card-luxury:hover {
    transform: translateY(-6px);
    border-color: var(--gold-border);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.category-icon-frame {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--gold-primary);
    transition: transform var(--transition-smooth);
}

.category-card-luxury:hover .category-icon-frame {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.15);
}

.category-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.category-count-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Bestsellers Carousel --- */
.bestsellers-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 28px;
    transition: transform var(--transition-slow);
}

.carousel-item-luxury {
    min-width: 360px;
    flex-shrink: 0;
}

.masterpiece-card {
    display: flex;
    gap: 20px;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.masterpiece-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury);
}

.masterpiece-rank {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold-primary);
    opacity: 0.8;
    line-height: 1;
    width: 44px;
    flex-shrink: 0;
}

.masterpiece-cover {
    width: 90px;
    height: 135px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.masterpiece-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--gold-gradient-soft);
    color: #000;
    transform: scale(1.08);
}

/* --- VIP Membership Section --- */
.vip-section {
    padding: 60px 0;
}

.vip-card {
    position: relative;
    background: linear-gradient(135deg, rgba(22, 25, 38, 0.95) 0%, rgba(10, 12, 18, 0.98) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-xl);
    padding: 70px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow-luxury);
}

.vip-card-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.vip-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.vip-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.vip-desc {
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 35px;
    font-weight: 300;
}

.vip-desc strong {
    color: var(--gold-light);
}

.vip-timer-wrapper {
    margin-bottom: 35px;
}

.timer-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.vip-timer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    text-align: center;
    min-width: 75px;
}

.timer-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
    line-height: 1;
}

.timer-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.timer-colon {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.vip-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.code-pill {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--gold-border);
}

.code-pill strong {
    color: var(--gold-primary);
    letter-spacing: 0.1em;
}

/* VIP Visual Stack */
.vip-visual {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-book-stack {
    position: relative;
    width: 260px;
    height: 360px;
}

.vip-stack-img {
    position: absolute;
    width: 170px;
    height: 255px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-luxury);
    transition: all var(--transition-slow);
}

.img-1 {
    top: 60px;
    left: 0;
    transform: rotate(-12deg);
    z-index: 1;
}

.img-2 {
    top: 20px;
    left: 45px;
    transform: rotate(0deg);
    z-index: 2;
}

.img-3 {
    top: 50px;
    right: 0;
    transform: rotate(12deg);
    z-index: 1;
}

.vip-card:hover .img-1 { transform: rotate(-18deg) translateX(-15px); }
.vip-card:hover .img-2 { transform: translateY(-10px); }
.vip-card:hover .img-3 { transform: rotate(18deg) translateX(15px); }

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transition: all var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-6px);
    box-shadow: var(--shadow-luxury);
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--gold-primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 30px;
}

.stars-gold {
    color: var(--gold-primary);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}

.testimonial-quote {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 28px;
    font-weight: 300;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar-gold {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-gradient-soft);
    color: #07080c;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Newsletter Section --- */
.newsletter-section {
    background: var(--bg-surface);
}

.newsletter-card {
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, rgba(14, 16, 23, 0.95) 80%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-xl);
    padding: 70px 40px;
    text-align: center;
    max-width: 840px;
    margin: 0 auto;
    box-shadow: var(--shadow-luxury);
}

.newsletter-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 14px;
}

.newsletter-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.newsletter-form .form-group {
    display: flex;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
}

.form-input {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

.form-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    padding: 90px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 70px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
    line-height: 1.7;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--gold-border);
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    color: var(--gold-primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--gold-primary);
}

/* --- Cart Drawer / Sidebar --- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--gold-border);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-luxury);
}

.cart-sidebar.active {
    right: 0;
}

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

.cart-header h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gold-icon {
    color: var(--gold-primary);
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.cart-close:hover {
    color: var(--danger);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

.cart-item-img {
    width: 65px;
    height: 95px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.cart-item-author {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-price {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
}

.cart-item-del {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition-fast);
}

.cart-item-del:hover {
    color: var(--danger);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.3);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.total-row {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.cart-total-amount {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-light);
}

/* --- Book Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.book-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 860px;
    max-height: 90vh;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-xl);
    z-index: 3001;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-luxury);
}

.book-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.modal-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 45px;
}

.modal-cover-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-luxury);
}

.modal-genre {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 700;
}

.modal-book-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.15;
    margin: 8px 0;
}

.modal-book-author {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.modal-synopsis {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 300;
}

.modal-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.spec-item i {
    color: var(--gold-primary);
    margin-right: 8px;
}

.modal-action-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-price-tag {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-luxury);
    min-width: 300px;
    animation: toastSlideIn 0.4s ease, toastSlideOut 0.4s ease 2.6s forwards;
}

.toast i {
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.toast-msg {
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

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

/* --- Back To Top --- */
.back-to-top {
    position: fixed;
    bottom: 35px;
    left: 35px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient-soft);
    border: none;
    color: #07080c;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 0 25px var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta, .hero-stats {
        justify-content: center;
    }

    .hero-showcase {
        margin-top: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .vip-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .vip-visual {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-cover-img {
        max-width: 240px;
        margin: 0 auto;
    }

    .modal-action-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        -webkit-tap-highlight-color: transparent;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Mobile Header & Navigation */
    .header-container {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(14, 16, 23, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-smooth);
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.15rem;
        padding: 12px 28px;
        border-radius: var(--radius-full);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 120px 0 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 6.5vw, 3.2rem);
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 14px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-around;
        padding-top: 24px;
    }

    .stat-divider {
        display: none;
    }

    .hero-showcase {
        height: 360px;
        margin-top: 30px;
    }

    .showcase-card img {
        width: 160px;
        height: 240px;
    }

    .card-center img {
        width: 180px;
        height: 270px;
    }

    .card-back {
        transform: rotate(-10deg) translateX(-60px) scale(0.85);
    }

    .card-front {
        transform: rotate(8deg) translateX(60px) scale(0.88);
    }

    .hero-showcase:hover .card-back {
        transform: rotate(-12deg) translateX(-70px) scale(0.88);
    }

    .hero-showcase:hover .card-front {
        transform: rotate(10deg) translateX(70px) scale(0.92);
    }

    /* VIP Card Mobile */
    .vip-card {
        padding: 36px 20px;
        border-radius: var(--radius-lg);
    }

    .vip-timer {
        justify-content: center;
        gap: 8px;
    }

    .timer-box {
        min-width: 62px;
        padding: 10px 8px;
    }

    .timer-num {
        font-size: 1.4rem;
    }

    .vip-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 14px;
        text-align: center;
    }

    .vip-cta-group .btn {
        width: 100%;
    }

    /* Newsletter Mobile */
    .newsletter-card {
        padding: 40px 20px;
        border-radius: var(--radius-lg);
    }

    .newsletter-form .form-group {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    /* Footer Mobile */
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    /* Book Modal Mobile */
    .book-modal {
        width: 94%;
        max-height: 88vh;
        border-radius: var(--radius-lg);
    }

    .modal-body {
        padding: 30px 20px;
        gap: 20px;
    }

    .modal-book-title {
        font-size: 1.6rem;
    }

    .modal-action-row {
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .modal-action-row .btn {
        width: 100%;
    }

    /* Toast Notifications Mobile */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 20px;
        width: calc(100% - 32px);
        align-items: center;
    }

    .toast {
        min-width: 0;
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
    }

    /* Back To Top Floating Button */
    .back-to-top {
        left: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .header-container {
        padding: 0 14px;
    }

    .logo-text {
        font-size: 1.05rem;
        letter-spacing: 0.08em;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }

    .header-actions {
        gap: 8px;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .search-wrapper.expanded .search-input {
        position: fixed;
        top: 75px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        background: var(--bg-surface-elevated);
        border: 1px solid var(--gold-border);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        border-radius: var(--radius-full);
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .book-cover-container {
        height: 300px;
    }

    /* Cart Sidebar 100% width on Mobile */
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .cart-header, .cart-items, .cart-footer {
        padding: 18px 16px;
    }

    .cart-footer {
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 110px 0 40px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-showcase {
        height: 290px;
    }

    .showcase-card img {
        width: 130px;
        height: 195px;
    }

    .card-center img {
        width: 150px;
        height: 225px;
    }

    .card-back {
        transform: rotate(-8deg) translateX(-38px) scale(0.82);
    }

    .card-front {
        transform: rotate(6deg) translateX(38px) scale(0.85);
    }

    .vip-card {
        padding: 24px 14px;
    }

    .vip-timer {
        gap: 4px;
    }

    .timer-box {
        min-width: 50px;
        padding: 8px 4px;
    }

    .timer-num {
        font-size: 1.2rem;
    }

    .timer-lbl {
        font-size: 0.55rem;
    }

    .timer-colon {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px 14px;
    }

    .modal-spec-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .logo-text {
        font-size: 0.88rem;
        letter-spacing: 0.04em;
    }
}
