/* =====================================================
   Dress Hire Australia - Styles
   A modern, elegant design for dress rental discovery
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #9d4e8c;
    --primary-dark: #7a3d6d;
    --primary-light: #c77db8;
    --secondary: #f5e6e8;
    --accent: #d4a574;
    --accent-dark: #b8956a;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Typography */
    --font-display: '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;

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

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

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms 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(--gray-800);
    background-color: var(--white);
    -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);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

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

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

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

.btn-outline {
    background: transparent;
    color: var(--gray-600);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

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

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

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

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

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

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

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

.nav-links a {
    color: var(--gray-600);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--secondary) 0%, #fff 50%, #fdf2f4 100%);
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    max-width: 560px;
}

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

.hero-decoration {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
}

/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

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

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

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

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

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

/* Products Section */
.products-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.products-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    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-sm);
}

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

.filter-group select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
    min-width: 140px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(157, 78, 140, 0.1);
}

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

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--gray-500);
    transition: all var(--transition-fast);
}

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

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

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

/* Product Emoji Display */
.product-emoji {
    position: relative;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    transition: all var(--transition-base);
}

.emoji-icon {
    font-size: 5rem;
    transition: transform var(--transition-slow);
}

.product-card:hover .emoji-icon {
    transform: scale(1.15);
}

/* Table emoji */
.table-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 80px;
    font-size: 2.5rem;
    border-radius: var(--radius-sm);
}

/* Compare slot emoji */
.compare-slot-emoji {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-slot-emoji .emoji-icon {
    font-size: 4rem;
}

/* Quiz result emoji */
.quiz-result-emoji {
    width: 150px;
    height: 200px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-result-emoji .emoji-icon {
    font-size: 5rem;
}

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

.product-compare-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    font-size: 1rem;
}

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

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

.product-info {
    padding: var(--space-lg);
}

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

.product-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
    line-height: 1.4;
}

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

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

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

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

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

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

.product-actions .btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

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

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

.products-table th {
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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


.table-name {
    font-weight: 500;
    color: var(--gray-800);
}

.table-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--secondary);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.table-compare-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

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

/* Quiz Section */
.quiz-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--secondary) 100%);
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.quiz-intro {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.quiz-intro-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.quiz-intro h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.quiz-intro p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.quiz-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

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

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

.quiz-question h4 {
    font-size: 1.25rem;
    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(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

.quiz-option-icon {
    font-size: 1.5rem;
}

.quiz-option-text {
    font-weight: 500;
    color: var(--gray-800);
}

.quiz-results {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

.quiz-results h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xl);
    color: var(--primary);
}

.quiz-result-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}


.quiz-result-card h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.quiz-result-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

/* Compare Section */
.compare-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.compare-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.compare-slot {
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    overflow: hidden;
}

.compare-slot.empty:hover {
    border-color: var(--primary);
    background: var(--secondary);
}

.compare-slot-empty {
    text-align: center;
    color: var(--gray-400);
    padding: var(--space-xl);
}

.plus-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-sm);
}

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

.compare-slot-content {
    width: 100%;
}


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

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

.compare-slot-price {
    color: var(--primary);
    font-weight: 600;
}

.compare-slot-remove {
    width: 100%;
    padding: var(--space-sm);
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.compare-slot-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-xl);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.compare-table th,
.compare-table td {
    padding: var(--space-md);
    text-align: center;
    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,
.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--gray-50);
}

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

#clear-compare-btn {
    display: block;
    margin: 0 auto;
}

/* SEO Section */
.seo-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

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

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

.seo-block {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

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

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

.seo-cta {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
}

.seo-cta h3 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.seo-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.footer-brand p {
    margin-top: var(--space-md);
    font-size: 0.9375rem;
    max-width: 280px;
}

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

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

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

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

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

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.affiliate-disclosure {
    font-size: 0.8125rem;
    color: var(--gray-500);
    max-width: 700px;
    margin: 0 auto;
}

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

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 400px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal h3 {
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

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

.modal-slot-btn {
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    text-align: left;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.modal-slot-btn:hover {
    border-color: var(--primary);
    background: var(--secondary);
}

.modal-slot-btn.filled {
    color: var(--gray-500);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 100;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

    .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 {
        min-height: auto;
        padding-top: calc(72px + var(--space-2xl));
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

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

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        flex: 1;
    }

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

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

    .compare-slot {
        min-height: 200px;
    }

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

    .footer-brand p {
        max-width: none;
    }

    .scroll-top {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

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

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

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

.product-card,
.feature-card,
.seo-block {
    animation: fadeIn 0.5s ease forwards;
}

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