/* ================================
   CSS Variables & Reset
   ================================ */
:root {
    --primary: #1a1a1a;
    --primary-light: #2d2d2d;
    --secondary: #c9a050;
    --secondary-light: #ddb666;
    --accent: #8b4513;
    --background: #fafafa;
    --surface: #ffffff;
    --surface-hover: #f5f5f5;
    --text: #1a1a1a;
    --text-muted: #666666;
    --text-light: #999999;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 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(--text);
    transition: var(--transition);
}

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

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

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

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

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

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

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 160, 80, 0.4);
}

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

/* ================================
   Hero Section
   ================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(135deg, #f8f6f3 0%, #ffffff 50%, #f5f0eb 100%);
    overflow: hidden;
}

.hero-content {
    padding: 60px 20px 60px 60px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

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

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a2a 100%);
    position: relative;
}

.jacket-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-card {
    width: 300px;
    height: 400px;
    background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.showcase-card::before {
    content: '🧥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    opacity: 0.8;
}

.showcase-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 160, 80, 0.1) 0%, transparent 50%);
}

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

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

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--background);
    border-radius: var(--radius);
    align-items: center;
}

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

.filter-group label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--surface);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

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

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

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

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

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

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

.product-image {
    height: 240px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: attr(data-emoji);
    font-size: 5rem;
}

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

.product-compare-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1rem;
}

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

.product-info {
    padding: 20px;
}

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

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

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

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

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

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

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

.product-cta {
    width: 100%;
}

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

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

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

.products-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.table-compare-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition);
}

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

/* ================================
   Quiz Section
   ================================ */
.quiz-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a2a 100%);
    color: white;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

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

.quiz-header h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.quiz-header p {
    color: rgba(255, 255, 255, 0.7);
}

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

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.progress-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.quiz-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quiz-option {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.quiz-option.selected {
    background: rgba(201, 160, 80, 0.2);
    border-color: var(--secondary);
}

.quiz-option-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

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

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

.quiz-nav .btn {
    min-width: 120px;
}

.quiz-result {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.result-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.result-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.result-recommendation {
    background: rgba(201, 160, 80, 0.2);
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.result-recommendation h4 {
    color: var(--secondary);
    margin-bottom: 8px;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

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

.compare-slot:hover {
    border-color: var(--secondary);
    background: var(--surface-hover);
}

.compare-slot.filled {
    border-style: solid;
    cursor: default;
}

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

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

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

.remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: all var(--transition);
}

.remove-btn:hover {
    background: #c00;
}

.slot-image {
    width: 120px;
    height: 120px;
    background: var(--background);
    border-radius: var(--radius);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.slot-name {
    font-size: 1rem;
    font-weight: 600;
}

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

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

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

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

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

.compare-actions {
    text-align: center;
}

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

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

.guide-card {
    padding: 32px;
    background: var(--background);
    border-radius: var(--radius);
    transition: all var(--transition);
}

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

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

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

.guide-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================================
   SEO Section
   ================================ */
.seo-section {
    padding: 80px 0;
    background: var(--background);
    border-top: 1px solid var(--border);
}

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

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

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

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

.seo-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.seo-content li {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

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

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

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

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

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

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

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

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

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

/* ================================
   Modal
   ================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

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

.modal-content h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

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

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

.modal-product:hover {
    border-color: var(--secondary);
    background: var(--surface-hover);
}

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

.modal-product-name {
    font-weight: 500;
    font-size: 0.9rem;
}

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

    .hero-content {
        padding: 40px 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-image {
        height: 400px;
    }

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

    .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;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

    .filter-group select {
        width: 100%;
    }

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

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

    .quiz-options {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .btn {
        width: 100%;
    }

    .quiz-content {
        padding: 24px;
    }

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

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