/* ============================================================
   BioTennis UK — Studio Court Design System v2
   Dark/Light theme toggle, lazy load, full e-commerce
   ============================================================ */

/* ---- DARK THEME (default) ---- */
:root, [data-theme="dark"] {
    --bg:         #0A0A0B;
    --bg-alt:     #0F0F11;
    --surface:    #141416;
    --surface-2:  #1C1C1E;
    --border:     rgba(255,255,255,0.06);
    --border-hi:  rgba(255,255,255,0.12);
    --accent:     #D4FF3A;
    --accent-dim: rgba(212,255,58,0.12);
    --accent-glow:rgba(212,255,58,0.35);
    --text:       #F5F5F5;
    --text-soft:  #A0A0A8;
    --text-muted: #6B6B70;
    --hero-grad:  radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212,255,58,0.06) 0%, transparent 60%);
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
    --bg:         #F8F8F6;
    --bg-alt:     #F0EFED;
    --surface:    #FFFFFF;
    --surface-2:  #F5F5F3;
    --border:     rgba(0,0,0,0.08);
    --border-hi:  rgba(0,0,0,0.15);
    --accent:     #A8D92E;
    --accent-dim: rgba(168,217,46,0.12);
    --accent-glow:rgba(168,217,46,0.25);
    --text:       #1A1A1C;
    --text-soft:  #5A5A60;
    --text-muted: #8A8A90;
    --hero-grad:  radial-gradient(ellipse 80% 60% at 50% 40%, rgba(168,217,46,0.08) 0%, transparent 60%);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ---- Theme Toggle ---- */
.theme-toggle {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; cursor: pointer;
    border: 1px solid var(--border);
    background: none; color: var(--text);
}
.theme-toggle:hover { background: var(--accent-dim); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* ---- Announcement ---- */
.announcement {
    background: #000;
    color: #888;
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 210;
}
.announcement svg { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 1.6; }

/* ---- Header ---- */
.header {
    position: sticky;
    top: 36px;
    z-index: 200;
    background: rgba(var(--bg), 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: 0.3s ease;
}
[data-theme="light"] .header { background: rgba(248,248,246,0.88); }
.header.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; padding: 0 48px;
}
.logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; gap: 2px; }
.logo .dot { color: var(--accent); font-size: 1.4rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 0.85rem; font-weight: 500; color: var(--text-soft); transition: 0.3s; }
.nav a:hover { color: var(--text); }
.nav .accent-link { color: var(--accent); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.head-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; position: relative;
}
.head-btn:hover { background: var(--accent-dim); color: var(--accent); }
.head-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--accent); color: #000;
    font-size: 0.6rem; font-weight: 700; width: 16px; height: 16px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 8px;
    font-size: 0.88rem; font-weight: 600; transition: 0.3s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border-hi); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(3px); }

/* ---- Hero ---- */
.hero {
    position: relative; min-height: 88vh;
    display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: var(--hero-grad); }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; opacity: 0.5;
}
.hero .container { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero-kicker {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
    display: flex; align-items: center; gap: 10px;
}
.hero-kicker::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -3px; max-width: 720px; margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero-desc { font-size: 1.1rem; color: var(--text-soft); max-width: 480px; margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat-num { font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Marquee ---- */
.marquee-section { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-track { display: flex; gap: 60px; animation: marquee 30s linear infinite; white-space: nowrap; }
.marquee-track span { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 3px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Categories ---- */
.categories { padding: 80px 0; }
.cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 28px 16px 22px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface);
    transition: 0.3s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(212,255,58,0.06); }
[data-theme="light"] .cat-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.cat-ic {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-dim);
    display: flex; align-items: center; justify-content: center;
}
.cat-ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.4; }
.cat-card span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

/* ---- Sections ---- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; letter-spacing: -1.5px; }
.section-sub { color: var(--text-soft); max-width: 460px; font-size: 0.95rem; }

/* ---- Products ---- */
.products { padding: 80px 0; border-top: 1px solid var(--border); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.prod-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; transition: all 0.5s ease;
    position: relative; opacity: 0; transform: translateY(30px);
}
.prod-card.in-view { opacity: 1; transform: translateY(0); }
.prod-card:hover { border-color: var(--border-hi); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
[data-theme="light"] .prod-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.1); }

.prod-img {
    height: 260px; background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.prod-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-img .placeholder {
    width: 80px; height: 80px; stroke: #2a2a2e; fill: none; stroke-width: 0.8;
}
[data-theme="light"] .prod-img .placeholder { stroke: #ccc; }

/* Lazy loading skeleton */
.prod-img .skeleton {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.prod-tag {
    position: absolute; top: 14px; left: 14px;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 5px 10px; border-radius: 4px; z-index: 2;
}
.tag-pro { background: var(--text); color: var(--bg); }
.tag-lab { background: var(--accent-dim); color: var(--accent); }
.tag-sale { background: #C45F3C; color: #fff; }
.tag-new { background: var(--text-muted); color: var(--bg); }

.prod-wish {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
    transition: 0.3s; backdrop-filter: blur(4px);
}
.prod-wish:hover { background: var(--accent-dim); }
.prod-wish svg { width: 16px; height: 16px; stroke: var(--text-soft); fill: none; stroke-width: 1.6; }
.prod-wish.is-active { background: var(--accent-dim); }
.prod-wish.is-active svg { stroke: var(--accent); fill: var(--accent); }

/* Quick View Trigger - appears on prod-card hover */
.prod-card:hover .quick-view-trigger { opacity: 1; transform: translateY(0); }
.quick-view-trigger:hover { background: var(--accent) !important; color: #000 !important; border-color: var(--accent) !important; }

/* Prod add button click feedback */
.prod-add.clicked { background: var(--accent) !important; color: #000 !important; border-color: var(--accent) !important; }

/* Pro Pick Card Quick View Trigger */
.pro-pick-card:hover .quick-view-trigger { opacity: 1; transform: translateY(0); }

/* ---- Quick View Overlay */

.prod-body { padding: 20px; }
.prod-brand { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.prod-name { font-size: 1.05rem; font-weight: 700; margin: 4px 0 8px; }
.prod-specs { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text-muted); }

.prod-rating { display: flex; align-items: center; gap: 4px; margin: 8px 0; }
.prod-rating svg { width: 12px; height: 12px; fill: var(--accent); stroke: none; }
.prod-rating svg.empty { fill: none; stroke: var(--text-muted); stroke-width: 1.2; }
.prod-rating span { font-size: 0.72rem; color: var(--text-muted); margin-left: 4px; }

.prod-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.prod-price { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700; }
.prod-price .old { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; }
.prod-add {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border-hi); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: 0.3s; color: var(--text);
}
.prod-add:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* Load more */
.load-more-wrap { text-align: center; margin-top: 48px; }

/* ---- BioLab ---- */
.biolab { padding: 100px 0; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.biolab::before {
    content: ''; position: absolute;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-dim), transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    pointer-events: none;
}
.biolab .container { position: relative; }
.biolab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.biolab-visual {
    height: 420px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.biolab-visual svg { width: 120px; height: 120px; stroke: var(--accent); fill: none; stroke-width: 0.6; opacity: 0.6; }
.scan-line {
    position: absolute; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 3s ease-in-out infinite;
}
@keyframes scan { 0%,100% { top: 0; opacity: 0; } 50% { top: 100%; opacity: 1; } }

.biolab-text h2 { font-size: clamp(2rem,3.5vw,2.8rem); font-weight: 800; letter-spacing: -1.5px; margin: 16px 0; }
.biolab-text p { color: var(--text-soft); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }
.data-points { display: flex; gap: 32px; margin-bottom: 32px; }
.dp-num { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.dp-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ---- Trust ---- */
.trust { padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.trust-item { text-align: center; }
.trust-ic {
    width: 48px; height: 48px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--accent-dim);
    display: flex; align-items: center; justify-content: center;
}
.trust-ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.4; }
.trust-item h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.trust-item small { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Newsletter ---- */
.newsletter { padding: 100px 0; text-align: center; }
.newsletter h2 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.newsletter p { color: var(--text-soft); margin-bottom: 32px; }
.nl-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nl-form input {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); padding: 14px 20px; border-radius: 8px;
    font-size: 0.9rem; width: 300px; transition: 0.3s;
}
.nl-form input:focus { outline: none; border-color: var(--accent); }
.nl-form input::placeholder { color: var(--text-muted); }

/* ---- Footer ---- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 48px; margin-bottom: 48px; }
.foot-brand .logo { margin-bottom: 16px; }
.foot-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.foot-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; color: var(--text-soft); }
.foot-col a { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 4px 0; transition: 0.3s; }
.foot-col a:hover { color: var(--accent); transform: translateX(4px); }
.foot-bot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 32px; border-top: 1px solid var(--border);
    font-size: 0.78rem; color: var(--text-muted);
}
.foot-social { display: flex; gap: 12px; }
.foot-social a {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.foot-social a:hover { border-color: var(--accent); background: var(--accent-dim); }
.foot-social a svg { width: 16px; height: 16px; stroke: var(--text-soft); fill: none; stroke-width: 1.5; }

/* ---- Mobile Nav ---- */
.mob-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(10,10,11,0.95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); z-index: 200; padding: 8px 0;
}
[data-theme="light"] .mob-nav { background: rgba(248,248,246,0.95); }
.mob-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 4px; font-size: 0.65rem; color: var(--text-muted);
    padding: 8px; transition: 0.3s;
}
.mob-nav a:hover, .mob-nav a.active { color: var(--accent); }
.mob-nav a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ---- Pro Picks Section ---- */
.pro-picks { padding: 100px 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.pro-picks-header { text-align: center; margin-bottom: 48px; }
.pro-picks-header h2 { font-size: clamp(2rem,3.5vw,2.8rem); font-weight: 800; letter-spacing: -1.5px; margin: 12px 0 8px; }
.pro-picks-header p { color: var(--text-soft); max-width: 520px; margin: 0 auto; font-size: 0.95rem; }
.pro-picks-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.pro-picks-tab {
    padding: 10px 24px; border-radius: 999px; border: 1px solid var(--border-hi);
    font-size: 0.85rem; font-weight: 600; transition: 0.3s; cursor: pointer;
    background: transparent; color: var(--text-soft);
}
.pro-picks-tab:hover { border-color: var(--accent); color: var(--text); }
.pro-picks-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }
.pro-picks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pro-pick-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; transition: all 0.35s ease; position: relative;
}
.pro-pick-card:hover {
    transform: translateY(-6px); border-color: var(--accent);
    box-shadow: 0 24px 70px rgba(0,0,0,0.35), 0 0 0 1px rgba(212,255,58,0.15);
}
[data-theme="light"] .pro-pick-card:hover { box-shadow: 0 24px 70px rgba(0,0,0,0.12), 0 0 0 1px rgba(168,217,46,0.25); }
.pro-pick-img {
    height: 200px; background: var(--surface-2); position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.pro-pick-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pro-pick-card:hover .pro-pick-img img { transform: scale(1.06); }
.pro-pick-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 5px 10px; border-radius: 4px; background: var(--accent); color: #000;
}
.pro-pick-body { padding: 18px; }
.pro-pick-brand { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.pro-pick-name { font-size: 0.95rem; font-weight: 700; margin: 4px 0 6px; line-height: 1.3; }
.pro-pick-specs { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-muted); }
.pro-pick-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.pro-pick-price { font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 700; color: var(--accent); }
.pro-pick-rating { display: flex; align-items: center; gap: 4px; }
.pro-pick-rating svg { width: 12px; height: 12px; fill: var(--accent); stroke: none; }
.pro-pick-rating span { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Quick View Overlay ---- */
.quick-view-overlay {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.quick-view-overlay.is-open { display: flex; }

/* ---- Cart Drawer ---- */
.cart-drawer {
    position: fixed; top: 0; right: 0; width: 100%; max-width: 400px;
    height: 100vh; z-index: 6000; background: var(--surface);
    border-left: 1px solid var(--border); display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-header {
    padding: 24px 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.5px; }
.cart-close {
    width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2);
    border: 1px solid var(--border); color: var(--text); font-size: 1.2rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.cart-close:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.cart-items { flex: 1; padding: 20px; overflow-y: auto; }
.cart-empty {
    color: var(--text-muted); text-align: center; padding: 40px 20px; font-size: 0.9rem;
}
.cart-item {
    display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 60px; height: 60px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--accent); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 0.9rem; }
.cart-item-qty button:hover { background: var(--accent-dim); }
.cart-item-qty span { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; min-width: 20px; text-align: center; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-weight: 600; }
.cart-total span:first-child { color: var(--text-muted); font-size: 0.88rem; }

.cart-overlay {
    position: fixed; inset: 0; z-index: 5999; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: 0.3s;
}
.cart-overlay.is-visible { opacity: 1; visibility: visible; }

/* ---- Quick View ----
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.quick-view-overlay.is-open { display: flex; }
.quick-view-box {
    background: var(--surface); border: 1px solid var(--border-hi); border-radius: 16px;
    max-width: 680px; width: 100%; overflow: hidden; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.quick-view-close {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; cursor: pointer;
}
.quick-view-grid { display: grid; grid-template-columns: 1fr 1fr; }
.quick-view-img { height: 320px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.quick-view-img img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-info { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.quick-view-info .qv-brand { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.quick-view-info h3 { font-size: 1.3rem; font-weight: 800; margin: 6px 0 12px; letter-spacing: -0.5px; }
.quick-view-info .qv-specs { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 16px; }
.quick-view-info .qv-price { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.quick-view-info .qv-actions { display: flex; gap: 12px; }
.quick-view-trigger {
    position: absolute; bottom: 16px; right: 16px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer;
    backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.1);
    opacity: 0; transform: translateY(8px); transition: all 0.25s ease;
}
.prod-card:hover .quick-view-trigger { opacity: 1; transform: translateY(0); }
.quick-view-trigger svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---- Court Kits ---- */
.court-kits { padding: 100px 0; border-top: 1px solid var(--border); }
.court-kits-header { text-align: center; margin-bottom: 48px; }
.court-kits-header h2 { font-size: clamp(2rem,3.5vw,2.8rem); font-weight: 800; letter-spacing: -1.5px; margin: 12px 0 8px; }
.court-kits-header p { color: var(--text-soft); max-width: 520px; margin: 0 auto; }
.kits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kit-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: 0.35s;
}
.kit-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
[data-theme="light"] .kit-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.kit-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.kit-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 20px; }
.kit-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.kit-item { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-soft); }
.kit-item svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }
.kit-price { font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.kit-price .old { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.kit-card .btn { width: 100%; justify-content: center; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .header .container { padding: 0 24px; }
    .cats-grid { grid-template-columns: repeat(3,1fr); }
    .biolab-grid { grid-template-columns: 1fr; }
    .biolab-visual { height: 300px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .pro-picks-grid { grid-template-columns: repeat(2, 1fr); }
    .kits-grid { grid-template-columns: 1fr; }
    .quick-view-grid { grid-template-columns: 1fr; }
    .quick-view-img { height: 220px; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header .container { padding: 0 20px; }
    .header { top: 0; }
    .announcement { display: none; }
    .nav { display: none; }
    .hero h1 { letter-spacing: -2px; }
    .hero-stats { gap: 28px; flex-wrap: wrap; }
    .cats-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
    .cat-card { padding: 20px 10px 16px; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .section-head { flex-direction: column; gap: 16px; align-items: flex-start; }
    .nl-form input { width: 100%; }
    .foot-grid { grid-template-columns: 1fr; }
    .foot-bot { flex-direction: column; gap: 16px; text-align: center; }
    .mob-nav { display: flex; }
    .footer { padding-bottom: 90px; }
    .prod-grid { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
    .pro-picks-tabs { gap: 8px; }
    .pro-picks-tab { padding: 8px 16px; font-size: 0.8rem; }
    .pro-pick-card:hover { transform: none; }
}
@media (max-width: 640px) {
    .pro-picks-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pro-pick-img { height: 160px; }
    .pro-pick-body { padding: 14px; }
    .pro-pick-name { font-size: 0.85rem; }
    .kit-title { font-size: 1.2rem; }
}
