/* EXDOGESION design system
   Palette: black #080A0F, white #FFFFFF, electric blue #087BFF, dark grays for surfaces. */
:root {
  --black: #080a0f;
  --surface: #0e121a;
  --surface-2: #141a25;
  --surface-3: #1b2331;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --text: #e8edf5;
  --muted: #9aa6b8;
  --blue: #087bff;
  --blue-hi: #3b9bff;
  --blue-dim: rgba(8, 123, 255, 0.14);
  --danger: #ff5d6c;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--blue-hi); text-decoration: none; }
a:hover { color: var(--white); }
h1, h2, h3, h4 { color: var(--white); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 750; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 14px; display: block; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 10, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text); font-weight: 560; font-size: 0.95rem; padding: 9px 14px; border-radius: 999px; transition: background 0.2s var(--ease), color 0.2s; }
.nav a:hover { background: var(--surface-2); color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); background: var(--surface-3); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); border: 1px solid var(--line-strong); transition: border-color 0.2s, background 0.2s; }
.cart-link:hover { background: var(--surface-2); border-color: var(--blue); color: #fff; }
.cart-link svg { width: 21px; height: 21px; }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 999px; display: grid; place-items: center; }
.cart-badge[hidden] { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: #fff; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--black); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .brand img { height: 48px; }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 30px -10px rgba(8, 123, 255, 0.7); }
.btn-primary:hover { background: var(--blue-hi); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.05); }
.btn-sm { padding: 10px 18px; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 93, 108, 0.4); }
.btn-danger:hover { background: rgba(255, 93, 108, 0.1); color: var(--danger); }

label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.req { color: var(--blue-hi); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; font: inherit; color: var(--white); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
input[type="file"] { width: 100%; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px; font: inherit; font-size: 0.9rem; }
input[type="file"]::file-selector-button { background: var(--surface-3); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; margin-right: 12px; cursor: pointer; font: inherit; font-weight: 600; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239aa6b8' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.field { margin-bottom: 20px; }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.flashes { margin: 18px auto 0; display: grid; gap: 10px; }
.flash { padding: 13px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 0.95rem; }
.flash.success { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.08); }
.flash.error { border-color: rgba(255, 93, 108, 0.55); background: rgba(255, 93, 108, 0.09); }
.flash.info { border-color: rgba(8, 123, 255, 0.5); background: var(--blue-dim); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); background:
  radial-gradient(900px 480px at 82% 12%, rgba(8, 123, 255, 0.16), transparent 62%), var(--black); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); opacity: 0.55; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 .blue { color: var(--blue); }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; color: var(--muted); font-size: 0.88rem; }
.hero-meta span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 9px; vertical-align: middle; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(-2.5deg); }
.mosaic a { display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); transition: transform 0.4s var(--ease), border-color 0.3s; }
.mosaic a:nth-child(2) { transform: translateY(28px); }
.mosaic a:nth-child(3) { transform: translateY(-14px); }
.mosaic a:hover { border-color: var(--blue); transform: translateY(-6px) scale(1.02); }
.mosaic img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .mosaic { transform: none; max-width: 520px; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 38px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.text-link { font-weight: 650; font-size: 0.92rem; }
.text-link::after { content: " →"; }

/* product cards */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 340px) { .grid-products { grid-template-columns: 1fr; } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.pcard:hover { transform: translateY(-5px); border-color: rgba(8, 123, 255, 0.55); box-shadow: 0 22px 44px -26px rgba(8, 123, 255, 0.55); }
.pcard-img { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; display: block; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.pcard h3 { margin: 0; font-size: 1.02rem; }
.pcard h3 a { color: var(--white); }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-desc { color: var(--muted); font-size: 0.88rem; margin: 0; flex: 1; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.price { font-size: 1.15rem; font-weight: 750; color: var(--white); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 5px; }
.dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-3); }
.badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(8, 10, 15, 0.82); border: 1px solid var(--line-strong); color: #fff; backdrop-filter: blur(6px); }
.badge.sample { color: var(--warn); border-color: rgba(251, 191, 36, 0.5); }
.badge.hot { color: #fff; background: var(--blue); border-color: var(--blue); }
.badge.out, .badge.plain { position: absolute; top: 12px; right: 12px; z-index: 2; }
.badge.out { color: var(--danger); border-color: rgba(255, 93, 108, 0.5); }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; min-height: 150px; }
.cat:hover { transform: translateY(-4px); border-color: var(--blue); background: var(--surface-3); color: #fff; }
.cat strong { color: #fff; font-size: 1.05rem; }
.cat span { color: var(--muted); font-size: 0.86rem; }
.cat em { margin-top: auto; font-style: normal; font-size: 0.8rem; color: var(--blue-hi); font-weight: 650; }

/* steps & features */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 0.82rem; font-weight: 750; color: var(--blue-hi); letter-spacing: 0.14em; margin-bottom: 14px; }
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.feature svg { width: 30px; height: 30px; color: var(--blue-hi); margin-bottom: 16px; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.review { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stars { color: var(--blue-hi); letter-spacing: 3px; margin-bottom: 10px; }
.empty-box { padding: 38px 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }

.cta-band { padding: clamp(40px, 6vw, 72px); border-radius: 28px; border: 1px solid var(--line-strong); background: radial-gradient(700px 300px at 90% 0%, rgba(8, 123, 255, 0.28), transparent 70%), var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin: 0; max-width: 520px; }

/* ---------- shop ---------- */
.page-head { padding: 56px 0 30px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 260px at 85% 0, rgba(8, 123, 255, 0.12), transparent 70%); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.page-head p { color: var(--muted); max-width: 640px; margin: 0; }
.shop-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 16px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: 0.88rem; font-weight: 600; transition: all 0.2s; }
.chip:hover { border-color: var(--blue); color: #fff; }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.shop-search { flex: 1 1 220px; max-width: 340px; padding: 10px 14px; }
.shop-bar select { width: auto; padding: 10px 38px 10px 14px; }
.shop-bar .check { font-size: 0.88rem; }
.chips-scroll { margin-top: 22px; }
.result-count { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }

/* ---------- product page ---------- */
.crumbs { font-size: 0.86rem; color: var(--muted); padding: 22px 0 6px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: #fff; }
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; padding: 18px 0 70px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 30px; } }
.pdp-img { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: sticky; top: 100px; }
@media (max-width: 900px) { .pdp-img { position: static; } }
.pdp-img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pdp h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.pdp .price { font-size: 1.8rem; }
.pdp-form { margin: 26px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; border: 1px solid rgba(255, 255, 255, 0.3); }
.swatch input:checked + span { border-color: var(--blue); background: var(--blue-dim); color: #fff; }
.swatch input:focus-visible + span { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.swatch span:hover { border-color: var(--blue-hi); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 46px; background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--surface-3); }
.qty input { width: 52px; text-align: center; border: 0; background: transparent; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 14px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 180px; }
.details-list { padding-left: 20px; color: var(--muted); } .details-list li { margin-bottom: 6px; }
.stock-note { font-size: 0.88rem; font-weight: 600; }
.stock-note.ok { color: var(--ok); } .stock-note.low { color: var(--warn); } .stock-note.out { color: var(--danger); }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.07); font-size: 0.9rem; }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; padding: 40px 0 80px; align-items: start; }
@media (max-width: 920px) { .cart-layout { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.line h3 { margin: 0 0 3px; font-size: 1rem; } .line .sub { color: var(--muted); font-size: 0.86rem; }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.line-actions input[type="number"] { width: 70px; padding: 8px 10px; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.86rem; cursor: pointer; text-decoration: underline; padding: 0; }
.link-btn:hover { color: var(--danger); }
.summary { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); position: sticky; top: 100px; }
.summary h2 { font-size: 1.25rem; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.sum-row.total { color: #fff; font-weight: 750; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.opt { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); margin-bottom: 12px; cursor: pointer; transition: all 0.2s; }
.opt:hover { border-color: var(--blue-hi); }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-dim); }
.opt input { accent-color: var(--blue); margin-top: 5px; width: 18px; height: 18px; }
.opt strong { display: block; color: #fff; } .opt small { color: var(--muted); display: block; margin-top: 2px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 22px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 18px; }
.test-banner { padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.08); margin-bottom: 24px; font-size: 0.95rem; }
.test-banner strong { color: var(--warn); }

/* order tracking */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 28px 0 8px; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }
.tl { position: relative; padding-top: 18px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.tl::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 5px; background: var(--surface-3); }
.tl.done::before { background: var(--blue); }
.tl.now { color: #fff; }
.tl.now::before { background: var(--blue-hi); box-shadow: 0 0 14px rgba(8, 123, 255, 0.8); }
@media (max-width: 760px) { .tl { padding: 0 0 0 18px; } .tl::before { right: auto; width: 5px; height: 100%; top: 0; } }
.event { padding: 12px 0; border-bottom: 1px solid var(--line); }
.event small { color: var(--muted); }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--line-strong); }
.pill.paid { color: var(--ok); border-color: rgba(52, 211, 153, 0.5); }
.pill.unpaid, .pill.pending { color: var(--warn); border-color: rgba(251, 191, 36, 0.5); }
.pill.failed, .pill.cancelled { color: var(--danger); border-color: rgba(255, 93, 108, 0.5); }

/* custom page */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 44px 0 80px; align-items: start; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }
.side-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
.side-card ol { margin: 0; padding-left: 20px; color: var(--muted); } .side-card li { margin-bottom: 10px; }
.side-card li strong { color: #fff; }
.success-box { text-align: center; padding: 70px 0 90px; }
.success-box .tick { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-dim); border: 1px solid var(--blue); color: var(--blue-hi); }
.ref { display: inline-block; padding: 10px 20px; font-size: 1.15rem; font-weight: 750; letter-spacing: 0.1em; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: #fff; margin: 8px 0 22px; }

/* video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.video-frame { aspect-ratio: 9 / 16; max-height: 580px; background: #000; display: grid; place-items: center; width: 100%; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-card .body { padding: 20px; }
.mini-products { display: grid; gap: 10px; margin-top: 14px; }
.mini { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); }
.mini:hover { border-color: var(--blue); color: #fff; }
.mini img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.mini span { display: block; font-size: 0.8rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 60px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid img { height: 70px; width: auto; margin-bottom: 14px; }
.foot-grid h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--text); font-size: 0.94rem; } .foot-grid a:hover { color: var(--blue-hi); }
.social { display: flex; gap: 10px; margin-top: 4px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.88rem; font-weight: 600; }
.social a:hover { border-color: var(--blue); }
.foot-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }

/* error pages */
.error-page { text-align: center; padding: 110px 0; }
.error-page .code { font-size: 5.5rem; font-weight: 800; color: var(--blue); letter-spacing: -0.04em; line-height: 1; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--surface-3); border: 1px solid var(--blue); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; z-index: 90; transition: all 0.35s var(--ease); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: var(--danger); }

/* scroll reveal (only when JS is on, and never for reduced-motion users) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* ================= v2 polish ================= */

/* header */
.site-header, .header-row, .brand img { transition: background 0.3s, box-shadow 0.3s, height 0.3s var(--ease); }
.site-header.scrolled { background: rgba(8, 10, 15, 0.95); box-shadow: 0 14px 34px -22px #000; }
.site-header.scrolled .header-row { height: 68px; }
.site-header.scrolled .brand img { height: 48px; }
.cart-badge.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* buttons: soft shine on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn.working { opacity: 0.7; pointer-events: none; }

/* entrance + float */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; scale: 0.92; } to { opacity: 1; scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.hero-grid > div:first-child > * { animation: rise 0.8s var(--ease) backwards; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: 0.08s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: 0.18s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: 0.28s; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: 0.38s; }
.mosaic a { animation: pop 0.9s var(--ease) backwards, float 9s ease-in-out infinite; }
.mosaic a:nth-child(1) { animation-delay: 0.15s, 1s; }
.mosaic a:nth-child(2) { animation-delay: 0.3s, 2.2s; }
.mosaic a:nth-child(3) { animation-delay: 0.45s, 3.1s; }
.mosaic a:nth-child(4) { animation-delay: 0.6s, 4s; }
.mosaic a:hover { animation-play-state: running, paused; }

/* section headings "print" an accent line when revealed */
.section-head h2::after, .page-head h1::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; margin-top: 14px; background: var(--blue); box-shadow: 0 0 14px rgba(8, 123, 255, 0.7); }
.js .section-head.reveal h2::after { width: 0; transition: width 0.9s var(--ease) 0.25s; }
.js .section-head.reveal.in h2::after { width: 46px; }
.page-head h1::after { animation: grow 0.9s var(--ease) 0.2s backwards; }
@keyframes grow { from { width: 0; } }

/* staggered card reveals (animation only on entry; hover transforms stay intact) */
.js .stagger:not(.in) > * { opacity: 0; }
.stagger.in > * { animation: rise 0.65s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 8) * 70ms); }

/* shop layout */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.result-count a { margin-left: 2px; }
@media (max-width: 700px) {
  .chips-scroll { margin-inline: -20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); }
  .chips-scroll::-webkit-scrollbar { display: none; }
  .chips { flex-wrap: nowrap; padding: 0 20px; width: max-content; }
  .chip { white-space: nowrap; }
  .shop-search { flex: 1 1 calc(100% - 118px); min-width: 0; max-width: none; order: 1; }
  .shop-bar > .btn { order: 2; }
  .shop-bar select { flex: 1 1 auto; order: 3; }
  .shop-bar .check { order: 4; }
  .page-head { padding: 40px 0 22px; }
}
@media (max-width: 780px) {
  .pcard-body { padding: 12px 12px 14px; gap: 4px; }
  .pcard h3 { font-size: 0.94rem; }
  .pcard-desc { font-size: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard-cat { font-size: 0.64rem; }
  .price { font-size: 1.02rem; }
  .dot { width: 11px; height: 11px; }
  .badge { font-size: 0.6rem; padding: 4px 8px; }
  .badges, .badge.out, .badge.plain { top: 8px; }
  .badges { left: 8px; } .badge.out, .badge.plain { right: 8px; }
}

/* product gallery */
.gallery { position: sticky; top: 100px; }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery-main { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery-main img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: opacity 0.25s; }
.gallery-main img.swap { opacity: 0; }
.zoom-hint { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 650; background: rgba(8, 10, 15, 0.8); border: 1px solid var(--line-strong); color: #fff; opacity: 0; transform: translateY(6px); transition: all 0.25s; }
@media (hover: hover) { .gallery-main:hover .zoom-hint { opacity: 1; transform: none; } }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-btn { width: 76px; height: 76px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.thumb-btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.thumb-btn[aria-current="true"] { border-color: var(--blue); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(4, 6, 10, 0.94); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; width: auto; height: auto; border-radius: 16px; border: 1px solid var(--line-strong); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: #fff; font-size: 1.4rem; cursor: pointer; }
.price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.price-row .price { font-size: 1.9rem; }
.lede { font-size: 1.02rem; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 24px; }
.perks div { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.perks svg { width: 22px; height: 22px; color: var(--blue-hi); }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } .perks div { flex-direction: row; align-items: center; } }

/* accordions */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 650; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue-hi); line-height: 1; transition: transform 0.25s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details[open] > :not(summary) { animation: rise 0.35s var(--ease); }
.acc-body { padding: 0 0 16px; color: var(--muted); }
.acc .details-list { margin: 0 0 16px; }

/* sticky mobile buy bar */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14, 18, 26, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line-strong); transform: translateY(110%); transition: transform 0.35s var(--ease); }
.buy-bar.show { transform: none; }
.buy-bar-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.buy-bar-info strong { color: #fff; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar-info span { color: var(--muted); font-size: 0.86rem; }
@media (max-width: 900px) { .buy-bar { display: flex; } body:has(.buy-bar) { padding-bottom: 74px; } body:has(.buy-bar.show) .toast { bottom: 94px; } }

/* cart extras */
.ship-progress { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 6px; }
.ship-progress p { margin: 0 0 10px; font-size: 0.92rem; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); transition: width 0.9s var(--ease); }
@media (max-width: 560px) { .line { grid-template-columns: 72px 1fr; } .line img { width: 72px; height: 72px; } .line > .price { grid-column: 2; } }

/* upload feedback */
.file-preview { margin: 0 0 8px; }
.file-preview img { max-height: 120px; width: auto; border-radius: 10px; border: 1px solid var(--line-strong); }
.file-info.ok { color: var(--ok); }

/* honest labelling of AI-generated product photos */
.ai-label { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(8, 10, 15, 0.78); color: #dce8ff; border: 1px solid rgba(8, 123, 255, 0.5); border-radius: 999px; padding: 4px 10px; font-size: 0.74rem; font-weight: 600; backdrop-filter: blur(4px); pointer-events: none; }
.ai-label[hidden] { display: none; }
.ai-label.small { left: 8px; bottom: 8px; padding: 2px 8px; font-size: 0.68rem; }
