/* ByteForge storefront — design system
   ------------------------------------------------------------------
   1. Fonts & tokens      6. Product cards        11. Checkout & gateway
   2. Base                7. Product detail       12. Orders, tracking, invoice
   3. Layout utilities    8. Shop & filters       13. Account, auth, admin
   4. Buttons & forms     9. Cart & drawer        14. Motion
   5. Header & footer    10. Home                 15. Responsive
*/

/* 1. Fonts & tokens ------------------------------------------------- */
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-100-900.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0d1014;
  --ink-2: #171b21;
  --ink-3: #252b33;
  --text: #15181d;
  --text-2: #3d444d;
  --muted: #69717c;
  --line: #e2e4e7;
  --line-2: #d3d6da;
  --bg: #ffffff;
  --surface: #f4f5f6;
  --surface-2: #eceef0;
  --accent: #e4531f;
  --accent-hover: #c94516;
  --accent-soft: #fdf0ea;
  --link: #1b5fc1;
  --ok: #157a52;
  --ok-soft: #e8f5ee;
  --warn: #a8600b;
  --warn-soft: #fdf4e4;
  --danger: #c0281c;
  --danger-soft: #fdeceb;
  --info-soft: #ecf2fb;
  --radius-s: 4px;
  --radius: 8px;
  --radius-l: 12px;
  --shadow-s: 0 1px 2px rgba(13, 16, 20, .06);
  --shadow: 0 1px 2px rgba(13, 16, 20, .05), 0 6px 18px -6px rgba(13, 16, 20, .14);
  --shadow-l: 0 24px 60px -18px rgba(13, 16, 20, .35);
  --container: 1360px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }
p a, .prose a, .link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
p a:hover, .prose a:hover, .link:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; font-stretch: 90%; letter-spacing: -.012em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(26px, 2.6vw, 36px); }
h2 { font-size: clamp(21px, 1.8vw, 26px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #ffd9c9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 200; border-radius: var(--radius-s); }
.skip-link:focus { top: 8px; color: #fff; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* 3. Layout utilities ----------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding: 28px 0 72px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.strong { font-weight: 600; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-link { font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.section-link svg { transition: transform .2s var(--ease); }
.section-link:hover svg { transform: translateX(3px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb .sep { color: var(--line-2); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-tight { padding: 18px; }
.panel h2 { font-size: 19px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.divider-list > * + * { border-top: 1px solid var(--line); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 16px; height: 16px; }
.icon-l { width: 28px; height: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); color: var(--text-2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.info { background: var(--info-soft); color: var(--link); }
.chip.dark { background: var(--ink); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.notice.info { background: var(--info-soft); border-color: #d3e1f5; }
.notice.warn { background: var(--warn-soft); border-color: #f2dfbc; }
.notice.ok { background: var(--ok-soft); border-color: #cbe8d9; }
.notice.danger { background: var(--danger-soft); border-color: #f4cfcb; }
.notice p { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* 4. Buttons & forms ------------------------------------------------- */
.btn {
  --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-s);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font-weight: 600; font-size: 15px; letter-spacing: .005em; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.btn:hover { --b-bg: var(--ink-3); --b-bd: var(--ink-3); color: var(--b-fg); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-primary { --b-bg: var(--accent); --b-bd: var(--accent); }
.btn-primary:hover { --b-bg: var(--accent-hover); --b-bd: var(--accent-hover); }
.btn-outline { --b-bg: #fff; --b-fg: var(--ink); --b-bd: var(--line-2); }
.btn-outline:hover { --b-bg: #fff; --b-fg: var(--ink); --b-bd: var(--ink); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: transparent; }
.btn-ghost:hover { --b-bg: var(--surface); --b-bd: var(--surface); --b-fg: var(--ink); }
.btn-light { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.btn-light:hover { --b-bg: #f0f0f0; --b-bd: #f0f0f0; --b-fg: var(--ink); }
.btn-danger { --b-bg: #fff; --b-fg: var(--danger); --b-bd: #f0c5c1; }
.btn-danger:hover { --b-bg: var(--danger-soft); --b-fg: var(--danger); --b-bd: var(--danger); }
.btn-s { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-l { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn .spinner { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: .0; }
.btn.is-loading .spinner { display: block; position: absolute; }
.btn { position: relative; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.link-btn:hover { color: var(--accent-hover); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: #fff; font-size: 15px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2315181d' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9bec5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13, 16, 20, .08); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-s); height: 44px; background: #fff; }
.qty button { width: 40px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--text-2); transition: background-color .15s; }
.qty button:hover { background: var(--surface); }
.qty button:disabled { opacity: .35; cursor: default; background: none; }
.qty input { width: 46px; border: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--surface); }
.qty-s { height: 36px; }
.qty-s button { width: 32px; }
.qty-s input { width: 38px; font-size: 14px; }

/* 5. Header & footer -------------------------------------------------- */
.utility { background: var(--ink-2); color: #b9c0c9; font-size: 12.5px; }
.utility .container { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 16px; }
.utility-list { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.utility-list li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.utility a:hover { color: #fff; }
.utility .icon { width: 15px; height: 15px; opacity: .8; }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--ink); color: #fff; transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .55); }
.header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 21px; font-stretch: 85%; letter-spacing: -.02em; }
.logo:hover { color: #fff; }
.logo svg { width: 30px; height: 30px; }
.logo small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #8d96a1; font-stretch: 100%; margin-top: -2px; }
.search { position: relative; max-width: 680px; width: 100%; justify-self: center; }
.search form { display: flex; height: 44px; border-radius: var(--radius-s); background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s; }
.search form:focus-within { box-shadow: 0 0 0 3px rgba(228, 83, 31, .45); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 15px; color: var(--text); background: transparent; }
.search input:focus { outline: none; }
.search input::placeholder { color: #8a929c; }
.search button { width: 52px; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .15s; }
.search button:hover { background: var(--accent-hover); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-l); overflow: hidden; z-index: 80; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease); }
.suggest.is-open { opacity: 1; transform: none; pointer-events: auto; }
.suggest-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 9px 14px; font-size: 14px; }
.suggest-item + .suggest-item { border-top: 1px solid var(--line); }
.suggest-item:hover, .suggest-item.is-active { background: var(--surface); color: var(--text); }
.suggest-item img { width: 52px; height: 52px; object-fit: contain; background: var(--surface); border-radius: var(--radius-s); }
.suggest-item .s-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.suggest-item .s-name { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.suggest-item .s-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.suggest-foot { display: block; padding: 11px 14px; font-size: 13px; font-weight: 600; background: var(--surface); border-top: 1px solid var(--line); }
.suggest-empty { padding: 18px 14px; font-size: 14px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #eef0f2 25%, #f7f8f9 37%, #eef0f2 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 4px; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.h-action { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); color: #fff; background: none; border: 0; cursor: pointer; transition: background-color .15s; }
.h-action:hover { background: var(--ink-3); color: #fff; }
.h-action .icon { width: 24px; height: 24px; }
.h-action-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.h-action-text small { font-size: 11.5px; color: #9aa3ad; }
.h-action-text strong { font-size: 14px; font-weight: 600; }
.badge { position: absolute; top: 2px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; border: 2px solid var(--ink); }
.badge.is-empty { display: none; }
.badge.bump { animation: bump .45s var(--ease-out); }
.menu-toggle { display: none; }

.account-menu { position: relative; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 8px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease); z-index: 90; }
.account-menu.is-open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a, .dropdown button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--radius-s); font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface); color: var(--text); }
.dropdown .dropdown-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.dropdown .dropdown-head strong { display: block; color: var(--text); font-size: 14px; }

.catnav { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.catnav .container { display: flex; align-items: center; gap: 2px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.catnav .container::-webkit-scrollbar { display: none; }
.catnav-item { position: static; }
.catnav-link { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 13px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; position: relative; }
.catnav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.catnav-link:hover, .catnav-link.is-active { color: var(--ink); }
.catnav-link:hover::after, .catnav-link.is-active::after { transform: scaleX(1); }
.catnav-link.all { font-weight: 600; color: var(--ink); padding-left: 0; }
.catnav-link.all::after { left: 0; }
.catnav-spacer { flex: 1; }
.catnav-link.muted-link { color: var(--muted); font-size: 13px; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(13, 16, 20, .28); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
.catnav-item:hover .mega, .catnav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.mega-inner { display: grid; grid-template-columns: 220px 1fr 300px; gap: 40px; padding: 28px var(--gutter) 32px; max-width: var(--container); margin: 0 auto; }
.mega h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-stretch: 100%; }
.mega-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-links a { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; }
.mega-links a span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mega-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mega-product { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.mega-product .thumb { aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); padding: 12px; }
.mega-product .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.mega-product:hover .thumb img { transform: scale(1.05); }
.mega-product strong { font-variant-numeric: tabular-nums; }
.mega-promo { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.mega-promo p { color: #b9c0c9; font-size: 14px; margin: 6px 0 0; }
.mega-promo h3 { color: #fff; }

.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-l); font-size: 14px; animation: toast-in .38s var(--ease-out) both; }
.toast.is-leaving { animation: toast-out .28s var(--ease) both; }
.toast .icon { margin-top: 1px; }
.toast.success .icon { color: #5ed39d; }
.toast.error .icon { color: #ff8a7a; }
.toast.info .icon { color: #8fb8ff; }
.toast p { margin: 0; flex: 1; }
.toast button { background: none; border: 0; color: #9aa3ad; cursor: pointer; padding: 0 2px; }
.toast button:hover { color: #fff; }

.site-footer { background: var(--ink); color: #a7afb9; font-size: 14px; margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; font-stretch: 100%; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 14px 0 18px; max-width: 320px; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer-pay { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0; border-top: 1px solid #262c34; }
.pay-chip { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 6px 10px; border: 1px solid #333a43; border-radius: var(--radius-s); color: #d3d8de; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid #262c34; font-size: 12.5px; color: #7d8691; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* 6. Product cards ----------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface); padding: 22px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease-out), opacity .35s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media img.is-alt { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); opacity: 0; }
.card:hover .card-media.has-alt img:first-child { opacity: 0; }
.card:hover .card-media.has-alt img.is-alt { opacity: 1; }
.card-tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--ink); color: #fff; }
.card-tag.new { background: var(--accent); }
.save-btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: var(--text-2); box-shadow: var(--shadow-s); transition: transform .2s var(--ease), color .2s, background-color .2s; }
.save-btn:hover { transform: scale(1.08); color: var(--accent); background: #fff; }
.save-btn .icon { width: 19px; height: 19px; }
.save-btn.is-saved { color: var(--accent); }
.save-btn.is-saved .icon { fill: currentColor; }
.save-btn.pop .icon { animation: heart .45s var(--ease-out); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-brand { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 14.5px; font-weight: 500; line-height: 1.38; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
.card-title:hover { color: var(--accent-hover); }
.card-specs { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.price { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: -.01em; }
.price small { font-size: .62em; font-weight: 600; margin-right: 2px; vertical-align: .18em; }
.instalment { font-size: 12px; color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--danger); }
.card .btn { min-height: 40px; font-size: 14px; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; }

.product-list { display: grid; gap: 12px; }

/* 7. Product detail ------------------------------------------------------ */
.pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumb { width: 76px; height: 76px; padding: 8px; background: var(--surface); border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: border-color .15s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover { border-color: var(--line-2); }
.gallery-thumb.is-active { border-color: var(--ink); }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: var(--surface); border-radius: var(--radius-l); overflow: hidden; cursor: zoom-in; }
.gallery-main img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; transition: opacity .3s var(--ease), transform .35s var(--ease-out); view-transition-name: product-hero; }
.gallery-main.is-zoomed img { transform: scale(2); }
.gallery-main.is-switching img { opacity: 0; }
.gallery-hint { position: absolute; bottom: 14px; right: 14px; font-size: 12px; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 5px 11px; color: var(--text-2); display: flex; gap: 6px; align-items: center; pointer-events: none; transition: opacity .2s; }
.gallery-main.is-zoomed .gallery-hint { opacity: 0; }
.pdp-info { display: flex; flex-direction: column; gap: 18px; }
.pdp-brand { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pdp-brand a:hover { color: var(--accent-hover); }
.pdp-title { font-size: clamp(24px, 2.2vw, 31px); line-height: 1.18; margin-top: 6px; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.pdp-price-box { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pdp-price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
.pdp-price small { font-size: .55em; vertical-align: .32em; margin-right: 3px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.highlights li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.highlights li::before { content: ""; width: 6px; height: 6px; margin: 8px 0 0 5px; background: var(--accent); border-radius: 1px; transform: rotate(45deg); }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn-primary { flex: 1; min-width: 200px; }
.service-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.service-item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 14px 16px; font-size: 14px; }
.service-item + .service-item { border-top: 1px solid var(--line); }
.service-item strong { display: block; font-weight: 600; }
.service-item span { color: var(--muted); font-size: 13px; }
.service-item .icon { color: var(--text-2); margin-top: 1px; }
.delivery-check { display: grid; gap: 12px; }
.delivery-check .input-group { max-width: 320px; }
.delivery-results { display: grid; gap: 8px; }
.delivery-option { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 10px 12px; background: var(--surface); border-radius: var(--radius-s); animation: fade-up .3s var(--ease-out) both; }
.delivery-option strong { font-weight: 600; }
.tabs { margin-top: 64px; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: relative; }
.tab { padding: 14px 18px; background: none; border: 0; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; position: relative; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab-indicator { position: absolute; bottom: -1px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), width .3s var(--ease-out); left: 0; }
.tab-panel { padding: 32px 0 0; animation: fade-up .35s var(--ease-out) both; }
.tab-panel[hidden] { display: none; }
.prose { max-width: 780px; font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.prose h3 { margin: 26px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.spec-table { width: 100%; max-width: 900px; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; font-weight: 500; color: var(--muted); }
.spec-table tr:nth-child(odd) th, .spec-table tr:nth-child(odd) td { background: #fafbfb; }
.source-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.mobile-buy { display: none; }

/* 8. Shop & filters --------------------------------------------------------- */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.shop-head p { margin: 6px 0 0; color: var(--muted); }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.subcat { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; font-weight: 500; background: #fff; transition: border-color .15s, background-color .15s, color .15s; }
.subcat:hover { border-color: var(--ink); color: var(--ink); }
.subcat.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.subcat span { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.subcat.is-active span { color: #aab2bc; }
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 0; }
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; font-stretch: 100%; margin-bottom: 12px; color: var(--text-2); }
.filter-options { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.filter-options .check { font-size: 14px; justify-content: space-between; }
.filter-options .check span { flex: 1; }
.filter-options .check em { font-style: normal; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-range .input { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.filters-actions { display: flex; gap: 8px; padding-top: 16px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .count { font-size: 14px; color: var(--muted); }
.toolbar .count strong { color: var(--text); }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.toolbar .select { min-height: 40px; width: auto; font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; background: var(--surface); border-radius: 999px; font-size: 13px; }
.active-filter:hover { background: var(--surface-2); color: var(--text); }
.filters-toggle { display: none; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-s); font-size: 14px; font-weight: 600; padding: 0 12px; }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-l); }
.empty-state .icon-l { margin: 0 auto 14px; color: var(--muted); }
.empty-state h2 { font-size: 21px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }

/* 9. Cart & drawer ------------------------------------------------------------ */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.cart-line.is-removing { opacity: 0; transform: translateX(-12px); }
.cart-line-media { width: 112px; height: 112px; background: var(--surface); border-radius: var(--radius); padding: 10px; }
.cart-line-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-info .name { font-weight: 600; font-size: 15px; line-height: 1.35; }
.cart-line-controls { display: flex; gap: 16px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.cart-line-price { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.cart-line-price strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-rows { display: grid; gap: 10px; font-size: 14.5px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }
.summary-row span:last-child { font-variant-numeric: tabular-nums; }
.summary-row.total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--ink); }
.summary-row.discount { color: var(--ok); }
.summary-items { display: grid; gap: 12px; margin-bottom: 18px; max-height: 340px; overflow: auto; }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.summary-item .thumb { position: relative; width: 56px; height: 56px; background: var(--surface); border-radius: var(--radius-s); padding: 5px; }
.summary-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.summary-item .qty-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink-3); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.summary-item .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.trust-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .6s var(--ease-out); width: 0; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(13, 16, 20, .45); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 160; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .42s var(--ease-out); box-shadow: var(--shadow-l); }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; }
.drawer-body { flex: 1; overflow: auto; padding: 6px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 12px; background: #fff; }
.drawer-added { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin: 14px 0 6px; background: var(--ok-soft); color: var(--ok); border-radius: var(--radius-s); font-size: 14px; font-weight: 600; animation: fade-up .35s var(--ease-out) both; }
.mini-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: start; }
.mini-line:last-child { border-bottom: 0; }
.mini-line .thumb { width: 72px; height: 72px; background: var(--surface); border-radius: var(--radius-s); padding: 6px; }
.mini-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.mini-line .name { line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-line .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.mini-line .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-line.is-new { animation: highlight 1.4s var(--ease) both; }

/* 10. Home ------------------------------------------------------------------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-slides { position: relative; min-height: 520px; }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 40px; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; z-index: 1; }
.hero-copy { padding: 56px 0; max-width: 540px; }
.hero-copy h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; font-stretch: 82%; letter-spacing: -.025em; margin-bottom: 18px; }
.hero-copy p { font-size: 17px; color: var(--text-2); margin-bottom: 26px; max-width: 460px; }
.hero-copy .hero-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.hero-copy .hero-price strong { font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hero-copy .hero-price span { font-size: 14px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; height: 100%; display: grid; place-items: center; padding: 30px 0; }
.hero-media::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.hero-media img { position: relative; max-height: 460px; width: auto; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(13, 16, 20, .16)); transform: translateY(16px) scale(.97); opacity: 0; transition: transform 1s var(--ease-out), opacity .8s var(--ease); }
.hero-slide.is-active .hero-media img { transform: none; opacity: 1; transition-delay: .12s; }
.hero-slide .hero-copy > * { transform: translateY(12px); opacity: 0; transition: transform .7s var(--ease-out), opacity .6s var(--ease); }
.hero-slide.is-active .hero-copy > * { transform: none; opacity: 1; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { transition-delay: .06s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { transition-delay: .12s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { transition-delay: .18s; }
.hero-slide.is-active .hero-copy > *:nth-child(5) { transition-delay: .24s; }
.hero-controls { position: absolute; left: var(--gutter); bottom: 28px; z-index: 5; display: flex; align-items: center; gap: 16px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 34px; height: 3px; padding: 0; border: 0; background: var(--line-2); cursor: pointer; position: relative; overflow: hidden; border-radius: 2px; }
.hero-dot::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active::after { animation: progress var(--hero-interval, 7s) linear forwards; }
.hero.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
.hero-pause { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-pause .icon { width: 14px; height: 14px; }
.hero-wrap { position: relative; }

.usp-bar { border-bottom: 1px solid var(--line); }
.usp-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp { display: flex; gap: 14px; align-items: center; padding: 20px 18px; font-size: 14px; }
.usp + .usp { border-left: 1px solid var(--line); }
.usp .icon { width: 26px; height: 26px; color: var(--accent); }
.usp strong { display: block; font-weight: 600; }
.usp span { color: var(--muted); font-size: 13px; }

.cat-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 10px 16px; border-radius: var(--radius); background: var(--surface); transition: background-color .2s var(--ease), transform .25s var(--ease); }
.cat-tile:hover { background: var(--surface-2); color: var(--ink); }
.cat-tile .thumb { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.cat-tile img { width: 86%; height: 86%; object-fit: contain; transition: transform .45s var(--ease-out); }
.cat-tile:hover img { transform: translateY(-4px) scale(1.04); }
.cat-tile strong { font-size: 14px; font-weight: 600; }
.cat-tile span { font-size: 12px; color: var(--muted); margin-top: -6px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .15s, opacity .15s; }
.rail-btn:hover { border-color: var(--ink); }
.rail-btn:disabled { opacity: .35; cursor: default; border-color: var(--line-2); }

.promo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 300px; border-radius: var(--radius-l); overflow: hidden; padding: 36px; }
.promo.dark { background: var(--ink); color: #fff; }
.promo.dark h2 { color: #fff; }
.promo.dark p { color: #b9c0c9; }
.promo.light { background: var(--surface); }
.promo h2 { font-size: clamp(22px, 2vw, 30px); font-stretch: 85%; margin-bottom: 10px; }
.promo p { font-size: 14.5px; margin-bottom: 20px; }
.promo img { width: 100%; max-height: 240px; object-fit: contain; transition: transform .6s var(--ease-out); filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .22)); }
.promo:hover img { transform: translateY(-6px) rotate(-1deg); }

.brand-strip { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-strip a { display: grid; place-items: center; height: 84px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 17px; font-stretch: 85%; letter-spacing: .02em; color: var(--text-2); text-transform: uppercase; transition: background-color .2s, color .2s; }
.brand-strip a:hover { background: var(--surface); color: var(--ink); }

.store-band { background: var(--ink); color: #fff; border-radius: var(--radius-l); display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.store-band-copy { padding: 44px; }
.store-band h2 { color: #fff; font-size: 28px; font-stretch: 85%; margin-bottom: 10px; }
.store-band p { color: #b9c0c9; }
.store-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; font-size: 14px; }
.store-facts strong { display: block; color: #fff; margin-bottom: 4px; }
.store-facts span { color: #b9c0c9; }
.store-band-media { background: var(--ink-3); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.store-band-media div { background: var(--ink-2); display: grid; place-items: center; padding: 18px; }
.store-band-media img { max-height: 120px; object-fit: contain; }

/* 11. Checkout & gateway -------------------------------------------------------- */
.checkout-shell { background: var(--surface); min-height: 100vh; }
.checkout-header { background: #fff; border-bottom: 1px solid var(--line); }
.checkout-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.checkout-header .logo { color: var(--ink); }
.checkout-header .logo small { color: var(--muted); }
.checkout-header .secure { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.steps { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; list-style: none; }
.steps ol { display: flex; gap: 10px; margin: 0; padding: 0; }
.step-num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11.5px; }
.steps .is-done { color: var(--text); }
.steps .is-done .step-num { background: var(--ok); color: #fff; border-color: var(--ok); }
.steps .is-current { color: var(--ink); }
.steps .is-current .step-num { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps .step-line { width: 28px; height: 1px; background: var(--line-2); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; padding: 32px 0 80px; }
.checkout-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.checkout-section + .checkout-section { margin-top: 16px; }
.checkout-section h2 { font-size: 19px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.checkout-section h2 .step-num { width: 28px; height: 28px; background: var(--ink); color: #fff; border: 0; font-size: 13px; }
.option-cards { display: grid; gap: 10px; }
.option-card { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.option-card:hover { border-color: #aab0b8; }
.option-card input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.option-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fcfcfc; }
.option-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.option-card .opt-title { font-weight: 600; font-size: 15px; }
.option-card .opt-sub { font-size: 13px; color: var(--muted); }
.option-card .opt-eta { font-size: 13px; color: var(--ok); font-weight: 500; margin-top: 2px; }
.option-card .opt-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.pickup-box { margin-top: 12px; font-size: 13.5px; }
.pay-methods-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pay-methods-preview span { font-size: 12px; font-weight: 700; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-s); color: var(--text-2); background: #fff; }

.gateway { min-height: 100vh; background: #eef0f3; display: flex; flex-direction: column; }
.sandbox-bar { background: #ffcd3c; color: #3d2f00; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }
.sandbox-bar a { text-decoration: underline; }
.gw-wrap { flex: 1; display: flex; justify-content: center; padding: 40px 16px 64px; }
.gw-card { width: 100%; max-width: 520px; background: #fff; border-radius: 14px; box-shadow: 0 2px 4px rgba(13, 16, 20, .04), 0 18px 50px -20px rgba(13, 16, 20, .25); overflow: hidden; animation: rise .5s var(--ease-out) both; }
.gw-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.gw-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: #1c2a4a; font-stretch: 90%; letter-spacing: -.01em; }
.gw-brand svg { width: 26px; height: 26px; }
.gw-secure { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.gw-merchant { padding: 22px 26px; background: #f7f8fa; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.gw-merchant .m-name { font-weight: 600; }
.gw-merchant .m-ref { font-size: 13px; color: var(--muted); }
.gw-merchant .m-amount { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: 24px; font-weight: 700; color: #1c2a4a; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.gw-merchant .m-amount small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.gw-body { padding: 24px 26px 28px; }
.gw-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.gw-tab { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); transition: border-color .15s, box-shadow .15s, color .15s; }
.gw-tab:hover { border-color: #9aa3ad; }
.gw-tab[aria-selected="true"] { border-color: #2853c7; box-shadow: inset 0 0 0 1px #2853c7; color: #1c2a4a; }
.gw-tab .icon { width: 22px; height: 22px; }
.gw-panel[hidden] { display: none; }
.gw-panel { animation: fade-up .3s var(--ease-out) both; }
.card-input { position: relative; }
.card-input .input { padding-right: 104px; font-family: var(--mono); letter-spacing: .04em; }
.card-brand-badge { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 4px 7px; border-radius: 4px; background: var(--surface); color: var(--muted); transition: background-color .2s, color .2s; }
.card-brand-badge.visa { background: #1a1f71; color: #fff; }
.card-brand-badge.mastercard { background: #231f20; color: #ffb000; }
.card-brand-badge.amex { background: #2e77bb; color: #fff; }
.card-brand-badge.unionpay { background: #d10429; color: #fff; }
.gw .btn-pay { --b-bg: #2853c7; --b-bd: #2853c7; width: 100%; min-height: 52px; font-size: 16px; border-radius: 8px; }
.gw .btn-pay:hover { --b-bg: #1f43a8; --b-bd: #1f43a8; }
.gw .input:focus, .gw .select:focus { border-color: #2853c7; box-shadow: 0 0 0 3px rgba(40, 83, 199, .15); }
.gw-foot { padding: 16px 26px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; border-top: 1px solid var(--line); color: var(--muted); }
.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.bank-option { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.bank-option:hover { border-color: #9aa3ad; }
.bank-option:has(input:checked) { border-color: #2853c7; box-shadow: inset 0 0 0 1px #2853c7; }
.bank-option input { accent-color: #2853c7; margin: 0; }
.bank-initial { width: 28px; height: 28px; border-radius: 6px; background: #eef1f7; color: #1c2a4a; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.test-cards { margin-top: 18px; font-size: 12.5px; background: #f7f8fa; border-radius: 8px; padding: 12px 14px; color: var(--text-2); }
.test-cards summary { cursor: pointer; font-weight: 600; }
.test-cards table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.test-cards td { padding: 4px 0; }
.test-cards td:first-child { font-family: var(--mono); }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-2); }
.timer.is-low { color: var(--danger); }
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 22px 0; }
.otp-inputs input { width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 700; border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--mono); }
.otp-inputs input:focus { outline: none; border-color: #2853c7; box-shadow: 0 0 0 3px rgba(40, 83, 199, .15); }
.bank-sim-head { background: #1c2a4a; color: #fff; padding: 20px 26px; }
.bank-sim-head strong { display: block; font-size: 18px; }
.bank-sim-head span { font-size: 13px; color: #b8c3dc; }
.processing { position: fixed; inset: 0; background: rgba(255, 255, 255, .92); z-index: 400; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px; font-weight: 600; color: #1c2a4a; backdrop-filter: blur(2px); }
.processing.is-on { display: flex; animation: fade-in .2s both; }
.processing .spinner { width: 42px; height: 42px; border-width: 3px; color: #2853c7; }
.processing p { margin: 0; font-size: 15px; }
.processing span { font-size: 13px; color: var(--muted); font-weight: 400; }
.qr { width: 196px; height: 196px; margin: 4px auto 14px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { width: 100%; height: 100%; }

/* 12. Orders, tracking, invoice ---------------------------------------------------- */
.confirm-hero { text-align: center; padding: 48px 24px 36px; }
.check-anim { width: 76px; height: 76px; margin: 0 auto 20px; }
.check-anim circle { stroke: var(--ok); stroke-width: 2.5; fill: none; stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw .7s var(--ease-out) .1s forwards; }
.check-anim path { stroke: var(--ok); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s var(--ease-out) .65s forwards; }
.confirm-hero h1 { margin-bottom: 10px; }
.confirm-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.confirm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-card .label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.stat-card strong { font-size: 17px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.order-head h1 { font-size: 28px; }
.order-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tracker { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 6px 0 4px; }
.track-step { position: relative; text-align: center; padding: 0 6px; font-size: 13px; }
.track-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.track-step:first-child::before { display: none; }
.track-step.done::before { background: var(--ok); }
.track-marker { position: relative; z-index: 1; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.track-step.done .track-marker { background: var(--ok); border-color: var(--ok); color: #fff; }
.track-step.current .track-marker { box-shadow: 0 0 0 5px rgba(21, 122, 82, .16); animation: pulse 2.2s var(--ease) infinite; }
.track-marker .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.track-step strong { display: block; font-weight: 600; color: var(--text); font-size: 13px; }
.track-step .when { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.track-step .planned { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; font-style: italic; }
.track-step:not(.done) strong { color: var(--muted); font-weight: 500; }
.eta-box { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; background: var(--ok-soft); border-radius: var(--radius); margin-top: 20px; }
.eta-box .label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ok); font-weight: 700; }
.eta-box strong { display: block; font-size: 19px; color: var(--ink); margin-top: 2px; }
.order-items { display: grid; }
.order-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-item:last-child { border-bottom: 0; }
.order-item .thumb { width: 72px; height: 72px; background: var(--surface); border-radius: var(--radius-s); padding: 6px; }
.order-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.order-item .name { font-weight: 500; line-height: 1.35; }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfb; }
.order-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.order-table tr:last-child td { border-bottom: 0; }
.order-table tbody tr { transition: background-color .15s; }
.order-table tbody tr:hover { background: #fafbfb; }
.thumb-stack { display: flex; }
.thumb-stack span { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid #fff; padding: 4px; margin-left: -10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.thumb-stack span:first-child { margin-left: 0; }
.thumb-stack img { width: 100%; height: 100%; object-fit: contain; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.invoice-page { background: #e9ebee; min-height: 100vh; padding: 28px 16px 60px; }
.invoice-toolbar { max-width: 860px; margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.invoice { max-width: 860px; margin: 0 auto; background: #fff; padding: 56px 60px; box-shadow: 0 10px 40px -16px rgba(13, 16, 20, .3); font-size: 13.5px; color: #1d2228; position: relative; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.inv-head .logo { color: var(--ink); }
.inv-head .logo small { color: var(--muted); }
.inv-company { margin-top: 12px; color: var(--text-2); line-height: 1.55; font-size: 12.5px; }
.inv-title { text-align: right; }
.inv-title h1 { font-size: 30px; letter-spacing: .08em; font-stretch: 100%; text-transform: uppercase; }
.inv-title dl { display: grid; grid-template-columns: auto auto; gap: 4px 16px; margin: 14px 0 0; font-size: 12.5px; justify-content: end; text-align: right; }
.inv-title dt { color: var(--muted); }
.inv-title dd { margin: 0; font-weight: 600; }
.inv-parties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px 0; }
.inv-parties h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; font-stretch: 100%; }
.inv-parties p { margin: 0; line-height: 1.6; }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.inv-table th { background: var(--ink); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 10px 12px; font-weight: 600; }
.inv-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-totals { display: flex; justify-content: flex-end; margin-top: 18px; }
.inv-totals table { min-width: 300px; border-collapse: collapse; }
.inv-totals td { padding: 7px 12px; }
.inv-totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.inv-totals .grand td { border-top: 2px solid var(--ink); font-size: 16px; font-weight: 700; padding-top: 12px; }
.inv-stamp { position: absolute; top: 210px; right: 70px; transform: rotate(-12deg); border: 3px solid var(--ok); color: var(--ok); padding: 6px 18px; font-size: 26px; font-weight: 800; letter-spacing: .16em; border-radius: 6px; opacity: .55; font-stretch: 100%; }
.inv-stamp.unpaid { border-color: var(--danger); color: var(--danger); }
.inv-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); display: grid; gap: 6px; }

/* 13. Account, auth, admin ---------------------------------------------------------- */
.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 2px; }
.account-nav .who { padding: 0 12px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.account-nav .who strong { display: block; font-size: 16px; }
.account-nav .who span { font-size: 13px; color: var(--muted); word-break: break-all; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s); font-size: 14.5px; color: var(--text-2); background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.account-nav a:hover, .account-nav button:hover { background: var(--surface); color: var(--ink); }
.account-nav a.is-active { background: var(--ink); color: #fff; }
.account-nav a span.count { margin-left: auto; font-size: 12px; color: var(--muted); }
.account-nav a.is-active span.count { color: #aab2bc; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-grid .stat-card strong { font-size: 24px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 34px - var(--header-h) - 49px); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-form .inner { width: 100%; max-width: 420px; }
.auth-form h1 { margin-bottom: 8px; }
.auth-form .lead { color: var(--muted); margin-bottom: 28px; }
.auth-aside { background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside h2 { color: #fff; font-size: 30px; font-stretch: 85%; max-width: 440px; margin-bottom: 26px; }
.auth-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 440px; position: relative; z-index: 1; }
.auth-aside li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; color: #b9c0c9; font-size: 14.5px; }
.auth-aside li strong { display: block; color: #fff; font-weight: 600; }
.auth-aside .icon { color: var(--accent); width: 24px; height: 24px; }
.auth-aside .auth-products { position: absolute; right: -40px; bottom: -30px; width: 360px; opacity: .9; pointer-events: none; }
.password-field { position: relative; }
.password-field .input { padding-right: 70px; }
.password-field button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; padding: 6px 8px; }
.strength { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.strength span { display: block; height: 100%; width: 0; transition: width .3s var(--ease), background-color .3s; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs a { padding: 9px 16px; border-radius: var(--radius-s); font-weight: 600; font-size: 14px; border: 1px solid var(--line-2); }
.admin-tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-thumb { width: 44px; height: 44px; background: var(--surface); border-radius: var(--radius-s); padding: 4px; }
.admin-thumb img { width: 100%; height: 100%; object-fit: contain; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.backup-alert { border-color: #d89a1c; background: #fff8e8; margin-bottom: 16px; }
.admin-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.admin-search .input { flex: 1 1 260px; max-width: 520px; min-height: 40px; padding: 8px 12px; font-size: 14px; }
.stock-form { display: inline-flex; gap: 6px; align-items: center; }
.stock-input { width: 86px; min-height: 36px; padding: 6px 8px; font-size: 14px; }
.stock-input.is-low { border-color: #d89a1c; }
.stock-input.is-zero { border-color: var(--danger); }

.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.help-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; }
.help-nav a { padding: 9px 12px; border-radius: var(--radius-s); font-size: 14.5px; color: var(--text-2); }
.help-nav a:hover { background: var(--surface); color: var(--ink); }
.help-nav a.is-active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 10px 0 0; font-size: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-grid .panel h3 { margin: 12px 0 8px; }
.about-grid .panel p { color: var(--muted); margin: 0; font-size: 14.5px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.error-page { text-align: center; padding: 96px 24px; }
.error-page .code { font-size: 96px; font-weight: 800; font-stretch: 75%; color: var(--surface-2); line-height: 1; letter-spacing: -.04em; -webkit-text-stroke: 1px var(--line-2); }
.error-page h1 { margin: 10px 0 10px; }
.error-page p { color: var(--muted); max-width: 460px; margin: 0 auto 26px; }

/* 14. Motion -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes heart { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(21, 122, 82, .18); } 50% { box-shadow: 0 0 0 9px rgba(21, 122, 82, .04); } }
@keyframes highlight { 0% { background: var(--ok-soft); } 100% { background: transparent; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
img.lazy-fade { opacity: 0; transition: opacity .45s var(--ease); }
img.lazy-fade.is-loaded { opacity: 1; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
::view-transition-group(product-hero) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 15. Responsive ------------------------------------------------------------------------ */
@media (max-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header-main { gap: 20px; }
  .h-action-text { display: none; }
  .mega-inner { grid-template-columns: 200px 1fr; }
  .mega-promo { display: none; }
}
@media (max-width: 1024px) {
  :root { --gutter: 20px; }
  .grid-4, .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .gallery { position: static; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: #fff; z-index: 170; padding: 20px; overflow: auto; transform: translateX(-100%); transition: transform .38s var(--ease-out); box-shadow: var(--shadow-l); }
  body.filters-open .filters { transform: none; }
  body.filters-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .filters-toggle { display: inline-flex; }
  .cart-layout, .checkout-layout, .order-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .promo-split { grid-template-columns: 1fr; }
  .usp-list { grid-template-columns: repeat(2, 1fr); }
  .usp:nth-child(3) { border-left: 0; }
  .usp:nth-child(n+3) { border-top: 1px solid var(--line); }
  .store-band { grid-template-columns: 1fr; }
  .account-layout, .help-layout { grid-template-columns: 1fr; }
  .account-nav, .help-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .account-nav .who { display: none; }
  .account-nav a, .account-nav button { white-space: nowrap; width: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .brand-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .utility-list li.hide-m { display: none; }
  .header-main { grid-template-columns: auto 1fr auto; height: 60px; gap: 12px; }
  :root { --header-h: 60px; }
  .site-header .search { grid-column: 1 / -1; grid-row: 2; max-width: none; padding-bottom: 12px; }
  .header-main { height: auto; padding-top: 8px; row-gap: 8px; }
  .menu-toggle { display: flex; }
  .logo small { display: none; }
  .hero-slides { min-height: 640px; }
  .hero-slide { grid-template-columns: 1fr; gap: 0; align-content: start; }
  .hero-media { order: -1; padding: 24px 0 0; }
  .hero-media img { max-height: 260px; }
  .hero-copy { padding: 16px 0 80px; }
  .confirm-grid { grid-template-columns: 1fr; }
  .tracker { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .track-step { display: grid; grid-template-columns: 28px 1fr; gap: 14px; text-align: left; padding: 0 0 22px; }
  .track-step::before { top: -100%; left: 13px; width: 2px; height: 100%; }
  .track-marker { margin: 0; }
  .inv-parties { grid-template-columns: 1fr; }
  .invoice { padding: 32px 22px; }
  .inv-head { flex-direction: column; }
  .inv-title { text-align: left; }
  .inv-title dl { justify-content: start; text-align: left; }
  .inv-stamp { top: 24px; right: 22px; font-size: 18px; }
  .steps .step-label { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rail { grid-auto-columns: 46%; gap: 12px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-media { padding: 14px; }
  .card-media img.is-alt { inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
  .card-body { padding: 12px; }
  .card-title { font-size: 13.5px; }
  .price { font-size: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery-thumb { width: 64px; height: 64px; flex: none; }
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-line-media { width: 84px; height: 84px; }
  .cart-line-price { grid-column: 2; text-align: left; flex-direction: row; gap: 10px; align-items: baseline; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .usp-list { grid-template-columns: 1fr; }
  .usp + .usp { border-left: 0; border-top: 1px solid var(--line); }
  .promo { grid-template-columns: 1fr; padding: 26px; }
  .promo img { max-height: 170px; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .store-band-copy { padding: 28px; }
  .store-facts { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .utility .container { justify-content: center; }
  .utility-list.right { display: none; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; box-shadow: 0 -8px 24px -12px rgba(13, 16, 20, .25); transform: translateY(110%); transition: transform .35s var(--ease-out); }
  .mobile-buy.is-visible { transform: none; }
  .mobile-buy .price { font-size: 17px; }
  .mobile-buy .btn { flex: 1; }
  .order-table .hide-s { display: none; }
  .gw-wrap { padding: 16px 10px 40px; }
  .gw-body, .gw-head, .gw-merchant, .gw-foot { padding-left: 18px; padding-right: 18px; }
  .bank-grid { grid-template-columns: 1fr; }
  .otp-inputs input { width: 42px; height: 50px; }
  .checkout-section { padding: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Print: invoice only --------------------------------------------------------------------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .invoice-page { background: #fff; padding: 0; }
  .invoice-toolbar, .flash-stack { display: none !important; }
  .invoice { box-shadow: none; padding: 0; max-width: none; }
  .inv-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-stamp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 16. Additions ---------------------------------------------------------------------------- */
.page-0 { margin-top: 16px; }
.hide-s { }
.spec-group { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); font-stretch: 100%; margin: 26px 0 8px; }
.spec-group:first-child { margin-top: 0; }
.save-btn-inline.is-saved { color: var(--accent); border-color: var(--accent); }
.save-btn-inline.is-saved .icon { fill: currentColor; }
.save-btn-inline.pop .icon { animation: heart .45s var(--ease-out); }
a.stat-card { transition: border-color .15s, box-shadow .2s; }
a.stat-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; }
.track-form { max-width: 560px; }
[data-center] { justify-content: center; }
.confirm-dialog { border: 0; border-radius: var(--radius-l); padding: 26px; max-width: 420px; width: calc(100vw - 32px); box-shadow: var(--shadow-l); color: var(--text); }
.confirm-dialog::backdrop { background: rgba(13, 16, 20, .5); }
.confirm-dialog[open] { animation: rise .3s var(--ease-out) both; }
.confirm-dialog p { margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.confirm-dialog .row { justify-content: flex-end; flex-wrap: wrap; }
.gw .notice { margin: 16px 26px 0; }
.gw .kv { font-size: 14.5px; }
.panel .icon:first-child { color: var(--text-2); }
.about-grid .panel .icon-l { color: var(--accent); }
.order-item a.thumb { display: block; }
.cart-layout.page { padding-top: 20px; padding-bottom: 20px; }
.summary .panel .input-group { margin: 16px 0; align-items: center; gap: 10px; }
.summary .panel .input-group .chip + .link-btn { margin-left: auto; }
.divider-list > .row-between { padding-top: 12px; margin-top: 12px; }
.divider-list > .row-between:first-child { padding-top: 0; margin-top: 0; }
@media (max-width: 640px) {
  .hide-s { display: none !important; }
  .checkout-header .steps { display: none; }
}
[hidden] { display: none !important; }
.tracker { list-style: none; padding: 0; margin: 6px 0 4px; }
.inv-totals { justify-content: space-between; align-items: center; gap: 24px; }
.inv-totals .inv-stamp { position: static; transform: rotate(-8deg); margin-left: 8px; }
.order-item .name { display: block; }
.hero-copy .hero-price { flex-wrap: wrap; row-gap: 2px; }
.hero-copy .hero-price strong { white-space: nowrap; }
@media (hover: none) { .gallery-hint { display: none; } }
@media (max-width: 820px) {
  .hero-slides { min-height: 760px; }
  .hero-media img { max-height: 230px; }
  .hero-copy { padding-bottom: 72px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p { font-size: 15.5px; margin-bottom: 18px; }
  .hero-copy .hero-price { margin-bottom: 18px; }
  .hero-copy .hero-price strong { font-size: 26px; }
}
@media (max-width: 640px) {
  .buy-row { flex-wrap: nowrap; }
  .buy-row .btn-primary { min-width: 0; padding: 0 14px; }
}

/* Brand logo */
.logo-img { display: block; height: 46px; width: auto; max-width: 100%; }
.site-footer .logo-img { height: 52px; }
.checkout-header .logo { gap: 14px; }
.checkout-header .logo-img { height: 42px; }
.logo-note { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 14px; line-height: 1.2; }
.inv-logo { height: 54px; }
@media (max-width: 820px) { .logo-img { height: 38px; } .header-main .logo { min-width: 0; } }
@media (max-width: 640px) { .logo-note { display: none; } .checkout-header .logo-img { height: 34px; } }
.db-table th, .db-table td { font-size: 12.5px; white-space: nowrap; }
.db-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
