/* =====================================================
   SILK PILLOWCASE AUSTRALIA - STYLES
   Modern, elegant design for premium silk products
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #8B5A6B;
    --primary-dark: #6B4253;
    --primary-light: #C4A0A8;
    --secondary: #D4AF37;
    --secondary-light: #F5E6B0;
    --accent: #2C3E50;
    --background: #FDFBF9;
    --background-alt: #F5F0EB;
    --text: #2D2A26;
    --text-light: #6B6560;
    --text-muted: #9B958E;
    --white: #FFFFFF;
    --border: #E5DFD8;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-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: 16px;
    --radius-xl: 24px;
    --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 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

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

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

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

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

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

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

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 90, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 107, 0.4);
    color: var(--white);
}

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

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

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

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

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

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

.logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo-au {
    background: var(--secondary);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-left: var(--space-xs);
}

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

.nav-links a {
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
}

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

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

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem var(--space-lg) var(--space-3xl);
    background: linear-gradient(135deg, var(--background) 0%, var(--background-alt) 50%, #F0E6E0 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(139, 90, 107, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary-light);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

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

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--secondary-light);
    z-index: -1;
}

.hero > p, .hero-content > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

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

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

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

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

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

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.card-icon {
    font-size: 1.5rem;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: -5%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 15%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.0625rem;
}

/* Benefits Section */
.benefits {
    background: var(--white);
}

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

.benefit-card {
    background: var(--background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-dark);
}

.benefit-card h3 {
    margin-bottom: var(--space-sm);
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Products Section */
.products {
    background: var(--background-alt);
}

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

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

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

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

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

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

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

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

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

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

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

.view-btn svg {
    width: 20px;
    height: 20px;
}

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

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

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.list-view .product-card {
    flex-direction: row;
}

.product-image {
    position: relative;
    padding-top: 75%;
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.5;
}

.list-view .product-image {
    flex-shrink: 0;
    width: 200px;
    padding-top: 0;
    height: 150px;
}

.product-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

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

.badge-premium {
    background: var(--primary);
    color: var(--white);
}

.badge-value {
    background: var(--success);
    color: var(--white);
}

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

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

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

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.spec-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--background);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

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

.stars {
    color: var(--secondary);
    font-size: 0.875rem;
    letter-spacing: 2px;
}

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

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

.price-current {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.price-original {
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-features {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    flex: 1;
}

.product-features li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xs);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.product-cta {
    margin-top: auto;
}

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

/* Products CTA */
.products-cta {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
}

.products-cta p {
    margin-bottom: var(--space-lg);
    font-size: 1.0625rem;
    color: var(--text-light);
}

/* Quiz Section */
.quiz-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.quiz-section .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.quiz-section .section-header h2 {
    color: var(--white);
}

.quiz-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-start, .quiz-questions, .quiz-results {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    color: var(--text);
    text-align: center;
}

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

.quiz-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.quiz-intro h3 {
    margin-bottom: var(--space-sm);
}

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

.quiz-features {
    text-align: left;
    max-width: 250px;
    margin: 0 auto var(--space-xl);
}

.quiz-features li {
    padding: var(--space-sm) 0;
    color: var(--text-light);
}

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

.progress-bar {
    height: 6px;
    background: var(--background-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

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

.question-card h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

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

.quiz-option {
    padding: var(--space-lg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-align: left;
    transition: all var(--transition-fast);
    font-size: 0.9375rem;
}

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

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(139, 90, 107, 0.1);
}

.results-header {
    margin-bottom: var(--space-xl);
}

.results-badge {
    display: inline-block;
    background: var(--secondary-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.results-product {
    background: var(--background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.results-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Compare Section */
.compare-section {
    background: var(--white);
}

.compare-controls {
    margin-bottom: var(--space-xl);
}

.compare-select-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.compare-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.compare-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--background);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.compare-checkbox:hover {
    background: var(--background-alt);
}

.compare-checkbox input {
    accent-color: var(--primary);
}

.compare-checkbox span {
    font-size: 0.875rem;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.compare-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: var(--white);
}

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

.compare-table th {
    background: var(--background);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    position: sticky;
    top: 0;
}

.compare-table th:first-child {
    background: var(--primary);
    color: var(--white);
}

.compare-table td:first-child {
    font-weight: 500;
    color: var(--text);
    background: var(--background-alt);
}

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

.compare-table .best {
    color: var(--success);
    font-weight: 600;
}

.compare-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-light);
}

.legend-icon {
    font-size: 1rem;
}

.legend-icon.best {
    color: var(--success);
}

.legend-icon.good {
    color: var(--primary);
}

.legend-icon.average {
    color: var(--text-muted);
}

/* Guide Section */
.guide-section {
    background: var(--background-alt);
}

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

.guide-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.guide-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.guide-card p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.guide-card ul {
    font-size: 0.9375rem;
}

.guide-card li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-light);
}

.guide-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.guide-card li strong {
    color: var(--text);
}

/* SEO Section */
.seo-section {
    background: var(--white);
    border-top: 1px solid var(--border);
}

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

.seo-content h2 {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.seo-content h3 {
    color: var(--primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

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

/* Footer */
.footer {
    background: var(--accent);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

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

.footer-brand .logo span {
    color: var(--white);
}

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

.footer-links h4 {
    color: var(--white);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

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

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

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

.affiliate-notice {
    margin-top: var(--space-sm);
    opacity: 0.6;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero {
        padding-top: 6rem;
        min-height: auto;
    }

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

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

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .list-view .product-card {
        flex-direction: column;
    }

    .list-view .product-image {
        width: 100%;
        padding-top: 75%;
        height: auto;
    }

    .compare-table {
        font-size: 0.8125rem;
    }

    .compare-table th,
    .compare-table td {
        padding: var(--space-sm) var(--space-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quiz-start, .quiz-questions, .quiz-results {
        padding: var(--space-xl);
    }
}

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

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

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

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

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

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

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }
.product-card:nth-child(7) { animation-delay: 0.6s; }
.product-card:nth-child(8) { animation-delay: 0.7s; }

/* Print Styles */
@media print {
    .navbar, .hero-visual, .quiz-section, .filters, .view-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
