/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary: #d4a5a5;
    --primary-dark: #c48b8b;
    --primary-light: #f5e6e6;
    --secondary: #2c3e50;
    --accent: #e8b4b8;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-alt: #faf8f8;
    --bg-dark: #f5f0f0;
    --border: #e8e0e0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ========================================
   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: all var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 165, 165, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 165, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

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

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

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

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

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

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

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

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--secondary);
    transition: all var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    border-radius: 0 0 0 50%;
    z-index: -1;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

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

/* ========================================
   Features Bar
   ======================================== */
.features-bar {
    background: var(--bg-alt);
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.section-header {
    margin-bottom: 40px;
}

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

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

.filter-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

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

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--bg-alt);
    padding: 5px;
    border-radius: var(--radius-sm);
}

.view-btn {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all var(--transition);
}

.view-btn:hover,
.view-btn.active {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 2px 8px var(--shadow);
}

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

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all var(--transition);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

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

.badge-popular {
    background: var(--warning);
    color: white;
}

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

.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.product-info {
    padding: 20px;
}

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

.product-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

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

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.feature-tag {
    padding: 4px 10px;
    background: var(--bg-alt);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--text-light);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}

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

.action-btn {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

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

.shop-btn:hover {
    transform: scale(1.05);
}

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

.compare-btn:hover,
.compare-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Product Table */
.product-table-container {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

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

.product-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.hidden {
    display: none !important;
}

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

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

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-content {
    min-height: 300px;
}

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

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

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

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

.quiz-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

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

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

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

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

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

.quiz-progress {
    margin-top: 30px;
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
}

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

/* Quiz Results */
.quiz-results {
    text-align: center;
}

.quiz-results h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.quiz-results > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.result-products {
    display: grid;
    gap: 20px;
}

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

.result-product-icon {
    font-size: 3rem;
}

.result-product-info {
    flex: 1;
}

.result-product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.result-product-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.match-score {
    display: inline-block;
    padding: 4px 12px;
    background: var(--success);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.restart-quiz {
    margin-top: 30px;
}

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

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

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

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

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

.slot-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.slot-text {
    font-size: 0.9rem;
}

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

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--error);
    color: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-content {
    text-align: center;
}

.slot-content .product-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.slot-content .product-name {
    font-size: 1rem;
    margin-bottom: 5px;
}

.slot-content .product-price {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Compare Table */
.compare-table-container {
    overflow-x: auto;
    margin-top: 30px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px 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(--bg-alt);
    font-weight: 600;
}

.compare-table .feature-label {
    text-align: left;
    font-weight: 500;
    color: var(--secondary);
}

.check-icon {
    color: var(--success);
}

.cross-icon {
    color: var(--text-muted);
}

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

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

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

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

.modal-close {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-product {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.modal-product:hover {
    background: var(--bg-alt);
}

.modal-product-icon {
    font-size: 2rem;
}

.modal-product-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.modal-product-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

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

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

.guide-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.guide-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

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

/* ========================================
   SEO Content Section
   ======================================== */
.seo-content {
    padding: 80px 0;
    background: white;
}

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

.seo-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-wrapper h3 {
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    color: var(--primary-dark);
}

.seo-wrapper p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--secondary);
    color: 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: 15px;
}

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

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

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

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

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

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

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

.affiliate-disclosure {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 10px 30px var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: all var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

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

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .features-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .filters {
        justify-content: center;
    }

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

    .quiz-container {
        padding: 25px;
    }

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

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

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

    .btn {
        width: 100%;
    }

    .quiz-nav {
        flex-direction: column;
    }

    .product-table th,
    .product-table td {
        padding: 12px;
        font-size: 0.85rem;
    }
}
