/* ============================================
   EcoOfYou - Premium Book Store Styles
   Design System: Copper & Slate + Custom Gold/Green
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - From Logo */
    --gold-primary: #C9A227;
    --gold-light: #D4AF37;
    --gold-dark: #B8860B;
    --green-primary: #1B4D3E;
    --green-dark: #0D3329;
    --green-light: #2D6A4F;
    
    /* Supporting Colors */
    --slate-dark: #2F3640;
    --slate-medium: #4A5568;
    --slate-light: #718096;
    --cream: #F5F0EB;
    --cream-dark: #E8E0D5;
    --white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--slate-dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 55px;
    width: auto;
    transition: var(--transition-medium);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--slate-medium);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition-medium);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-medium);
    transition: var(--transition-fast);
    position: relative;
}

.icon-btn:hover {
    background: var(--cream-dark);
    color: var(--green-primary);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--gold-primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    padding: 0.6rem 1.5rem;
    background: var(--green-primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    transition: var(--transition-medium);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--slate-dark);
    transition: var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(27, 77, 62, 0.06) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--slate-dark);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
    color: var(--green-primary);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(201, 162, 39, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--slate-medium);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-gold {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.4);
}

.btn-outline {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--green-primary);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--green-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-medium);
}

.btn-outline:hover {
    background: var(--green-primary);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--slate-light);
    font-weight: 500;
}

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

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.book-showcase {
    position: relative;
    width: 400px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card {
    position: relative;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.book-card.featured {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-primary) 100%);
    border-radius: 4px 0 0 4px;
    transform: translateX(-20px) rotateY(90deg);
}

.book-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%);
    border-radius: 0 8px 8px 0;
    box-shadow: 
        -10px 10px 30px rgba(0,0,0,0.2),
        inset 0 0 60px rgba(201, 162, 39, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-radius: 4px;
}

.book-art {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 40px rgba(201, 162, 39, 0.4);
}

.book-art::after {
    content: '🌿';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float-around 8s ease-in-out infinite;
}

.float-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 20%;
    right: 5%;
    animation-delay: 2s;
}

.float-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

/* ============================================
   Categories Section
   ============================================ */
.categories {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--slate-dark);
    margin-bottom: var(--space-xs);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--green-primary));
    transform: scaleX(0);
    transition: var(--transition-medium);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold-primary);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.category-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--slate-dark);
    margin-bottom: var(--space-xs);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--slate-light);
    margin-bottom: var(--space-md);
}

.category-arrow {
    font-size: 1.5rem;
    color: var(--gold-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-medium);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Featured Books Section
   ============================================ */
.featured-books {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.book-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.book-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.book-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.book-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-emoji {
    font-size: 4rem;
    opacity: 0.9;
}

.book-actions {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-medium);
}

.book-item:hover .book-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--slate-medium);
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: var(--gold-primary);
    color: var(--white);
}

.book-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 0.3rem 0.8rem;
    background: var(--gold-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.book-info {
    padding: var(--space-md);
}

.book-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-dark);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.book-author {
    font-size: 0.9rem;
    color: var(--slate-light);
    margin-bottom: var(--space-xs);
}

.book-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.stars {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--slate-light);
}

.book-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-primary);
}

.original-price {
    font-size: 0.9rem;
    color: var(--slate-light);
    text-decoration: line-through;
}

.btn-add-cart {
    width: 100%;
    padding: 0.8rem;
    background: var(--cream);
    color: var(--green-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--cream-dark);
    transition: var(--transition-fast);
}

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

.section-footer {
    text-align: center;
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--slate-dark);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-full);
    transition: var(--transition-medium);
}

.btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-dark);
    transform: translateY(-2px);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--space-2xl) 0;
    background: var(--green-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.feature-item {
    text-align: center;
    color: var(--white);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    transition: var(--transition-medium);
}

.feature-item:hover .feature-icon {
    background: var(--gold-primary);
    color: var(--green-primary);
    transform: translateY(-5px);
}

.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--slate-dark);
    margin-bottom: var(--space-xs);
}

.newsletter-text p {
    color: var(--slate-medium);
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    flex: 1;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.newsletter-form button {
    padding: 1rem 2rem;
    white-space: nowrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--slate-dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--gold-primary);
    color: var(--slate-dark);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-20px);
    }
}

@keyframes float-around {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -15px);
    }
    50% {
        transform: translate(-5px, 10px);
    }
    75% {
        transform: translate(15px, 5px);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(80px + var(--space-2xl));
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: var(--space-2xl);
    }
    
    .book-showcase {
        width: 300px;
        height: 400px;
    }
    
    .book-card {
        width: 220px;
        height: 300px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions .btn-primary {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-gold,
    .btn-outline {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .categories-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
}