/* ==========================================
   Best Bookshelf Australia - Styles
   Modern, Clean, Professional Design
   ========================================== */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --accent: #10b981;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

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

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

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

select {
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

.highlight {
    color: var(--primary);
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
}

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

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-amazon {
    background: #ff9900;
    color: var(--dark);
}

.btn-amazon:hover {
    background: #e88b00;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, #eff6ff 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Bookshelf Illustration */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bookshelf-illustration {
    width: 350px;
    height: 400px;
    background: linear-gradient(180deg, #8B4513 0%, #6B3410 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.bookshelf-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 10%, transparent 90%, rgba(0,0,0,0.1) 100%);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.shelf {
    flex: 1;
    background: #5D2E0C;
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
    gap: 0.5rem;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2);
}

.book {
    border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.book-1 { width: 25px; height: 70px; background: linear-gradient(135deg, #3b82f6, #2563eb); }
.book-2 { width: 20px; height: 65px; background: linear-gradient(135deg, #ef4444, #dc2626); }
.book-3 { width: 28px; height: 75px; background: linear-gradient(135deg, #10b981, #059669); }
.book-4 { width: 22px; height: 60px; background: linear-gradient(135deg, #f59e0b, #d97706); }
.book-5 { width: 25px; height: 68px; background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.book-6 { width: 18px; height: 72px; background: linear-gradient(135deg, #ec4899, #db2777); }
.book-7 { width: 24px; height: 58px; background: linear-gradient(135deg, #06b6d4, #0891b2); }
.book-8 { width: 26px; height: 66px; background: linear-gradient(135deg, #84cc16, #65a30d); }
.book-9 { width: 20px; height: 70px; background: linear-gradient(135deg, #f97316, #ea580c); }
.book-10 { width: 23px; height: 62px; background: linear-gradient(135deg, #6366f1, #4f46e5); }

.plant {
    width: 35px;
    height: 50px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50% 50% 5px 5px;
    margin-left: auto;
    position: relative;
}

.plant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 15px;
    background: #92400e;
    border-radius: 3px;
}

.frame {
    width: 45px;
    height: 55px;
    background: var(--white);
    border: 3px solid #d4af37;
    border-radius: 2px;
    margin: 0 0.5rem;
}

/* ==========================================
   Products Section
   ========================================== */
.products-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-500);
}

/* Product Controls */
.products-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.filter-select {
    padding: 0.625rem 2rem 0.625rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.25rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
}

.view-btn {
    padding: 0.5rem;
    background: transparent;
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.view-btn:hover {
    color: var(--gray-600);
}

.view-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-slow);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}

.product-image {
    height: 220px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
}

.product-badge.bestseller {
    background: var(--secondary);
    color: var(--dark);
}

.product-badge.new {
    background: var(--accent);
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.125rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--gray-600);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-count {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.product-price .price-range {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.btn-compare {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-compare:hover {
    background: var(--gray-200);
}

.btn-compare.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Products Table */
.products-table-container {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.products-table th,
.products-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.products-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.products-table tbody tr:hover {
    background: var(--gray-50);
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.table-product-name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-product-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.table-product-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.table-product-info span {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.no-results p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ==========================================
   Quiz Section
   ========================================== */
.quiz-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.quiz-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quiz-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quiz-header p {
    color: var(--gray-500);
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--primary-light);
    background: #eff6ff;
}

.quiz-option.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.quiz-results {
    text-align: center;
}

.quiz-results h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.quiz-recommendation .product-card {
    max-width: 350px;
    margin: 0 auto 2rem;
}

/* ==========================================
   Compare Section
   ========================================== */
.compare-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.compare-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.compare-slot {
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.compare-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
}

.compare-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.compare-table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.compare-table th {
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
}

.compare-table th:first-child {
    width: 180px;
    color: var(--gray-500);
    font-weight: 500;
}

.compare-table td:first-child {
    font-weight: 500;
    color: var(--gray-600);
}

.compare-table tbody tr:hover {
    background: var(--gray-50);
}

.compare-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
}

.compare-empty p {
    font-size: 1.125rem;
    color: var(--gray-500);
}

/* ==========================================
   SEO Section
   ========================================== */
.seo-section {
    padding: 5rem 0;
    background: var(--white);
}

.seo-content h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.seo-article {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.seo-article h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.seo-article p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.seo-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-radius: var(--radius-xl);
}

.seo-cta p {
    font-size: 1.0625rem;
    color: var(--gray-700);
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 300px;
}

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

.footer-column h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--gray-400);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.affiliate-disclosure {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

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

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

    .hero-image {
        order: -1;
    }

    .bookshelf-illustration {
        width: 280px;
        height: 320px;
    }

    .compare-selector {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 7rem 0 3rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }

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

    .quiz-container {
        padding: 2rem 1.5rem;
    }

    .quiz-header h2 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .hero-content h1 {
        font-size: 1.875rem;
    }

    .bookshelf-illustration {
        width: 220px;
        height: 260px;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .quiz-navigation .btn {
        width: 100%;
    }

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

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

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
