/* Storefront. Brand colours come from Settings as --brand (main) and --dark (accent). */
:root {
  --brand: #d4161f;
  --dark: #111111;
  --ink: #161616;
  --muted: #666b70;
  --line: #e4e4e4;
  --page: #f2f2f2;
  --card: #ffffff;
  --ok: #16803c;
  --warn: #b26a00;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tabbar-h: 62px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--body); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pre { white-space: pre-line; }
.ic { width: 24px; height: 24px; flex: none; }
.ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #c4c7ca; background: #f7f7f7; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.head-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . cart" "search search search"; gap: 10px 14px; align-items: center; padding: 10px var(--gutter-r) 12px var(--gutter); }
.logo { grid-area: logo; display: flex; align-items: center; text-decoration: none; min-width: 0; }
.logo img { height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.search { grid-area: search; position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid transparent; background: #f0f0f0; padding: 0 16px 0 44px; font-size: 16px; }
.search input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cart-link { grid-area: cart; position: relative; display: flex; align-items: center; gap: 6px; text-decoration: none; padding: 6px; font-weight: 600; }
.cart-link .ic { width: 28px; height: 28px; }
.cart-count { position: absolute; top: -2px; left: 22px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.cart-word { display: none; }
.cat-bar { display: none; border-top: 1px solid #f0f0f0; }
.cat-bar-in { max-width: 1240px; margin: 0 auto; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter-r) 0 var(--gutter); }
.cat-bar-in::-webkit-scrollbar { display: none; }
.cat-bar a { flex: none; padding: 11px 0; font-size: 14px; font-weight: 500; color: #3a3d40; text-decoration: none; border-bottom: 2px solid transparent; }
.cat-bar a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.cat-bar .deals-link { color: var(--brand); font-weight: 700; }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: #fff; border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.tabbar a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabbar-h); text-decoration: none; color: #6f7377; font-size: 11.5px; font-weight: 500; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on .ic { background: var(--brand-soft); border-radius: 999px; padding: 2px 12px; width: 48px; box-sizing: content-box; height: 22px; margin: -2px 0 0; }
.tab-count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10.5px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---------- hero carousel and banners ---------- */
.hero { position: relative; max-width: 1240px; margin: 0 auto; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.hero-dots button { pointer-events: auto; width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; transition: width .2s; }
.hero-dots button.on { width: 22px; background: #fff; }
.banner { display: block; text-decoration: none; color: inherit; }
.b-img img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.b-design { position: relative; overflow: hidden; display: flex; align-items: center; aspect-ratio: 6 / 5; padding: 8% 7%; background: var(--dark); color: #fff; }
.b-design.theme-brand { background: var(--brand); }
.b-design.theme-light { background: #f4f4f4; color: var(--ink); }
.b-rings { position: absolute; inset: 0; pointer-events: none; }
.b-rings i { position: absolute; border-radius: 50%; border: clamp(18px, 5vw, 46px) solid var(--brand); opacity: .95; }
.theme-brand .b-rings i { border-color: rgba(255,255,255,.18); }
.theme-light .b-rings i { border-color: var(--brand); opacity: .9; }
.b-rings i:nth-child(1) { width: 62%; aspect-ratio: 1; top: -26%; right: -18%; }
.b-rings i:nth-child(2) { width: 38%; aspect-ratio: 1; bottom: -18%; left: -10%; }
.b-rings i:nth-child(3) { width: 16%; aspect-ratio: 1; bottom: 10%; right: 10%; border-width: clamp(8px, 2vw, 18px); }
.b-box { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: flex-start; max-width: 78%; padding: 4% 6% 0; border: 2px solid currentColor; border-radius: 14px; background: color-mix(in srgb, var(--dark) 70%, transparent); }
.theme-brand .b-box { background: color-mix(in srgb, var(--brand) 70%, transparent); }
.theme-light .b-box { background: rgba(255,255,255,.85); }
.b-eyebrow { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 6.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; color: var(--brand); }
.theme-brand .b-eyebrow { color: #fff; opacity: .92; }
.b-big { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 19vw, 132px); line-height: .95; letter-spacing: -.06em; margin: 1% 0 3%; }
.b-label { align-self: stretch; margin: 0 -9.5% 0; padding: 3% 9.5% 4%; border-top: 2px solid currentColor; font-family: var(--display); font-weight: 600; font-size: clamp(16px, 4.8vw, 30px); letter-spacing: -.02em; }
.b-design.has-img .b-box { max-width: 58%; }
.b-product { position: absolute; z-index: 1; right: 3%; bottom: 0; width: 44%; height: 86%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.mid-banner { max-width: 1240px; margin: 10px auto; }
.mid-banner .b-design, .mid-banner .b-img img { aspect-ratio: 2 / 1; padding-block: 5%; }
.mid-banner .b-big { font-size: clamp(40px, 13vw, 96px); }
.mid-banner .b-eyebrow { font-size: clamp(17px, 5vw, 32px); }
.mid-banner .b-label { font-size: clamp(14px, 4vw, 24px); }

/* ---------- category circles ---------- */
.cat-circles { background: #fff; padding: 14px 0 6px; margin-bottom: 10px; }
.circles { gap: 6px !important; }
.circle { flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; font-size: 12.5px; text-align: center; line-height: 1.25; color: #333; }
.circle-img { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; border: 1px solid #ebebeb; }
.circle-img img { width: 100%; height: 100%; object-fit: cover; }
.circle-img b { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.03em; }
.circle.deals .circle-img { background: var(--brand); border-color: var(--brand); }
.circle.deals .circle-img b { color: #fff; font-size: 28px; }

/* ---------- product rows and cards ---------- */
.row-sec { background: #fff; margin: 0 auto 10px; padding: 16px 0 18px; max-width: 1240px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gutter-r) 12px var(--gutter); }
.row-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.row-head a { color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.row-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 var(--gutter-r) 2px var(--gutter); scroll-padding-left: var(--gutter); }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .card { flex: 0 0 min(44vw, 210px); scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); overflow: hidden; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.card-img { position: relative; aspect-ratio: 1; padding: 8px; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 12px; flex: 1; }
.card-name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin-bottom: 6px; }
.card-price { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; margin-top: auto; }
.card-price small { font-family: var(--body); font-weight: 500; font-size: 13px; letter-spacing: 0; }
.card-was { color: #8b8f93; font-size: 13px; line-height: 1.3; }
.badge-off { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 46px; padding: 5px 6px; border-radius: 5px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1; letter-spacing: -.02em; }
.badge-off small { font-size: 10px; letter-spacing: .04em; margin-top: 2px; }
.badge-off.big { top: 12px; left: 12px; font-size: 18px; min-width: 58px; padding: 7px 8px; z-index: 2; }
.badge-out { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; background: rgba(22,22,22,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 4px; border-radius: 4px; }
.card.is-out .card-img img { opacity: .45; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* ---------- pages ---------- */
.page-in { max-width: 1240px; margin: 0 auto; padding: 16px var(--gutter-r) 28px var(--gutter); }
.page-in.narrow { max-width: 720px; }
.page-title { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; margin: 4px 0 6px; text-wrap: balance; }
.crumbs { margin: 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.count { margin: 0; color: var(--muted); font-size: 13.5px; }
.list-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.list-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chk { display: flex; align-items: center; gap: 7px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 40px; padding: 0 12px; cursor: pointer; }
.chk input { accent-color: var(--brand); width: 17px; height: 17px; }
.sel select { height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 10px; }
.empty-state { background: #fff; border-radius: 8px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty-state p { margin: 0 0 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-tile { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 8px; padding: 12px; text-decoration: none; border: 1px solid var(--line); }
.cat-tile-img { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-img b { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }
.cat-tile.deals .cat-tile-img { background: var(--brand); color: #fff; }
.cat-tile-name { font-weight: 600; font-size: 14px; line-height: 1.3; min-width: 0; }
.cat-tile-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.prose { background: #fff; border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.prose p { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 8px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled, .btn.is-disabled { background: #c9c9c9; border-color: #c9c9c9; cursor: not-allowed; filter: none; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #cfcfcf; }
.btn.wa { background: #fff; color: #137c3f; border-color: #25a85a; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; text-decoration: none; cursor: pointer; font-size: 14px; }

/* ---------- product page ---------- */
.pd { display: grid; gap: 14px; margin-top: 8px; }
.pd-gallery { position: relative; background: #fff; border-radius: 8px; overflow: hidden; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter)); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; padding: 16px; display: flex; align-items: center; justify-content: center; }
.gal-slide img { width: 100%; height: 100%; object-fit: contain; }
.ph.big svg { width: 64px; height: 64px; }
.gal-dots { display: flex; justify-content: center; gap: 7px; padding: 0 0 14px; }
.gal-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #cfcfcf; cursor: pointer; }
.gal-dots button.on { background: var(--brand); }
.gal-thumbs { display: none; }
.pd-info { background: #fff; border-radius: 8px; padding: 16px; }
.pd-name { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 10px; text-wrap: balance; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pd-price .now { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.04em; }
.pd-price .was { color: #8b8f93; font-size: 16px; }
.pd-price .save { color: var(--brand); font-weight: 700; font-size: 14px; }
.stock-line { margin: 6px 0 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; min-height: 21px; }
.stock-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-line:empty::before { display: none; }
.stock-line.ok { color: var(--ok); } .stock-line.low { color: var(--warn); } .stock-line.out { color: #b3261e; }
.opts { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.opts legend { font-size: 14px; color: #44484c; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; min-width: 52px; height: 44px; padding: 0 14px; border: 1px solid #cfcfcf; border-radius: 6px; background: #fff; font-weight: 500; }
.chip input:checked + span { border: 2px solid var(--brand); padding: 0 13px; font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.chip.sold span { color: #a3a3a3; background: #f6f6f6; text-decoration: line-through; }
.buy { margin-top: 18px; display: grid; gap: 10px; }
.buy-row { display: flex; gap: 10px; }
.buy-row .add { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid #cfcfcf; border-radius: 8px; height: 48px; background: #fff; flex: none; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 20px; cursor: pointer; color: #444; }
.qty input { width: 38px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.small { height: 38px; }
.qty.small button { width: 34px; }
.perks { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid #eee; display: grid; gap: 10px; font-size: 14px; color: #44484c; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks .ic { width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
.perks a { color: var(--ink); }
.pd-desc { background: #fff; border-radius: 8px; padding: 16px; margin-top: 10px; }
.pd-desc h2 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 0 0 8px; }
.pd-desc p { margin: 0; color: #2f3336; max-width: 68ch; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: flex; align-items: center; gap: 14px; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter); box-shadow: 0 -4px 14px rgba(0,0,0,.05); }
.buy-bar > div { line-height: 1.15; }
.bb-price { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.bb-was { font-size: 12.5px; color: #8b8f93; }
.buy-bar .btn { flex: 1; }
body.product-page .tabbar { display: none; }
body.product-page { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

/* ---------- cart and checkout ---------- */
.note { border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; }
.note.ok { background: #e6f4ea; color: #0f5d2c; }
.note.bad { background: #fdecea; color: #8c1d18; }
.note ul { margin: 0; padding-left: 18px; }
.cart-wrap, .checkout { display: grid; gap: 14px; align-items: start; }
.cart-lines { background: #fff; border-radius: 8px; padding: 4px 16px; }
.cline { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eee; }
.cline:last-of-type { border-bottom: 0; }
.cline-img { width: 76px; height: 76px; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.cline-img img { width: 100%; height: 100%; object-fit: contain; }
.cline-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cline-name { font-weight: 600; text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.cline-opt { font-size: 13px; color: var(--muted); }
.cline-price { font-size: 13.5px; color: #44484c; }
.cline-price s { color: #9a9ea2; }
.cline-warn { color: #b3261e; font-size: 13px; font-weight: 600; }
.cline-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.cline-total { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.summary { background: #fff; border-radius: 8px; padding: 16px; display: grid; gap: 8px; }
.summary h2, .co-card h2 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; margin: 0 0 4px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.sum-line.total { border-top: 1px solid #eee; padding-top: 10px; margin-top: 2px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.mini-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #44484c; padding-bottom: 6px; border-bottom: 1px dashed #eee; }
.mini-line small { display: block; color: var(--muted); }
.small-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.free-bar { position: relative; background: #f3f3f3; border-radius: 8px; padding: 9px 12px 14px; font-size: 13.5px; font-weight: 600; overflow: hidden; }
.free-bar i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--brand); border-radius: 0 2px 2px 0; }
.free-bar.done { background: #e6f4ea; color: #0f5d2c; }
.free-bar.done i { background: var(--ok); }
.co-main { display: grid; gap: 12px; }
.co-card { background: #fff; border-radius: 8px; padding: 16px; display: grid; gap: 12px; }
.fld { display: grid; gap: 5px; }
.fld > span { font-size: 13.5px; font-weight: 600; color: #3a3d40; }
.fld em { font-style: normal; font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { width: 100%; min-height: 46px; border: 1px solid #cfcfcf; border-radius: 8px; padding: 10px 12px; font-size: 16px; background: #fff; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; gap: 12px; align-items: center; border: 1px solid #cfcfcf; border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.choice input { accent-color: var(--brand); width: 19px; height: 19px; flex: none; }
.choice span { display: grid; }
.choice small { color: var(--muted); font-size: 13px; }
.choice:has(input:checked) { border: 2px solid var(--brand); padding: 11px 13px; background: var(--brand-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-address][hidden] { display: none; }

/* thank-you */
.thanks-head { text-align: center; background: #fff; border-radius: 8px; padding: 26px 18px; margin-bottom: 12px; }
.thanks-head p { margin: 0; color: #3a3d40; }
.tick { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: #e6f4ea; color: var(--ok); align-items: center; justify-content: center; margin-bottom: 6px; }
.pay-box { margin-bottom: 12px; }
.bank { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 15px; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
[data-copy] { cursor: pointer; text-decoration: underline dotted #b9b9b9; text-underline-offset: 3px; }
.bank .ref { color: var(--brand); font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.thanks-actions { display: grid; gap: 10px; justify-items: center; margin-bottom: 12px; }
.thanks-actions .btn { width: 100%; }

/* ---------- footer ---------- */
.site-foot { background: var(--dark); color: #cfd0d1; margin-top: 18px; padding: 28px var(--gutter-r) 18px var(--gutter); font-size: 14px; }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.foot-brand { grid-column: 1 / -1; }
.site-foot .logo img { filter: brightness(0) invert(1); }
.site-foot .wordmark { color: #fff; }
.site-foot h3 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.site-foot a { display: block; color: #cfd0d1; text-decoration: none; padding: 3px 0; }
.site-foot a:hover { color: #fff; }
.site-foot p { margin: 0 0 4px; }
.pay-note { margin-top: 8px !important; color: #fff; font-weight: 600; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px !important; }
.socials a { display: inline; }
.copy { max-width: 1240px; margin: 22px auto 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #9a9c9e; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: #1d1d1d; color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; display: flex; gap: 14px; align-items: center; box-shadow: 0 8px 26px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.toast a { color: #fff; font-weight: 700; white-space: nowrap; }
body.product-page .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* ---------- larger screens ---------- */
@media (min-width: 760px) {
  body, body.product-page { padding-bottom: 0; }
  .tabbar, .buy-bar { display: none !important; }
  .toast, body.product-page .toast { bottom: 24px; }
  .head-in { grid-template-columns: auto minmax(0, 640px) auto; grid-template-areas: "logo search cart"; justify-content: space-between; padding-block: 14px; gap: 28px; }
  .cart-word { display: inline; }
  .cat-bar { display: block; }
  .hero { margin-top: 14px; padding: 0 var(--gutter-r) 0 var(--gutter); }
  .hero-track { border-radius: 10px; }
  .b-design, .b-img img { aspect-ratio: 3 / 1; padding: 3% 5%; }
  .b-box { max-width: 52%; padding: 2.2% 3.4% 0; }
  .b-design.has-img .b-box { max-width: 48%; }
  .b-eyebrow { font-size: clamp(22px, 2.6vw, 38px); }
  .b-big { font-size: clamp(60px, 7.4vw, 112px); }
  .b-label { font-size: clamp(16px, 1.9vw, 26px); margin: 0 -6.3%; padding: 2% 6.3% 3%; }
  .b-rings i:nth-child(1) { width: 34%; top: -55%; right: -6%; }
  .b-rings i:nth-child(2) { width: 20%; bottom: -45%; left: 32%; }
  .b-rings i:nth-child(3) { width: 8%; bottom: 14%; right: 30%; }
  .b-product { width: 36%; right: 8%; height: 90%; }
  .mid-banner { padding: 0 var(--gutter-r) 0 var(--gutter); }
  .mid-banner .banner { border-radius: 10px; overflow: hidden; }
  .mid-banner .b-design, .mid-banner .b-img img { aspect-ratio: 5 / 1; }
  .mid-banner .b-big { font-size: clamp(44px, 5vw, 80px); }
  .mid-banner .b-eyebrow { font-size: clamp(17px, 2vw, 28px); }
  .mid-banner .b-label { font-size: clamp(14px, 1.5vw, 20px); }
  .cat-circles { max-width: 1240px; margin: 14px auto 12px; border-radius: 10px; }
  .circle { flex-basis: 104px; }
  .circle-img { width: 84px; height: 84px; }
  .row-sec { border-radius: 10px; margin-bottom: 12px; }
  .row-scroll .card { flex-basis: 196px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .page-title { font-size: 28px; }
  .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .pd-gallery { margin: 0; position: sticky; top: 140px; }
  .gal-dots { display: none; }
  .gal-thumbs { display: flex; gap: 8px; padding: 0 16px 16px; overflow-x: auto; }
  .gal-thumbs button { width: 64px; height: 64px; flex: none; border: 1px solid #e3e3e3; border-radius: 6px; padding: 4px; background: #fff; cursor: pointer; }
  .gal-thumbs button.on { border: 2px solid var(--brand); }
  .gal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
  .pd-info { padding: 24px; }
  .pd-name { font-size: 26px; }
  .pd-price .now { font-size: 36px; }
  .cart-wrap, .checkout { grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
  .summary { position: sticky; top: 140px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row-scroll .card { flex-basis: 212px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-track, .gal-track { scroll-behavior: auto; }
  .card, .hero-dots button { transition: none; }
}

/* shown only to the logged-in owner */
.owner-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--dark); color: #fff; font-size: 13px; padding: calc(6px + env(safe-area-inset-top, 0px)) var(--gutter-r) 6px var(--gutter); }
.owner-bar a { color: #fff; background: var(--brand); border-radius: 6px; padding: 4px 12px; font-weight: 700; text-decoration: none; }
.owner-bar + .skip + .site-head { padding-top: 0; }
