/* ==========================================================================
   Digital Fracture: Shop (Fracture theme), matched to the main site.
   Dark junkyard atmosphere · Sora · orange #FF4D00 · translucent panels.
   Static gradient only (no particles/sun/ridges). Tokens mirror site.css.
   ========================================================================== */

:root {
  --orange:#FF4D00;
  --orange-soft:#ff7a3d;
  --cream:#FFFDF9;
  --ink:#1A1A1A;
  --ink-3:#0c0b0a;
  --muted:#b9b3aa;
  --line:rgba(255,253,249,.14);
  --panel:rgba(255,253,249,.045);
  --panel-2:rgba(255,253,249,.07);
  --font:'Sora', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:'Spline Sans Mono', ui-monospace, monospace;
  --maxw:1180px;
  --radius:16px;
  /* z-scale */
  --z-bg:0; --z-content:1; --z-nav:55; --z-drawer-backdrop:80; --z-drawer:81; --z-toast:90;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--orange) rgba(255,253,249,.05); scrollbar-width: thin; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--cream);
  background: var(--ink-3);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Static atmosphere (the junkyard sky, frozen) ----------------------- */
.shop-scene {
  position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(255,77,0,.22) 0%, rgba(255,77,0,0) 55%),
    linear-gradient(180deg, #0a0a14 0%, #14101c 16%, #241526 48%, #3a1c1e 74%, #1a0f0c 100%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,40px); }
main.wrap { position: relative; z-index: var(--z-content); padding-bottom: 40px; }

/* ---- Nav (copied from site.css so it matches exactly) ------------------- */
.site-nav { position: sticky; top: calc(clamp(10px,2vh,20px) + 0.5rem); z-index: var(--z-nav); padding-inline: clamp(14px,4vw,32px); margin-top: clamp(10px,2vh,20px); }
.site-nav .nav-inner {
  max-width: 1360px; margin-inline: auto;
  display: flex; align-items: center; gap: 18px; height: 70px; padding: 0 14px 0 26px; position: relative;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(12,11,16,.66); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 20px 44px -24px rgba(0,0,0,.75);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--cream); }
.brand span { color: var(--orange); }
.brand-bot { height: 30px; width: auto; flex: 0 0 auto; border-radius: 7px; object-fit: contain; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-top { padding: 9px 13px; border-radius: 9px; font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-top:hover { color: var(--cream); }
.nav-top[aria-current="page"] { color: var(--cream); }
.nav-cta { margin-left: 10px; padding: 10px 18px; border-radius: 10px; color: var(--orange); font-weight: 600; font-size: 14px; transition: background .2s ease, color .2s ease; }
.nav-cta:hover { background: rgba(255,77,0,.14); color: var(--orange-soft); }
.cart-count { background: var(--orange); color: #1a0c04; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; }
  .menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 10px; border-radius: 20px; border: 1px solid var(--line); background: rgba(12,11,16,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 44px -24px rgba(0,0,0,.75); }
  .site-nav.nav-open .menu { display: flex; }
  .nav-top { padding: 13px 14px; font-size: 16px; }
  .nav-cta { margin: 8px 4px 4px; text-align: center; }
}

/* ---- Page intro ---------------------------------------------------------- */
/* Breadcrumb trail (Shop / Category / Product) */
.crumbs { padding: clamp(30px, 5vh, 56px) 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: .85rem; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); min-width: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.crumbs a:hover { color: var(--orange); }
.crumbs li[aria-current] { color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page-intro { padding: clamp(36px,6vh,64px) 0 32px; }
.page-intro h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; margin: 0 0 8px; text-wrap: balance; }
.page-intro p { color: var(--muted); margin: 0; max-width: 60ch; }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }

/* ---- Category tabs -------------------------------------------------------- */
/* Category menu: an editorial tab strip on a hairline, one accent underline on
   the active tab. Scrolls sideways on narrow screens rather than wrapping, so
   the underline always sits on a single baseline. */
.cat-nav-wrap { margin-bottom: 30px; }
/* On the product page the tabs sit straight under the breadcrumb with no title
   block between them (unlike the shop/category pages, which have a page-intro).
   Restore the breathing room the title block would have given. */
.crumbs + .cat-nav-wrap { margin-top: clamp(26px, 4vh, 40px); }
.cat-nav { display: flex; align-items: stretch; gap: 14px; border-bottom: 1px solid var(--line); }

/* Mobile swipe hint under the tab strip: hidden until catnav.js confirms the
   strip overflows, and only ever on small screens. Retired after the first swipe. */
.cat-swipe-hint { display: none; align-items: center; justify-content: center; gap: 9px; margin-top: 12px; font-size: .74rem; color: var(--muted); }
.swipe-track { position: relative; display: inline-block; width: 34px; height: 3px; border-radius: 3px; background: rgba(255,253,249,.14); }
.swipe-thumb { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--orange); animation: swipeSlide 1.7s ease-in-out infinite; }
@keyframes swipeSlide { 0%, 100% { transform: translateX(22px); } 45% { transform: translateX(0); } }
@media (max-width: 640px) { .cat-nav-wrap.has-overflow .cat-swipe-hint { display: flex; } }
.cat-nav-wrap.hint-done .cat-swipe-hint { display: none !important; }
@media (prefers-reduced-motion: reduce) { .swipe-thumb { animation: none; left: 11px; } }
.cat-tabs {
  display: flex; gap: 28px; align-items: stretch; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }

/* Trigger: a tab fixed to the right edge of the page (nano-cms pattern). Vertical
   label, always reachable, takes no space in the page flow. Opens the panel. */
.catnav-open {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  z-index: var(--z-drawer);
  display: inline-flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl;
  padding: 22px 12px;
  border: 1.5px solid rgba(255,77,0,.5); border-right: 0; border-radius: 14px 0 0 14px;
  background: rgba(13,11,9,.6);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
          backdrop-filter: blur(16px) saturate(160%);
  color: var(--cream);
  font-size: .87rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  box-shadow: -10px 0 30px rgba(0,0,0,.45), -3px 0 20px rgba(255,77,0,.3);
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .28s cubic-bezier(.4,0,.2,1);
}
/* a bright light that travels around the tab's border, rounded corners and all:
   a rotating conic gradient masked to just the 2px border ring */
@property --catnav-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.catnav-open::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--catnav-angle),
    transparent 0deg 235deg, rgba(255,253,249,.95) 305deg, rgba(255,253,249,.12) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: catnavBeam 3s linear infinite;
}
@keyframes catnavBeam { to { --catnav-angle: 360deg; } }
.catnav-open:hover {
  background: rgba(255,77,0,.16); color: var(--cream); border-color: rgba(255,122,61,.85);
  box-shadow: -10px 0 34px rgba(0,0,0,.4), -3px 0 28px rgba(255,77,0,.55);
}
/* slide the tab out with the panel when open, so the panel covers the edge cleanly */
.catnav-toggle:checked ~ .catnav-open { transform: translateY(-50%) translateX(100%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .catnav-open { transition: background .16s ease, color .16s ease; } .catnav-open::after { display: none; } }

/* Off-canvas panel (pure CSS, checkbox-driven), holds the full category list. */
/* fixed (not absolute) so focusing it when the label is clicked can't scroll the
   page to the bottom of the DOM where this input lives */
.catnav-toggle { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.catnav-backdrop {
  position: fixed; inset: 0; z-index: var(--z-drawer-backdrop);
  background: rgba(8,6,12,.62); opacity: 0; visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.catnav-panel {
  position: fixed; top: 0; right: 0; z-index: var(--z-drawer);
  height: 100vh; height: 100dvh; width: min(320px, 86vw);
  display: flex; flex-direction: column;
  background: var(--ink-3); border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(0,0,0,.55);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.catnav-toggle:checked ~ .catnav-backdrop { opacity: 1; visibility: visible; }
.catnav-toggle:checked ~ .catnav-panel { transform: translateX(0); }
.catnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 1.05rem; color: var(--cream);
}
.catnav-close { cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--muted); padding: 0 4px; }
.catnav-close:hover { color: var(--cream); }
.catnav-links { flex: 1; overflow-y: auto; padding: 4px 0; overscroll-behavior: contain; }
.catnav-links a {
  display: block; padding: 13px 22px; color: var(--muted); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(255,253,249,.06); transition: color .14s ease, background .14s ease;
}
.catnav-links a:hover { color: var(--cream); background: var(--panel); }
.catnav-links a.is-active { color: var(--orange); background: var(--panel); }
@media (prefers-reduced-motion: reduce) {
  .catnav-panel, .catnav-backdrop { transition: none; }
}
.cat-tab {
  position: relative; flex: 0 0 auto;
  padding: 12px 1px; border: 0; background: none;
  color: var(--muted); font-weight: 500; font-size: .95rem; white-space: nowrap;
  transition: color .16s ease;
}
.cat-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; border-radius: 2px 2px 0 0; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.cat-tab:hover { color: var(--cream); }
.cat-tab:hover::after { transform: scaleX(1); background: var(--line); }
.cat-tab-active { color: var(--cream); font-weight: 600; }
.cat-tab-active::after, .cat-tab-active:hover::after { transform: scaleX(1); background: var(--orange); }
@media (prefers-reduced-motion: reduce) { .cat-tab::after { transition: none; } }

/* ---- Product grid -------------------------------------------------------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); padding-bottom: 24px; }
.card {
  position: relative; overflow: hidden; border-radius: 20px;
  display: flex; flex-direction: column; height: 100%;
  background: var(--panel-2); border: 1px solid var(--line);
  backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,77,0,.35); box-shadow: 0 24px 48px -28px rgba(0,0,0,.8); }
.card-img { aspect-ratio: 1/1; background: rgba(0,0,0,.25); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

/* Soft blur-up: images fade and sharpen in over their placeholder box instead
   of snapping in. img-fade.js adds .is-loading only to images that have not
   painted yet, so cached images and the no-JS case show instantly. */
.card-img img, .gallery-main img, .gthumb img, img.thumb {
  transition: opacity .5s ease, filter .6s ease;
}
img.is-loading { opacity: 0; filter: blur(12px); }
@media (prefers-reduced-motion: reduce) {
  .card-img img, .gallery-main img, .gthumb img, img.thumb { transition: opacity .2s ease; }
  img.is-loading { filter: none; }
}
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-name { font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; color: var(--cream); }
/* push the price to the bottom so it lines up across cards of different name lengths */
.card-price { color: var(--muted); font-size: .92rem; margin: auto 0 0; padding-top: 6px; }
.card-price b { color: var(--cream); font-weight: 700; }

/* Grid/list view toggle */
.grid-toolbar { display: flex; justify-content: flex-end; padding-bottom: 30px; }
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.vt-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--muted); font: inherit; font-size: .9rem;
  transition: background .15s ease, color .15s ease;
}
.vt-btn svg { width: 17px; height: 17px; }
.vt-btn:hover { color: var(--cream); }
.vt-btn.is-active { background: var(--panel-2); color: var(--cream); }
@media (max-width: 480px) { .vt-btn span { display: none; } .vt-btn { padding: 8px 11px; } }

/* List view: same cards, laid out as horizontal rows */
.grid.view-list { grid-template-columns: 1fr; gap: 12px; }
.grid.view-list .card { display: grid; grid-template-columns: 88px 1fr; align-items: center; border-radius: 14px; }
.grid.view-list .card:hover { transform: none; }
.grid.view-list .card-img { width: 88px; }
.grid.view-list .card-body { padding: 12px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.grid.view-list .card-name { margin: 0; }
.grid.view-list .card-price { margin: 0; padding-top: 0; }
@media (max-width: 480px) {
  /* stretch (not center) so the thumb fills the row height, no whitespace gap */
  .grid.view-list .card { grid-template-columns: 80px 1fr; align-items: stretch; }
  .grid.view-list .card-img { width: 80px; height: 100%; aspect-ratio: auto; }
  .grid.view-list .card-body { flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; }
}

/* Pagination bar under the product grid */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 40px; }
.pager-btn, .pager-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--cream); text-decoration: none; font-size: .95rem; background: var(--panel);
  transition: background .15s ease, border-color .15s ease;
}
.pager-btn:hover, .pager-num:hover { background: var(--panel-2); border-color: rgba(255,77,0,.35); }
.pager-num.is-current { background: var(--orange); border-color: var(--orange); color: var(--ink); font-weight: 700; }
.pager-btn.is-disabled { opacity: .4; pointer-events: none; }
.pager-gap { color: var(--muted); padding: 0 2px; }

/* ---- Product detail ------------------------------------------------------ */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 32px 0; align-items: start; }
.gallery { position: sticky; top: 110px; }
.gallery-main { position: relative; aspect-ratio: 1/1; background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gshot-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.gshot { display: none; position: absolute; inset: 0; cursor: pointer; }
.gshot-radio:checked + .gshot { display: block; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, calc((100% - 36px) / 4)); gap: 12px; margin-top: 22px; padding-top: 20px; position: relative; }
.gallery-thumbs::before { content: ""; position: absolute; top: 0; left: 20%; width: 60%; border-top: 1px solid var(--line); }
.gthumb { display: block; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); background: var(--panel); cursor: pointer; transition: border-color .12s, transform .12s; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb:hover { border-color: var(--orange-soft); transform: translateY(-2px); }

/* Full-screen image view lives entirely in theme/js/lightbox.js: it builds
   and styles its own overlay, so there is no lightbox markup or CSS here. */
.product h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.02em; margin: 6px 0 10px; text-wrap: balance; }
.price { font-size: 1.5rem; font-weight: 700; margin: 0 0 22px; color: var(--cream); }
.desc { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }

/* full description section under the image + info columns */
.product-desc { border-top: 1px solid var(--line); padding: 36px 0 12px; margin-bottom: 24px; }
.product-desc h2 { font-size: 1.15rem; letter-spacing: -.01em; margin: 0 0 14px; color: var(--cream); }
.product-desc p { color: var(--muted); margin: 0; max-width: 72ch; line-height: 1.7; }
/* rendered rich text from the admin editor */
.product-desc .rich { color: var(--muted); max-width: 72ch; line-height: 1.7; }
.product-desc .rich > :first-child { margin-top: 0; }
.product-desc .rich p { margin: 0 0 14px; }
.product-desc .rich h3 { color: var(--cream); font-size: 1.05rem; margin: 22px 0 8px; }
.product-desc .rich h4 { color: var(--cream); font-size: .95rem; margin: 18px 0 6px; }
.product-desc .rich ul, .product-desc .rich ol { margin: 0 0 14px; padding-left: 22px; }
.product-desc .rich li { margin: 4px 0; }
.product-desc .rich a { color: var(--orange); text-decoration: underline; }
.product-desc .rich strong, .product-desc .rich b { color: var(--cream); }
.product-desc .rich blockquote { margin: 0 0 14px; padding: 4px 0 4px 16px; border-left: 3px solid var(--line); color: var(--cream); font-style: italic; }

.field { margin-bottom: 22px; }
.field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 10px; color: var(--cream); }
.field-label .chosen { color: var(--muted); font-weight: 500; }

.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; position: relative; transition: transform .12s, border-color .12s; }
.swatch[aria-pressed="true"] { border-color: var(--orange); transform: scale(1.06); }
.swatch[disabled] { opacity: .3; cursor: not-allowed; }

.size-btn { min-width: 50px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--panel); color: var(--cream); font: inherit; font-weight: 600; cursor: pointer; transition: all .12s; }
.size-btn[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: #1a0c04; }
.size-btn[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* colour swatch chips: a compact wrapping row; only the picked colour's
   sizes show below (via :has(), below). No JS needed. */
.vswatch-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.cradio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.vswatch {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 10px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--panel-2);
  color: var(--cream); font-weight: 600; font-size: .88rem; cursor: pointer;
  transition: border-color .14s, background .14s, transform .12s;
}
.vswatch:hover { border-color: var(--orange-soft); }
.sw-dot { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; border: 1px solid rgba(255,253,249,.3); box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); }
.cradio:checked + .vswatch { border-color: var(--orange); background: rgba(255,77,0,.12); }
.cradio:focus-visible + .vswatch { outline: 2px solid var(--orange); outline-offset: 2px; }
.vsizes { margin-bottom: 4px; }
.sizes-label { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* Per-colour reveal: show only the picked colour's size block. The radios
   (#col-0, #col-1, …) live in .vswatch-row; each .vsizes carries a matching
   data-col. Static rules cover up to 30 colours; past that, product.php adds
   .vpick-many which reveals every size block (buyable beats tidy). Wrapped in
   @supports so browsers without :has() fall back to showing every colour's
   sizes rather than hiding them all. */
@supports selector(:has(*)) {
  #vpick .vsizes { display: none; }
  #vpick.vpick-many .vsizes { display: block; }
  #vpick:has(#col-0:checked)  .vsizes[data-col="0"]  { display: block; }
  #vpick:has(#col-1:checked)  .vsizes[data-col="1"]  { display: block; }
  #vpick:has(#col-2:checked)  .vsizes[data-col="2"]  { display: block; }
  #vpick:has(#col-3:checked)  .vsizes[data-col="3"]  { display: block; }
  #vpick:has(#col-4:checked)  .vsizes[data-col="4"]  { display: block; }
  #vpick:has(#col-5:checked)  .vsizes[data-col="5"]  { display: block; }
  #vpick:has(#col-6:checked)  .vsizes[data-col="6"]  { display: block; }
  #vpick:has(#col-7:checked)  .vsizes[data-col="7"]  { display: block; }
  #vpick:has(#col-8:checked)  .vsizes[data-col="8"]  { display: block; }
  #vpick:has(#col-9:checked)  .vsizes[data-col="9"]  { display: block; }
  #vpick:has(#col-10:checked) .vsizes[data-col="10"] { display: block; }
  #vpick:has(#col-11:checked) .vsizes[data-col="11"] { display: block; }
  #vpick:has(#col-12:checked) .vsizes[data-col="12"] { display: block; }
  #vpick:has(#col-13:checked) .vsizes[data-col="13"] { display: block; }
  #vpick:has(#col-14:checked) .vsizes[data-col="14"] { display: block; }
  #vpick:has(#col-15:checked) .vsizes[data-col="15"] { display: block; }
  #vpick:has(#col-16:checked) .vsizes[data-col="16"] { display: block; }
  #vpick:has(#col-17:checked) .vsizes[data-col="17"] { display: block; }
  #vpick:has(#col-18:checked) .vsizes[data-col="18"] { display: block; }
  #vpick:has(#col-19:checked) .vsizes[data-col="19"] { display: block; }
  #vpick:has(#col-20:checked) .vsizes[data-col="20"] { display: block; }
  #vpick:has(#col-21:checked) .vsizes[data-col="21"] { display: block; }
  #vpick:has(#col-22:checked) .vsizes[data-col="22"] { display: block; }
  #vpick:has(#col-23:checked) .vsizes[data-col="23"] { display: block; }
  #vpick:has(#col-24:checked) .vsizes[data-col="24"] { display: block; }
  #vpick:has(#col-25:checked) .vsizes[data-col="25"] { display: block; }
  #vpick:has(#col-26:checked) .vsizes[data-col="26"] { display: block; }
  #vpick:has(#col-27:checked) .vsizes[data-col="27"] { display: block; }
  #vpick:has(#col-28:checked) .vsizes[data-col="28"] { display: block; }
  #vpick:has(#col-29:checked) .vsizes[data-col="29"] { display: block; }
}

.size-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.sopt input { position: absolute; opacity: 0; width: 0; height: 0; }
.sopt span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; min-width: 62px; padding: 8px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--panel-2); color: var(--cream); font-weight: 600; text-align: center; white-space: nowrap; cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.sopt span small { font-weight: 500; font-size: .72rem; opacity: .75; }
.sopt span:hover { border-color: var(--orange-soft); }
.sopt input:checked + span { border-color: var(--orange); background: var(--orange); color: #1a0c04; }
.sopt input:checked + span small { opacity: .9; }
.sopt input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sopt span { transition: none; } }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.qty-input { width: 70px; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; text-align: center; background: var(--panel); color: var(--cream); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #1a0c04; border: none; border-radius: 12px;
  padding: 14px 24px; font: inherit; font-weight: 700; cursor: pointer;
  transition: filter .2s, transform .1s; width: 100%;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: rgba(255,253,249,.12); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: var(--panel-2); color: var(--cream); border: 1px solid var(--line); width: auto; }
.btn-ghost:hover { filter: none; background: rgba(255,253,249,.1); }
.btn-sm { padding: 9px 14px; font-size: .9rem; width: auto; }

/* ---- Cart ---------------------------------------------------------------- */
.cart { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; padding: 24px 0; align-items: start; }
/* grid/flex children default to min-width:auto and refuse to shrink below their
   content, so a wide control row forces the whole page past the phone width
   (horizontal scroll + zoom-out). min-width:0 lets the columns shrink to fit. */
.cart-items { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cart-row .thumb { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: rgba(0,0,0,.25); }
.cart-row .meta { min-width: 0; }
.cart-row .meta .name { font-weight: 600; color: var(--cream); overflow-wrap: anywhere; }
.cart-row .meta .variant { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.cart-row .right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; min-width: 0; }
/* kill the native number spinner: it forces the input wider than its set width
   on phones, and the Update button already handles quantity changes */
.qty-mini { -moz-appearance: textfield; appearance: textfield; }
.qty-mini::-webkit-outer-spin-button,
.qty-mini::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-row .line-price { font-weight: 700; color: var(--cream); }
.qty-mini { width: 58px; padding: 7px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; text-align: center; background: var(--panel); color: var(--cream); }
.qty-update { padding: 7px 11px; font: inherit; font-size: .8rem; font-weight: 600; border: 1.5px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--cream); cursor: pointer; transition: border-color .12s; }
.qty-update:hover { border-color: var(--orange-soft); }
.link-remove { color: var(--muted); font-size: .82rem; background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.link-remove:hover { color: var(--orange); }

.summary { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 110px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 0; }
.summary h2 { margin: 0 0 18px; font-size: 1.15rem; }
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.sum-line.total { color: var(--cream); font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.sum-line.sum-discount { color: var(--orange-soft); }
.sum-code { font-size: .78rem; font-weight: 600; letter-spacing: .03em; opacity: .85; margin-left: 4px; }
.summary .btn { margin-top: 18px; }

/* ---- Discount code ------------------------------------------------------- */
.coupon-form { display: flex; gap: 8px; margin: 14px 0 2px; }
.coupon-input {
  flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 13px;
  border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .92rem;
  color: var(--cream); background: var(--panel); text-transform: uppercase;
}
.coupon-input::placeholder { color: var(--muted); text-transform: none; }
.coupon-input:focus { outline: none; border-color: var(--orange-soft); }
.coupon-apply {
  flex: 0 0 auto; padding: 0 18px; height: 42px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--panel-2); color: var(--cream);
  font: inherit; font-weight: 600; cursor: pointer; transition: border-color .14s, background .14s;
}
.coupon-apply:hover { border-color: var(--orange-soft); background: rgba(255,122,61,.12); }
.coupon-msg { margin: 8px 0 0; font-size: .84rem; color: var(--orange-soft); }
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 14px 0 2px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(255,122,61,.35); background: rgba(255,122,61,.08);
}
.coupon-tag { font-size: .86rem; font-weight: 600; color: var(--cream); }
.coupon-remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: .84rem; cursor: pointer; text-decoration: underline; padding: 0; }
.coupon-remove:hover { color: var(--orange-soft); }

/* ---- Toast (cart action feedback) --------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--z-toast);
  display: flex; align-items: center; gap: 10px;
  max-width: min(90vw, 400px); padding: 13px 20px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(20,17,24,.92); color: var(--cream);
  font-size: .92rem; font-weight: 600; line-height: 1.4;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  cursor: pointer;
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1);
}
.toast::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.toast[data-type="success"]::before { background: #46c266; }
.toast[data-type="error"]::before   { background: #ff5a4d; }
.toast[data-type="info"]::before    { background: var(--orange-soft); }
.toast[data-type="error"] { border-color: rgba(255,90,77,.4); }
.toast-enter, .toast-out { opacity: 0; transform: translateX(-50%) translateY(12px); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---- Star rating (display) ---------------------------------------------- */
.stars { display: inline-block; position: relative; line-height: 1; white-space: nowrap; font-family: initial; }
.stars::before { content: "\2605\2605\2605\2605\2605"; color: rgba(255,253,249,.20); }
.stars::after { content: "\2605\2605\2605\2605\2605"; color: var(--orange); position: absolute; inset: 0; width: calc(var(--rating, 0) / 5 * 100%); overflow: hidden; }
.rating-summary { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.rating-summary .stars { font-size: 1.05rem; }
.rating-summary:hover .rating-count { color: var(--cream); }
.card-rating { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; }
.card-rating .stars { font-size: .85rem; }
.card-rating-n { color: var(--muted); font-size: .78rem; }

/* ---- Reviews section (product page) ------------------------------------- */
.reviews { margin-top: 44px; }
.reviews h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 0 0 18px; }
.reviews-empty { color: var(--muted); }
.reviews-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.reviews-head .stars { font-size: 1.2rem; }
.reviews-avg { font-weight: 700; color: var(--cream); }
.reviews-n { color: var(--muted); font-size: .9rem; }
.review-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.review-item { border-top: 1px solid var(--line); padding-top: 18px; }
.review-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.review-item-head .stars { font-size: .95rem; }
.review-author { font-weight: 600; color: var(--cream); }
.review-verified { font-size: .72rem; font-weight: 600; color: #46c266; border: 1px solid rgba(70,194,102,.4); background: rgba(70,194,102,.1); padding: 2px 8px; border-radius: 999px; }
.review-date { color: var(--muted); font-size: .82rem; margin-left: auto; }
.review-body { color: var(--muted); margin: 0; line-height: 1.6; }

/* ---- Upsell ("You might also like") ------------------------------------- */
.upsell { margin-top: 52px; }
.upsell > h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 0 0 20px; }
.upsell-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ---- Review submission (review.php) ------------------------------------- */
.review-list { max-width: 640px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 30px; }
.review-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review-prod { margin: 0 0 16px; font-size: 1.15rem; }
.review-done { color: #46c266; margin: 0; font-weight: 500; }
.review-form .field { margin-bottom: 16px; }
.review-text { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--cream); font: inherit; }
.review-text:focus { outline: none; border-color: var(--orange-soft); }

/* ---- Order problem claims (tracking page) ------------------------------- */
.claim-box { margin-top: 18px; }
.claim-reports-h { display: block; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.claim-badge { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.claim-badge.is-open { background: rgba(255,77,0,.16); color: var(--orange-soft); }
.claim-badge.is-resolved { background: rgba(80,200,120,.16); color: #7ee0a0; }
.claim-badge.is-rejected { background: rgba(255,253,249,.1); color: var(--muted); }
.claim-report { padding: 4px 0; }
.claim-report-reply { margin: 4px 0 0; color: var(--cream); font-size: .9rem; line-height: 1.5; opacity: .85; }
.claim-details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.claim-details summary { cursor: pointer; font-weight: 600; color: var(--cream); list-style: none; }
.claim-details summary::-webkit-details-marker { display: none; }
.claim-details summary::before { content: "\25B8"; color: var(--orange); font-weight: 700; margin-right: 8px; display: inline-block; }
.claim-details[open] summary::before { content: "\25BE"; }
.claim-form { margin-top: 16px; }
.claim-form .field { margin-bottom: 16px; }
/* Report form: black-glass controls with clean white text. */
.claim-form select, .claim-form textarea, .claim-form input[type=file] {
  width: 100%; padding: 12px 14px; font: inherit; color: #fff;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  background: rgba(14,12,18,.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 26px -16px rgba(0,0,0,.85);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.claim-form select:hover, .claim-form textarea:hover, .claim-form input[type=file]:hover { border-color: rgba(255,255,255,.26); }
.claim-form select:focus, .claim-form textarea:focus, .claim-form input[type=file]:focus {
  outline: none; border-color: var(--orange-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 3px rgba(255,77,0,.25);
}
.claim-form textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.claim-form ::placeholder { color: rgba(255,255,255,.45); }
/* dropdown: custom chevron; native option list can't be glass, so give it a solid dark bg */
.claim-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 16px;
}
.claim-form select option { background: #14121a; color: #fff; }
/* photo picker: match the glass, style the native button */
.claim-form input[type=file] { color: rgba(255,255,255,.72); cursor: pointer; }
.claim-form input[type=file]::file-selector-button {
  font: inherit; color: #fff; cursor: pointer; margin-right: 12px; padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08);
}
.claim-form input[type=file]::file-selector-button:hover { background: rgba(255,255,255,.14); }

/* ---- Customer portal (/portal): order lookup + returns info ------------- */
.portal { display: grid; gap: 20px; max-width: 640px; margin: 0 auto; }
.portal .field { margin-bottom: 18px; }
.portal-input { width: 100%; padding: 12px 14px; color: #fff; font: inherit; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(14,12,18,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); transition: border-color .16s ease, box-shadow .16s ease; }
.portal-input::placeholder { color: rgba(255,255,255,.45); }
.portal-input:hover { border-color: rgba(255,255,255,.26); }
.portal-input:focus { outline: none; border-color: var(--orange-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 3px rgba(255,77,0,.25); }
.portal-error { background: rgba(255,77,0,.14); border: 1px solid rgba(255,77,0,.4); color: #ffd9c8; border-radius: 10px; padding: 10px 13px; margin: 0 0 16px; }
.portal-hint { color: var(--muted); font-size: .85rem; margin-top: 12px; }
.portal-hint strong { color: var(--cream); }
.portal-info h2 { margin: 0 0 10px; color: var(--cream); font-size: 1.15rem; }
.portal-list { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); line-height: 1.55; }
.portal-list strong { color: var(--cream); }

/* ---- Order messages thread (track page) -------------------------------- */
.msg-box { margin-top: 18px; }
.msg-h { margin: 0 0 12px; color: var(--cream); font-size: 1.15rem; }
.msg-empty { color: var(--muted); margin: 0 0 14px; line-height: 1.55; }
.msg-thread { margin-bottom: 16px; }
.msg-item { background: rgba(255,253,249,.045); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.msg-item.is-shop { margin-left: 36px; background: rgba(255,77,0,.08); border-color: rgba(255,77,0,.28); }
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.msg-name { font-weight: 700; color: var(--cream); }
.msg-badge { display: inline-block; font-weight: 700; font-size: .74rem; padding: 3px 10px; border-radius: 6px; background: var(--orange); color: #1a1a1a; }
.msg-time { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.msg-item .msg-body { color: var(--cream); line-height: 1.55; }
@media (max-width: 560px) { .msg-item.is-shop { margin-left: 16px; } }
.msg-form textarea { width: 100%; margin-bottom: 12px; color: #fff; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(14,12,18,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: inherit; line-height: 1.5; }
.msg-form textarea::placeholder { color: rgba(255,255,255,.45); }
.msg-form textarea:focus { outline: none; border-color: var(--orange-soft); box-shadow: 0 0 0 3px rgba(255,77,0,.25); }
.msg-form .field-label { margin-bottom: 8px; }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 6px 0 0; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 1.9rem; line-height: 1; color: rgba(255,253,249,.22); cursor: pointer; transition: color .12s; font-family: initial; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--orange); }
.star-input input:focus-visible + label { outline: 2px solid var(--orange-soft); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .star-input label { transition: none; } }

/* ---- Notices / empty states --------------------------------------------- */
.notice { padding: 14px 18px; border-radius: 12px; margin: 16px 0; font-weight: 500; border: 1px solid var(--line); }
.notice-info  { background: rgba(255,122,61,.10); color: #ffcaa6; border-color: rgba(255,122,61,.3); }
.notice-error { background: rgba(255,90,90,.10); color: #ffb3b3; border-color: rgba(255,90,90,.3); }
.notice-ok    { background: rgba(80,210,140,.10); color: #aef0c6; border-color: rgba(80,210,140,.3); }
.empty { text-align: center; padding: 80px 0; color: var(--muted); }
.empty h1 { color: var(--cream); margin-bottom: 8px; }

/* ---- Confirmation -------------------------------------------------------- */
.confirm { max-width: 640px; margin: 0 auto; padding: 56px 0; text-align: center; }
.confirm .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #1a0c04; display: grid; place-items: center; margin: 0 auto 24px; font-size: 1.8rem; }
.confirm h1 { letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.order-box { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 32px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.order-box .row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); }
.order-box .row.head { font-weight: 700; color: var(--cream); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.track-note { margin-top: 24px; color: var(--muted); font-size: .9rem; word-break: break-all; }
.track-note a { color: var(--orange-soft); }

/* ---- Footer (copied from site.css) -------------------------------------- */
footer { position: relative; z-index: var(--z-content); border-top: 1px solid var(--line); margin-top: 60px; padding: clamp(48px,7vh,88px) 0 70px; background: rgba(8,7,11,.82); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
footer .wrap { max-width: 1360px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: clamp(28px,4vw,56px); text-align: left; }
.footer-brand { font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-brand span { color: var(--orange); }
.footer-tagline { color: var(--muted); font-size: 14px; max-width: 34ch; line-height: 1.6; }
.footer-address { font-style: normal; margin-top: 12px; color: var(--orange); }
.footer-call { margin-top: 14px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.footer-social a, .footer-col a { color: var(--muted); font-size: 14px; }
.footer-social a:hover, .footer-col a:hover { color: var(--orange); }
.footer-col h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; }
.footer-bottom { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.footer-credit { margin-top: 10px; text-align: center; color: var(--muted); font-size: 12px; }
.footer-credit a { color: var(--orange-soft); }
.footer-credit a:hover { color: var(--orange); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Small utilities ----------------------------------------------------- */
.back-link    { margin: 24px 0 0; }
.back-row     { padding: 0 0 60px; }
.continue-row { margin-top: 28px; }
.qty-form     { display: flex; gap: 6px; align-items: center; }
.qty-label    { margin: 0; }
.pay-note     { text-align: center; margin-top: 12px; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 880px) {
  .product { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 480px) {
  .cart-row { grid-template-columns: 64px 1fr; }
  .cart-row .thumb { width: 64px; height: 64px; }
  .cart-row .right { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
}
