/* CSS Variables */
:root {
    --primary: #8B5A2B;
    --primary-dark: #6B4423;
    --primary-light: #A67B5B;
    --secondary: #2C3E50;
    --accent: #E8D5B7;
    --accent-light: #F5EDE0;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #FFFFFF;
    --bg: #FAFAFA;
    --bg-alt: #F5F5F5;
    --border: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

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

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

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

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

/* Navigation */
.navbar {
    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(--border);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 600;
}

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

.logo-text {
    font-family: 'Playfair Display', serif;
    color: var(--secondary);
}

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

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

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

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

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

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--white) 50%, var(--accent) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(139, 90, 43, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--secondary);
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 550px;
}

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

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

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

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

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

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

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

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

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

/* Categories */
.categories {
    padding: 40px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
}

.category-card:hover,
.category-card.active {
    background: var(--accent-light);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.category-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: var(--bg);
}

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

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

.progress-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    width: 25%;
    transition: width 0.5s ease;
}

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

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

.quiz-question h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

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

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

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

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

.quiz-option input {
    display: none;
}

.quiz-option span {
    font-weight: 500;
}

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

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

.quiz-result h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 16px;
}

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

.result-products {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.result-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-align: left;
}

.result-product-image {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.result-product-info h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.result-product-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 160px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
}

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

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

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

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

.product-badge.sale {
    background: #E74C3C;
}

.product-compare-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-compare-btn:hover {
    transform: scale(1.1);
}

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

.product-info {
    padding: 20px;
}

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

.product-title {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-feature {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 20px;
    color: var(--text-light);
}

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

.stars {
    color: #F5A623;
    letter-spacing: 2px;
}

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

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

.price-current {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
}

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

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

.product-cta .btn {
    flex: 1;
}

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

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

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

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

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

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

.table-product-image {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.table-product-name {
    font-weight: 500;
    color: var(--secondary);
}

.table-compare-btn {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

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

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

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

.compare-slot {
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    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: var(--accent-light);
}

.compare-slot.filled {
    border-style: solid;
    border-color: var(--border);
    cursor: default;
    flex-direction: column;
    padding: 20px;
}

.compare-slot.filled:hover {
    background: var(--white);
}

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

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

.slot-product {
    text-align: center;
    width: 100%;
}

.slot-product-image {
    width: 100px;
    height: 100px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 12px;
}

.slot-product-name {
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 8px;
}

.slot-remove-btn {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.slot-remove-btn:hover {
    color: #E74C3C;
}

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

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

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

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

.compare-table th:first-child {
    text-align: left;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--bg);
}

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

.clear-compare-btn {
    margin-top: 24px;
}

/* Guide Section */
.guide-section {
    padding: 80px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.guide-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

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

.guide-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.guide-card h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.guide-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

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

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

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

.seo-text h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin: 24px 0 12px;
}

.seo-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

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

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

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

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

.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

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

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

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

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

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

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

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.modal-content h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

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

.modal-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.modal-product:hover {
    border-color: var(--primary);
    background: var(--accent-light);
}

.modal-product-image {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-product-name {
    flex: 1;
    font-weight: 500;
    color: var(--secondary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-stats {
        gap: 32px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .compare-slots .compare-slot:last-child {
        grid-column: span 2;
    }

    .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: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

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

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .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 {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

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

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

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

    .quiz-container {
        padding: 24px;
    }

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

    .filters {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .view-toggle {
        justify-content: flex-end;
    }

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

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

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

    .footer-brand .logo {
        justify-content: center;
    }
}

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

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

    .btn {
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 16px 12px;
    }

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

    .category-name {
        font-size: 0.8rem;
    }

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

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

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

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

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