/* ============================================
   THE ANTIQUARIAN'S LIBRARY
   Dark Vintage Theme Stylesheet
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-darkest: #0a0806;
    --bg-dark: #1a1510;
    --bg-medium: #2a2118;
    --bg-light: #3a2f22;
    --bg-card: #221b14;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dark: #8b7530;
    --cream: #f4e8c1;
    --cream-dark: #d4c8a0;
    --text-primary: #e8dcc8;
    --text-secondary: #b8a88a;
    --text-muted: #8a7a62;
    --accent-red: #8b2500;
    --accent-green: #2d5016;
    --border: rgba(201, 168, 76, 0.2);
    --shadow: rgba(0, 0, 0, 0.6);
    --font-display: 'Cinzel Decorative', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-accent: 'IM Fell English', serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--bg-dark);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

body {
    font-family: var(--font-body);
    background: var(--bg-darkest);
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* === Utility === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gold);
    transition: left 0.4s;
    z-index: -1;
}

.btn:hover::before { left: 0; }
.btn:hover { color: var(--bg-darkest); }

.btn-primary {
    background: var(--gold);
    color: var(--bg-darkest);
}
.btn-primary::before { background: var(--gold-light); }
.btn-primary:hover { color: var(--bg-darkest); }

.btn-secondary { border-color: var(--text-muted); color: var(--text-secondary); }
.btn-secondary::before { background: var(--text-muted); }

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 40px; font-size: 16px; }

/* === PARTICLES === */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s infinite;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* === CANDLE GLOW === */
.candle-glow {
    position: fixed;
    width: 300px; height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    animation: candleFlicker 3s ease-in-out infinite alternate;
}

.left-glow { top: 30%; left: -50px; background: #ff8c00; }
.right-glow { top: 40%; right: -50px; background: #ff6b00; animation-delay: 1.5s; }

@keyframes candleFlicker {
    0% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.1); }
    100% { opacity: 0.12; transform: scale(0.95); }
}

/* ============================================
   LANDING PAGE — THE BOOK
   ============================================ */
.landing-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s, visibility 0.8s;
}

.landing-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.shelf-scene {
    width: 100%; height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookshelf-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.bookshelf-bg .bg-image {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.2) sepia(0.5);
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(10,8,6,0.4) 0%, rgba(10,8,6,0.9) 100%);
}

.landing-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.welcome-text {
    margin-bottom: 50px;
}

.main-title {
    font-family: var(--font-display);
    line-height: 1.2;
}

.title-line {
    display: block;
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: 8px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0.3s; font-size: 1.5rem; }
.title-line.accent {
    font-size: 3.5rem;
    color: var(--gold);
    animation-delay: 0.6s;
    text-shadow: 0 0 40px rgba(201,168,76,0.3);
}
.title-line:nth-child(3) { animation-delay: 0.9s; font-size: 1.5rem; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 20px;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

/* 3D Book */
.book-3d-container {
    perspective: 1500px;
    cursor: pointer;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.book-3d {
    width: 280px; height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0 auto;
}

.book-3d:hover {
    transform: rotateY(-15deg) rotateX(5deg);
}

.book-3d.opening {
    transform: rotateY(-160deg) scale(1.2);
}

.book-cover-front {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    border-radius: 0 8px 8px 0;
    transform-origin: left center;
    transform: translateZ(15px);
    box-shadow: 5px 5px 30px rgba(0,0,0,0.8);
    overflow: hidden;
    backface-visibility: hidden;
}

.cover-texture {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%231a0f08" width="100" height="100"/><rect fill="%23251810" width="50" height="50"/><rect fill="%23251810" x="50" y="50" width="50" height="50"/></svg>');
    background-size: 4px 4px;
    opacity: 0.3;
}

.cover-border {
    position: absolute;
    top: 15px; left: 15px;
    right: 15px; bottom: 15px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-inner {
    text-align: center;
    padding: 20px;
}

.cover-inner .cover-image {
    width: 120px; height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin: 0 auto 15px;
}

.cover-inner h2 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.3rem;
    line-height: 1.4;
    text-shadow: 0 0 20px rgba(201,168,76,0.3);
}

.ornament {
    color: var(--gold);
    font-size: 1.5rem;
    margin: 10px 0;
}

.click-hint {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--gold-light);
    font-size: 0.85rem;
    margin-top: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.book-spine-edge {
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 100%;
    background: linear-gradient(to right, var(--gold-dark), #1a0f08);
}

.book-cover-back {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a0f08 0%, #0d0805 100%);
    border-radius: 0 8px 8px 0;
    transform: translateZ(-15px);
}

.book-spine {
    position: absolute;
    left: 0; top: 0;
    width: 30px; height: 100%;
    background: linear-gradient(to right, #2c1810, #1a0f08);
    transform: rotateY(90deg) translateZ(0px) translateX(-15px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
}

.book-spine span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.book-pages-edge {
    position: absolute;
    right: -3px; top: 5px;
    width: 26px;
    height: calc(100% - 10px);
    background: repeating-linear-gradient(
        to bottom,
        var(--cream) 0px,
        var(--cream-dark) 1px,
        var(--cream) 2px
    );
    transform: rotateY(90deg) translateZ(135px) translateX(-13px);
    border-radius: 0 2px 2px 0;
}

/* ============================================
   MAIN SITE
   ============================================ */
.main-site {
    display: none;
    opacity: 0;
    transition: opacity 0.8s;
}

.main-site.visible {
    display: block;
    opacity: 1;
}

/* === NAVIGATION === */
.vintage-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    transition: all 0.4s;
    background: transparent;
}

.vintage-nav.scrolled {
    background: rgba(10, 8, 6, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo i { font-size: 1.4rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-secondary) !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
    background: rgba(201,168,76,0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 2px;
    background: var(--gold);
}

.cart-count {
    background: var(--accent-red);
    color: white;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 50%;
    font-family: var(--font-heading);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
}

/* === PAGE FLIP === */
.page-flip-container {
    min-height: 100vh;
    position: relative;
}

.book-page {
    display: none;
    animation: pageFlipIn 0.6s ease;
}

.book-page.active { display: block; }

@keyframes pageFlipIn {
    from {
        opacity: 0;
        transform: perspective(1200px) rotateY(-15deg);
    }
    to {
        opacity: 1;
        transform: perspective(1200px) rotateY(0deg);
    }
}

.page-content {
    position: relative;
}

.page-texture {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="300" height="300" filter="url(%23n)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Page Turn Navigation */
.page-turn-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(10,8,6,0.9);
    border: 1px solid var(--border);
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
}

.page-turn-btn {
    width: 45px; height: 45px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.page-turn-btn:hover {
    background: var(--gold);
    color: var(--bg-darkest);
}

.page-indicator {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.hero-image {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.3) sepia(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10,8,6,0.3) 0%,
        rgba(10,8,6,0.6) 50%,
        rgba(10,8,6,1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 30px;
}

.hero-ornament {
    color: var(--gold);
    font-size: 1.5rem;
    letter-spacing: 20px;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 60px rgba(201,168,76,0.2);
    line-height: 1.3;
}

.hero-content p {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 80px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    margin: 15px 0;
}

.section-header p {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.header-ornament {
    color: var(--gold-dark);
    font-size: 1.5rem;
}

/* === FEATURED BOOKS === */
.featured-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 80px;
}

.books-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.book-card {
    position: relative;
    transition: transform 0.4s;
}

.book-card:hover { transform: translateY(-10px); }

.card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.card-inner:hover {
    border-color: var(--gold-dark);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.1);
}

.book-cover {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.book-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    filter: brightness(0.9) sepia(0.1);
}

.book-card:hover .book-cover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.cover-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,8,6,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.book-card:hover .cover-overlay { opacity: 1; }

.view-btn {
    padding: 12px 28px;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
}

.view-btn:hover {
    background: var(--gold);
    color: var(--bg-darkest);
}

.book-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--gold);
    color: var(--bg-darkest);
    padding: 5px 15px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 5;
}

.book-badge.new { background: var(--accent-green); color: white; }
.book-badge.sale { background: var(--accent-red); color: white; }

.book-info {
    padding: 25px;
}

.book-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.book-info .author {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.genre-tag {
    display: inline-block;
    background: rgba(201,168,76,0.1);
    color: var(--gold);
    padding: 3px 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 15px;
}

.rating i { color: var(--gold); font-size: 0.85rem; }
.rating span {
    margin-left: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 700;
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.add-cart-btn {
    width: 45px; height: 45px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.add-cart-btn:hover {
    background: var(--gold);
    color: var(--bg-darkest);
    transform: scale(1.1);
}

/* === CATEGORIES === */
.categories-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    filter: brightness(0.5) sepia(0.3);
}

.category-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

.category-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10,8,6,0.4);
    transition: background 0.3s;
}

.category-card:hover .category-overlay {
    background: rgba(10,8,6,0.6);
}

.category-overlay i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.category-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.category-overlay p {
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-style: italic;
    margin-top: 5px;
}

/* === TESTIMONIALS === */
.testimonials-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 12px;
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 20px; left: 25px;
}

.testimonial-card p {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-dark);
}

.testimonial-author h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.95rem;
}

.testimonial-author span {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === NEWSLETTER === */
.newsletter-section {
    position: relative;
    padding: 100px 30px;
    text-align: center;
    overflow: hidden;
}

.newsletter-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.newsletter-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.2) sepia(0.5);
}

.newsletter-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,8,6,0.8);
}

.newsletter-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.newsletter-content p {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border);
    background: rgba(26,21,16,0.8);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form button {
    padding: 15px 25px;
    background: var(--gold);
    color: var(--bg-darkest);
    border: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form button:hover { background: var(--gold-light); }

/* === FOOTER === */
.vintage-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 80px 30px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-col p i {
    color: var(--gold-dark);
    margin-right: 8px;
    width: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 5px 0;
    transition: all 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-ornament {
    color: var(--gold-dark);
    font-size: 1.2rem;
    letter-spacing: 10px;
    margin-bottom: 15px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   INNER PAGES
   ============================================ */
.inner-page { padding-top: 0; }

/* Page Headers */
.page-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header.small-header { height: 300px; }

.header-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.header-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.25) sepia(0.4);
}

.header-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,8,6,0.3), rgba(10,8,6,0.9));
}

.header-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.header-content h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.header-content p {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================
   SHOP PAGE
   ============================================ */
.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 30px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.filter-section h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input, .sort-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus, .sort-select:focus { border-color: var(--gold); }

.sort-select option { background: var(--bg-dark); }

.filter-options { display: flex; flex-direction: column; gap: 10px; }

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.filter-option:hover { color: var(--gold); }

.filter-option input[type="checkbox"] {
    appearance: none;
    width: 18px; height: 18px;
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.filter-option input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
}

.filter-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-darkest);
    font-size: 0.7rem;
    font-weight: bold;
}

.price-range {
    width: 100%;
    appearance: none;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    margin: 15px 0 10px;
}

.price-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px; height: 20px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
}

.price-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.results-count {
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-style: italic;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-toggle .view-btn {
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.view-toggle .view-btn.active,
.view-toggle .view-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,0.1);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* ============================================
   BOOK DETAIL PAGE
   ============================================ */
.detail-main {
    padding-top: 80px;
    min-height: 100vh;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.detail-image {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}

.detail-info h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.detail-info .detail-author {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.meta-item {
    background: rgba(201,168,76,0.1);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-item i { color: var(--gold); margin-right: 6px; }

.detail-description {
    font-family: var(--font-accent);
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.detail-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 25px;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-selector button {
    width: 45px; height: 45px;
    background: var(--bg-card);
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.quantity-selector button:hover { background: var(--bg-light); }

.quantity-selector input {
    width: 60px; height: 45px;
    border: none;
    background: var(--bg-dark);
    color: var(--text-primary);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    outline: none;
}

/* Sequels/Prequels Section */
.series-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.series-section h2 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.series-timeline {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.series-book {
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.series-book:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.series-book.current {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201,168,76,0.2);
}

.series-book img {
    width: 100%; height: 200px;
    object-fit: cover;
}

.series-book-info {
    padding: 15px;
}

.series-book-info .series-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}

.series-book-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.series-book-info .series-price {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-top: 5px;
}

/* ============================================
   AUTHORS PAGE
   ============================================ */
.authors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
    display: grid;
    gap: 40px;
}

.author-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
}

.author-card:hover {
    border-color: var(--gold-dark);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.author-card:nth-child(even) {
    direction: rtl;
}

.author-card:nth-child(even) > * {
    direction: ltr;
}

.author-image {
    position: relative;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.author-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: sepia(0.2) brightness(0.8);
    transition: all 0.6s;
}

.author-card:hover .author-image img {
    filter: sepia(0) brightness(0.9);
    transform: scale(1.05);
}

.author-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10,8,6,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s;
}

.author-card:hover .author-overlay { opacity: 1; }

.author-link {
    padding: 10px 25px;
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.author-link:hover {
    background: var(--gold);
    color: var(--bg-darkest) !important;
}

.author-info {
    padding: 40px;
}

.author-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.author-era {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.author-bio {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.author-works h4 {
    font-family: var(--font-heading);
    color: var(--gold-dark);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.author-works ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.author-works li {
    background: rgba(201,168,76,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.author-stats {
    display: flex;
    gap: 20px;
}

.author-stats span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.author-stats i {
    color: var(--gold);
    margin-right: 5px;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 25px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.cart-item:hover { border-color: var(--gold-dark); }

.cart-item-image {
    width: 100px; height: 130px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-item-details .item-price {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.cart-item-qty button {
    width: 35px; height: 35px;
    background: var(--bg-dark);
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.cart-item-qty button:hover { background: var(--bg-light); }

.cart-item-qty span {
    padding: 0 15px;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.cart-remove {
    width: 40px; height: 40px;
    border: 1px solid rgba(139,37,0,0.3);
    background: transparent;
    color: var(--accent-red);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-remove:hover {
    background: var(--accent-red);
    color: white;
}

.cart-empty {
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.cart-empty i {
    font-size: 4rem;
    color: var(--gold-dark);
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 10px;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-family: var(--font-accent);
    font-style: italic;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.summary-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-row.total {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 15px 0;
}

.summary-card .btn { margin-top: 15px; }

/* ============================================
   PAYMENT PAGE
   ============================================ */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    grid-column: 1 / -1;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.step.active { opacity: 1; }
.step.completed { opacity: 0.7; }

.step-number {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.9rem;
}

.step.active .step-number {
    background: var(--gold);
    color: var(--bg-darkest);
}

.step span {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.step-line {
    width: 60px; height: 1px;
    background: var(--border);
}

.checkout-step-content {
    display: none;
}

.checkout-step-content.active { display: block; }

.checkout-step-content h2 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Forms */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-group select option { background: var(--bg-dark); }

.form-group textarea { resize: vertical; min-height: 120px; }

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

/* Shipping Methods */
.shipping-methods,
.payment-methods {
    margin: 20px 0;
}

.shipping-methods h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.shipping-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-option:hover,
.payment-option:hover { border-color: var(--gold-dark); }

.shipping-option input:checked ~ .shipping-details,
.payment-option.active {
    border-color: var(--gold);
}

.shipping-option input,
.payment-option input {
    appearance: none;
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.shipping-option input:checked,
.payment-option input:checked {
    border-color: var(--gold);
}

.shipping-option input:checked::after,
.payment-option input:checked::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 50%;
}

.shipping-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-name {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.shipping-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.shipping-price {
    font-family: var(--font-heading);
    color: var(--gold);
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.payment-icon i { font-size: 1.5rem; color: var(--gold); }
.payment-icon span {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Credit Card Preview */
.credit-card-preview {
    margin: 20px 0 30px;
    perspective: 1000px;
}

.card-front {
    width: 380px;
    max-width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #1a1510, #2a2118, #1a1510);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--gold-dark);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.card-front::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
}

.card-chip {
    width: 45px; height: 35px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 6px;
    margin-bottom: 25px;
}

.card-number-display {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
}

.card-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.card-name-display,
.card-expiry-display {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Review & Success */
.review-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
}

.review-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.review-card p {
    color: var(--text-secondary);
}

.total-card { background: var(--bg-medium); }

.success-content {
    text-align: center;
    padding: 60px 30px;
}

.success-icon {
    font-size: 5rem;
    color: var(--accent-green);
    margin-bottom: 20px;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-content h2 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-content p {
    color: var(--text-secondary);
    font-family: var(--font-accent);
    font-style: italic;
    margin-bottom: 25px;
}

.order-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 3px;
    background: rgba(201,168,76,0.1);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.checkout-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item:last-child { border: none; }

.checkout-item img {
    width: 50px; height: 65px;
    object-fit: cover;
    border-radius: 4px;
}

.checkout-item-info h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.checkout-item-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-5px);
}

.info-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    color: var(--gold);
}

.info-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.8rem;
    margin: 10px 0;
}

.form-header p {
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-style: italic;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-placeholder {
    position: relative;
    width: 100%; height: 100%;
    min-height: 500px;
}

.map-placeholder img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: sepia(0.5) brightness(0.5);
}

.map-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,8,6,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-overlay i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.map-overlay p {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    border-radius: 10px;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.4s ease, toastOut 0.4s ease 3s forwards;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    max-width: 350px;
}

.toast i {
    font-size: 1.3rem;
    color: var(--gold);
}

.toast.success i { color: #4caf50; }
.toast.error i { color: var(--accent-red); }

.toast-message {
    font-family: var(--font-body);
    color: var(--text-primary);
    font-size: 0.95rem;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(100px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .shop-container { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .checkout-container { grid-template-columns: 1fr; }
    .checkout-sidebar { position: static; }
    .cart-container { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .author-card {
        grid-template-columns: 1fr;
    }
    .author-card:nth-child(even) { direction: ltr; }
    .contact-info-cards { grid-template-columns: repeat(2, 1fr); }
    .contact-form-section { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: rgba(10,8,6,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }

    .title-line.accent { font-size: 2rem; }
    .title-line { font-size: 1rem; }
    .title-line:nth-child(3) { font-size: 1rem; }

    .hero-content h1 { font-size: 2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .header-content h1 { font-size: 2rem; }

    .books-carousel { grid-template-columns: 1fr 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-info-cards { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .newsletter-form { flex-direction: column; }
    .payment-methods { flex-direction: column; }
    .checkout-steps { flex-wrap: wrap; }

    .cart-item { grid-template-columns: 80px 1fr; }
    .cart-item-qty, .cart-remove { grid-column: 2; }

    .book-3d {
        width: 200px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .books-carousel { grid-template-columns: 1fr; }
    .books-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.6rem; }
    .btn { padding: 12px 24px; font-size: 12px; }
}