/* ================================================
   Black Dress Australia - Stylesheet
   Modern, Elegant, Fashion-Forward Design
   ================================================ */

/* CSS Variables */
:root {
    --color-black: #0a0a0a;
    --color-charcoal: #1a1a1a;
    --color-dark-gray: #2d2d2d;
    --color-gray: #6b6b6b;
    --color-light-gray: #e5e5e5;
    --color-off-white: #f8f8f8;
    --color-white: #ffffff;
    --color-gold: #c9a962;
    --color-gold-light: #d4b978;
    --color-rose: #e8d4d4;
    --color-success: #4a7c59;
    --color-error: #c45c5c;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 60px rgba(0, 0, 0, 0.2);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --container-max: 1280px;
    --container-padding: 24px;
}

/* 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-weight: 400;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

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

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

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

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

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

.btn-gold {
    background: var(--color-gold);
    color: var(--color-black);
}

.btn-gold:hover {
    background: var(--color-gold-light);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Header */
.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 rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
}

.logo-icon {
    color: var(--color-gold);
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 40px;
}

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

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

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

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding-top: 72px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--color-gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--color-gold);
    color: var(--color-black);
}

.hero .btn-primary:hover {
    background: var(--color-gold-light);
}

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

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

/* Features Bar */
.features-bar {
    background: var(--color-off-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-dark-gray);
}

.feature-icon {
    font-size: 1.1rem;
}

/* Category Section */
.category-section {
    padding: 80px 0;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray);
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-black);
    color: var(--color-white);
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: var(--color-off-white);
    padding: 4px;
    border-radius: var(--radius-md);
}

.view-btn {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-gray);
    transition: all var(--transition-fast);
}

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

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

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--color-light-gray);
}

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

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #e8e8e8 0%, #d0d0d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image .placeholder-icon {
    font-size: 4rem;
    color: var(--color-gray);
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--color-gold);
    color: var(--color-black);
    border-radius: var(--radius-sm);
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

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

.action-btn.in-compare {
    background: var(--color-gold);
    color: var(--color-black);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-black);
}

.product-description {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.product-price {
    font-weight: 600;
    color: var(--color-black);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.product-rating .stars {
    color: var(--color-gold);
}

.product-cta {
    width: 100%;
    padding: 12px;
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.product-cta:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

/* Products Table */
.products-table-container {
    overflow-x: auto;
}

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

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

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

.products-table tr:hover {
    background: var(--color-off-white);
}

.products-table .product-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-table .product-thumb {
    width: 60px;
    height: 80px;
    background: var(--color-light-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.products-table .compare-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--color-gold);
}

.products-table .table-cta {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%);
}

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

.quiz-progress {
    margin-bottom: 32px;
}

.progress-bar {
    height: 6px;
    background: var(--color-light-gray);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    width: 25%;
    transition: width var(--transition-normal);
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 8px;
}

.quiz-question {
    text-align: center;
    margin-bottom: 32px;
}

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

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

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    padding: 16px 24px;
    background: var(--color-off-white);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    text-align: left;
    transition: all var(--transition-fast);
}

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

.quiz-option.selected {
    border-color: var(--color-gold);
    background: rgba(201, 169, 98, 0.1);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

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

.quiz-result .result-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.quiz-result h3 {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.quiz-result .result-style {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-black);
    margin-bottom: 16px;
}

.quiz-result .result-description {
    color: var(--color-gray);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-result .btn {
    margin: 0 8px 12px;
}

/* Compare Section */
.compare-section {
    padding: 80px 0;
}

.compare-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.compare-slot {
    min-height: 300px;
    border: 2px dashed var(--color-light-gray);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.compare-slot:hover {
    border-color: var(--color-gold);
    background: rgba(201, 169, 98, 0.05);
}

.compare-slot:not(.empty) {
    border-style: solid;
    border-color: var(--color-light-gray);
    cursor: default;
}

.slot-placeholder {
    text-align: center;
    color: var(--color-gray);
}

.slot-placeholder .plus-icon {
    display: block;
    font-size: 3rem;
    color: var(--color-light-gray);
    margin-bottom: 8px;
}

.slot-content {
    width: 100%;
    padding: 20px;
    position: relative;
}

.slot-content .remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-off-white);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--color-gray);
    transition: all var(--transition-fast);
}

.slot-content .remove-btn:hover {
    background: var(--color-error);
    color: var(--color-white);
}

.slot-content .slot-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--color-light-gray);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-content .slot-title {
    text-align: center;
    font-size: 1rem;
}

.compare-table-container {
    overflow-x: auto;
    margin-top: 40px;
}

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

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

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

.compare-table th {
    background: var(--color-black);
    color: var(--color-white);
}

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

.compare-actions {
    text-align: center;
    margin-top: 24px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-gray);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-off-white);
    color: var(--color-black);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.modal-product {
    padding: 16px;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.modal-product:hover {
    border-color: var(--color-gold);
    background: rgba(201, 169, 98, 0.05);
}

.modal-product .modal-product-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--color-light-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-gray);
}

.modal-product h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.modal-product p {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Popular Section */
.popular-section {
    padding: 80px 0;
    background: var(--color-charcoal);
    color: var(--color-white);
}

.popular-section .section-title {
    color: var(--color-white);
}

.popular-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.popular-card {
    background: var(--color-dark-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.popular-card .product-image {
    background: linear-gradient(145deg, #3a3a3a 0%, #2a2a2a 100%);
}

.popular-card .product-info {
    background: var(--color-dark-gray);
}

.popular-card .product-name {
    color: var(--color-white);
}

.popular-card .product-price {
    color: var(--color-gold);
}

.popular-card .product-cta {
    background: var(--color-gold);
    color: var(--color-black);
}

.popular-card .product-cta:hover {
    background: var(--color-gold-light);
}

/* SEO Section */
.seo-section {
    padding: 80px 0;
    background: var(--color-off-white);
}

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

.seo-content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

.seo-content p {
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
}

.seo-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.seo-content li::before {
    content: '&#9830;';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

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

/* Newsletter */
.newsletter-section {
    padding: 60px 0;
    background: var(--color-black);
}

.newsletter-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--color-white);
    margin-bottom: 8px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: 2px solid var(--color-gold);
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* Footer */
.footer {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

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

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

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.affiliate-disclosure {
    font-size: 0.8rem !important;
}

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

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

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

    .compare-slots .compare-slot:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-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: 80vh;
    }

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

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

    .features-grid {
        gap: 24px;
    }

    .feature-item {
        flex: 0 0 calc(50% - 12px);
        justify-content: center;
    }

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

    .filter-buttons {
        justify-content: center;
    }

    .view-toggle {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .quiz-container {
        padding: 32px 24px;
    }

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

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

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

    .footer-brand {
        margin-bottom: 16px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }

    .filter-btn {
        width: 100%;
    }

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

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

    .popular-grid {
        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.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark-gray);
}
