/* Cartsmith store templates — shared base. Each template sets its own variables in theme.css. */
:root {
  --bg: #fff; --fg: #1d1d1f; --muted: #6e6e73; --accent: #1d1d1f; --accent-fg: #fff; --accent2: #e8e2d9;
  --card: #fff; --line: #e6e6e6; --soft: #f5f5f5; --sale: #c0392b;
  --radius: 12px; --radius-sm: 8px; --btn-radius: 999px; --img-ratio: 1 / 1; --img-bg: var(--soft);
  --font-head: system-ui, sans-serif; --font-body: system-ui, sans-serif;
  --head-weight: 600; --head-tt: none; --head-ls: -0.01em; --head-lh: 1.12;
  --hdr-bg: var(--bg); --hdr-fg: var(--fg); --ann-bg: var(--fg); --ann-fg: var(--bg);
  --ftr-bg: var(--soft); --ftr-fg: var(--fg); --ftr-muted: var(--muted);
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px); --shadow: 0 10px 30px rgba(0,0,0,.08);
  --sec-pad: clamp(48px, 7vw, 96px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-tt); letter-spacing: var(--head-ls); line-height: var(--head-lh); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.i { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 1.5em; border: 1.5px solid var(--accent); border-radius: var(--btn-radius); background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.btn--ghost { background: transparent; color: var(--fg); border-color: currentColor; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--sm { min-height: 38px; padding: 0 1.1em; font-size: .85rem; }
.btn--lg { min-height: 52px; padding: 0 1.8em; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }
.btn .i { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btns.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: inherit; position: relative; text-decoration: none; }
.icon-btn:hover { background: rgba(127,127,127,.12); }

/* demo bar + announcement */
.demo-bar__short { display: none; }
.demo-bar { background: #111; color: #eee; font: 500 12.5px/1.4 system-ui, sans-serif; }
.demo-bar__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.demo-bar b { color: #fff; }
.demo-bar__links { display: flex; gap: 14px; align-items: center; flex: none; }
.demo-bar a { color: #eee; text-decoration: none; }
.demo-bar a:hover { color: #fff; text-decoration: underline; }
.demo-bar__cta { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #111 !important; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.demo-bar__cta .i { width: 14px; height: 14px; }
.announce { background: var(--ann-bg); color: var(--ann-fg); text-align: center; font-size: .82rem; font-weight: 500; letter-spacing: .02em; }
.announce p { margin: 0; padding: 9px 0; transition: opacity .35s; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--hdr-bg); color: var(--hdr-fg); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.hdr__menu { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.logo__txt { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.logo__mark { display: inline-grid; place-items: center; }
.hdr__nav { display: flex; gap: 26px; flex: 1; }
.hdr__nav a { white-space: nowrap; text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .85; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.hdr__nav a:hover { opacity: 1; border-color: currentColor; }
.hdr__icons { display: flex; gap: 4px; margin-left: auto; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count[data-zero] { display: none; }
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
.hdr--center .hdr__in { display: grid; grid-template-columns: 1fr auto 1fr; row-gap: 0; }
.hdr--center .logo { grid-column: 2; grid-row: 1; justify-self: center; padding-top: 14px; }
.hdr--center .hdr__nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: 6px 0 10px; }
.hdr--center .hdr__icons { grid-column: 3; grid-row: 1; justify-self: end; padding-top: 14px; }

/* drawers */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg); color: var(--fg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.drawer--left .drawer__panel { right: auto; left: 0; transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.25rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drawer__foot .row { margin: 0; }
.drawer__foot p.muted { margin: 0 0 6px; }
.mnav { display: grid; padding: 12px 20px; }
.mnav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.1rem; font-family: var(--font-head); }
.mnav__note { padding: 0 20px; color: var(--muted); font-size: .9rem; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.row--total { font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }

/* cart lines */
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); background: var(--img-bg); }
.line__name { font-weight: 600; text-decoration: none; display: block; line-height: 1.3; }
.line__var { color: var(--muted); font-size: .85rem; margin: 2px 0 8px; }
.line__price { font-weight: 600; white-space: nowrap; }
.line__rm { background: none; border: 0; padding: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; cursor: pointer; margin-left: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--btn-radius); overflow: hidden; height: 46px; background: var(--card); }
.qty button { width: 40px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.qty button .i { width: 16px; height: 16px; }
.qty input { width: 38px; border: 0; text-align: center; background: transparent; font-weight: 600; -moz-appearance: textfield; padding: 0; }
.qty--sm { height: 34px; }
.qty--sm button { width: 32px; }
.qty--sm input { width: 30px; font-size: .9rem; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty .btn { margin-top: 14px; }
.shipbar { padding: 12px 20px; background: var(--soft); font-size: .88rem; }
.shipbar p { margin: 0 0 6px; }
.shipbar__track { height: 6px; border-radius: 3px; background: rgba(127,127,127,.2); overflow: hidden; }
.shipbar__fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }
.shipbar:empty { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 34em; opacity: .9; }
.hero__chips { list-style: none; padding: 0; margin: 1.8em 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips .i { width: 20px; height: 20px; color: var(--accent); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--cover { min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; }
.hero--cover .hero__media { position: absolute; inset: 0; }
.hero--cover .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6)); }
.hero--cover .hero__content { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 7vw, 88px); }
.hero--cover .hero__inner { max-width: 640px; }
.hero--cover .eyebrow { color: #fff; opacity: .9; }
.hero--cover .btn--ghost { color: #fff; border-color: #fff; }
.hero--cover .btn--ghost:hover { background: #fff; color: #111; }
.hero--cover .hero__chips .i { color: #fff; }
.hero--split { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; background: var(--soft); }
.hero--split .hero__media { order: 2; height: 100%; min-height: 560px; }
.hero--split .hero__content { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 80px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero__sticker { position: absolute; display: grid; place-items: center; text-align: center; }

/* sections */
.sec { padding: var(--sec-pad) 0; }
.sec + .sec { padding-top: 0; }
.sec--alt, .sec.is-soft { background: var(--soft); padding-top: var(--sec-pad) !important; }
.sec--alt + .sec { padding-top: var(--sec-pad); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec__head h2 { margin: 0; }
.sec__sub { color: var(--muted); margin: .6em 0 0; max-width: 40em; }
.sec--trust { padding: 0; border-bottom: 1px solid var(--line); }
.sec--trust + .sec { padding-top: var(--sec-pad); }
.trust { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust li { display: flex; gap: 12px; align-items: center; }
.trust .i { width: 28px; height: 28px; color: var(--accent); }
.trust strong { display: block; font-size: .92rem; line-height: 1.3; }
.trust span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* marquee */
.sec--marquee { padding: 0 !important; }
.sec--marquee + .sec { padding-top: var(--sec-pad); }
.marquee { overflow: hidden; background: var(--accent); color: var(--accent-fg); padding: 14px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; animation: marq 40s linear infinite; }
.marquee span { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: uppercase; letter-spacing: .06em; padding: 0 28px; position: relative; }
.marquee span::after { content: "✦"; position: absolute; right: -6px; opacity: .6; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* product grid + cards */
.grid { display: grid; gap: clamp(14px, 2vw, 28px); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); position: relative; }
.card__media { position: relative; display: block; aspect-ratio: var(--img-ratio); overflow: hidden; border-radius: var(--radius); background: var(--img-bg); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s; }
.card__alt { opacity: 0; }
.card:hover .card__alt { opacity: 1; }
.card:hover .card__media img:first-child { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); color: var(--accent-fg); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--btn-radius); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 4px 4px; }
.card__cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 4px; }
.card__title { font-size: 1.02rem; margin: 0 0 6px; font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__specs { font: 500 .78rem/1.3 ui-monospace, "JetBrains Mono", monospace; color: var(--muted); margin: 0 0 6px; }
.card__specs span { white-space: nowrap; }
.card__specs .card__sep { white-space: normal; }
.card__notes { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.card__swatches { display: flex; gap: 6px; margin: 2px 0 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.price { margin: 0 0 12px; font-weight: 600; }
.price .was { color: var(--muted); font-weight: 400; font-size: .9em; margin-left: 4px; }
.price .from { font-weight: 400; color: var(--muted); font-size: .9em; }
.price .per { font-weight: 400; color: var(--muted); font-size: .85em; }
.card .card__add { white-space: normal; } /* a long label (e.g. mockup "See the set") must not widen the 2-column grid on phones */
.price--lg { font-size: 1.45rem; }
.card__add { margin-top: auto; width: 100%; }
.card .btn--sm { min-height: 40px; }

/* categories */
.cats { display: grid; gap: clamp(12px, 2vw, 24px); }
.cats--tiles { grid-template-columns: repeat(var(--n, 3), 1fr); }
.cats--n2 { --n: 2; } .cats--n3 { --n: 3; } .cats--n4 { --n: 4; } .cats--n5 { --n: 5; }
.cats--tiles .cat { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.cats--tiles .cat__img, .cats--tiles .cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cats--tiles .cat:hover img { transform: scale(1.04); }
.cats--tiles .cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55)); }
.cats--tiles .cat__txt { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.cats--tiles strong { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: var(--head-weight); text-transform: var(--head-tt); }
.cats--tiles small { opacity: .85; }
.cats--circles { grid-template-columns: repeat(var(--n, 5), 1fr); text-align: center; }
.cats--circles .cat { text-decoration: none; display: grid; justify-items: center; align-content: start; gap: 12px; }
.cats--circles .cat__img { width: min(100%, 170px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--img-bg); }
.cats--circles .cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cats--circles .cat:hover img { transform: scale(1.06); }
.cats--circles strong { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: var(--head-weight); }
.cats--circles small { color: var(--muted); font-size: .85rem; }
.cats--cards { grid-template-columns: repeat(var(--n, 4), 1fr); }
.cats--cards .cat { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: border-color .2s, transform .2s; }
.cats--cards .cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.cats--cards .cat__img { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; }
.cats--cards .cat__img img { width: 100%; height: 100%; object-fit: cover; }
.cats--cards strong { display: block; font-size: 1.05rem; }
.cats--cards small { color: var(--muted); font-size: .85rem; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__txt p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: clamp(16px, 2.5vw, 32px); counter-reset: s; }
.steps--n2 { --n: 2; } .steps--n3 { --n: 3; } .steps--n4 { --n: 4; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.5vw, 30px); display: flex; flex-direction: column; }
.step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: 16px; font-family: var(--font-head); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin-bottom: 16px; }
.step__prod { margin-top: auto; display: flex; gap: 12px; align-items: center; text-decoration: none; padding-top: 14px; border-top: 1px solid var(--line); }
.step__prod img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.step__prod span { display: grid; font-size: .9rem; font-weight: 600; }
.step__prod b { font-weight: 500; color: var(--muted); }

/* features */
.feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: clamp(16px, 2.5vw, 32px); }
.feats--n2 { --n: 2; } .feats--n3 { --n: 3; } .feats--n4 { --n: 4; }
.feat .i { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }
.feat h3 { font-size: 1.12rem; }
.feat p { color: var(--muted); margin: 0; font-size: .95rem; }

/* band */
.sec--band { padding-left: 0; padding-right: 0; }
.band { position: relative; background: var(--accent); color: var(--accent-fg); overflow: hidden; }
.band--img { color: #fff; background: #111; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.band__in { position: relative; padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); }
.band__txt { max-width: 560px; }
.band__txt p { opacity: .9; font-size: 1.08rem; }
.band .eyebrow { color: inherit; opacity: .85; }
.band .btn { background: #fff; color: #111; border-color: #fff; }
.band .btn--ghost { background: transparent; color: #fff; }

/* statement */
.statement { font-family: var(--font-head); font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.3; text-align: center; max-width: 900px; margin: 0 auto; font-weight: var(--head-weight); }
.statement__by { text-align: center; color: var(--muted); margin-top: 1em; }

/* table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--soft); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { font-weight: 600; }
.tbl .nw { white-space: nowrap; } /* short values ("30–40 cm", "10,000 mAh") never split */

/* faq */
.qas { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary, .acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; }
.qa summary::-webkit-details-marker, .acc summary::-webkit-details-marker { display: none; }
.qa summary .i, .acc summary .i { width: 18px; height: 18px; transition: transform .25s; flex: none; }
.qa[open] summary .i, .acc details[open] summary .i { transform: rotate(45deg); }
.qa p { color: var(--muted); margin: 0 0 18px; }

/* gallery row */
.gallery-row { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: clamp(10px, 1.6vw, 20px); }
.gallery-row--n2 { --n: 2; } .gallery-row--n3 { --n: 3; }
.gallery-row figure { margin: 0; }
.gallery-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.gallery-row figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* newsletter */
.nlbox { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center; background: var(--soft); border-radius: var(--radius); padding: clamp(28px, 5vw, 60px); }
.nlbox h2 { margin-bottom: .3em; }
.nlbox p { color: var(--muted); margin: 0; }
.nl { display: flex; gap: 8px; }
.nl input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line); border-radius: var(--btn-radius); padding: 0 16px; background: var(--card); }
.nl--lg input { height: 52px; }
.nl--lg .btn { min-height: 52px; }

/* roast meter */
.roast { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .85rem; margin: 0 0 12px; }
.roast__name { white-space: nowrap; } /* "Light-medium" moves under the meter on narrow cards instead of breaking in two */
.roast__label { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.roast__dots { display: inline-flex; gap: 4px; }
.roast__dots i { width: 22px; height: 6px; border-radius: 3px; background: rgba(127,127,127,.25); }
.roast__dots i.on { background: var(--accent); }
.roast--sm { margin: 0 0 8px; font-size: .78rem; }
.roast--sm .roast__label { display: none; }
.roast--sm .roast__dots i { width: 14px; height: 4px; }

/* page head, crumbs, shop */
.page-head { padding: clamp(28px, 4vw, 52px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { margin: 0 0 .2em; font-size: clamp(2rem, 4vw, 3rem); }
.page-head p { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.shop { padding-bottom: var(--sec-pad); }
.shop__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: var(--btn-radius); padding: 8px 16px; font-size: .88rem; font-weight: 500; cursor: pointer; }
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.sort select { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--card); color: var(--fg); }
.card[hidden] { display: none; }

/* product page */
.pdp { padding-top: 20px; padding-bottom: var(--sec-pad); }
.pdp__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.gallery { position: sticky; top: 90px; }
.gallery__main { position: relative; aspect-ratio: var(--img-ratio); border-radius: var(--radius); overflow: hidden; background: var(--img-bg); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--img-bg); }
.thumb.is-on { border-color: var(--fg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; }
.pdp__info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .3em; }
.pdp__short { color: var(--muted); font-size: 1.05rem; }
.pdp__notes { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__notes span { border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 4px 12px; font-size: .85rem; }
.pdp__note { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin: -4px 0 16px; }
.pdp__note .i { width: 18px; height: 18px; }
.opt { border: 0; padding: 0; margin: 0 0 18px; }
.opt legend { font-size: .9rem; margin-bottom: 10px; padding: 0; }
.opt__vals { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__v input { position: absolute; opacity: 0; pointer-events: none; }
.opt__v span { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--btn-radius); cursor: pointer; font-size: .9rem; font-weight: 500; background: var(--card); transition: border-color .15s; }
.opt__v span em { font-style: normal; color: var(--muted); font-size: .8rem; }
.opt__v input:checked + span { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.opt__v input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt__v--sw span { padding: 0 14px 0 8px; gap: 8px; }
.opt__v--sw span::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.buy__row { display: flex; gap: 10px; margin-bottom: 10px; }
.buy__add { flex: 1; }
.pdp__trust { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; font-size: .9rem; }
.pdp__trust li { display: flex; gap: 12px; }
.pdp__trust .i { color: var(--accent); margin-top: 1px; }
.pdp__trust span { color: var(--muted); }
.pdp__trust b { color: var(--fg); font-weight: 600; }
.acc { margin-top: 22px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details > div { padding: 0 0 16px; color: var(--muted); }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th, .spec td { text-align: left; padding: 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec th { font-weight: 500; color: var(--fg); width: 42%; padding-right: 12px; }
.reviews { margin-top: var(--sec-pad); padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); }
.reviews h2 { font-size: 1.4rem; }
.reviews p { margin: 0; }
.related { margin-top: var(--sec-pad); }
.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .3s; }
.sticky-atc.is-on { transform: none; }
.sticky-atc__in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.sticky-atc img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; }
.sticky-atc__txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.sticky-atc__txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.sticky-atc__txt span { color: var(--muted); font-size: .88rem; }

/* cart page + checkout */
.cartpage, .checkout { padding-bottom: var(--sec-pad); }
.cartpage__grid, .checkout__grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cartpage .shipbar { border-radius: var(--radius); margin-bottom: 8px; }
.summary { background: var(--soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.summary h2 { font-size: 1.3rem; }
.summary .row { margin: 0 0 10px; }
.zone { margin: 4px 0 12px; display: grid; gap: 6px; font-size: .92rem; }
.zone p { margin: 0; }
.radio { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.coupon { display: flex; gap: 8px; margin: 14px 0 4px; }
.coupon input { flex: 1; min-width: 0; height: 40px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; background: var(--card); }
.pay-note { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.pay-note .i { width: 16px; height: 16px; }
.demo-note { display: flex; gap: 14px; align-items: flex-start; background: var(--soft); border: 1px dashed var(--muted); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 28px; font-size: .92rem; }
.demo-note p { margin: 0; }
.demo-note .i { color: var(--accent); }
.co-form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.co-form legend { font-family: var(--font-head); font-size: 1.25rem; font-weight: var(--head-weight); text-transform: var(--head-tt); margin-bottom: 12px; padding: 0; }
.co-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; margin-bottom: 12px; }
.co-form input, .co-form select { height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; background: var(--card); font-size: 1rem; width: 100%; }
.co-form input:focus, .co-form select:focus { border-color: var(--fg); outline: none; }
.co-form .is-bad { border-color: var(--sale); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.f3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 0 12px; }
.ship-opt { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--card); }
.ship-opt p { margin: 0; }
.co-form .pay { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 8px; cursor: pointer; background: var(--card); }
.co-form .pay input { width: 18px; height: 18px; }
.co-form .pay span { display: grid; }
.co-form .pay small { color: var(--muted); font-weight: 400; }
.co-form .pay:has(input:checked) { border-color: var(--fg); }
.form-error { color: var(--sale); font-weight: 600; }
.co-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; font-size: .9rem; }
.co-line__img { position: relative; }
.co-line img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.co-line__q { position: absolute; top: -6px; right: -6px; background: var(--muted); color: #fff; border-radius: 10px; font-size: 11px; min-width: 20px; height: 20px; display: grid; place-items: center; }
.co-line small { color: var(--muted); display: block; }

/* order page */
.orderpage { padding: clamp(40px, 6vw, 80px) var(--gutter) var(--sec-pad); text-align: center; }
.order-ok { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; margin: 0 auto 20px; }
.order-ok .i { width: 36px; height: 36px; }
.orderpage .lead { font-size: 1.1rem; }
.tag { display: inline-block; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; font-size: .75rem; padding: 2px 8px; vertical-align: middle; text-transform: uppercase; letter-spacing: .08em; }
.order-box { text-align: left; background: var(--soft); border-radius: var(--radius); padding: 24px; margin: 28px 0; }
.order-box .row { margin: 0 0 8px; }
.next { text-align: left; margin-top: 12px; }
.next h2 { font-size: 1.2rem; }

/* about + help */
.about-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.about-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55)); }
.about-hero .wrap { position: relative; z-index: 1; padding-bottom: 40px; }
.about-hero h1 { margin: 0; }
.about { padding-top: 48px; padding-bottom: 32px; font-size: 1.08rem; }
.about .lead { font-size: 1.3rem; font-family: var(--font-head); line-height: 1.45; }
.demo-inline { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; margin-top: 28px; }
.help { padding-bottom: var(--sec-pad); }
.help h2 { margin-top: 1.6em; font-size: 1.6rem; }

/* footer */
.ftr { background: var(--ftr-bg); color: var(--ftr-fg); margin-top: 0; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.ftr h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a { text-decoration: none; color: var(--ftr-fg); opacity: .85; }
.ftr a:hover { opacity: 1; text-decoration: underline; }
.ftr p { color: var(--ftr-muted); font-size: .92rem; }
.ftr__brand .logo { margin-bottom: 16px; }
.ftr__social { display: flex; gap: 16px; flex-wrap: wrap; }
.ftr__social a { display: inline-flex; align-items: center; gap: 6px; }
.ftr__social .i { width: 18px; height: 18px; }
.ftr .nl input { background: rgba(127,127,127,.08); color: inherit; border-color: rgba(127,127,127,.3); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(127,127,127,.2); padding-top: 20px; padding-bottom: 28px; font-size: .82rem; color: var(--ftr-muted); }
.ftr__pay { display: inline-flex; align-items: center; gap: 8px; }
.ftr__pay .i { width: 18px; height: 18px; }

/* chat fab + toast */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 26px; background: var(--accent); color: var(--accent-fg); font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.2); cursor: pointer; transition: bottom .3s; }
.has-sticky .chat-fab { bottom: 92px; }
.page-cart .chat-fab, .page-checkout .chat-fab { display: none; } /* it sat on top of form fields on tablets; checkout needs no distraction */
@media (min-width: 601px) and (max-width: 1599px) {
  /* round icon button: the wide "Chat" pill covered the last product's "Add to cart" on laptop screens */
  .chat-fab { width: 52px; padding: 0; justify-content: center; }
  .chat-fab span { display: none; }
}
@media (max-width: 860px) {
  .chat-fab { transition: bottom .3s, opacity .2s; }
  .atc-in-view .chat-fab { opacity: 0; pointer-events: none; } /* it covered the corner of "Add to cart" on phones */
}
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 140%); visibility: hidden; opacity: 0; background: #111; color: #fff; padding: 14px 18px; border-radius: 12px; max-width: min(460px, calc(100vw - 32px)); font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; opacity: 1; }
.has-sticky .toast { bottom: 96px; }

/* responsive */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .cats--cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hdr__nav { display: none; }
  .hdr__menu { display: inline-grid; margin-left: -10px; }
  .hdr__in { gap: 8px; min-height: 60px; }
  .hdr .logo__txt { font-size: 1.3rem; }
  .hdr--center .hdr__in { grid-template-columns: 1fr auto 1fr; }
  .hdr--center .hdr__menu { grid-column: 1; grid-row: 1; justify-self: start; }
  .hdr--center .logo, .hdr--center .hdr__icons { padding-top: 0; }
  .hero--split { grid-template-columns: 1fr; }
  .hero--split .hero__media { order: 0; min-height: 0; aspect-ratio: 4 / 3; }
  .hero--split .hero__content { padding: 32px var(--gutter) 40px; }
  .hero--cover { min-height: 78vh; }
  .split, .pdp__grid, .cartpage__grid, .checkout__grid, .nlbox { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .gallery { position: static; }
  .summary { position: static; }
  .checkout__grid .summary--co { order: -1; }
  .steps, .feats { grid-template-columns: 1fr 1fr; }
  .cats--tiles { grid-template-columns: repeat(2, 1fr); }
  .cats--circles { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cats--circles .cat { flex: 0 0 28%; scroll-snap-align: start; }
  .gallery-row { grid-template-columns: 1fr 1fr; }
  .sec__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .demo-bar__txt { display: none; }
  .demo-bar__in { justify-content: center; }
  .demo-bar__short { display: inline; font-size: 11.5px; opacity: .85; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .grid--4, .grid--3 { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .card__body { padding: 10px 2px 2px; }
  .card__title { font-size: .92rem; }
  .card .btn--sm { min-height: 38px; padding: 0 .6em; font-size: .8rem; }
  .price { font-size: .92rem; margin-bottom: 10px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 0; }
  .trust .i { width: 24px; height: 24px; }
  .cats--tiles { grid-template-columns: 1fr 1fr; }
  .cats--tiles .cat { aspect-ratio: 3 / 4; }
  .cats--tiles strong { font-size: 1.15rem; }
  .cats--tiles .cat__txt { left: 14px; bottom: 12px; }
  .cats--cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cats--cards .cat { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .cats--cards .cat__img { width: 100%; height: auto; aspect-ratio: 16 / 11; }
  .cats--cards .cat__txt { padding: 0 4px 4px; }
  .f3 { grid-template-columns: 1fr 1fr; }
  .f3 label:last-child { grid-column: 1 / -1; }
  .f2 { grid-template-columns: 1fr; }
  .nl { flex-direction: column; }
  .nl input { flex: none; width: 100%; } /* flex:1 in a column squashed the field to ~22px tall */
  .nl .btn { width: 100%; }
  .buy__row .qty { height: 52px; }
  .tbl th, .tbl td { padding: 12px 10px; white-space: normal; } /* size charts and comparisons fit the phone instead of scrolling sideways */
  .tbl th:first-child, .tbl td:first-child { padding-left: 14px; }
  /* help page tables: one block per row on phones (a sideways-scrolling table hid the "free over RM150" part) */
  .tbl--stack thead { display: none; }
  .tbl--stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl--stack tbody tr:last-child { border-bottom: 0; }
  .tbl.tbl--stack th, .tbl.tbl--stack td { display: block; padding: 0; border: 0; white-space: normal; }
  .tbl--stack tbody th { margin-bottom: 4px; }
  .tbl.tbl--stack td { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 2px 0; }
  .tbl--stack td::before { content: attr(data-l); color: var(--muted); font-size: .85rem; }
  .gallery__thumbs { overflow-x: auto; }
  .thumb { width: 64px; height: 64px; flex: none; }
  .line { grid-template-columns: 64px 1fr auto; }
  .line img { width: 64px; height: 64px; }
}

/* ---------- phones (≤600px): slim top, swipe rows, bigger tap targets ---------- */
.gallery__dots, .cart-bar { display: none; }
@media (max-width: 600px) {
  /* top of the page: demo bar + announcement + header used ~140px, now ~115px */
  .demo-bar { font-size: 12px; }
  .demo-bar__in { min-height: 34px; padding-top: 3px; padding-bottom: 3px; }
  .demo-bar__links { width: 100%; justify-content: space-between; gap: 10px; }
  .demo-bar__links a { padding: 6px 0; }
  .demo-bar__cta { padding: 6px 12px !important; }
  /* private mockups: short note on the left, button on the right (the note used to be squeezed to one letter wide and pushed the page sideways) */
  .demo-bar--pv .demo-bar__in { justify-content: space-between; gap: 10px; }
  .demo-bar--pv .demo-bar__short { flex: 1 1 auto; min-width: 0; line-height: 1.3; font-size: 11px; }
  .demo-bar--pv .demo-bar__links { width: auto; flex: none; }
  .announce { font-size: .76rem; }
  .announce p { padding: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hdr__in { min-height: 54px; }
  .hdr .logo__txt { font-size: 1.2rem; }

  /* section titles: "Shop all →" sits beside a short title instead of under it */
  .sec__head { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; margin-bottom: 18px; }
  .sec__head > div { flex: 1 1 auto; min-width: 0; }
  .sec__sub { font-size: .92rem; }
  .link-arrow { padding: 8px 0; }
  .eyebrow { font-size: .76rem; }

  /* product rows on the home page + "you may also like": swipe sideways, two cards and a peek */
  .grid--rail, .steps { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
  .grid--rail::-webkit-scrollbar, .steps::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
  .grid--rail > .card { flex: 0 0 46%; scroll-snap-align: start; }
  .steps > .step { flex: 0 0 84%; scroll-snap-align: start; padding: 20px; }
  .step__n { width: 34px; height: 34px; margin-bottom: 12px; }
  .card__cat { font-size: .76rem; }
  .badge { font-size: .74rem; top: 8px; left: 8px; padding: 4px 8px; }

  /* category tiles: an odd last tile fills the row instead of sitting alone */
  .cats--tiles .cat:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

  /* features: two columns, smaller icons */
  .feats { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .feats--n3 .feat:last-child { grid-column: 1 / -1; }
  .feat .i { width: 28px; height: 28px; margin-bottom: 8px; }
  .feat h3 { font-size: 1rem; margin-bottom: .35em; }
  .feat p { font-size: .87rem; line-height: 1.5; }

  /* shop page: category chips in one swipeable line */
  .page-head { padding: 22px 0 16px; }
  .shop__bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; margin-bottom: 20px; } /* nowrap: a wrapping column grows to the chips' full width (page shifted sideways) */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chip { flex: none; padding: 9px 16px; }
  .sort { justify-content: flex-end; }

  /* product page: photo edge to edge, swipe for more photos (dots instead of thumbnails) */
  .pdp { padding-top: 8px; }
  .pdp .crumbs { margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gallery { margin-inline: calc(var(--gutter) * -1); }
  .gallery__main { border-radius: 0; max-height: 60vh; touch-action: pan-y; }
  .gallery__thumbs { display: none; }
  .gallery__dots { display: flex; position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; justify-content: center; gap: 6px; pointer-events: none; }
  .gallery__dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.12); transition: width .2s, background .2s; }
  .gallery__dots i.is-on { width: 20px; background: #fff; }
  .pdp__info h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .related .sec__head { margin-bottom: 14px; }

  /* cart: total + checkout pinned to the bottom */
  .cart-bar:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); transition: transform .25s; padding-bottom: env(safe-area-inset-bottom); }
  .cart-bar.is-away { transform: translateY(110%); }
  .cart-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; }
  .cart-bar__sum { display: grid; line-height: 1.2; }
  .cart-bar__sum small { color: var(--muted); font-size: .8rem; }
  .cart-bar__sum strong { font-size: 1.2rem; }
  .cart-bar .btn { flex: 1; max-width: 220px; }
  body.page-cart { padding-bottom: 72px; }
  body.page-cart .toast { bottom: 92px; }

  /* chat button: smaller, and out of the way while paying */
  .chat-fab { width: 48px; height: 48px; right: 14px; bottom: 14px; padding: 0; justify-content: center; }
  .chat-fab span { display: none; }
  .has-sticky .chat-fab { bottom: 86px; }
  .page-cart .chat-fab, .page-checkout .chat-fab { display: none; }

  /* footer: two columns instead of one long list */
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-top: 40px; padding-bottom: 30px; }
  .ftr__brand, .ftr__grid > div:last-child { grid-column: 1 / -1; }
  .ftr ul { gap: 0; }
  .ftr ul a { display: inline-block; padding: 7px 0; }
  .ftr__social { gap: 6px 18px; }
  .ftr__social a { padding: 6px 0; }
  .ftr h4 { margin-bottom: 8px; }
  .ftr__bottom { flex-direction: column; gap: 8px; }
}
