/* Public store front (/store): header with search, category menu, banners, product rails, listing, product page, cart, checkout, tracking. */
:root {
  --brand: #0b59be; --brand-d: #083f8a; --brand-dd: #062a5e; --brand-weak: #eaf2fd; --accent: #f97316; --accent-d: #ea580c;
  --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #e5e7eb; --bg: #f3f5f8; --white: #fff;
  --ok: #15803d; --ok-weak: #e8f6ee; --warn: #b45309; --warn-weak: #fff4e5; --bad: #b91c1c; --bad-weak: #fdecec;
  --r: 10px; --shadow: 0 8px 24px rgba(17, 24, 39, .08); --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6rem; }
.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; }
.boot { padding: 4rem; text-align: center; color: var(--muted); }
.ic { flex: none; }
.hp { position: absolute !important; left: -9999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: .6rem 1rem; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: #cbd5e1; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-off { opacity: .5; pointer-events: none; }
.btn--cart { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--cart:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn--buy { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--buy:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn--sm { padding: .38rem .7rem; font-size: .82rem; }
.btn--lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn--block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; }

/* Top strip */
.topbar { background: var(--brand-dd); color: #c9d6ee; font-size: .8rem; }
.topbar .wrap { display: flex; align-items: center; gap: 1.2rem; height: 34px; }
.topbar a:hover { color: #fff; }
.topbar .sp { flex: 1; text-align: center; color: #fff; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }

/* Header */
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header__in { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo img { height: 40px; }
.logo strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--brand-dd); letter-spacing: -.01em; line-height: 1.1; }
.logo small { display: block; color: var(--muted); font-size: .72rem; }
.search { flex: 1; position: relative; display: flex; border: 2px solid var(--brand); border-radius: 10px; background: #fff; max-width: 760px; }
.search select { border: 0; background: var(--bg); padding: 0 .6rem; border-radius: 8px 0 0 8px; max-width: 170px; font-size: .85rem; color: var(--ink-2); outline: 0; border-right: 1px solid var(--line); }
.search input { flex: 1; border: 0; outline: 0; padding: .7rem .9rem; min-width: 0; background: transparent; }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 1.2rem; border-radius: 0 7px 7px 0; display: flex; align-items: center; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.14); overflow: hidden; z-index: 60; }
.suggest a { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border-bottom: 1px solid var(--bg); }
.suggest a:hover, .suggest a.is-on { background: var(--brand-weak); }
.suggest img, .suggest .noimg { width: 40px; height: 40px; object-fit: contain; background: var(--bg); border-radius: 6px; flex: none; }
.suggest .t { flex: 1; min-width: 0; font-size: .88rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .p { font-weight: 700; font-size: .85rem; }
.suggest .all { justify-content: center; color: var(--brand); font-weight: 600; font-size: .85rem; }
.actions { display: flex; align-items: center; gap: .3rem; }
.act { position: relative; display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem; border-radius: 8px; color: var(--ink-2); font-size: .82rem; line-height: 1.15; }
.act:hover { background: var(--bg); }
.act b { display: block; color: var(--ink); font-size: .88rem; }
.count { position: absolute; top: 0; left: 22px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.count[hidden] { display: none; }

/* Category bar */
.catbar { background: var(--brand); color: #fff; }
.catbar .wrap { display: flex; align-items: center; gap: .3rem; height: 46px; }
.allcats { position: relative; }
.allcats > button { display: flex; align-items: center; gap: .5rem; background: var(--brand-d); color: #fff; border: 0; height: 46px; padding: 0 1rem; font-weight: 700; min-width: 230px; }
.allcats .menu { position: absolute; top: 100%; left: 0; width: 290px; background: #fff; color: var(--ink); border-radius: 0 0 10px 10px; box-shadow: 0 20px 40px rgba(0,0,0,.18); padding: .4rem 0; display: none; z-index: 55; max-height: 70vh; overflow-y: auto; }
.allcats.is-open .menu { display: block; }
.menu a { display: flex; align-items: center; gap: .65rem; padding: .55rem 1rem; font-size: .9rem; }
.menu a:hover { background: var(--brand-weak); color: var(--brand); }
.menu a small { margin-left: auto; color: var(--muted); }
.menu .ci { color: var(--brand); }
.catlinks { display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.catlinks::-webkit-scrollbar { display: none; }
.catlinks a { padding: .5rem .65rem; border-radius: 6px; font-size: .88rem; font-weight: 500; white-space: nowrap; color: #e6eefb; }
.catlinks a:hover, .catlinks a.is-on { background: rgba(255,255,255,.14); color: #fff; }
.catbar .hot { margin-left: auto; display: flex; gap: .1rem; }
.catbar .hot a { padding: .5rem .8rem; font-size: .88rem; font-weight: 600; white-space: nowrap; color: #ffd8b5; }

/* Home: hero */
.main { padding: 1.2rem 0 3rem; min-height: 60vh; }
.hero { display: grid; grid-template-columns: 250px 1fr 280px; gap: 1rem; }
.side { background: #fff; border-radius: var(--r); padding: .4rem 0; box-shadow: var(--shadow); }
.side h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem 1rem .3rem; margin: 0; }
.slider { position: relative; border-radius: var(--r); overflow: hidden; min-height: 320px; box-shadow: var(--shadow); background: var(--brand-dd); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 1rem; padding: 2.2rem 2.6rem; color: #fff; opacity: 0; transition: opacity .6s; background: radial-gradient(600px 300px at 85% 30%, rgba(255,255,255,.18), transparent 60%), var(--c, var(--brand)); }
.slide.is-on { opacity: 1; z-index: 1; }
.slide h2 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 800; margin-bottom: .6rem; letter-spacing: -.02em; }
.slide p { color: rgba(255,255,255,.85); margin: 0 0 1.3rem; max-width: 460px; }
.slide .btn { background: #fff; border-color: #fff; color: var(--ink); }
.slide__img { height: 100%; max-height: 260px; display: grid; place-items: center; }
.slide__img img { max-height: 260px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); border-radius: 10px; }
.slide__tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: .25rem .65rem; border-radius: 999px; margin-bottom: .9rem; }
.dots { position: absolute; bottom: 14px; left: 2.6rem; display: flex; gap: .4rem; z-index: 2; }
.dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; background: rgba(255,255,255,.45); padding: 0; transition: width .2s; }
.dots button.is-on { width: 26px; background: #fff; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.slider .arrow { top: auto; bottom: 10px; transform: none; width: 32px; height: 32px; }
.slider .arrow--l { left: auto; right: 52px; } .slider .arrow--r { right: 12px; }
.promos { display: grid; gap: 1rem; }
.promo { border-radius: var(--r); padding: 1.2rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; box-shadow: var(--shadow); }
.promo h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.promo p { margin: 0 0 .8rem; font-size: .85rem; opacity: .9; }
.promo a, .promo button { align-self: flex-start; background: #fff; color: var(--ink); border: 0; border-radius: 6px; padding: .35rem .75rem; font-weight: 700; font-size: .8rem; }
.promo--a { background: linear-gradient(135deg, #f97316, #c2410c); }
.promo--b { background: linear-gradient(135deg, #0f766e, #134e4a); }

/* Badges */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; background: #fff; border-radius: var(--r); padding: 1rem 1.2rem; margin: 1.2rem 0; box-shadow: var(--shadow); }
.badge { display: flex; gap: .75rem; align-items: center; }
.badge .bi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-weak); color: var(--brand); flex: none; }
.badge strong { display: block; font-size: .92rem; }
.badge span { color: var(--muted); font-size: .8rem; }

/* Sections */
.sec { background: #fff; border-radius: var(--r); padding: 1.2rem 1.2rem 1.3rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.sec__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sec__head h2 { font-size: 1.2rem; margin: 0; font-weight: 800; }
.sec__head .bar { width: 4px; height: 22px; border-radius: 4px; background: var(--accent); }
.sec__head .sp { flex: 1; }
.sec__head a { color: var(--brand); font-weight: 600; font-size: .88rem; }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 1rem) / 5); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .2rem; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wrap .arrow { top: 40%; transform: translateY(-50%); }
.rail-wrap .arrow--l { left: -14px; } .rail-wrap .arrow--r { right: -14px; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.cat { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; padding: 1.1rem .6rem; border: 1px solid var(--line); border-radius: var(--r); transition: .15s; }
.cat:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat .ci { width: 58px; height: 58px; border-radius: 50%; background: var(--brand-weak); color: var(--brand); display: grid; place-items: center; }
.cat strong { font-size: .88rem; line-height: 1.25; }
.cat span { color: var(--muted); font-size: .75rem; }

/* Product card */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: #cfd8e3; box-shadow: 0 12px 28px rgba(17,24,39,.1); }
.card__img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: .9rem; border-bottom: 1px solid var(--bg); }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.card:hover .card__img img { transform: scale(1.05); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #cbd5e1; background: var(--bg); border-radius: 8px; }
.off { position: absolute; top: 10px; left: 10px; background: var(--ok); color: #fff; font-size: .72rem; font-weight: 800; padding: .2rem .45rem; border-radius: 5px; z-index: 1; }
.feat { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; padding: .2rem .45rem; border-radius: 5px; z-index: 1; text-transform: uppercase; letter-spacing: .04em; }
.off + .feat { top: 34px; }
.heart { position: absolute; top: 8px; right: 8px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #9ca3af; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.heart:hover, .heart.is-on { color: #e11d48; }
.heart.is-on svg { fill: currentColor; }
.card__body { padding: .75rem .85rem .4rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.card__cat { font-size: .7rem; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card__title { font-size: .9rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.43em; }
.card__title:hover { color: var(--brand); }
.card__sku { font-size: .72rem; color: var(--muted); font-family: var(--mono); }
.price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.price b { font-size: 1.08rem; font-weight: 800; }
.price s { color: var(--muted); font-size: .8rem; }
.price small { width: 100%; color: var(--muted); font-size: .7rem; }
.avail { font-size: .75rem; font-weight: 600; display: flex; align-items: center; gap: .3rem; }
.avail::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avail.in { color: var(--ok); } .avail.low { color: var(--warn); } .avail.out { color: var(--bad); } .avail.order { color: var(--brand); }
.card__foot { padding: .5rem .85rem .85rem; }

/* Listing */
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .9rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 1.2rem; align-items: start; }
.filters { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 1rem; position: sticky; top: 140px; }
.filters h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 .5rem; }
.filters h4:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .88rem; cursor: pointer; }
.filters label small { margin-left: auto; color: var(--muted); }
.filters .range { display: flex; gap: .4rem; align-items: center; }
.filters .range input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: .4rem .5rem; font-size: .85rem; }
.toolbar { display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: .7rem 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar h1 { font-size: 1.15rem; margin: 0; }
.toolbar .sp { flex: 1; }
.toolbar select { border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem; background: #fff; }
.view button { border: 1px solid var(--line); background: #fff; padding: .35rem .5rem; border-radius: 6px; color: var(--muted); }
.view button.is-on { color: var(--brand); border-color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.grid--list { grid-template-columns: 1fr; }
.grid--list .card { flex-direction: row; }
.grid--list .card__img { width: 180px; flex: none; border-bottom: 0; border-right: 1px solid var(--bg); }
.grid--list .card__foot { align-self: center; width: 180px; }
.filters-btn { display: none; }
.empty { background: #fff; border-radius: var(--r); padding: 3rem 1rem; text-align: center; box-shadow: var(--shadow); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: #fff; border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow); }
.gallery { display: grid; grid-template-columns: 74px 1fr; gap: .8rem; align-items: start; }
.thumbs { display: grid; gap: .5rem; }
.thumbs button { border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; aspect-ratio: 1; }
.thumbs button.is-on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.zoom { border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; background: #fff; cursor: zoom-in; position: relative; }
.zoom img { width: 100%; height: 100%; object-fit: contain; transition: transform .15s; }
.zoom.is-z img { transform: scale(2); }
.pdp h1 { font-size: 1.45rem; font-weight: 700; }
.meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.pbox { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1rem; background: linear-gradient(180deg, #fbfcfe, #fff); }
.pbox .now { font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; }
.pbox .was { color: var(--muted); margin-left: .5rem; }
.pbox .save { color: var(--ok); font-weight: 700; margin-left: .5rem; }
.pbox .gst { font-size: .82rem; color: var(--muted); }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { border: 0; background: var(--bg); width: 38px; font-size: 1.1rem; }
.qty input { width: 64px; border: 0; text-align: center; font-weight: 700; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0 .5rem; }
.perks { display: grid; gap: .55rem; border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: 1rem; font-size: .86rem; color: var(--ink-2); }
.perks div { display: flex; gap: .55rem; align-items: center; }
.perks .ic { color: var(--brand); }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs button { border: 0; background: none; padding: .7rem 1rem; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tabs button.is-on { color: var(--brand); border-color: var(--brand); }
.specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs th, .specs td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 35%; background: var(--bg); font-weight: 600; color: var(--ink-2); }
.md { font-size: .95rem; color: var(--ink-2); } .md h1, .md h2, .md h3 { color: var(--ink); } .md code { font-family: var(--mono); background: var(--bg); padding: .1rem .3rem; border-radius: 4px; } .md pre { background: var(--bg); padding: .8rem; border-radius: 8px; overflow: auto; } .md ul { padding-left: 1.2rem; }

/* Notes and forms */
.note { border-radius: 8px; padding: .65rem .85rem; font-size: .88rem; margin: .5rem 0; }
.note--err { background: var(--bad-weak); color: var(--bad); }
.note--ok { background: var(--ok-weak); color: var(--ok); }
.note--info { background: var(--brand-weak); color: var(--brand-dd); }
.note--warn { background: var(--warn-weak); color: #7c4a03; }
.panel { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.form .full { grid-column: 1 / -1; }
.form label, .lbl { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .25rem; }
.form input, .form select, .form textarea, .field input { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: .6rem .7rem; background: #fff; outline: 0; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,89,190,.12); }
.form textarea { min-height: 80px; resize: vertical; }
.field-err { border-color: var(--bad) !important; }
.hint { font-size: .75rem; color: var(--muted); margin-top: .2rem; }

/* Cart / checkout */
.cartgrid { display: grid; grid-template-columns: 1fr 360px; gap: 1.2rem; align-items: start; }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 76px 1fr auto auto 32px; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.line img, .line .noimg { width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.line a:hover { color: var(--brand); }
.line .amt { font-weight: 700; text-align: right; min-width: 90px; }
.line .rm { border: 0; background: none; color: var(--muted); font-size: 1.1rem; }
.totals { display: grid; gap: .45rem; font-size: .92rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { border-top: 1px solid var(--line); padding-top: .6rem; font-size: 1.1rem; font-weight: 800; }
.sticky { position: sticky; top: 140px; }
.ship-meter { margin: .6rem 0 1rem; font-size: .82rem; color: var(--ink-2); }
.ship-meter i { display: block; height: 6px; border-radius: 6px; background: var(--bg); margin-top: .35rem; overflow: hidden; }
.ship-meter i::after { content: ''; display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--accent), #fb923c); border-radius: 6px; }
.steps { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.steps span { padding: .3rem .75rem; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .82rem; font-weight: 600; }
.steps span.is-on { background: var(--ok-weak); color: var(--ok); }
.stage { padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .82rem; background: var(--brand-weak); color: var(--brand); }
.stage--ok { background: var(--ok-weak); color: var(--ok); } .stage--bad { background: var(--bad-weak); color: var(--bad); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.timeline li { position: relative; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; left: -1.38rem; top: .4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline time { display: block; color: var(--muted); font-size: .78rem; }
.otable { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .8rem 0; }
.otable th, .otable td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.otable .num { text-align: right; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer__bg { position: absolute; inset: 0; background: rgba(17,24,39,.45); opacity: 0; transition: opacity .2s; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(400px, 92vw); background: #fff; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; flex: 1; }
.drawer__head button { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 1.2rem; }
.drawer__body .line { grid-template-columns: 56px 1fr auto; gap: .7rem; }
.drawer__body .line img, .drawer__body .line .noimg { width: 56px; height: 56px; }
.drawer__foot { padding: 1rem 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.added { display: flex; align-items: center; gap: .5rem; color: var(--ok); font-weight: 600; padding: .8rem 0 0; }

/* Footer */
.bulk { background: linear-gradient(110deg, var(--brand-dd), var(--brand)); color: #fff; border-radius: var(--r); padding: 1.6rem 1.8rem; display: flex; align-items: center; gap: 1.5rem; margin: 1.2rem 0; flex-wrap: wrap; }
.bulk h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.bulk p { margin: 0; opacity: .85; }
.bulk .sp { flex: 1; }
.bulk .btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.brands { display: flex; flex-wrap: wrap; gap: .7rem; }
.brands span { border: 1px solid var(--line); border-radius: 8px; padding: .6rem 1rem; font-weight: 700; color: var(--ink-2); background: #fff; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.service { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.service h3 { font-size: 1rem; margin: 0; }
.service p { margin: 0; color: var(--muted); font-size: .88rem; flex: 1; }
.footer { background: #0b1324; color: #a7b0c2; font-size: .88rem; margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding: 2.8rem 0 2rem; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.footer a { display: block; padding: .2rem 0; }
.footer a:hover { color: #fff; }
.footer__base { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; font-size: .8rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.footer .big { color: #fff; font-size: 1.15rem; font-weight: 700; }
.mobnav { display: none; }

/* Responsive */
@media (max-width: 1600px) { .catbar .hot { display: none; } }
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero .side, .hero .promos { display: none; }
  .rail { grid-auto-columns: calc((100% - 3 * 1rem) / 4); }
  .catbar .hot { display: none; }
}
@media (max-width: 900px) {
  .header__in { flex-wrap: wrap; height: auto; padding: .6rem 0; gap: .6rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search select { display: none; }
  .actions { margin-left: auto; }
  .act span.lbl2 { display: none; }
  .allcats > button { min-width: 0; }
  .allcats > button span { display: none; }
  .rail { grid-auto-columns: calc((100% - 2 * 1rem) / 3); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 30% 0 0; z-index: 90; overflow-y: auto; border-radius: 0; transform: translateX(-105%); transition: transform .25s; top: 0; }
  .filters.is-open { transform: none; box-shadow: 20px 0 40px rgba(0,0,0,.25); }
  .filters-btn { display: inline-flex; }
  .pdp, .cartgrid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .slide { grid-template-columns: 1fr; padding: 1.6rem; }
  .slide__img { display: none; }
  .dots { left: 1.6rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 62px; font-size: 14.5px; }
  .wrap { width: calc(100% - 24px); }
  .rail { grid-auto-columns: 46%; }
  .grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .grid--list { grid-template-columns: 1fr; }
  .grid--list .card { flex-direction: column; }
  .grid--list .card__img, .grid--list .card__foot { width: auto; border-right: 0; }
  .card__body { padding: .6rem .65rem .3rem; }
  .card__foot { padding: .4rem .65rem .7rem; }
  .card__foot .btn { padding: .45rem .5rem; font-size: .8rem; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .cat .ci { width: 46px; height: 46px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(5, 1fr); order: 2; }
  .form { grid-template-columns: 1fr; }
  .line { grid-template-columns: 60px 1fr auto; }
  .line img, .line .noimg { width: 60px; height: 60px; }
  .line .qty { grid-column: 2; }
  .line .amt { grid-column: 3; grid-row: 1; }
  .line .rm { grid-column: 3; grid-row: 2; justify-self: end; }
  .topbar .sp { text-align: left; }
  .footer__grid { grid-template-columns: 1fr; }
  .sec { padding: 1rem .8rem; }
  .rail-wrap .arrow { display: none; }
  .mobnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 70; height: 60px; }
  .mobnav a, .mobnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; font-size: .68rem; color: var(--ink-2); border: 0; background: none; position: relative; }
  .mobnav .count { left: auto; right: 18%; top: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
