/* =========================================================
   SAGAS Industrial Store — design system
   Mobile first. Breakpoints: 640 (large phone), 900 (tablet), 1100 (desktop)
   ========================================================= */
:root {
  --ink: #111214;
  --ink-2: #2b2e33;
  --muted: #6b7079;
  --muted-2: #9a9fa7;
  --line: #e7e7e4;
  --line-2: #f0f0ed;
  --bg: #f6f6f3;
  --card: #ffffff;
  --brand: #ffc20e;
  --brand-2: #ffd54a;
  --brand-ink: #111214;
  --brand-soft: #fff6d6;
  --ok: #12805c;
  --ok-soft: #e5f5ee;
  --danger: #c8372d;
  --wa: #1fa855;
  --r: 14px;
  --r-sm: 10px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 4px 16px rgba(17, 18, 20, .06);
  --shadow-lg: 0 10px 40px rgba(17, 18, 20, .14);
  --hdr-h: 112px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.hdr-top { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . cart" "search search search"; align-items: center; gap: 10px 8px; padding-top: 10px; padding-bottom: 10px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.brand-tag { font: 600 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.hdr-back { display: none; grid-area: brand; }
.search { grid-area: search; position: relative; }
.search input {
  width: 100%; height: 42px; border-radius: 12px; border: 1.5px solid transparent; background: var(--line-2);
  padding: 0 14px 0 42px; font-size: 15px; outline: none; transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--ink); background: #fff; }
.search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search-ico svg { width: 19px; height: 19px; }
.hdr-links { display: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; position: relative; transition: background .15s; }
.icon-btn:hover { background: var(--line-2); }
.cart-btn { grid-area: cart; }
.badge {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font: 700 11px/18px var(--font); text-align: center; border: 2px solid #fff;
}
.badge.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
.catnav { display: none; }

/* Mobile: on inner pages show back arrow, hide logo tag */
body:not([data-view="home"]) .hdr-back { display: inline-flex; }
body:not([data-view="home"]) .brand { display: none; }
body:not([data-view="home"]) .hdr-top { grid-template-columns: auto 1fr auto; grid-template-areas: "brand search cart"; }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar a.on { color: var(--ink); }
.tabbar a.on svg { stroke-width: 2.3; }
.tabbar a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tabbar a { position: relative; }
.tab-ico { position: relative; display: flex; }
.tab-ico .badge { top: -6px; right: -12px; }
body[data-view="product"] .tabbar, body[data-view="checkout"] .tabbar, body[data-view="cart"] .tabbar { display: none; }
body[data-view="product"], body[data-view="checkout"], body[data-view="cart"] { padding-bottom: calc(84px + var(--safe-b)); }

/* ---------- Generic UI ---------- */
main { padding-top: 14px; padding-bottom: 28px; min-height: 60vh; outline: none; }
.sec { margin-top: 26px; }
.sec-hd { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-hd h2 { font-size: 19px; font-weight: 700; }
.sec-hd p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.link { font-weight: 600; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.link svg { width: 16px; height: 16px; }
.card { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); }
.pad { padding: 16px; }
.muted { color: var(--muted); }
.eyebrow { font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 12px;
  font-weight: 700; font-size: 15px; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover { background: var(--brand-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26292e; }
.btn-ghost { background: var(--card); border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: 0 -16px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); scroll-snap-align: start; transition: all .15s;
}
.chip:hover { border-color: var(--muted-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--line-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pill svg { width: 14px; height: 14px; }
.pill-y { background: var(--brand-soft); color: #7a5a00; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 22px 20px 0;
  display: grid; grid-template-columns: 1fr; isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 194, 14, .22), transparent 55%),
              repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px); }
.hero-stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 1;
  background: repeating-linear-gradient(135deg, var(--brand) 0 16px, var(--ink) 16px 32px); }
.hero .eyebrow { color: var(--brand); }
.hero h1 { font-size: 27px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { color: #c9ccd1; margin-top: 10px; font-size: 14px; max-width: 46ch; }
.hero-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.hero > * { min-width: 0; }
.hero-art svg > circle:first-of-type { opacity: .18; }
.hero-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; padding-bottom: 22px; }
.hero-art > div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; aspect-ratio: 1; padding: 6px; }
.hero-art > div:nth-child(4) { display: none; }
.hero-stats { display: flex; gap: 18px; margin-top: 16px; font-size: 12px; color: #a9adb4; }
.hero-stats b { display: block; font: 800 18px/1.1 var(--display); color: #fff; }

/* ---------- Sector cards ---------- */
.sectors { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sector {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sector:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.sector-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.sector-ico svg { width: 28px; height: 28px; stroke-width: 1.8; }
.sector h3 { font-size: 16px; font-weight: 700; }
.sector p { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.sector .chev { color: var(--muted-2); }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.cat:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.cat-art { aspect-ratio: 16/11; background: linear-gradient(180deg, #f3f3ef, #ebebe6); padding: 8px; }
.cat-art svg { width: 100%; height: 100%; }
.cat-body { padding: 10px 12px 12px; }
.cat h3 { font-size: 15px; font-weight: 700; }
.cat p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.soon { display: flex; flex-wrap: wrap; gap: 8px; }
.soon span { height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px dashed #cfd0cb; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); background: #fbfbf9; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.trust svg { color: var(--ink); background: var(--brand-soft); border-radius: 10px; padding: 7px; width: 36px; height: 36px; flex: none; }
.trust b { display: block; font-size: 13px; line-height: 1.3; }
.trust span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid > *, .cats > *, .hscroll > *, .pdp > *, .cart-layout > *, .co-layout > *, .layout > * { min-width: 0; }
.pcard {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.pcard:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }
.pcard-art { position: relative; aspect-ratio: 1; background: linear-gradient(180deg, #f4f4f0, #ececE7); }
.pcard-art svg { width: 100%; height: 100%; }
.pcard-art .tag { position: absolute; top: 8px; left: 8px; }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcard h3 { font: 600 14px/1.3 var(--font); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price { font: 800 16px/1.2 var(--display); color: var(--ink); }
.price small { font: 500 11px var(--font); color: var(--muted); margin-right: 3px; }
.price.ask { font-size: 14px; color: var(--muted); }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.swatch { width: 12px; height: 12px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); vertical-align: -1px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 6px; margin: 0 -16px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

/* ---------- Listing ---------- */
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; }
.list-hd { margin: 10px 0 14px; }
.list-hd h1 { font-size: 24px; font-weight: 800; }
.list-hd p { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 70ch; }
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.count { font-size: 13px; color: var(--muted); }
.select { position: relative; }
.select select { appearance: none; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); padding: 0 32px 0 12px; font-size: 13px; font-weight: 600; }
.select::after { content: ""; position: absolute; right: 12px; top: 14px; width: 6px; height: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.layout { display: block; }
.side { display: none; }
.sector-hero { border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 20px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; position: relative; overflow: hidden; }
.sector-hero .sector-ico { width: 56px; height: 56px; }
.sector-hero h1 { font-size: 22px; font-weight: 800; }
.sector-hero p { font-size: 13px; color: #c9ccd1; margin-top: 4px; }
.sector-hero .hero-stripe { height: 6px; }
.empty { text-align: center; padding: 48px 16px; }
.empty svg { width: 56px; height: 56px; color: var(--muted-2); margin: 0 auto 10px; stroke-width: 1.4; }
.empty h2 { font-size: 18px; }
.empty p { color: var(--muted); margin: 6px auto 18px; max-width: 40ch; font-size: 14px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 4px; }
body[data-view="product"] main > .view > .crumbs { display: none; }
.pdp-gallery { border-radius: var(--r-lg); background: linear-gradient(180deg, #f4f4f0, #e9e9e3); aspect-ratio: 4/3; position: relative; overflow: hidden; margin: 0 -16px; border-radius: 0; }
.pdp-gallery svg { width: 100%; height: 100%; }
.pdp-gallery .note { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pdp-info { display: flex; flex-direction: column; gap: 12px; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pdp-price .price { font-size: 28px; }
.pdp-price .unit { font-size: 13px; color: var(--muted); }
.pdp h1 { font-size: 21px; font-weight: 700; }
.pdp-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.opt { padding: 14px 0; border-top: 1px solid var(--line); }
.opt-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.opt-hd b { font-size: 14px; }
.opt-hd span { font-size: 13px; color: var(--muted); }
.vars { display: flex; flex-wrap: wrap; gap: 8px; }
.var {
  min-width: 64px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; transition: all .12s;
}
.var:hover { border-color: var(--muted-2); }
.var.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.var.ask::after { content: "?"; position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted-2); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.qty button { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--line-2); }
.qty button svg { width: 18px; height: 18px; }
.qty input { width: 54px; height: 42px; border: 0; text-align: center; font-weight: 700; outline: none; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 34px; height: 34px; }
.qty.sm input { width: 40px; height: 34px; font-size: 14px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line-total { font-size: 13px; color: var(--muted); text-align: right; }
.line-total b { display: block; color: var(--ink); font-size: 16px; font-family: var(--display); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; }
.specs td { font-weight: 600; }
.desc { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.desc ul { padding-left: 18px; margin: 8px 0 0; }
.desc li { margin: 4px 0; }
.pdp-actions-inline { display: none; }
.bulk { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--brand-soft); font-size: 13px; }
.bulk svg { flex: none; }
.bulk a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   Promo & conversion elements
   ========================================================= */
:root { --sale: #d7261e; --sale-soft: #fdecea; }
.ink { color: var(--ink); }
.price.sale { color: var(--sale); }
.pcard-art, .gal-wrap, .pdp-gallery { position: relative; }
.disc-badge {
  position: absolute; top: 0; right: 10px; z-index: 2; width: 42px; padding: 6px 0 8px; background: var(--brand); color: var(--ink);
  font: 700 9px/1 var(--font); letter-spacing: .06em; text-align: center; display: flex; flex-direction: column; gap: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
}
.disc-badge b { font: 800 14px/1 var(--display); color: var(--sale); }
.disc-badge.lg { width: 58px; right: 16px; padding: 9px 0 12px; font-size: 11px; }
.disc-badge.lg b { font-size: 20px; }
.spec-chip {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; background: var(--ink); color: #fff; font: 700 10px/1 var(--font); letter-spacing: .06em;
  padding: 5px 8px; border-radius: 6px; box-shadow: inset 3px 0 0 var(--brand);
}
.spec-chip.lg { left: 14px; bottom: 14px; font-size: 12px; padding: 7px 11px; }
.off-badge {
  display: inline-block; vertical-align: 2px; margin-right: 6px; background: var(--ink); color: var(--brand); font: 800 9px/1 var(--font);
  letter-spacing: .08em; padding: 3px 5px; border-radius: 4px;
}
.pdp h1 .off-badge { font-size: 11px; padding: 4px 7px; vertical-align: 4px; }
.promo-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--sale);
  border: 1px solid #f3b7b3; background: var(--sale-soft); padding: 2px 6px 2px 4px; border-radius: 4px;
}
.promo-tag svg { width: 12px; height: 12px; fill: var(--sale); stroke: none; }
.was { font-size: 12px; color: var(--muted-2); margin-top: 1px; }
.ship-mini { display: inline-flex; align-items: center; gap: 3px; }
.ship-mini svg { width: 14px; height: 14px; }

.promo-ribbon {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--r);
  background: var(--brand); color: var(--ink); position: relative; overflow: hidden;
}
.promo-ribbon::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: repeating-linear-gradient(135deg, var(--ink) 0 10px, transparent 10px 20px); opacity: .9; }
.pr-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.pr-ico svg { fill: var(--brand); stroke: none; }
.pr-txt b { display: block; font: 800 15px/1.2 var(--display); }
.pr-txt span { font-size: 12px; font-weight: 500; }
.promo-sec .sec-hd h2 { display: flex; align-items: center; gap: 6px; }
.promo-sec .sec-hd h2 svg { fill: var(--sale); stroke: none; color: var(--sale); }

/* PDP price box */
.pricebox { border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.pricebox.on-sale { border-color: #f3c7c3; }
.pb-promo { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: linear-gradient(90deg, var(--sale), #ef5a2a); color: #fff; font-size: 13px; }
.pb-promo svg { width: 16px; height: 16px; fill: var(--brand); stroke: none; }
.pb-promo span { margin-left: auto; font-size: 12px; opacity: .92; }
.pb-body { padding: 12px 14px 14px; }
.pricebox.on-sale .pb-body { background: linear-gradient(180deg, #fff6f5, #fff); }
.pb-was { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 14px; color: var(--muted-2); }
.disc-pill { background: var(--sale-soft); color: var(--sale); font-weight: 800; font-size: 12px; padding: 2px 6px; border-radius: 5px; }
.save { color: var(--ok); font-weight: 700; font-size: 13px; }
.line-total .save { display: block; font-size: 12px; }
.pb-tax { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; color: var(--ok); font-weight: 600; }
.pb-tax svg { width: 14px; height: 14px; stroke-width: 2.6; }
.pdp-title { display: flex; flex-direction: column; gap: 8px; }

.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.trust-row > div { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 1.3; }
.trust-row svg { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--brand-soft); color: var(--ink); flex: none; }
.trust-row b { display: block; font-size: 12px; color: var(--ink); }

.ship-box { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); padding: 4px 14px; }
.ship-box > div { display: grid; grid-template-columns: 20px 110px 1fr; gap: 8px; align-items: center; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.ship-box > div:last-child { border-bottom: 0; }
.ship-box svg { width: 18px; height: 18px; color: var(--muted); }
.ship-box span { color: var(--muted); }

.blk-h { font-size: 16px; margin-bottom: 10px; }
.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hl li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.hl svg { width: 20px; height: 20px; flex: none; color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; stroke-width: 3; }

.acc { padding: 0; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 14px 16px; font: 700 16px var(--display); display: flex; align-items: center; gap: 10px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc summary svg { width: 20px; height: 20px; }
.acc-b { padding: 0 16px 16px; }
.faq { padding: 10px 0; border-top: 1px solid var(--line-2); }
.faq b { font-size: 14px; }
.faq p { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.color-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 12px; }
.color-guide span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; }
.color-guide span.on { border-color: var(--ink); background: var(--brand-soft); }
.color-guide .swatch { width: 100%; height: 8px; border-radius: 3px; }
.color-guide small { font-weight: 500; color: var(--muted); }
.size-guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 10px 0 12px; }
.size-guide a { padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 12px; }
.size-guide a.on { border-color: var(--ink); background: var(--brand-soft); }
.size-guide b { display: block; font-size: 13px; }
.size-guide span { color: var(--muted); }

/* Cart & summary promo */
.citem-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.citem-price s { font-size: 12px; color: var(--muted-2); }
.disc-row span:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--sale) !important; }
.disc-row span:last-child { color: var(--sale); font-weight: 700; }
.disc-row svg { width: 14px; height: 14px; fill: var(--sale); stroke: none; }
.save-banner { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 13px; }
.save-banner svg { width: 16px; height: 16px; }

.demo-pill {
  position: fixed; z-index: 70; right: 10px; bottom: calc(96px + var(--safe-b));
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: .92;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.demo-pill svg { width: 14px; height: 14px; fill: var(--brand); stroke: none; }
.demo-pill u { color: var(--brand); }

@media (min-width: 640px) { .trust-row { grid-template-columns: repeat(4, 1fr); } .color-guide { grid-template-columns: repeat(8, 1fr); } .size-guide { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .demo-pill { top: auto; bottom: 20px; }
  .promo-ribbon { padding: 14px 20px; margin-bottom: 18px; }
}

/* ---------- Server-rendered text (shown only until the app loads, or without JS) ---------- */
.ssr { padding: 8px 0 24px; max-width: 820px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ssr h1 { font-size: 26px; margin: 10px 0 8px; color: var(--ink); }
.ssr h2 { font-size: 18px; margin: 20px 0 6px; color: var(--ink); }
.ssr img { width: 240px; height: auto; border-radius: 12px; background: #fff; margin: 8px 0; }
.ssr table { border-collapse: collapse; font-size: 14px; }
.ssr td, .ssr th { border-bottom: 1px solid var(--line); padding: 6px 12px 6px 0; text-align: left; }
.ssr a { text-decoration: underline; }
.ssr ul { padding-left: 20px; }

/* ---------- Shipping rates (checkout) ---------- */
.rates-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
.rates-hd b { font-size: 14px; }
.rates-hd span { font-size: 12px; color: var(--muted); }
.rates { display: grid; gap: 8px; }
.rate {
  display: grid; grid-template-columns: 20px 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted-2); position: relative; }
.rate:has(input:checked) { border-color: var(--ink); background: #fafaf8; }
.rate:has(input:checked) .dot { border-color: var(--ink); }
.rate:has(input:checked) .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.rate-logo { width: 40px; height: 28px; display: flex; align-items: center; justify-content: center; }
.rate-logo img { max-width: 40px; max-height: 26px; object-fit: contain; }
.rate-logo svg { color: var(--muted); }
.rate-main b { display: block; font-size: 13px; line-height: 1.3; }
.rate-main span { font-size: 12px; color: var(--muted); }
.rate-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rate-price b { font: 800 15px var(--display); white-space: nowrap; }
.rate-price i { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.t-cheap { background: var(--ok-soft); color: var(--ok); }
.t-fast { background: #e8f0fe; color: #1f5fd1; }
.rate.sk { height: 56px; cursor: default; background: linear-gradient(90deg, #f3f3f0 25%, #fafaf8 50%, #f3f3f0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.rates-more { margin-top: 8px; padding: 6px 0; }
.rates-msg { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--line-2); font-size: 13px; color: var(--ink-2); }
.rates-msg svg { flex: none; color: var(--muted); }
.field select:disabled { background: var(--line-2); color: var(--muted); }

/* ---------- Account ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.auth-logo { height: 30px; width: auto; margin: 0 auto 4px; }
.auth-tabs a { height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: var(--muted); }
.auth-tabs a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.auth-err { color: var(--danger); font-size: 13px; min-height: 0; }
.auth-err:empty { display: none; }
.acct-hd { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; margin-top: 6px; }
.acct-hd h1 { font-size: 20px; }
.acct-hd p { font-size: 13px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--ink); font: 800 22px/52px var(--display); text-align: center; }
.step-hd .link, .step-hd .pill { font-size: 12px; }

/* Real product photos */
img.ph { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pcard-art:has(img.ph), .cat-art:has(img.ph), .citem-art:has(img.ph), .mini-art:has(img.ph) { background: #fff; }
.cat-art:has(img.ph) { padding: 0; }
.hero-art > div:has(img.ph) { background: #fff; padding: 0; overflow: hidden; border: 0; }
.pcard-art:has(img.ph) { border-bottom: 1px solid var(--line-2); }

/* Photo gallery (swipe on mobile, thumbnails on larger screens) */
.pdp-gallery.photo { aspect-ratio: auto; background: none; overflow: visible; }
.gal-wrap { position: relative; background: #fff; overflow: hidden; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 5/4; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; background: #fff; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(17, 18, 20, .7); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.gal-thumbs { display: none; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gal-thumbs button { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; opacity: .65; transition: all .15s; }
.gal-thumbs button.on { border-color: var(--ink); opacity: 1; }
.gal-thumbs button:hover { opacity: 1; }
.gal-thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* Sticky action bar (mobile) */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + var(--safe-b)); display: flex; gap: 8px; align-items: center; box-shadow: 0 -8px 24px rgba(0, 0, 0, .05);
}
.actionbar .btn { flex: 1; height: 50px; }
.actionbar .icon-btn { border: 1.5px solid var(--line); width: 50px; height: 50px; flex: none; color: var(--wa); }
.actionbar .sum { flex: 1; min-width: 0; }
.actionbar .sum span { display: block; font-size: 12px; color: var(--muted); }
.actionbar .sum b { font: 800 19px/1.2 var(--display); }

/* ---------- Cart ---------- */
.page-title { font-size: 24px; font-weight: 800; margin: 6px 0 14px; }
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.cart-list { display: flex; flex-direction: column; }
.citem { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line-2); }
.citem:last-child { border-bottom: 0; }
.citem-art { width: 84px; height: 84px; border-radius: 12px; background: linear-gradient(180deg, #f4f4f0, #ebebe6); overflow: hidden; }
.citem-art svg { width: 100%; height: 100%; }
.citem h3 { font: 600 14px/1.35 var(--font); }
.citem .v { font-size: 12px; color: var(--muted); margin-top: 2px; }
.citem-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.citem .price { font-size: 15px; }
.rm { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 6px; border-radius: 8px; }
.rm:hover { color: var(--danger); background: #fdeceb; }
.rm svg { width: 16px; height: 16px; }
.summary { position: relative; }
.summary h2 { font-size: 17px; margin-bottom: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; }
.sum-row span:first-child { color: var(--muted); }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; }
.sum-row.total span:last-child { font: 800 20px var(--display); }
.sum-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* ---------- Checkout ---------- */
.co-layout { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.step { padding: 16px; }
.step + .step { margin-top: 12px; }
.step-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px/26px var(--font); text-align: center; flex: none; }
.step-hd h2 { font-size: 16px; font-weight: 700; }
.fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label i { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; padding: 0 12px; font-size: 15px; outline: none; transition: border-color .15s;
}
.field textarea { height: 84px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field.err input, .field.err textarea { border-color: var(--danger); }
.field .msg { display: none; font-size: 12px; color: var(--danger); margin-top: 4px; }
.field.err .msg { display: block; }
.radios { display: grid; gap: 8px; }
.radio {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s;
}
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted-2); position: relative; }
.radio b { display: block; font-size: 14px; }
.radio span.s { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.radio:has(input:checked) { border-color: var(--ink); background: #fafaf8; }
.radio:has(input:checked) .dot { border-color: var(--ink); }
.radio:has(input:checked) .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.radio.disabled { opacity: .55; cursor: not-allowed; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--line-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); text-align: center; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 1px 0 0; flex: none; }
.mini-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; max-height: 300px; overflow: auto; }
.mini { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.mini-art { width: 48px; height: 48px; border-radius: 10px; background: #f1f1ed; overflow: hidden; }
.mini-art svg { width: 100%; height: 100%; }
.mini b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.mini span { color: var(--muted); font-size: 12px; }

/* ---------- Success / orders ---------- */
.success-hd { text-align: center; padding: 26px 16px 18px; }
.success-hd .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.success-hd .ok svg { width: 34px; height: 34px; stroke-width: 2.4; }
.success-hd h1 { font-size: 22px; font-weight: 800; }
.success-hd p { color: var(--muted); font-size: 14px; margin: 6px auto 0; max-width: 46ch; }
.order-no { display: inline-flex; margin-top: 12px; font: 700 14px var(--display); letter-spacing: .04em; padding: 8px 14px; border-radius: 10px; background: var(--line-2); }
.doc { padding: 18px; }
.doc-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.doc-hd img { height: 26px; width: auto; }
.doc-hd .r { text-align: right; font-size: 12px; color: var(--muted); }
.doc-hd .r b { display: block; font: 800 15px var(--display); color: var(--ink); }
.doc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; font-size: 13px; margin-bottom: 12px; }
.doc-grid h4 { font: 700 11px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.doc-table td { padding: 10px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.doc-table .n { text-align: right; white-space: nowrap; }
.doc-table small { color: var(--muted); }
.success-actions { display: grid; gap: 10px; margin-top: 14px; }
.orow { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); align-items: center; }
.orow:last-child { border-bottom: 0; }
.orow:hover { background: #fbfbf9; }
.orow b { font-family: var(--display); }
.orow .d { font-size: 12px; color: var(--muted); }

/* ---------- Coming soon banner ---------- */
.project { border-radius: var(--r-lg); padding: 20px; background: linear-gradient(135deg, #1b1d21, #2b2e33); color: #fff; position: relative; overflow: hidden; }
.project::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 24px solid rgba(255, 194, 14, .12); }
.project h3 { font-size: 19px; font-weight: 800; margin-top: 8px; }
.project p { color: #b9bdc4; font-size: 13px; margin-top: 6px; max-width: 56ch; }
.project .soon { margin-top: 14px; }
.project .soon span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #e5e6e8; }
.project .eyebrow { color: var(--brand); }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: #b9bdc4; padding: 32px 0 28px; margin-top: 32px; font-size: 13px; }
.ftr-in { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; }
.ftr-brand img { height: 26px; width: auto; filter: invert(1); mix-blend-mode: screen; }
.ftr-brand p { margin-top: 10px; max-width: 40ch; }
.ftr h4 { color: #fff; font: 700 12px var(--font); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.ftr a { display: block; padding: 3px 0; }
.ftr a:hover { color: #fff; }
.ftr-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; font-size: 12px; color: #80858d; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 60; opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 14px 12px 16px; border-radius: 14px; display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: all .25s cubic-bezier(.2, .9, .3, 1.2); width: max-content; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast svg { color: var(--brand); }
.toast a { color: var(--brand); font-weight: 700; margin-left: 4px; }
body[data-view="product"] .toast { bottom: calc(90px + var(--safe-b)); }

/* fade-in for views */
.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* =========================================================
   ≥ 640px — large phones / small tablets
   ========================================================= */
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .chips, .hscroll { padding-left: 24px; padding-right: 24px; margin: 0 -24px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hscroll { grid-auto-columns: 31%; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .sector { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .sector .chev { display: none; }
  .hero { padding: 32px 32px 0; }
  .hero h1 { font-size: 36px; }
  .hero-art { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-art > div:nth-child(4) { display: block; }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .fields .full { grid-column: 1 / -1; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .pdp-gallery { margin: 0; border-radius: var(--r-lg); }
  body[data-view="product"] main > .view > .crumbs { display: flex; }
  .gal-wrap { border-radius: var(--r-lg); border: 1px solid var(--line); }
  .gal-track { aspect-ratio: 1; }
  .gal-thumbs { display: flex; }
}

/* =========================================================
   ≥ 1100px — desktop
   ========================================================= */
@media (min-width: 1100px) {
  body { padding-bottom: 0 !important; font-size: 15px; }
  .tabbar, .actionbar.m-only, body .hdr-back { display: none !important; }
  body .brand { display: flex !important; }
  .hdr-top, body:not([data-view="home"]) .hdr-top {
    grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand search links cart"; gap: 28px; padding-top: 14px; padding-bottom: 14px;
  }
  .brand img { height: 30px; }
  .search { max-width: 640px; }
  .search input { height: 46px; }
  .hdr-links { display: flex; grid-area: links; gap: 4px; }
  .hdr-link { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
  .hdr-link:hover { background: var(--line-2); }
  .hdr-link svg { width: 20px; height: 20px; }
  .catnav { display: block; border-top: 1px solid var(--line-2); }
  .catnav-in { display: flex; gap: 2px; align-items: center; height: 46px; }
  .catnav a { height: 46px; display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); border-bottom: 2.5px solid transparent; }
  .catnav a:hover { color: var(--ink); }
  .catnav a.on { border-color: var(--brand); color: var(--ink); }
  .catnav .sep { width: 1px; height: 20px; background: var(--line); margin: 0 10px; }
  .catnav .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 0 6px 0 2px; }
  .catnav svg { width: 16px; height: 16px; }

  main { padding-top: 24px; padding-bottom: 40px; }
  .sec { margin-top: 44px; }
  .sec-hd h2 { font-size: 24px; }
  .sec-hd p { font-size: 14px; }

  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; padding: 52px 52px 0; min-height: 400px; align-items: center; }
  .hero h1 { font-size: 50px; }
  .hero p { font-size: 16px; }
  .hero-art { grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0 0 52px; }
  .hero-art > div { padding: 10px; border-radius: 18px; }

  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .layout .grid { grid-template-columns: repeat(3, 1fr); }
  .hscroll { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; gap: 18px; }
  .pcard-body { padding: 12px 14px 14px; }
  .pcard h3 { font-size: 15px; }
  .price { font-size: 18px; }
  .sector { padding: 22px; }
  .sector h3 { font-size: 18px; }
  .cats { gap: 18px; }
  .cat h3 { font-size: 17px; }
  .cat-body { padding: 14px 16px 16px; }
  .trust { gap: 18px; }
  .trust > div { padding: 16px; }

  .layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
  .side { display: block; position: sticky; top: 140px; }
  .side .card { padding: 16px; }
  .side-group + .side-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
  .side a { display: flex; justify-content: space-between; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
  .side a:hover { background: var(--line-2); }
  .side a.on { background: var(--ink); color: #fff; font-weight: 600; }
  .side a span { color: var(--muted-2); font-size: 12px; }
  .side a.on span { color: #c9ccd1; }
  .toolbar .chips.cat-chips { display: none; }
  .list-hd h1 { font-size: 32px; }

  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 12px; }
  .pdp-gallery { position: sticky; top: 140px; aspect-ratio: 1; }
  .pdp-gallery.photo { aspect-ratio: auto; }
  .gal-thumbs button { flex-basis: 76px; height: 76px; }
  .pdp h1 { font-size: 28px; }
  .pdp-price .price { font-size: 34px; }
  .pdp-actions-inline { display: flex; gap: 10px; margin-top: 4px; }
  .pdp-actions-inline .btn { flex: 1; height: 54px; font-size: 16px; }
  .pdp-actions-inline .btn-wa-sq { flex: none; width: 54px; padding: 0; }
  .actionbar.m-only { display: none; }

  .cart-layout, .co-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
  .summary { position: sticky; top: 140px; }
  .page-title { font-size: 32px; margin: 4px 0 20px; }
  .citem { grid-template-columns: 110px 1fr; padding: 18px; }
  .citem-art { width: 110px; height: 110px; }
  .citem h3 { font-size: 15px; }
  .step { padding: 22px; }
  .success-actions { grid-template-columns: repeat(3, 1fr); }
  .ftr-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .ftr-brand { grid-column: auto; }
  .toast { bottom: 28px !important; }
  .sector-hero { padding: 32px; grid-template-columns: 72px 1fr; }
  .sector-hero .sector-ico { width: 72px; height: 72px; }
  .sector-hero h1 { font-size: 32px; }
}

/* ---------- Print (quotation / order summary) ---------- */
@media print {
  .hdr, .tabbar, .ftr, .toast, .success-hd, .success-actions, .actionbar, .no-print { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  main { padding: 0; }
  .card { border: 0; }
  .doc { padding: 0; }
}
