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

/* Design Tokens */
:root {
    --midnight: #0F172A;
    --paper: #FDFBF7;
    --ink: #1E293B;
    --forest-green: #1B4D3E;
    --gold: #D4AF37;
    --gray: #94A3B8;
    --primary-color: #1B4D3E;
    --text-color: #1E293B;
    --background-color: #FDFBF7;
    --max-width: 1400px;
    --border-radius: 12px;
    --font-size-body: 16px;
    --badge-hot: #e42e2d;
    --badge-deal: #d93;
    --badge-sale: #1B4D3E;
    --light-gray: #f8f9fa;
    --medium-gray: #94A3B8;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #0F172A;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: var(--font-size-body);
}

.btn-primary {
    background-color: #D4AF37;
    color: #0F172A;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #c19b2e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #FDFBF7;
    border: 2px solid #FDFBF7;
}

.btn-secondary:hover {
    background-color: #FDFBF7;
    color: #0F172A;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #0F172A;
    font-family: 'Playfair Display', serif;
}

.featured-books .section-title,
.categories .section-title {
    color: #FDFBF7;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.top-bar-links a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

.tagline {
    font-size: 12px;
    color: var(--medium-gray);
    font-weight: 400;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 0;
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
}

/* Hero Section */
.hero {
    padding: 40px 0 30px;
    background: linear-gradient(135deg, #1B4D3E, #0F172A);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #FDFBF7;
}

.highlight {
    color: #D4AF37;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 2rem;
    color: #94A3B8;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* Book Stack Animation */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-stack {
    position: relative;
    width: 280px;
    height: 350px;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.book {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.book-1 {
    background-size: cover;
    background-position: center;
    z-index: 3;
    transform: rotate(-8deg);
    left: 10px;
    top: 30px;
}

.book-2 {
    background-size: cover;
    background-position: center;
    z-index: 2;
    transform: rotate(5deg);
    left: 80px;
    top: 50px;
}

.book-3 {
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: rotate(-3deg);
    left: 150px;
    top: 70px;
}

.book-stack:hover .book-1 { transform: rotate(-10deg) translateY(-10px); }
.book-stack:hover .book-2 { transform: rotate(7deg) translateY(-5px); }
.book-stack:hover .book-3 { transform: rotate(-5deg) translateY(-15px); }

/* Featured Books */
.featured-books {
    padding: 40px 0;
    background: #0F172A;
}

/* Hero Book */
.hero-book { background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%); border-radius: 12px; padding: 48px; margin-bottom: 60px; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.hero-book-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; text-decoration: none; color: inherit; }
.hero-book-content:hover { opacity: 0.95; }
.hero-book-image { position: relative; text-align: center; }
.hero-book-image img { max-width: 280px; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.badge-stack { position: absolute; top: -12px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 10; }
.hero-book-info h3 { font-size: 2.5rem; margin-bottom: 16px; color: #FDFBF7; }
.book-excerpt { font-size: 18px; color: #94A3B8; line-height: 1.7; margin-bottom: 24px; }
.price-label { display: block; font-size: 13px; color: #999; margin-top: 4px; }
.hero-book-actions { display: flex; gap: 16px; margin-top: 32px; }
.btn-large { padding: 16px 32px; font-size: 16px; }

/* Sale Banner */
.sale-banner { text-align: center; margin: 60px 0 40px; }
.sale-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.sale-banner h3 { font-size: 28px; color: #FDFBF7; }

/* Featured Grid */
.books-grid-featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 60px; }
.book-card.featured { background: #1E293B; border: 2px solid #1B4D3E; text-decoration: none; color: inherit; display: block; transition: var(--transition); }
.book-card.featured:hover { transform: translateY(-3px); border-color: #D4AF37; }
.book-featured-layout { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.book-card.featured .book-image { background: transparent; padding: 20px; }
.book-card.featured .book-info { padding: 20px 20px 20px 0; }

.subsection-title { font-size: 24px; text-align: center; margin-bottom: 32px; color: #94A3B8; font-weight: 500; }

/* Badge Styles */
.badge.hot { background: linear-gradient(135deg, #ff6b6b, #ee5a6f); animation: pulse-badge 2s infinite; }
.badge.bestseller { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge.deal { background: linear-gradient(135deg, #10b981, #059669); }
.badge.new { background: linear-gradient(135deg, #3b82f6, #2563eb); }

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 968px) {
    .hero-book { padding: 32px 24px; }
    .hero-book-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .hero-book-image img { max-width: 220px; }
    .hero-book-info h3 { font-size: 2rem; }
    .hero-book-actions { flex-direction: column; }
    .books-grid-featured { grid-template-columns: 1fr; }
    .book-featured-layout { grid-template-columns: 1fr; text-align: center; }
    .book-card.featured .book-image { padding: 20px; }
    .book-card.featured .book-info { padding: 0 20px 20px; }
    .badge-stack { right: 50%; transform: translateX(50%); }
}

/* Featured Books - OLD STYLES BELOW */

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.book-card {
    background: #FDFBF7;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.book-image {
    position: relative;
    text-align: center;
    padding: 30px 20px 20px;
    background: var(--light-gray);
}

.book-image img {
    max-width: 180px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.sale { background-color: var(--badge-sale); }
.badge.hot { background-color: var(--badge-hot); }
.badge.deal { background-color: var(--badge-deal); }

.book-info {
    padding: 30px;
}

.book-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.book-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #FDFBF7;
    font-family: 'Inter', sans-serif;
}

.book-price {
    margin-bottom: 20px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: #D4AF37;
}

.price-original {
    font-size: 18px;
    color: var(--medium-gray);
    text-decoration: line-through;
    margin-left: 10px;
}

/* Categories */
.categories {
    padding: 40px 0;
    background: #0F172A;
}

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

.category-card {
    display: block;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    border-color: #D4AF37;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.category-card h3 {
    margin-bottom: 8px;
    color: #FDFBF7;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.category-card p {
    color: #94A3B8;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

/* Why Tivarello */
.why-tivarello {
    padding: 40px 0;
    background: #f0fdf4;
}

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

.feature {
    text-align: center;
    padding: 30px 20px;
}

.feature h3 {
    color: #0F172A;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.feature p {
    color: #1E293B;
    line-height: 1.6;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/* Podcast & Newsletter Combined */
.podcast-newsletter-combined {
    padding: 70px 0;
    background: linear-gradient(135deg, #1B4D3E, #0F172A);
    color: #FDFBF7;
}

.combined-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.podcast-side h2,
.newsletter-side h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.podcast-side p,
.newsletter-side p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.5;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.podcast-features {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.podcast-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.newsletter-form {
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    background: rgba(255,255,255,0.1);
    color: #FDFBF7;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-group input:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(255,255,255,0.15);
}

.newsletter-privacy {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

@media (max-width: 968px) {
    .combined-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 10px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-section:nth-child(2) ul,
    .footer-section:nth-child(3) ul,
    .footer-section:nth-child(4) ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 24px;
    }
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

/* Social links placeholder */

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        transition: var(--transition);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: var(--light-gray);
        margin-top: 10px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
    }

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

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

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Book Stack */
    .hero-image {
        justify-content: center;
    }

    .book-stack {
        width: 280px;
        height: 300px;
        margin: 0 auto;
    }

    .book {
        width: 140px;
        height: 200px;
    }

    .book-1 {
        left: 20px;
        top: 20px;
    }

    .book-2 {
        left: 80px;
        top: 40px;
    }

    .book-3 {
        left: 140px;
        top: 60px;
    }

    /* Featured Books */
    .books-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Podcast */
    .podcast-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .podcast-features {
        flex-direction: column;
        gap: 15px;
    }

    .podcast-icon {
        font-size: 6rem;
    }

    /* Newsletter */
    .form-group {
        flex-direction: column;
    }



    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .section-title {
        margin-bottom: 2rem;
    }

    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-links {
        display: flex;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .podcast-content h2 {
        font-size: 2rem;
    }

    .book-image img {
        max-width: 140px;
    }

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

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

    .category-card,
    .feature {
        padding: 20px 15px;
    }
}

/* Animation for scroll */
@media (prefers-reduced-motion: no-preference) {
    .book-card,
    .category-card,
    .feature {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .book-card:nth-child(1) { animation-delay: 0.1s; }
    .book-card:nth-child(2) { animation-delay: 0.2s; }
    .category-card:nth-child(1) { animation-delay: 0.1s; }
    .category-card:nth-child(2) { animation-delay: 0.2s; }
    .category-card:nth-child(3) { animation-delay: 0.3s; }
    .category-card:nth-child(4) { animation-delay: 0.4s; }
    .category-card:nth-child(5) { animation-delay: 0.5s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(2, 119, 53, 0.3);
}

/* Print styles */
@media print {
    .top-bar,
    .mobile-menu-toggle,
    .hero-image,
    .podcast-visual,
    .newsletter,
    .footer {
        display: none !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Book Page Styles */
.book-page { padding: 40px 0 80px; background: #0F172A; }
.breadcrumb { font-size: 14px; color: #94A3B8; margin-bottom: 30px; font-family: 'Inter', sans-serif; }
.breadcrumb a { color: #D4AF37; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #c19b2e; }

.book-hero { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; margin-bottom: 60px; align-items: start; }
.book-cover-wrapper { position: sticky; top: 100px; }
.book-cover-wrapper img { width: 100%; max-width: 400px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }

.book-meta { }
.book-category { display: inline-block; background: #D4AF37; color: #0F172A; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.book-meta h1 { font-size: 2.5rem; margin-bottom: 12px; line-height: 1.2; font-family: 'Playfair Display', serif; color: #FDFBF7; }
.book-subtitle { font-size: 18px; color: #94A3B8; margin-bottom: 30px; line-height: 1.6; font-family: 'Inter', sans-serif; }

.book-price-section { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.book-price-section .price { font-size: 36px; font-weight: 700; color: #D4AF37; }
.price-note { font-size: 14px; color: #999; }

.btn-large { padding: 16px 40px; font-size: 16px; font-weight: 600; width: 100%; max-width: 400px; }

.book-actions { display: flex; flex-direction: column; gap: 12px; }

.book-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, 0.3); }
.feature-item { font-size: 15px; color: #94A3B8; }

.book-content { max-width: 900px; }
.book-content .description { line-height: 1.8; font-family: 'Inter', sans-serif; }
.book-content h4 { font-size: 24px; margin: 40px 0 20px; color: #FDFBF7; font-family: 'Playfair Display', serif; }
.book-content h5 { font-size: 20px; margin: 32px 0 16px; color: #FDFBF7; font-family: 'Playfair Display', serif; }
.book-content p { margin-bottom: 20px; color: #94A3B8; font-family: 'Inter', sans-serif; }
.book-content ul { margin: 20px 0 30px 20px; }
.book-content li { margin-bottom: 16px; line-height: 1.7; color: #94A3B8; font-family: 'Inter', sans-serif; }
.book-content em { color: #D4AF37; font-style: normal; font-weight: 600; }

@media (max-width: 968px) {
    .book-hero { grid-template-columns: 1fr; gap: 40px; }
    .book-cover-wrapper { position: static; text-align: center; }
    .book-cover-wrapper img { max-width: 300px; }
    .book-meta h1 { font-size: 2rem; }
    .btn-large { max-width: 100%; }
    .book-features { grid-template-columns: 1fr; }
}


/* Books Archive Page */
.books-archive { padding: 60px 0; background: #0F172A; }
.page-header { text-align: center; margin-bottom: 60px; }
.page-header h1 { font-size: 3rem; margin-bottom: 12px; font-family: 'Playfair Display', serif; color: #FDFBF7; }
.page-header p { font-size: 18px; color: #94A3B8; font-family: 'Inter', sans-serif; }

.categories-horizontal { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.category-column { }
.category-heading { font-size: 20px; margin-bottom: 20px; color: #FDFBF7; border-bottom: 2px solid var(--primary-color); padding-bottom: 8px; font-family: 'Playfair Display', serif; }
.books-vertical { display: flex; flex-direction: column; gap: 28px; }

.book-card-compact { text-align: center; transition: transform 0.3s; }
.book-card-compact:hover { transform: translateY(-8px); }
.book-card-compact a { text-decoration: none; color: inherit; display: block; }
.book-card-compact img { width: 100%; max-width: 160px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); margin-bottom: 12px; transition: box-shadow 0.3s; }
.book-card-compact:hover img { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.book-card-compact h3 { font-size: 14px; margin-bottom: 8px; line-height: 1.4; font-family: 'Inter', sans-serif; color: #FDFBF7; }
.book-card-compact .price { font-size: 18px; font-weight: 700; color: #D4AF37; }

/* Related Books Section */
.related-books { margin: 80px 0 60px; padding-top: 60px; border-top: 2px solid rgba(148, 163, 184, 0.3); }
.related-books h3 { text-align: center; font-size: 28px; margin-bottom: 40px; color: #FDFBF7; font-family: 'Playfair Display', serif; }
.related-books-grid { display: flex; align-items: center; justify-content: center; gap: 20px; max-width: 600px; margin: 0 auto; flex-wrap: wrap; }
.related-book-card { text-align: center; transition: transform 0.3s; flex: 0 0 200px; }
.related-book-card:hover { transform: translateY(-8px); }
.related-book-card a { text-decoration: none; color: inherit; display: block; }
.related-book-card img { width: 100%; max-width: 200px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.12); margin-bottom: 16px; transition: box-shadow 0.3s; }
.related-book-card:hover img { box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.related-book-card h4 { font-size: 16px; margin-bottom: 12px; line-height: 1.4; font-weight: 600; font-family: 'Inter', sans-serif; color: #FDFBF7; }
.related-book-card .price { font-size: 22px; font-weight: 700; color: #D4AF37; }
.plus-icon { font-size: 32px; color: var(--primary-color); font-weight: 300; }

@media (max-width: 768px) {
    .page-header h1 { font-size: 2rem; }
    .categories-horizontal { grid-template-columns: 1fr; gap: 48px; }
    .related-books { margin: 60px 0 40px; padding-top: 40px; }
    .related-books h3 { font-size: 24px; margin-bottom: 32px; }
    .related-books-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Books Carousel */
.books-carousel { position: relative; max-width: 1400px; margin: 0 auto; padding: 0 60px; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding: 20px 0; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .book-card { flex: 0 0 220px; text-decoration: none; color: inherit; cursor: pointer; display: flex; flex-direction: column; background: transparent; box-shadow: none; }
.carousel-track .book-card:hover { transform: translateY(-5px); box-shadow: none; }
.carousel-track .book-card .book-image { background: transparent; padding: 0; text-align: center; margin-bottom: 12px; }
.carousel-track .book-card .book-info { flex: 1; display: flex; flex-direction: column; padding: 0; text-align: center; }
.carousel-track .book-card .book-title { flex: 1; font-size: 16px; margin-bottom: 6px; line-height: 1.3; }
.carousel-track .book-card .book-rating { font-size: 13px; margin-bottom: 4px; }
.carousel-track .book-card .book-rating .stars { color: #f59e0b; letter-spacing: 1px; }
.carousel-track .book-card .book-rating .rating-number { color: #666; font-weight: 500; }
.carousel-track .book-card .book-format { font-size: 13px; color: #94A3B8; margin-bottom: 6px; font-family: 'Inter', sans-serif; }
.carousel-track .book-card .book-price { margin-top: auto; margin-bottom: 0; color: #D4AF37; }
.carousel-track .book-card .price-currency { font-size: 14px; vertical-align: super; }
.carousel-track .book-card .price-whole { font-size: 22px; font-weight: 700; }
.carousel-track .book-card .price-decimal { font-size: 14px; vertical-align: super; }
.carousel-track .book-image img { max-width: 140px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: #FDFBF7; border: 2px solid var(--primary-color); color: var(--primary-color); width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; transition: var(--transition); z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,0.1); font-family: 'Inter', sans-serif; }
.carousel-btn:hover { background: var(--primary-color); color: white; transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

@media (max-width: 768px) {
    .books-carousel { padding: 0; }
    .carousel-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; overflow-x: visible; }
    .carousel-track .book-card { flex: none; }
    .carousel-track .book-image img { max-width: 140px; }
    .carousel-track .book-card .book-title { font-size: 14px; }
    .carousel-track .book-card .book-rating { font-size: 12px; }
    .carousel-track .book-card .book-format { font-size: 12px; }
    .carousel-btn { display: none; }
}
