/* CSS Variables */
:root {
    --primary-color: #722F37;
    --primary-light: #9B4D55;
    --primary-dark: #4A1F24;
    --secondary-color: #D4A574;
    --secondary-light: #E8C9A8;
    --accent-gold: #C9A962;
    --accent-rose: #E8B4B8;
    --bg-light: #FDFBF7;
    --bg-cream: #F7F3ED;
    --bg-dark: #1A1A1A;
    --text-dark: #2D2D2D;
    --text-medium: #5A5A5A;
    --text-light: #8A8A8A;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 47, 55, 0.4);
}

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

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

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.navbar.scrolled .logo-text,
.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 180, 184, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(201, 169, 98, 0.1) 0%, transparent 40%);
}

.hero-overlay {
    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='%23ffffff' fill-opacity='0.03'%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");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

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

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    border: 1px solid #E0E0E0;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}

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

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

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--accent-gold);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

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

.product-badge.value {
    background: #28A745;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #E8DFD5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--white), transparent);
}

.product-content {
    padding: 24px;
}

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

.product-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-region {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: var(--accent-gold);
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-score {
    font-weight: 600;
    color: var(--text-dark);
}

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

.product-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

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

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #F0F0F0;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 400;
}

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

.btn-compare {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-compare:hover {
    background: var(--secondary-light);
}

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

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

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

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

.progress-bar {
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.progress-text {
    font-size: 0.9rem;
    color: var(--text-medium);
}

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

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

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

.quiz-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid #E0E0E0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

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

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

.quiz-option input {
    display: none;
}

.option-indicator {
    width: 22px;
    height: 22px;
    border: 2px solid #D0D0D0;
    border-radius: 50%;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.quiz-option.selected .option-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.option-text {
    font-size: 1rem;
    color: var(--text-dark);
}

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

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

.result-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.result-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.result-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.7;
}

.result-product {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

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

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

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

.compare-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.compare-slot {
    background: var(--white);
    border: 2px dashed #D0D0D0;
    border-radius: var(--radius-md);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.plus-icon {
    display: block;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.slot-content {
    padding: 20px;
    width: 100%;
    text-align: center;
}

.slot-content .wine-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.slot-content .wine-type {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.slot-content .remove-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

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

.compare-modal.active {
    display: flex;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E0E0E0;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

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

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wine-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wine-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-cream);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.wine-option:hover {
    background: var(--secondary-light);
}

.wine-option-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.wine-option-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.wine-option-info span {
    font-size: 0.8rem;
    color: var(--text-medium);
}

/* Comparison Table */
.comparison-table-container {
    overflow-x: auto;
    margin-top: 32px;
}

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

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #F0F0F0;
}

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

.comparison-table th:first-child {
    background: var(--primary-dark);
}

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

.comparison-table tr:nth-child(even) {
    background: #FAFAFA;
}

.comparison-table .feature-name {
    font-weight: 500;
    color: var(--text-dark);
}

/* Table Section */
.table-section {
    background: var(--white);
}

.table-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.table-search {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.table-search:focus {
    outline: none;
    border-color: var(--primary-color);
}

.table-sort {
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.wine-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.wine-table th,
.wine-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #F0F0F0;
}

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

.wine-table tr:hover {
    background: #FAFAFA;
}

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

.wine-table .wine-icon {
    font-size: 1.5rem;
}

.wine-table .wine-name {
    font-weight: 500;
}

.wine-table .wine-region {
    font-size: 0.85rem;
    color: var(--text-light);
}

.wine-table .rating-stars {
    color: var(--accent-gold);
}

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

.seo-content h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

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

.seo-block {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.seo-block h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.seo-block p {
    color: var(--text-medium);
    line-height: 1.7;
}

.seo-keywords {
    text-align: center;
}

.seo-keywords h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.keyword-tag {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: var(--transition);
}

.keyword-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

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

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

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

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

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

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

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

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

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.newsletter-form .btn {
    padding: 12px 20px;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.affiliate-disclosure {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.legal-links {
    font-size: 0.9rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
}

.legal-links a:hover {
    color: var(--secondary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--text-dark);
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .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-stats {
        gap: 32px;
    }

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

    section {
        padding: 70px 0;
    }

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

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

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

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

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

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

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

    .table-controls {
        flex-direction: column;
    }

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

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

.product-card {
    animation: fadeInUp 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; }

/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
