/* Snovix Shop - storefront. The store's colour is --brand (set at start from the store settings). */
:root {
  --brand: #1d4d3c; --brand-ink: #fff;
  --tint: color-mix(in srgb, var(--brand) 9%, #fff); --tint2: color-mix(in srgb, var(--brand) 18%, #fff);
  --ink: #18201c; --muted: #5d6863; --line: #e2e6e3; --bg: #f7f7f4; --card: #fff; --sale: #b5420f; --ok: #13795b; --bad: #b42318; --warn: #a15c07;
  --r: 12px; --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px; --shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 6px 20px -8px rgba(16, 24, 20, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; font-family: var(--body); letter-spacing: 0; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, #fff); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.boot-load { height: 100vh; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.announce { background: var(--brand); color: var(--brand-ink); text-align: center; font-size: .85rem; padding: 7px 16px; }
.hdr { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hdr .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem/1 var(--display); color: var(--ink); min-width: 0; }
.logo img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { flex: 1; display: flex; max-width: 560px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 18px; min-width: 0; outline: none; }
.search button { border: 0; background: transparent; padding: 0 16px; cursor: pointer; color: var(--muted); }
.search:focus-within { border-color: var(--brand); background: #fff; }
.icons { display: flex; gap: 4px; margin-left: auto; }
.ic { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.ic:hover { background: var(--bg); }
.ic svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 1px; left: 24px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: .72rem; display: grid; place-items: center; padding: 0 5px; }
.burger { display: none; }
.catnav { background: #fff; border-bottom: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav a { padding: 11px 14px; white-space: nowrap; text-decoration: none; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.catnav a:hover, .catnav a.on { color: var(--ink); border-bottom-color: var(--brand); }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #c5ccc8; }
.btn.pri { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.pri:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.btn.ghost { background: var(--tint); border-color: transparent; color: var(--brand); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--brand); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 600; color: var(--ink); }
label.f > span.h { font-weight: 400; color: var(--muted); font-size: .8rem; }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #cfd5d2; border-radius: 9px; background: #fff; font-weight: 400; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid var(--tint2); outline-offset: 0; }
textarea { min-height: 90px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.full { grid-column: 1 / -1; }
.err { color: var(--bad); font-size: .88rem; min-height: 1.2em; margin: 6px 0 0; }
.ok-msg { color: var(--ok); font-size: .88rem; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }

/* hero and home */
.hero { background: var(--tint); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 14px; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.hero .art { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint2); }
.hero .art img { width: 100%; height: 100%; object-fit: cover; }
.hero .collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero .collage a { border-radius: 14px; overflow: hidden; background: #fff; aspect-ratio: 1; display: block; }
.hero .collage img { width: 100%; height: 100%; object-fit: cover; }
.section { padding: 40px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head a { font-weight: 600; color: var(--brand); text-decoration: none; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cats a { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; text-decoration: none; font-weight: 600; display: flex; flex-direction: column; gap: 4px; min-height: 92px; justify-content: flex-end; }
.cats a small { color: var(--muted); font-weight: 400; }
.cats a:hover { border-color: var(--brand); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-size: .92rem; }
.trust b { display: block; margin-bottom: 2px; }

/* product grid */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.pcard .img { aspect-ratio: 1; background: #f1f2ef; display: block; overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .img img { transform: scale(1.03); }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .brand { font-size: .78rem; color: var(--muted); }
.pcard .name { font-weight: 600; text-decoration: none; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard .add { margin-top: 10px; }
.tag { position: absolute; top: 10px; left: 10px; background: #fff; border-radius: 6px; padding: 3px 8px; font-size: .74rem; font-weight: 700; box-shadow: var(--shadow); }
.tag.sale { color: var(--sale); }
.tag.out { color: var(--muted); }
.price-now { font: 700 1.1rem/1.2 var(--body); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.price-off { color: var(--sale); font-weight: 700; font-size: .85rem; }
.veg { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ok); border-radius: 2px; position: relative; vertical-align: -2px; }
.veg::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--ok); }
.veg.nonveg { border-color: #8f1d1d; } .veg.nonveg::after { background: #8f1d1d; }
.veg.egg { border-color: #c27c0e; } .veg.egg::after { background: #c27c0e; }

/* listing */
.listing { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 28px 0 48px; }
.filters { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.filters h3 { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.filters a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); }
.filters a.on { color: var(--brand); font-weight: 700; }
.filters a.sub { padding-left: 14px; font-size: .92rem; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.bar select { width: auto; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.crumbs { font-size: .86rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); }

/* product page */
.pp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 20px 0 40px; }
.gallery .main { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #f1f2ef; border: 1px solid var(--line); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { width: 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #f1f2ef; flex: none; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pinfo .brandline { color: var(--muted); font-size: .92rem; margin-bottom: 4px; }
.pricebox { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 2px; }
.pricebox .price-now { font-size: 1.9rem; font-family: var(--display); }
.opt { margin: 18px 0 0; }
.opt .lbl { font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.opt .lbl span { font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 46px; padding: 9px 14px; border-radius: 9px; border: 1px solid #cfd5d2; background: #fff; cursor: pointer; font-weight: 600; }
.chip.on { border-color: var(--brand); background: var(--tint); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.chip.na { color: #a5aca8; text-decoration: line-through; }
.qty { display: inline-flex; border: 1px solid #cfd5d2; border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 42px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 64px !important; border: 0 !important; text-align: center; padding: 10px 4px !important; border-radius: 0 !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: stretch; }
.buy .btn { flex: 1; min-width: 150px; }
.stockline { margin-top: 10px; font-size: .9rem; font-weight: 600; }
.stockline.low { color: var(--warn); } .stockline.out { color: var(--bad); } .stockline.ok { color: var(--ok); }
.tiers { margin-top: 18px; border: 1px dashed var(--brand); border-radius: 10px; padding: 12px 14px; background: var(--tint); font-size: .92rem; }
.tiers table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.tiers td { padding: 3px 0; }
.tiers td:last-child { text-align: right; font-weight: 700; }
.pin { margin-top: 18px; display: flex; gap: 8px; }
.pin input { max-width: 180px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.facts span::before { content: '✓ '; color: var(--ok); font-weight: 700; }
.tabs { margin-top: 10px; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 500; background: #fafbf9; }
.desc { white-space: pre-line; }
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding-bottom: 40px; }

/* cart and checkout */
.cartpage { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 24px 0 56px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: #f1f2ef; }
.line .nm { font-weight: 600; text-decoration: none; }
.line .r { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.sum { position: sticky; top: 90px; }
.sum .row { display: flex; justify-content: space-between; padding: 6px 0; gap: 12px; }
.sum .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.15rem; }
.sum .save { color: var(--ok); font-weight: 600; font-size: .9rem; text-align: right; }
.notice { background: #fff8eb; border: 1px solid #f2d39b; color: #7a4b0c; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 14px; }
.notice.info { background: var(--tint); border-color: var(--tint2); color: var(--ink); }
.coupon { display: flex; gap: 8px; margin-top: 10px; }
.paym { display: flex; flex-direction: column; gap: 10px; }
.paym label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #cfd5d2; border-radius: 10px; padding: 14px; cursor: pointer; }
.paym label:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.paym input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.paym small { display: block; color: var(--muted); font-weight: 400; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.steps { counter-reset: s; }
.steps > .panel > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.steps > .panel > h2::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font: 700 .9rem var(--body); flex: none; }
.addr-list { display: grid; gap: 8px; margin-bottom: 14px; }
.addr-list label { border: 1px solid #cfd5d2; border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; cursor: pointer; font-size: .92rem; }
.addr-list label:has(input:checked) { border-color: var(--brand); background: var(--tint); }

/* order page */
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--tint); color: var(--brand); }
.status-pill.bad { background: #fde8e7; color: var(--bad); } .status-pill.warn { background: #fff4e0; color: var(--warn); }
.track { display: flex; margin: 22px 0 6px; }
.track div { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); position: relative; padding-top: 26px; }
.track div::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: #d4d9d6; z-index: 1; }
.track div::after { content: ''; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: #d4d9d6; }
.track div:first-child::after { display: none; }
.track div.done { color: var(--ink); font-weight: 600; }
.track div.done::before, .track div.done::after { background: var(--brand); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.pay-box { border: 2px solid var(--brand); border-radius: var(--r); padding: 18px; background: var(--tint); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: #fff; padding: 2px 6px; border-radius: 5px; }
.copy { white-space: pre-line; }

/* account / auth */
.auth { max-width: 440px; margin: 40px auto 60px; }
.seg { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
table.list { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.list th { color: var(--muted); font-weight: 600; font-size: .82rem; }
.r { text-align: right !important; }

/* text pages */
.page-text { max-width: 760px; padding: 32px 0 60px; }
.page-text .copy { line-height: 1.75; }

/* footer */
.ftr { background: #141a17; color: #c9d1cd; margin-top: 40px; }
.ftr .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.ftr h3 { color: #fff; font-size: .95rem; }
.ftr a { color: #c9d1cd; text-decoration: none; display: block; padding: 3px 0; }
.ftr a:hover { color: #fff; }
.ftr .base { grid-column: 1 / -1; border-top: 1px solid #2a332e; padding-top: 18px; font-size: .82rem; color: #8a958f; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wa { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #1f9d55; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 40; }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* modal, toast, drawer */
.modal { position: fixed; inset: 0; background: rgba(15, 20, 18, .5); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal .box { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; padding: 24px; }
.modal .mh { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal .mh h2 { margin: 0; }
.x { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); visibility: hidden; background: #18201c; color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 80; transition: transform .25s; max-width: calc(100vw - 32px); font-weight: 500; }
#toast.on { transform: translate(-50%, 0); visibility: visible; }
#toast.bad { background: var(--bad); }
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(15, 20, 18, .5); display: none; }
.drawer.on { display: block; }
.drawer nav { background: #fff; width: min(320px, 86vw); height: 100%; overflow: auto; padding: 18px; }
.drawer nav a { display: block; padding: 11px 6px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

@media (max-width: 960px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; overflow-x: auto; gap: 10px; }
  .filters > div:first-child { display: none; }
  .pp, .detail-grid, .cartpage, .hero .wrap { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 28px; padding-bottom: 28px; gap: 22px; }
  .sum { position: static; }
  .trust { grid-template-columns: 1fr 1fr; }
  .ftr .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hdr .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .burger { display: inline-flex; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .ic .t { display: none; }
  .catnav { display: none; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard .body { padding: 10px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .line { grid-template-columns: 64px 1fr; }
  .line img { width: 64px; height: 64px; }
  .line .r { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .ftr .wrap { grid-template-columns: 1fr; }
  .track div { font-size: .68rem; }
  .wrap { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .hdr, .catnav, .announce, .ftr, .wa, .no-print { display: none !important; } body { background: #fff; } }
.badge[hidden] { display: none; }

/* marketplace */
.mk-bar { background: #10162a; color: #d7dcea; font-size: .85rem; }
.mk-bar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.mk-bar a { color: #fff; font-weight: 600; text-decoration: none; }
.pcard .seller { font-size: .78rem; color: var(--muted); text-decoration: none; }
.pcard .seller:hover { color: var(--brand); }
.tag.sp { color: #6b4e00; background: #fff4d6; }
.tag.sale2 { color: #fff; background: var(--sale); }
.banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.banners a { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; min-height: 120px; }
.banners a img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.banners small { color: var(--muted); display: block; margin-top: 4px; }
.camp { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--sale); color: #fff; border-radius: var(--r); padding: 18px 22px; text-decoration: none; margin-bottom: 12px; }
.camp b { font: 700 1.3rem/1.2 var(--display); }
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.stores a { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; display: flex; gap: 12px; align-items: center; }
.stores a:hover { border-color: var(--brand); }
.stores .lg { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; overflow: hidden; background: var(--brand); }
.stores .lg img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.stores small { color: var(--muted); display: block; }
.typechips { display: flex; flex-wrap: wrap; gap: 8px; }
.typechips a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.typechips a.on, .typechips a:hover { border-color: var(--brand); color: var(--brand); }
.seller-box { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .9rem; background: #fff; }
.seller-box summary { cursor: pointer; font-weight: 600; }
.seller-box p { margin: 8px 0 0; }
/* v1.3 scrolling news line and picture order tracker */
.announce.news { overflow: hidden; padding: 7px 0; text-align: left; }
.news-t { display: inline-flex; white-space: nowrap; animation: newsroll var(--d, 30s) linear infinite; }
.news-t span, .news-t .dup { display: inline-flex; }
.news-t span:not(.dup)::after { content: "•"; margin: 0 22px; opacity: .55; }
.announce.news:hover .news-t { animation-play-state: paused; }
@keyframes newsroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .news-t { animation: none; flex-wrap: wrap; white-space: normal; justify-content: center; } .news-t .dup { display: none; } }
.ptrack { list-style: none; margin: 22px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.ptrack .st { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; color: #8a94a6; }
.ptrack .st::before { content: ""; position: absolute; top: 26px; left: -50%; width: 100%; height: 3px; background: #e2e6ee; z-index: 0; }
.ptrack .st:first-child::before { display: none; }
.ptrack .st.done::before, .ptrack .st.now::before { background: var(--brand); }
.ptrack i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #f1f3f7; border: 2px solid #e2e6ee; position: relative; z-index: 1; font-style: normal; }
.ptrack .st.done i { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ptrack .st.now i { background: #fff; border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); }
.ptrack .st.done, .ptrack .st.now { color: var(--ink, #1b2333); }
.ptrack b { font-size: .86rem; } .ptrack small { font-size: .72rem; color: #8a94a6; }
.ptrack.bad { display: flex; justify-content: center; } .ptrack.bad i { background: #fdecec; border-color: #e3a1a1; color: #b42318; }
@media (max-width: 560px) { .ptrack i { width: 42px; height: 42px; } .ptrack .st::before { top: 20px; } .ptrack b { font-size: .72rem; } .ptrack small { display: none; } }
