/* CSS Variables */
:root {
    --primary: #2d5a4a;
    --primary-light: #3d7a64;
    --primary-dark: #1d3a32;
    --secondary: #d4a574;
    --secondary-light: #e8c9a0;
    --accent: #f4e4d4;
    --background: #faf8f5;
    --surface: #ffffff;
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --text-muted: #8a9bab;
    --border: #e8e4df;
    --shadow: rgba(45, 90, 74, 0.1);
    --shadow-lg: rgba(45, 90, 74, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

.hidden {
    display: none !important;
}

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

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

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

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

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

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

/* 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: 0 2px 20px var(--shadow);
    transition: all var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

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

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

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

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

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--background) 50%, #e8f4f0 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

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

.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-bag {
    position: absolute;
    font-size: 4rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

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

.bag-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.bag-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

/* View Controls */
.view-controls {
    padding: 60px 0 20px;
    background: var(--surface);
}

.view-controls h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

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

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

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border);
    background: var(--surface);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

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

.view-toggle {
    display: flex;
    gap: 8px;
    background: var(--background);
    padding: 6px;
    border-radius: var(--radius);
}

.view-btn {
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* Products Section */
.products-section {
    padding: 40px 0 80px;
    background: var(--surface);
}

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

/* Product Card */
.product-card {
    background: var(--surface);
    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(-8px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 220px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-content {
    padding: 20px;
}

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

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
    font-weight: 600;
}

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

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

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

.compare-btn {
    flex: 0 0 auto !important;
    padding: 12px !important;
    background: var(--background);
    border: 2px solid var(--border);
    color: var(--text-muted);
}

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

/* Products Table */
.products-table-section {
    padding: 40px 0 80px;
    background: var(--surface);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
}

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

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

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

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

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

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

.table-compare-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition);
    font-family: inherit;
}

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

/* Quiz Section */
.quiz-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.quiz-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

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

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

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.quiz-result h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.result-product {
    background: var(--accent);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: left;
}

.result-product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

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

.compare-section h2 {
    font-size: 2.2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
}

.compare-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

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

.compare-slot {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all var(--transition);
    position: relative;
}

.compare-slot.empty {
    border: 3px dashed var(--border);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.compare-slot.empty:hover {
    border-color: var(--primary);
    background: rgba(45, 90, 74, 0.05);
}

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

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

.compare-slot.empty:hover .plus-icon {
    color: var(--primary);
}

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

.compare-slot-image {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.compare-slot-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.compare-slot-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.remove-slot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: var(--text-muted);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.remove-slot:hover {
    background: #e74c3c;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

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

.compare-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.compare-table td:first-child {
    font-weight: 600;
    background: var(--accent);
    width: 150px;
}

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

.clear-compare {
    display: block;
    margin: 0 auto;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--background);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

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

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
}

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

.modal-product {
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

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

.modal-product-image {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-product-title {
    font-weight: 600;
    font-size: 0.95rem;
}

/* SEO Section */
.seo-section {
    padding: 100px 0;
    background: var(--surface);
}

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

.seo-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.seo-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.seo-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-content li {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
}

.seo-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

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

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

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

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

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

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

.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: 10px;
}

.affiliate-disclosure {
    font-size: 0.8rem;
    max-width: 700px;
    margin: 0 auto;
}

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

    .compare-slots .compare-slot:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }

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

    .footer-brand {
        grid-column: span 2;
    }
}

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

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

    .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(7px, -6px);
    }

    .hero {
        padding: 120px 20px 80px;
    }

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

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

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

    .quiz-container {
        padding: 30px 20px;
    }

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

    .compare-slots .compare-slot:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

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

    .hero p {
        font-size: 1rem;
    }

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

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

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

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

    .compare-btn {
        flex: 1 !important;
    }

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