/* ============================================
   SIR PULOH PUBLICATION - E-Commerce System
   Minimalist Design System
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-text-dark: #333333;
    --color-text-medium: #666666;
    --color-text-light: #999999;
    --color-border: #E0E0E0;
    --color-bg-light: #F5F5F5;
    --color-overlay: rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
}

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

ul {
    list-style: none;
}

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

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 1px;
}

.navbar-logo span {
    font-weight: 400;
    color: var(--color-text-medium);
}

/* Nav Links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text-dark);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-text-dark);
}

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

.nav-link.active {
    color: var(--color-text-dark);
}

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

/* Cart Icon */
.navbar-cart {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-medium);
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: var(--transition-fast);
}

.navbar-cart:hover {
    color: var(--color-text-dark);
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Navbar Actions (Cart + Login) */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Login Button */
.navbar-login-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2d5a27;
    background: transparent;
    border: 1px solid #2d5a27;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.navbar-login-btn:hover {
    color: var(--color-white);
    background-color: #2d5a27;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomForward 30s linear infinite;
}

@keyframes zoomForward {
    0% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-xl);
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 400;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.hero-divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-white);
    margin: 0 auto;
}

.hero-btn {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 12px 32px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.hero-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ============================================
   ABOUT SECTION (WHO WE ARE) - Distinct Design
   ============================================ */
.about-section {
    min-height: 100vh;
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: #F2F8F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content {
    margin-bottom: var(--spacing-lg);
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 3px;
    margin-bottom: var(--spacing-md);
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    line-height: 2;
}

.about-image {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: cover;
    border-radius: 30px;
    /* Same shadow + bevel as author images */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.1),
        0 15px 30px rgba(0, 0, 0, 0.18),
        0 35px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* ============================================
   AUTHOR SECTION - Alternating Layout
   ============================================ */
.author-block {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: var(--color-white);
}

.author-block:nth-child(even) {
    background-color: #F2F8F2;
}

.author-content {
    padding: var(--spacing-xl);
    padding-left: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.author-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.author-name {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.author-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-text-dark), transparent);
    margin-bottom: var(--spacing-md);
}

.author-description {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-medium);
    line-height: 2;
    max-width: 450px;
}

.author-symbol {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-md);
}

.author-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.author-image img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
    border-radius: 30px;
    /* Enhanced shadow + bevel effect */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
}

.author-image img:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.1),
        0 15px 30px rgba(0, 0, 0, 0.18),
        0 35px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Author Placeholder - Gradient fallback when no image */
.author-placeholder {
    width: 300px;
    height: 400px;
    border-radius: 30px;
    background: linear-gradient(135deg, #2d5a27 0%, #1a2e1a 50%, #0d170d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.author-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.author-placeholder::after {
    content: 'AUTHOR';
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.author-placeholder:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.1),
        0 15px 30px rgba(0, 0, 0, 0.18),
        0 35px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Author Inverse: Image Left, Text Right */
.author-inverse {
    direction: rtl;
}

.author-inverse > * {
    direction: ltr;
}

.author-inverse .author-image img {
    border-radius: 30px;
}

.author-inverse .author-content {
    text-align: right;
    align-items: flex-end;
    padding-left: var(--spacing-xl);
    padding-right: 25%;
}

.author-inverse .author-divider {
    background: linear-gradient(270deg, var(--color-text-dark), transparent);
}

.author-inverse .author-description {
    margin-left: auto;
}

/* ============================================
   BOOK SECTION - Featured Book with Slider
   ============================================ */
.book-section {
    background-color: var(--color-white);
}

/* Featured Book Slider Container */
.featured-book-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.featured-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.featured-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Featured Book Layout (Original Style) */
.featured-book {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--spacing-xl);
}

.featured-book-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.featured-book-image img {
    max-height: 70vh;
    width: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
}

.featured-book-image img:hover {
    transform: translateY(-5px) rotate(2deg);
}

.featured-book-content {
    padding: var(--spacing-xl);
    padding-right: 15%;
}

.featured-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.featured-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-text-dark), transparent);
    margin-bottom: var(--spacing-md);
}

.featured-description {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-medium);
    line-height: 2;
    margin-bottom: var(--spacing-md);
}

.featured-author {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-xs);
}

.featured-author span {
    color: var(--color-text-dark);
    font-weight: 500;
}

.featured-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d5a27;
    margin-bottom: var(--spacing-md);
}

.featured-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    background-color: #2d5a27;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.featured-btn:hover {
    background-color: #1e3d1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

/* Featured Slider Navigation Arrows */
.featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    transition: var(--transition-normal);
    z-index: 10;
}

.featured-arrow:hover {
    background: #2d5a27;
    color: var(--color-white);
    border-color: #2d5a27;
}

.featured-prev {
    left: 20px;
}

.featured-next {
    right: 20px;
}

/* Featured Slider Dot Indicators */
.featured-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.featured-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.featured-dot:hover {
    background: var(--color-text-light);
}

.featured-dot.active {
    background: #2d5a27;
    transform: scale(1.2);
}

/* Featured Empty State */
.featured-empty {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl);
    background-color: #F2F8F2;
}

.featured-empty-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.featured-empty-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-medium);
    line-height: 2;
    margin-bottom: var(--spacing-md);
}

/* Responsive for Featured Book Slider */
@media (max-width: 900px) {
    .featured-book {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .featured-book-image {
        order: -1;
        padding: var(--spacing-md);
    }

    .featured-book-image img {
        max-height: 50vh;
    }

    .featured-book-content {
        padding: var(--spacing-md);
        padding-right: var(--spacing-md);
        text-align: center;
    }

    .featured-divider {
        margin: 0 auto var(--spacing-md);
    }

    .featured-title {
        font-size: 1.8rem;
    }

    .featured-arrow {
        width: 40px;
        height: 40px;
    }

    .featured-prev {
        left: 10px;
    }

    .featured-next {
        right: 10px;
    }

    .featured-dots {
        bottom: 20px;
    }
}

/* ============================================
   PAGE FADE-IN ANIMATION
   ============================================ */
.page-fade-in {
    animation: pageFadeIn 0.6s ease-out forwards;
}

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

/* ============================================
   BOOK LISTING PAGE STYLES
   ============================================ */
.books-page {
    min-height: 100vh;
    padding-top: 80px;
}

.books-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Sidebar Filter */
.books-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--color-white);
    border-radius: 15px;
    padding: var(--spacing-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filter-section {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-option:hover {
    background: #F2F8F2;
}

.filter-option.active {
    background: #2d5a27;
    color: var(--color-white);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: #2d5a27;
}

/* Price Range Inputs - Stacked Layout */
.price-range-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.price-input:focus {
    outline: none;
    border-color: #2d5a27;
}

.price-range-dash {
    color: var(--color-text-medium);
    font-size: 1rem;
}

.filter-btn {
    width: 100%;
    padding: 12px;
    background: #2d5a27;
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: var(--spacing-sm);
}

.filter-btn:hover {
    background: #1e3d1a;
}

.filter-clear {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--color-text-medium);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 8px;
}

.filter-clear:hover {
    border-color: var(--color-text-dark);
    color: var(--color-text-dark);
}

/* Books Grid */
.books-content {
    background: var(--color-white);
    border-radius: 15px;
    padding: var(--spacing-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.books-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.books-count {
    font-size: 0.9rem;
    color: var(--color-text-medium);
}

.books-sort select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.book-listing-card {
    background: #F9F9F9;
    border-radius: 12px;
    padding: var(--spacing-sm);
    transition: var(--transition-normal);
    animation: cardFadeIn 0.4s ease-out forwards;
    opacity: 0;
}

.book-listing-card:nth-child(1) { animation-delay: 0.05s; }
.book-listing-card:nth-child(2) { animation-delay: 0.1s; }
.book-listing-card:nth-child(3) { animation-delay: 0.15s; }
.book-listing-card:nth-child(4) { animation-delay: 0.2s; }
.book-listing-card:nth-child(5) { animation-delay: 0.25s; }
.book-listing-card:nth-child(6) { animation-delay: 0.3s; }
.book-listing-card:nth-child(7) { animation-delay: 0.35s; }
.book-listing-card:nth-child(8) { animation-delay: 0.4s; }
.book-listing-card:nth-child(9) { animation-delay: 0.45s; }
.book-listing-card:nth-child(10) { animation-delay: 0.5s; }
.book-listing-card:nth-child(11) { animation-delay: 0.55s; }
.book-listing-card:nth-child(12) { animation-delay: 0.6s; }

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

.book-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.book-listing-image {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.book-listing-image img {
    height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.book-listing-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.book-listing-author {
    font-size: 0.8rem;
    color: var(--color-text-medium);
    margin-bottom: 8px;
}

.book-listing-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d5a27;
    margin-bottom: var(--spacing-xs);
}

.book-listing-actions {
    display: flex;
    gap: 8px;
}

.book-add-cart-btn {
    flex: 1;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-white);
    background-color: #2d5a27;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.book-add-cart-btn:hover {
    background-color: #1e3d1a;
}

/* Books Empty State */
.books-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 400px;
}

.books-empty-icon {
    color: #2d5a27;
    opacity: 0.6;
    margin-bottom: var(--spacing-md);
}

.books-empty-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.books-empty-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-medium);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    max-width: 400px;
}

.books-empty-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    background-color: #2d5a27;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.books-empty-btn:hover {
    background-color: #1e3d1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

/* Responsive for Books Page */
@media (max-width: 900px) {
    .books-layout {
        grid-template-columns: 1fr;
    }

    .books-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 600px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .slideshow-arrow {
        width: 36px;
        height: 36px;
    }

    .slide {
        flex-direction: column;
        align-items: center;
    }

    .slide-book-card {
        flex: 0 0 auto;
        width: 90%;
        max-width: 280px;
    }
}

/* ============================================
   FOOTER - Elegant (Author Style)
   ============================================ */
.footer {
    background-color: #1a2e1a;
    padding: 3rem var(--spacing-md);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.footer-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 0 auto 1rem;
}

.footer-description {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
    margin-bottom: 0.5rem;
}

.footer-symbol {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: 1rem;
}

.footer-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-policy {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-policy a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.footer-policy a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* ============================================
   GENERIC SECTIONS (Authors, Books, etc.)
   ============================================ */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    background-color: var(--color-white);
}

.section-alt {
    background-color: #F2F8F2;
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 3px;
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1rem;
    color: var(--color-text-medium);
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: var(--spacing-sm);
    }

    .navbar-nav {
        gap: var(--spacing-sm);
    }

    .nav-link {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .navbar-logo {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-image img {
        height: 280px;
    }

    /* Author responsive */
    .author-block {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .author-image {
        order: -1;
        padding: var(--spacing-md);
    }

    .author-image img {
        max-height: 50vh;
        border-radius: 20px;
    }

    .author-inverse .author-image img {
        border-radius: 20px;
    }

    .author-inverse .author-content {
        text-align: center;
        align-items: center;
    }

    .author-inverse .author-divider {
        background: linear-gradient(90deg, transparent, var(--color-text-dark), transparent);
    }

    .author-inverse .author-description {
        margin-left: 0;
    }

    .author-content {
        padding: var(--spacing-lg) var(--spacing-md);
        align-items: center;
        text-align: center;
    }

    .author-divider {
        background: linear-gradient(90deg, transparent, var(--color-text-dark), transparent);
    }

    .author-name {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .navbar-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pagination li a:hover {
    background: #f3f4f6;
}

.pagination li.active span {
    background: #2d5a27;
    color: #fff;
    border-color: #2d5a27;
}

.pagination li.disabled span {
    color: #ccc;
    border-color: #eee;
    cursor: default;
}

/* Hidden on desktop — shown by mobile.css */
.navbar-toggle,
.mobile-tab-bar,
.mobile-login-item,
.navbar-profile-icon,
.tracking-filter-dropdown {
    display: none;
}
