/* ===== CSS Variables ===== */
:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #c9a227;
    --color-accent-light: #e6c453;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-dark: #1a1a2e;
    --color-border: #e5e5e5;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

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

a:hover {
    color: var(--color-accent-light);
}

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

.hidden {
    display: none !important;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary);
    border-color: var(--color-accent);
}

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

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

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

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

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

.logo-icon {
    color: var(--color-accent);
    font-size: 20px;
}

.logo span {
    color: var(--color-accent);
}

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

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

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

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

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 .highlight {
    color: var(--color-accent);
    display: block;
}

.hero p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

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

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

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-bottles {
    position: relative;
    width: 300px;
    height: 300px;
}

.bottle {
    position: absolute;
    font-size: 80px;
    animation: float 6s ease-in-out infinite;
}

.bottle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bottle-2 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.bottle-3 {
    bottom: 10%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
}

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

/* ===== Products Section ===== */
.products-section {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.filter-group select {
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    cursor: pointer;
    transition: var(--transition);
}

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

.view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
    background: var(--color-bg-alt);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
}

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

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

.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    z-index: 1;
}

.product-badge.bestseller {
    background: var(--color-accent);
    color: var(--color-primary);
}

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

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

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-size: 80px;
}

.product-content {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.product-notes {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

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

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

.stars {
    color: var(--color-accent);
    font-size: 14px;
}

.rating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
}

.btn-compare {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-color: var(--color-border);
}

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

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

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

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

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

.products-table th {
    background: var(--color-bg-alt);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.table-product-icon {
    font-size: 32px;
}

.table-product-name {
    font-weight: 600;
    color: var(--color-primary);
}

/* ===== Quiz Section ===== */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.quiz-section .section-header h2,
.quiz-section .section-header p {
    color: white;
}

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

.quiz-start,
.quiz-questions,
.quiz-results {
    padding: 48px;
}

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

.quiz-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.quiz-intro h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.quiz-intro p {
    color: var(--color-text-light);
    margin-bottom: 32px;
}

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

.progress-bar {
    height: 6px;
    background: var(--color-bg-alt);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--color-text-muted);
}

.question-container {
    min-height: 300px;
}

.question h3 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    padding: 16px 20px;
    background: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.option:hover {
    border-color: var(--color-accent);
    background: rgba(201, 162, 39, 0.05);
}

.option.selected {
    border-color: var(--color-accent);
    background: rgba(201, 162, 39, 0.1);
}

.option-icon {
    font-size: 24px;
}

.option-text {
    font-weight: 500;
}

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

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

.quiz-results h3 {
    font-size: 28px;
    margin-bottom: 32px;
}

.result-product {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 24px;
}

.result-icon {
    font-size: 80px;
    margin-bottom: 16px;
}

.result-product h4 {
    font-size: 24px;
    margin-bottom: 8px;
}

.result-product .result-brand {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.result-product p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.result-match {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ===== Compare Section ===== */
.compare-section {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.compare-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.compare-slot {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.compare-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
}

.compare-select:hover,
.compare-select:focus {
    border-color: var(--color-accent);
    outline: none;
}

.clear-slot {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--color-bg-alt);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.clear-slot:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.compare-table-wrapper {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

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

.compare-table thead th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

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

.compare-empty {
    padding: 48px;
    text-align: center;
    color: var(--color-text-muted);
}

.compare-product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.compare-product-icon {
    font-size: 48px;
}

.compare-product-name {
    font-size: 16px;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.about-content h2 {
    text-align: center;
    margin-bottom: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.about-text h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
}

.about-text ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.about-text li {
    margin-bottom: 8px;
    color: var(--color-text-light);
}

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    padding: 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-dark);
    color: white;
    padding: 60px 0 24px;
}

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

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

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

.footer-links h4,
.footer-disclaimer h4 {
    font-size: 16px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

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

.footer-disclaimer p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

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

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

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

    .about-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

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

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

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

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

    .hero p {
        max-width: 100%;
    }

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

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

    .hero-visual {
        display: none;
    }

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

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

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

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

    .quiz-start,
    .quiz-questions,
    .quiz-results {
        padding: 32px 24px;
    }

    .compare-selector {
        flex-direction: column;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

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

    .btn {
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 12px;
    }

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

/* ===== 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; }
