/* ===================================
   Chest of Drawers Australia - Styles
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #8B4513;
    --color-primary-dark: #6B3410;
    --color-primary-light: #A0522D;
    --color-secondary: #D2691E;
    --color-accent: #FFD700;

    --color-text: #2D3748;
    --color-text-light: #4A5568;
    --color-text-muted: #718096;

    --color-bg: #FAFAFA;
    --color-bg-alt: #F7F3EF;
    --color-white: #FFFFFF;

    --color-border: #E2E8F0;
    --color-border-dark: #CBD5E0;

    --color-success: #48BB78;
    --color-warning: #ECC94B;
    --color-error: #F56565;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

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

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    z-index: 100;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Utility Classes */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.logo:hover {
    color: var(--color-text);
}

.logo-icon {
    flex-shrink: 0;
}

.logo-au {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

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

.nav-menu a {
    color: var(--color-text-light);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-white) 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Sections */
.section {
    padding: var(--space-3xl) 0;
}

.section:nth-child(even) {
    background: var(--color-bg-alt);
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

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

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

.view-toggle {
    display: flex;
    gap: var(--space-xs);
    background: var(--color-white);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.view-btn {
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

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

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image {
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image svg {
    width: 60%;
    height: 60%;
    opacity: 0.9;
}

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

.product-badge.budget {
    background: var(--color-success);
}

.product-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.product-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.product-specs {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

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

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--color-accent);
}

.star.empty {
    color: var(--color-border-dark);
}

.rating-count {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.product-price span {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.product-cta {
    display: flex;
    gap: var(--space-sm);
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

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

.compare-btn {
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.compare-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

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

.products-table th,
.products-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.products-table th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.products-table tbody tr:hover {
    background: var(--color-bg);
}

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

.table-product {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 250px;
}

.table-product-image {
    width: 60px;
    height: 60px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.table-product-image svg {
    width: 70%;
    height: 70%;
}

.table-product-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

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

/* Quiz Section */
.quiz-section {
    background: var(--color-bg-alt);
}

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

.quiz-progress {
    margin-bottom: var(--space-xl);
}

.progress-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
    width: 20%;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.quiz-content {
    min-height: 300px;
}

.quiz-question {
    margin-bottom: var(--space-xl);
}

.quiz-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.quiz-options {
    display: grid;
    gap: var(--space-md);
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.quiz-option.selected {
    border-color: var(--color-primary);
    background: rgba(139, 69, 19, 0.05);
}

.quiz-option input {
    display: none;
}

.quiz-option .radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border-dark);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition-fast);
}

.quiz-option.selected .radio {
    border-color: var(--color-primary);
}

.quiz-option.selected .radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
}

.quiz-option span {
    font-weight: 500;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

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

.quiz-results h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.quiz-results p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.quiz-recommendations {
    display: grid;
    gap: var(--space-md);
}

.quiz-recommendation {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    text-align: left;
}

.quiz-recommendation-image {
    width: 80px;
    height: 80px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quiz-recommendation-image svg {
    width: 70%;
    height: 70%;
}

.quiz-recommendation-info {
    flex: 1;
}

.quiz-recommendation-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.quiz-recommendation-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.quiz-restart {
    margin-top: var(--space-xl);
}

/* Compare Section */
.compare-selector {
    margin-bottom: var(--space-xl);
}

.compare-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.compare-slot {
    background: var(--color-white);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.compare-slot:hover {
    border-color: var(--color-primary-light);
}

.compare-slot.filled {
    border-style: solid;
    border-color: var(--color-border);
}

.add-compare-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    padding: var(--space-lg);
    transition: color var(--transition-fast);
}

.add-compare-btn:hover {
    color: var(--color-primary);
}

.add-compare-btn span {
    font-weight: 500;
}

.compare-slot-product {
    padding: var(--space-lg);
    text-align: center;
    width: 100%;
}

.compare-slot-product .product-image {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-md);
}

.compare-slot-product h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.compare-slot-product .remove-btn {
    font-size: 0.8125rem;
    color: var(--color-error);
    margin-top: var(--space-sm);
}

.compare-slot-product .remove-btn:hover {
    text-decoration: underline;
}

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

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

.compare-table th,
.compare-table td {
    padding: var(--space-md);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.compare-table th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--color-bg);
}

.compare-table .highlight {
    background: rgba(139, 69, 19, 0.05);
    font-weight: 600;
    color: var(--color-primary);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    padding: var(--space-sm);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
}

.modal-products {
    display: grid;
    gap: var(--space-md);
}

.modal-product {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-product:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.modal-product-image {
    width: 60px;
    height: 60px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-product-image svg {
    width: 70%;
    height: 70%;
}

.modal-product-info {
    flex: 1;
}

.modal-product-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.modal-product-info span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Guide Section */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.guide-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.guide-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.guide-icon {
    width: 64px;
    height: 64px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.guide-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.guide-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* SEO Section */
.seo-section {
    background: var(--color-white);
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.seo-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.seo-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
    line-height: 1.7;
}

.seo-content strong {
    color: var(--color-text);
}

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

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

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

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

.footer-column h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

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

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

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

.affiliate-disclosure {
    margin-top: var(--space-sm);
    font-size: 0.8125rem !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .compare-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .compare-slots .compare-slot:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

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

    .nav-menu a {
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }

    .nav-menu a:hover {
        background: var(--color-bg);
    }

    .hero {
        padding: var(--space-2xl) 0;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .hero-stats {
        gap: var(--space-lg);
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

    .filters {
        overflow-x: auto;
        padding-bottom: var(--space-sm);
        flex-wrap: nowrap;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .view-toggle {
        align-self: flex-end;
    }

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

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

    .compare-slots .compare-slot:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .quiz-container {
        padding: var(--space-lg);
    }

    .quiz-nav {
        flex-direction: column;
        gap: var(--space-md);
    }

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

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

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

@media (max-width: 480px) {
    .products-table th,
    .products-table td {
        padding: var(--space-sm);
        font-size: 0.8125rem;
    }

    .table-product {
        min-width: 180px;
    }

    .table-product-image {
        width: 40px;
        height: 40px;
    }

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

/* Print Styles */
@media print {
    .header,
    .hero-cta,
    .products-controls,
    .quiz-section,
    .compare-section,
    .footer {
        display: none;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
