/* =========================================================
   X3ME FITNESS — storefront styles
   Theme colours live in :root. Brand colours: black, white and ash.
   ========================================================= */
:root {
    --accent: #f5f5f5;          /* white: buttons, prices, highlights */
    --ash: #a3a8ae;             /* ash grey: labels and second accent */
    --chrome: linear-gradient(100deg, #ffffff 0%, #c9ccd1 35%, #7d838a 55%, #e9eaec 75%, #ffffff 100%);
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-2: #1c1c1c;
    --text: #ffffff;
    --muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.22);
    --danger: #ff4d4d;
    --radius: 14px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4, .brand-font {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-weight: 700;
    line-height: 1.02;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 6rem 0; }
.section-alt { background: #0f0f0f; }
.eyebrow {
    color: var(--ash);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--chrome); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin-top: 0.6rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,.25); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: background .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled, .navbar.solid {
    background: rgba(10, 10, 10, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255,255,255,.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; }
.nav-logo span { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; position: relative; font-size: 1.05rem; transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--accent); background: rgba(255,255,255,.05); }
.cart-badge {
    position: absolute; top: 2px; right: 0;
    min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--accent); color: #000;
    font-size: .7rem; font-weight: 800; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.cart-badge[hidden] { display: none; }
.menu-btn { display: none; }
.mobile-menu {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 0 1rem; z-index: 49;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .85rem 1.25rem; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.mobile-menu a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    background:
        linear-gradient(100deg, rgba(10,10,10,.97) 0%, rgba(10,10,10,.82) 45%, rgba(10,10,10,.35) 100%),
        var(--hero-image, none) center/cover no-repeat;
}
.hero-short { min-height: 46vh; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.10), transparent 45%), var(--bg); }
.hero-inner { position: relative; z-index: 2; padding: calc(var(--nav-h) + 3rem) 0 4rem; max-width: 760px; }
.hero h1 { margin: 1.1rem 0 1.4rem; }
.gradient-text { background: var(--chrome); background-size: 200% auto; animation: shine 6s linear infinite; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 36rem; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 1; background: var(--accent); }
.hero-glow-1 { width: 20rem; height: 20rem; opacity: .10; right: 6%; top: 28%; animation: glow 5s ease-in-out infinite; }
.hero-glow-2 { width: 12rem; height: 12rem; opacity: .08; left: 4%; bottom: 18%; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat-value { font-family: 'Oswald', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-stat-label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; margin-top: .35rem; }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.scroll-cue::after { content: ''; width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; }

/* ---------- Marquee ---------- */
.marquee { background: var(--chrome); color: #000; overflow: hidden; padding: .85rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-item { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 0 1.6rem; white-space: nowrap; display: flex; align-items: center; gap: 3.2rem; }
.marquee-item::after { content: '✦'; font-size: .8rem; }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.category-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; display: block; background: var(--surface); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; filter: grayscale(25%); }
.category-icon { position: absolute; inset: 0 0 25%; display: grid; place-items: center; font-size: 4.5rem; color: var(--muted); transition: transform .7s var(--ease); }
.category-card:hover .category-icon { transform: scale(1.07); }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.15) 55%, transparent); }
.category-card:hover img { transform: scale(1.07); filter: grayscale(0); }
.category-info { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 2; }
.category-info h3 { font-size: 1.9rem; }
.category-info p { color: #cfcfcf; font-size: .9rem; margin: .4rem 0 .9rem; }
.category-link { color: var(--accent); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; display: inline-flex; gap: .5rem; align-items: center; }
.category-card:hover .category-link i { transform: translateX(4px); }
.category-link i { transition: transform .25s; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease); }
.product-card:hover { border-color: rgba(255,255,255,.45); transform: translateY(-4px); }
.product-media { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .35s; }
.product-media img.alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-card:hover .product-media img.alt { opacity: 1; }
.product-media .no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #444; font-size: 2.4rem; }
.product-tag { position: absolute; top: .8rem; left: .8rem; z-index: 2; background: var(--accent); color: #000; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .1em; padding: .25rem .6rem; border-radius: 3px; }
.product-tag.sale { background: var(--danger); color: #fff; }
.sold-out-veil { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-category { color: var(--ash); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.product-name { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 1.05rem; line-height: 1.2; }
.product-swatches { display: flex; gap: .35rem; margin-top: .15rem; }
.product-swatches span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border-strong); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .6rem; margin-top: auto; padding-top: .4rem; }
.price { font-family: 'Oswald', sans-serif; font-size: 1.25rem; color: var(--accent); font-weight: 600; }
.price-from { font-size: .72rem; color: var(--muted); font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .08em; margin-right: .2rem; }
.price-old { color: #6b7280; text-decoration: line-through; font-size: .9rem; }

/* Skeleton while products load */
.skeleton { background: linear-gradient(90deg, #151515 25%, #1d1d1d 50%, #151515 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
.skeleton-card { aspect-ratio: 3 / 4; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 4rem 1rem; }

/* ---------- Shop toolbar ---------- */
.shop-toolbar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.search-box { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input, .search-box input, select.input {
    width: 100%; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); transition: border-color .2s;
}
.search-box input { padding-left: 2.6rem; }
.input:focus, .search-box input:focus { outline: none; border-color: var(--accent); }
.pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill { padding: .55rem 1.1rem; border: 1px solid var(--border-strong); border-radius: 50px; font-size: .85rem; font-weight: 600; transition: all .2s; }
.pill:hover { border-color: var(--accent); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #000; }
.sub-pills { margin-bottom: 2rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.pill-sub { padding: .4rem .9rem; font-size: .8rem; font-weight: 500; color: var(--ash); }
.pill-sub.active { color: #000; }
.pill-count { opacity: .55; font-size: .72rem; margin-left: .2rem; }
.mobile-subs { display: flex; flex-wrap: wrap; gap: .1rem 1rem; padding: 0 1.25rem .7rem 1.9rem; margin-top: -.4rem; }
.mobile-menu .mobile-subs a { display: inline-block; padding: .25rem 0; font-family: 'Inter', sans-serif; text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--ash); }
.sort-select { width: auto; min-width: 190px; }

/* ---------- Product detail ---------- */
.pdp { padding: calc(var(--nav-h) + 2rem) 0 5rem; }
.breadcrumb { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1.5rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text); }
.pdp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; }
.gallery-main { aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .7rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.gallery-thumbs button { flex: 0 0 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: all .2s; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.pdp-info h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .5rem 0 1rem; }
.pdp-price { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.2rem; }
.pdp-price .price { font-size: 2rem; }
.pdp-desc { color: var(--muted); margin-bottom: 1.6rem; white-space: pre-line; }
.option-group { margin-bottom: 1.3rem; }
.option-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: .6rem; }
.option-label span { color: var(--accent); }
.option-values { display: flex; gap: .55rem; flex-wrap: wrap; }
.chip { min-width: 48px; padding: .55rem .95rem; border: 1.5px solid var(--border-strong); border-radius: 6px; font-weight: 600; font-size: .9rem; transition: all .15s; }
.chip:hover { border-color: var(--text); }
.chip.active { border-color: var(--accent); background: rgba(255,255,255,.12); color: var(--accent); }
.chip.unavailable { opacity: .35; text-decoration: line-through; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border-strong); position: relative; transition: transform .15s; }
.swatch.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.swatch.unavailable::after { content: ''; position: absolute; inset: 45% -2px auto; height: 2px; background: var(--danger); transform: rotate(-45deg); }
.stock-note { font-size: .88rem; margin: .4rem 0 1.2rem; min-height: 1.4em; }
.stock-note.low { color: #fbbf24; }
.stock-note.out { color: var(--danger); }
.buy-row { display: flex; gap: .8rem; margin-bottom: 1rem; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: 4px; }
.qty button { width: 44px; height: 100%; min-height: 50px; font-size: 1.1rem; }
.qty button:hover { color: var(--accent); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.buy-row .btn { flex: 1; }
.pdp-perks { margin-top: 1.8rem; border-top: 1px solid var(--border); padding-top: 1.3rem; display: grid; gap: .75rem; font-size: .9rem; color: var(--muted); }
.pdp-perks i { color: var(--accent); width: 22px; }

/* ---------- About / features ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; gap: 1.2rem; margin-top: 2rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature i { color: var(--accent); font-size: 1.2rem; margin-top: .25rem; width: 24px; }
.feature h4 { font-size: 1.05rem; margin-bottom: .2rem; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.review-stars { color: var(--accent); letter-spacing: .15em; }
.review-quote { color: #d4d4d4; flex: 1; }
.review-person { display: flex; align-items: center; gap: .8rem; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #000; font-family: 'Oswald', sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.review-person small { display: block; color: var(--muted); }

/* ---------- Policy text, product details, size guide ---------- */
.policy { max-width: 760px; }
.policy h3, .pdp-details .policy h3 { font-size: 1.15rem; letter-spacing: .06em; margin: 2rem 0 .7rem; }
.policy p { color: #d1d5db; margin-bottom: .8rem; }
.policy ul { list-style: none; display: grid; gap: .55rem; margin-bottom: 1rem; }
.policy li { position: relative; padding-left: 1.4rem; color: #d1d5db; }
.policy li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--ash); }
.pdp-details { margin-top: 1.6rem; border-top: 1px solid var(--border); }
.pdp-details details { border-bottom: 1px solid var(--border); }
.pdp-details summary { list-style: none; cursor: pointer; padding: 1rem 0; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.pdp-details summary::-webkit-details-marker { display: none; }
.pdp-details summary::after { content: '+'; font-size: 1.3rem; color: var(--ash); transition: transform .2s var(--ease); }
.pdp-details details[open] summary::after { transform: rotate(45deg); }
.pdp-details .detail-body { padding: 0 0 1.2rem; color: #d1d5db; font-size: .95rem; }
.pdp-details .detail-body p + p { margin-top: .7rem; }
.pdp-details .policy h3 { margin-top: 1rem; font-size: .95rem; }
.pdp-highlights { list-style: none; display: grid; gap: .5rem; margin-top: 1rem; }
.pdp-highlights li { display: flex; gap: .65rem; align-items: baseline; color: #e5e7eb; font-size: .95rem; }
.pdp-highlights i { color: var(--ash); font-size: .8rem; }
.size-guide-link { margin-left: auto; font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.size-guide-link:hover { color: var(--accent); }
.option-label { display: flex; gap: .4rem; align-items: baseline; }
.fit-note { margin-top: .6rem; font-size: .85rem; color: var(--ash); display: flex; gap: .45rem; align-items: center; }
.modal-box.size-guide-box { width: min(760px, 100%); }
.size-guide-box img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; margin-top: 1rem; background: #fff; }
.size-guide-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.size-guide-tools .size-guide-link { margin-left: 0; }
.size-table-title { font-size: 1rem; letter-spacing: .08em; margin-top: 1.2rem; }
.size-table-wrap { overflow-x: auto; margin-top: .8rem; border: 1px solid var(--border); border-radius: 10px; }
.size-table { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
.size-table th, .size-table td { padding: .6rem .75rem; text-align: center; border-bottom: 1px solid var(--border); }
.size-table th { font-family: 'Oswald', sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--ash); background: var(--surface); }
.size-table th small { text-transform: none; color: var(--muted); }
.size-table tbody tr:last-child td { border-bottom: none; }
.size-table td:first-child { font-weight: 700; }
.size-table td.uk { font-weight: 700; color: var(--accent); background: rgba(255,255,255,.05); }
.size-table td.text { white-space: normal; text-align: left; min-width: 200px; }

/* ---------- Newsletter ---------- */
.newsletter { background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.12), transparent 50%), var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 3.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.newsletter-form { display: grid; gap: .7rem; }
.newsletter-row { display: flex; gap: .6rem; }
.newsletter-row .input { flex: 1; }
.seg-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start; background: var(--bg); border: 1px solid var(--border); border-radius: 50px; padding: 3px; }
.seg-toggle button { padding: .45rem 1.1rem; border-radius: 50px; color: var(--muted); font-size: .85rem; font-weight: 600; display: inline-flex; gap: .45rem; align-items: center; justify-content: center; }
.seg-toggle button.active { background: var(--accent); color: #000; }
.restock-alert { margin-top: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.restock-alert p { font-size: .9rem; margin-bottom: .6rem; }
.restock-alert form { display: flex; gap: .5rem; }
.restock-alert .input { flex: 1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-size: .95rem; margin-bottom: 1rem; letter-spacing: .08em; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a { color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-socials a { width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: #6b7280; font-size: .85rem; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #0f0f0f; border-left: 1px solid var(--border); z-index: 100; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.drawer-foot { border-top: 1px solid var(--border); padding: 1.2rem 1.4rem 1.4rem; display: grid; gap: .8rem; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.cart-line img, .cart-line .ph { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.cart-line-name { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: .95rem; line-height: 1.2; }
.cart-line-variant { color: var(--muted); font-size: .8rem; }
.cart-line .mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 4px; margin-top: .45rem; }
.cart-line .mini-qty button { width: 28px; height: 28px; }
.cart-line .mini-qty span { min-width: 24px; text-align: center; font-size: .85rem; font-weight: 700; }
.cart-line-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-remove { color: var(--muted); font-size: .85rem; }
.cart-remove:hover { color: var(--danger); }
.totals-row { display: flex; justify-content: space-between; font-size: .95rem; }
.totals-row.grand { font-family: 'Oswald', sans-serif; font-size: 1.35rem; text-transform: uppercase; }
.totals-row.grand span:last-child { color: var(--accent); }
.free-bar { font-size: .82rem; color: var(--muted); }
.free-bar .track { height: 5px; background: var(--surface-2); border-radius: 5px; margin-top: .4rem; overflow: hidden; }
.free-bar .fill { height: 100%; background: var(--accent); transition: width .4s var(--ease); }
.field-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin-bottom: .35rem; display: block; }

/* ---------- Checkout modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-box { background: #111; border: 1px solid var(--border); border-radius: 18px; width: min(520px, 100%); max-height: 92vh; overflow-y: auto; padding: 2rem; position: relative; }
.modal-box h2 { font-size: 1.9rem; margin-bottom: .3rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; }
.form-grid { display: grid; gap: .9rem; margin: 1.4rem 0; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.order-summary { background: var(--surface); border-radius: 10px; padding: 1rem; display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.code-row { display: flex; gap: .5rem; margin-top: .4rem; }
.code-row .input { text-transform: uppercase; padding: .55rem .8rem; }
.code-note { font-size: .8rem; color: var(--ash); min-height: 0; }
.code-note:empty { display: none; }
.secure-note { text-align: center; color: var(--muted); font-size: .8rem; margin-top: .8rem; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.2rem; }

/* ---------- WhatsApp + toast ---------- */
.wa-float { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 10px 30px rgba(37,211,102,.35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); z-index: 200; background: #fff; color: #000; padding: .8rem 1.3rem; border-radius: 50px; font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: transform .35s var(--ease); display: flex; align-items: center; gap: .6rem; max-width: calc(100vw - 2rem); }
.toast.show { transform: translate(-50%, 0); }
.toast i { color: #16a34a; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes glow { 50% { opacity: .28; transform: scale(1.1); } }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .pdp-grid { gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .nav-links { display: none; }
    .menu-btn { display: inline-flex; }
    .category-grid, .review-grid { grid-template-columns: 1fr; }
    .category-card { aspect-ratio: 16 / 10; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .pdp-grid, .about-grid, .newsletter { grid-template-columns: 1fr; }
    .pdp-info { position: static; }
    .newsletter { padding: 2rem 1.4rem; }
    .section { padding: 4.5rem 0; }
}
@media (max-width: 520px) {
    .container { padding: 0 1rem; }
    .hero-stats { gap: 1.4rem; }
    .product-body { padding: .8rem; }
    .product-name { font-size: .92rem; }
    .price { font-size: 1.05rem; }
    .newsletter-row, .restock-alert form { flex-direction: column; }
    .form-grid .two { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .modal-box { padding: 1.5rem 1.2rem; }
    .sort-select { width: 100%; }
}

/* ---------- Order confirmation & tracking ---------- */
.order-page { padding: calc(var(--nav-h) + 2.5rem) 0 4rem; min-height: 80vh; }
.order-hero { display: flex; gap: 1.6rem; align-items: center; background: radial-gradient(circle at 10% 50%, rgba(255,255,255,.14), transparent 55%), var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2.2rem; margin-bottom: 1.5rem; }
.order-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .5rem 0 .6rem; }
.order-hero-icon { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; font-size: 2.3rem; box-shadow: 0 0 0 10px rgba(255,255,255,.12); }
.order-hero.waiting .order-hero-icon { background: var(--surface-2); color: var(--accent); box-shadow: 0 0 0 10px rgba(255,255,255,.04); animation: glow 2s ease-in-out infinite; }
.order-hero.warn .order-hero-icon { background: #f59e0b; box-shadow: 0 0 0 10px rgba(245,158,11,.15); }
.order-hero.cancelled .order-hero-icon { background: #333; color: #bbb; box-shadow: none; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.5rem; }
.order-card h3 { font-size: 1rem; letter-spacing: .1em; color: var(--accent); margin-bottom: 1.1rem; }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
.order-grid .order-card { margin-bottom: 0; }
.tracker { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.tracker li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; position: relative; color: var(--muted); }
.tracker li::before { content: ''; position: absolute; top: 22px; left: -50%; width: 100%; height: 3px; background: var(--surface-2); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.done::before, .tracker li.current::before { background: var(--accent); }
.tracker-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.tracker li.done .tracker-dot { background: var(--accent); border-color: var(--accent); color: #000; }
.tracker li.current .tracker-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(255,255,255,.15); }
.tracker li.done, .tracker li.current { color: var(--text); }
.tracker-label { font-weight: 600; font-size: .85rem; line-height: 1.3; }
.tracker-label small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; margin-top: .2rem; }
.stack-list { display: grid; gap: .8rem; }
.order-link { display: flex; justify-content: space-between; align-items: center; margin: 0; transition: border-color .2s; }
.order-link:hover { border-color: var(--accent); }
@media (max-width: 820px) {
    .order-grid { grid-template-columns: 1fr; }
    .order-hero { flex-direction: column; text-align: center; padding: 1.8rem 1.2rem; }
    .order-hero .eyebrow::before { display: none; }
    .tracker { grid-template-columns: 1fr; gap: 1rem; }
    .tracker li { flex-direction: row; text-align: left; gap: 1rem; }
    .tracker li::before { top: -1rem; left: 22px; width: 3px; height: 1rem; }
}
.delivery-note { font-size: .82rem; color: var(--accent); margin-top: .45rem; }

/* Shop (branch) picker */
.branch-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid var(--border-strong); border-radius: 50px; font-size: .82rem; color: var(--text); background: transparent; cursor: pointer; white-space: nowrap; }
.branch-chip i { color: var(--accent); }
.branch-chip:hover { border-color: var(--accent); }
.branch-box { text-align: center; }
.branch-options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.4rem; }
.branch-option { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.4rem 1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s, transform .2s; }
.branch-option i { font-size: 1.6rem; color: var(--accent); }
.branch-option strong { font-family: 'Oswald', sans-serif; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; }
.branch-option span { font-size: .78rem; color: var(--muted); }
.branch-option:hover, .branch-option.active { border-color: var(--accent); transform: translateY(-2px); }
.cart-branch { font-size: .82rem; color: var(--muted); margin-bottom: .8rem; }
.cart-branch i { color: var(--accent); margin-right: .2rem; }
.cart-branch a { color: var(--accent); }
@media (max-width: 560px) {
    .branch-chip span { display: none; }
    .branch-chip { padding: .5rem .65rem; }
    .branch-options { grid-template-columns: 1fr; }
}

/* Influencer stats page (partner.html) */
.pt-share { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: end; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; margin-bottom: 1.2rem; }
.pt-code { font-family: 'Oswald', sans-serif; font-size: 2rem; letter-spacing: .06em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-link-row { display: flex; gap: .5rem; margin-top: .35rem; }
.pt-link-row .input { min-width: 0; font-size: .85rem; }
.pt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 2rem; }
.pt-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem; }
.pt-kpi-label { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.pt-kpi-value { font-family: 'Oswald', sans-serif; font-size: 1.8rem; line-height: 1.15; margin-top: .3rem; }
.pt-kpi-sub { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.pt-h { font-size: 1.15rem; margin: 1.8rem 0 .7rem; }
.pt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pt-table th { text-align: left; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: .55rem .5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pt-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pt-paid { color: #9be3b0; font-weight: 600; }
.pt-rules { color: var(--muted); line-height: 1.7; padding-left: 1.1rem; }
.pt-rules strong { color: var(--text); }
@media (max-width: 640px) { .pt-share { grid-template-columns: 1fr; } }
