/**
 * China-to-Ghana Product Finder - Main Stylesheet
 * Modern, mobile-responsive, Ghana-focused business design
 */

/* ============================================================
   CSS Variables / Design Tokens
   ============================================================ */
:root {
    --primary: #085041;
    --primary-light: #0a6b54;
    --primary-dark: #053d30;
    --accent: #D4AF37;
    --accent-light: #e8c94a;
    --accent-dark: #b8941f;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --text: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --transition: all .2s ease;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; color: var(--gray-900); }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.container-sm { max-width: 800px; }
.container-lg { max-width: 1400px; }

.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }
.section-lg { padding: 6rem 0; }

.section-title {
    text-align: center;
    margin-bottom: .5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* ============================================================
   Top Bar
   ============================================================ */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    font-size: .8125rem;
    padding: .4rem 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-links a {
    color: rgba(255,255,255,.85);
    margin-left: 1.25rem;
}
.top-bar-links a:hover { color: var(--accent); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
    text-decoration: none;
}
.logo-icon { font-size: 1.5rem; }
.logo-text { line-height: 1.1; }
.logo-text small {
    display: block;
    font-size: .625rem;
    font-weight: 400;
    color: var(--text-muted);
}

.main-nav { display: flex; gap: .25rem; align-items: center; }
.nav-link {
    padding: .5rem .875rem;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: .9rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover { background: var(--gray-100); color: var(--primary); }
.nav-link.active { color: var(--primary); background: rgba(8,80,65,.07); }

.header-actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

.btn-accent { background: var(--accent); color: var(--gray-900); }
.btn-accent:hover { background: var(--accent-light); color: var(--gray-900); }

.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: var(--white); }

.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--gray-900); }
.btn-gray { background: var(--gray-200); color: var(--gray-700); }

.btn-sm { padding: .375rem .875rem; font-size: .8125rem; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-disabled, .btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .6rem;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-primary { background: rgba(8,80,65,.12); color: var(--primary); }
.badge-accent { background: rgba(212,175,55,.15); color: var(--accent-dark); }
.badge-success { background: rgba(16,185,129,.12); color: #059669; }
.badge-warning { background: rgba(245,158,11,.12); color: #d97706; }
.badge-danger { background: rgba(239,68,68,.12); color: #dc2626; }
.badge-info { background: rgba(59,130,246,.12); color: #2563eb; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* Opportunity score badges */
.badge-hot { background: #fecaca; color: #991b1b; }
.badge-good { background: #fef3c7; color: #92400e; }
.badge-test { background: #dbeafe; color: #1e40af; }
.badge-risky { background: var(--gray-100); color: var(--gray-600); }

/* Risk level badges */
.badge-low { background: #d1fae5; color: #065f46; }
.badge-medium { background: #fef3c7; color: #92400e; }
.badge-high { background: #fee2e2; color: #991b1b; }

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-100);
}
.card-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    font-size: 3rem;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card .card-body { flex: 1; display: flex; flex-direction: column; }
.product-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Category Card */
.category-card {
    text-align: center;
    padding: 1.5rem 1rem;
    cursor: pointer;
    text-decoration: none;
}
.category-card:hover { background: var(--gray-50); }
.category-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.category-name { font-weight: 600; color: var(--text); font-size: .9rem; }
.category-count { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

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

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 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.04'%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; }
.hero h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.hero-sub {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-search {
    display: flex;
    gap: .75rem;
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero-search input {
    flex: 1;
    padding: .875rem 1.125rem;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,.12);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-sans);
    backdrop-filter: blur(4px);
}
.hero-search input::placeholder { color: rgba(255,255,255,.6); }
.hero-search input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.18); }
.hero-search .btn { flex-shrink: 0; }
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 1.75rem; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: .8125rem; color: rgba(255,255,255,.7); }

/* ============================================================
   Score Display
   ============================================================ */
.score-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}
.score-number {
    font-size: 1.5rem;
    font-weight: 800;
}
.score-bar-track {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width .6s ease;
}
.score-hot .score-bar-fill { background: linear-gradient(90deg, #f97316, #ef4444); }
.score-good .score-bar-fill { background: linear-gradient(90deg, #10b981, #059669); }
.score-test .score-bar-fill { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.score-risky .score-bar-fill { background: linear-gradient(90deg, #9ca3af, #6b7280); }

/* ============================================================
   Price Display
   ============================================================ */
.price-tag { font-size: 1.375rem; font-weight: 800; color: var(--primary); }
.price-old { font-size: .875rem; color: var(--gray-400); text-decoration: line-through; margin-right: .5rem; }
.price-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.margin-tag { font-weight: 700; color: var(--success); }
.margin-tag.low { color: var(--warning); }
.margin-tag.bad { color: var(--danger); }

/* ============================================================
   Product Detail Page
   ============================================================ */
.product-detail { padding: 2rem 0 4rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.product-gallery { position: sticky; top: 80px; }
.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
}
.product-gallery-thumbs { display: flex; gap: .75rem; margin-top: 1rem; }
.product-gallery-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
}
.product-gallery-thumb:hover, .product-gallery-thumb.active { border-color: var(--primary); }

.product-info { padding: 1rem 0; }
.product-category-link {
    font-size: .8125rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.product-title { font-size: 1.75rem; margin: .5rem 0 1rem; }
.product-platform {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .875rem;
    color: var(--text-secondary);
}

.product-pricing-table {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: .625rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: .9rem;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row.total { font-weight: 700; font-size: 1.1rem; color: var(--primary); border-top: 2px solid var(--gray-300); margin-top: .5rem; padding-top: 1rem; }
.pricing-row.highlight { color: var(--success); font-weight: 600; }
.pricing-row.highlight-danger { color: var(--danger); font-weight: 600; }

/* Captions Box */
.captions-box {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1rem 0;
}
.caption-platform {
    font-weight: 700;
    font-size: .875rem;
    color: var(--primary);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.caption-text {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: .75rem;
}
.copy-btn {
    font-size: .8rem;
    padding: .3rem .75rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
}
.copy-btn:hover { background: var(--primary-light); }

/* ============================================================
   Filters Sidebar
   ============================================================ */
.filters-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { font-size: .8125rem; font-weight: 600; color: var(--gray-700); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .04em; }
.filter-group label { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .9rem; cursor: pointer; }
.filter-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }

select.input, .input {
    width: 100%;
    padding: .625rem .875rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: .9rem;
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
    appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; padding-right: 2.5rem; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,80,65,.1); }
textarea.input { resize: vertical; min-height: 100px; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-group .hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { color: var(--danger); font-size: .8rem; margin-top: .25rem; }

/* ============================================================
   Product Listing Layout
   ============================================================ */
.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}
.products-main {}

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.result-count { font-size: .9rem; color: var(--text-muted); }
.sort-bar select { min-width: 200px; }

/* ============================================================
   Calculator
   ============================================================ */
.calculator-section { background: var(--off-white); padding: 3rem 0; }
.calc-form { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-lg); max-width: 700px; margin: 0 auto; }
.calc-results { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-lg); max-width: 700px; margin: 2rem auto 0; }
.calc-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.calc-result-item { background: var(--off-white); padding: 1.25rem; border-radius: var(--radius-lg); text-align: center; }
.calc-result-value { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.calc-result-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }
.calc-recommendation { padding: 1rem 1.5rem; border-radius: var(--radius-lg); font-weight: 600; text-align: center; }
.calc-recommendation.excellent { background: #d1fae5; color: #065f46; }
.calc-recommendation.good { background: #ecfdf5; color: #047857; }
.calc-recommendation.average { background: #fef3c7; color: #92400e; }
.calc-recommendation.low { background: #fff7ed; color: #c2410c; }
.calc-recommendation.risky { background: #fee2e2; color: #991b1b; }

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section { padding: 3rem 0; background: var(--primary); }
.cta-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '🇬🇭';
    position: absolute;
    font-size: 10rem;
    opacity: .06;
    right: -1rem;
    top: -2rem;
}
.cta-content { position: relative; z-index: 1; }
.cta-box h2 { color: var(--white); margin-bottom: 1rem; }
.cta-box p { color: rgba(255,255,255,.85); max-width: 500px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .875rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-brand { margin-top: 1rem; font-size: .8rem; color: var(--accent); font-weight: 600; }
.footer-social { display: flex; gap: 1rem; margin-top: .75rem; }
.footer-social a { color: rgba(255,255,255,.65); font-size: .875rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; text-align: center; font-size: .8125rem; }
.footer-seo { color: rgba(255,255,255,.35); font-size: .75rem; margin-top: .5rem; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: .375rem; margin-top: 2rem; flex-wrap: wrap; }
.page-btn, .page-num {
    padding: .5rem .875rem;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.page-btn:hover, .page-num:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-num.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-ellipsis { padding: .5rem; color: var(--gray-400); }

/* ============================================================
   WhatsApp Float Button
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,.4);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,.5); }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--gray-300); }

/* ============================================================
   Alert / Flash Messages
   ============================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .9rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   Admin Layout
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: var(--gray-900);
    color: var(--white);
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-header h3 { color: var(--white); font-size: 1rem; }
.admin-sidebar-header p { color: rgba(255,255,255,.5); font-size: .8rem; margin: 0; }
.admin-nav { padding: 1rem 0; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.5rem;
    color: rgba(255,255,255,.7);
    font-size: .875rem;
    transition: var(--transition);
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.admin-nav a.active { background: rgba(212,175,55,.15); color: var(--accent); border-right: 3px solid var(--accent); }
.admin-nav-section { padding: .5rem 1.5rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-top: .5rem; }

.admin-main { flex: 1; margin-left: 240px; padding: 2rem; background: var(--off-white); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { font-size: 1.5rem; }
.admin-page-title { margin-bottom: 1.5rem; }

/* Admin Cards / Stats */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.admin-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.admin-stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }
.admin-stat-card.accent { border-left: 4px solid var(--accent); }
.admin-stat-card.success { border-left: 4px solid var(--success); }
.admin-stat-card.warning { border-left: 4px solid var(--warning); }
.admin-stat-card.danger { border-left: 4px solid var(--danger); }

/* Admin Table */
.admin-table-wrap { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table thead { background: var(--gray-50); }
.admin-table th { padding: 1rem 1.25rem; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); font-weight: 600; border-bottom: 2px solid var(--gray-200); white-space: nowrap; }
.admin-table td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.admin-table tr:hover td { background: var(--gray-50); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .actions { display: flex; gap: .375rem; }

/* Admin Login */
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gray-100); padding: 1rem; }
.admin-login-box { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-lg); width: 100%; max-width: 400px; }
.admin-login-box h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.admin-login-box p { color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }

/* ============================================================
   Masterclass Page
   ============================================================ */
.masterclass-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0a5c4a 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}
.masterclass-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.masterclass-hero p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }
.masterclass-price-box { background: rgba(255,255,255,.1); border: 2px solid var(--accent); border-radius: var(--radius-xl); padding: 2rem; max-width: 500px; margin: 0 auto 2rem; }
.price-old { color: rgba(255,255,255,.5); text-decoration: line-through; font-size: 1.25rem; }
.price-new { font-size: 3rem; font-weight: 800; color: var(--accent); }
.price-period { color: rgba(255,255,255,.7); font-size: .9rem; }

.curriculum { padding: 4rem 0; }
.curriculum-item { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--gray-100); }
.curriculum-num { width: 40px; height: 40px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.curriculum-content h4 { margin-bottom: .25rem; }
.curriculum-content p { color: var(--text-secondary); font-size: .9rem; margin: 0; }

/* ============================================================
   About Page
   ============================================================ */
.about-hero { background: var(--off-white); padding: 4rem 0; }
.about-content { max-width: 700px; margin: 0 auto; }
.about-content h2 { margin-top: 2rem; margin-bottom: 1rem; }

/* ============================================================
   Tabs
   ============================================================ */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; }
.tab-btn {
    padding: .75rem 1.5rem;
    background: none;
    border: none;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    font-family: var(--font-sans);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   Score Breakdown (Product Detail)
   ============================================================ */
.score-breakdown { margin: 1.5rem 0; }
.score-breakdown-item { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); font-size: .875rem; }
.score-breakdown-item:last-child { border-bottom: none; }
.score-breakdown-label { color: var(--text-secondary); }
.score-breakdown-value { font-weight: 700; color: var(--text); }

/* ============================================================
   Opportunity Banner
   ============================================================ */
.opportunity-banner {
    padding: .75rem 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: .9rem;
}
.opportunity-banner.hot { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.opportunity-banner.good { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.opportunity-banner.test { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.opportunity-banner.risky { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .products-layout { grid-template-columns: 220px 1fr; gap: 1.5rem; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .product-gallery { position: static; }
}

@media (max-width: 768px) {
    .main-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem; box-shadow: var(--shadow-lg); z-index: 99; gap: 0; }
    .main-nav.open { display: flex; }
    .nav-link { padding: .875rem 1rem; border-radius: var(--radius); }
    .nav-toggle { display: flex; }

    .hero { padding: 3rem 0 4rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-search { flex-direction: column; }
    .hero-stats { gap: 1rem; }
    .hero-stat { flex: 1; min-width: 80px; }

    .products-layout { grid-template-columns: 1fr; }
    .filters-bar { display: none; }
    .filters-bar.show { display: block; }
    .filter-toggle-btn { display: inline-flex; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { width: 200px; }
    .admin-main { margin-left: 200px; padding: 1rem; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .calc-result-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 480px) {
    .container { padding: 0 .75rem; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-table { font-size: .8125rem; }
    .admin-table th, .admin-table td { padding: .625rem .75rem; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Utility Classes
   ============================================================ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
