/* PackNest — storefront + admin styles. No framework. */

@font-face { font-family: "Anek Bangla"; src: url(fonts/anek.woff2) format("woff2"); font-weight: 500 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url(fonts/hind-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url(fonts/hind-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url(fonts/hind-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --ink: #1B2340;
  --ink-2: #2A3358;
  --ink-soft: #3A4466;
  --paper: #F3F4F0;
  --white: #fff;
  --kraft: #B98A5B;
  --kraft-tint: #EAE2D5;
  --tape: #F2C230;
  --tape-soft: #FBEFC4;
  --line: #D9DAD3;
  --line-2: #C6C8BF;
  --muted: #5B6174;
  --ok: #1F7A4D;
  --ok-bg: #E3F2EA;
  --err: #B42318;
  --err-bg: #FCE9E7;

  --display: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
  --body: "Hind Siliguri", "Anek Bangla", system-ui, sans-serif;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 32px);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 400 16.5px/1.65 var(--body);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-size: .9em; background: var(--kraft-tint); padding: 1px 5px; border-radius: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 680px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r); z-index: 99; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--display); font-stretch: 85%; letter-spacing: .02em; font-weight: 600; }
.i { width: 20px; height: 20px; flex: none; }

/* ---------- type ---------- */
.h1, .h2, .h3, .hero__h, .pdp__h { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.005em; }
.h1 { font-size: clamp(30px, 4vw, 44px); font-stretch: 80%; margin-bottom: 10px; }
.h2 { font-size: clamp(25px, 3vw, 34px); font-stretch: 80%; }
.h3 { font-size: 20px; font-stretch: 90%; font-weight: 650; margin-bottom: 12px; }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; margin-bottom: 24px; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--kraft); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--ink); }
.prose p { max-width: 68ch; margin-bottom: 14px; }
.prose .h3 { margin-top: 28px; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  border: 2px solid var(--ink); border-radius: var(--r);
  font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer;
  background: transparent; transition: background .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--tape { background: var(--tape); border-color: var(--tape); color: var(--ink); }
.btn--tape:hover { background: #F6D35E; }
.btn--line:hover { background: var(--white); }
.btn--danger { border-color: var(--err); color: var(--err); }
.btn--danger:hover { background: var(--err-bg); }
.btn--lg { min-height: 54px; font-size: 17px; padding-inline: 26px; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .lbl { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--r);
  transition: border-color .15s;
}
textarea { min-height: 0; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,35,64,.15); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field__err { color: var(--err); font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 12px 0; cursor: pointer; }
.check input, .radio input { accent-color: var(--ink); width: 18px; height: 18px; }

.alert { padding: 14px 16px; border-radius: var(--r); background: var(--tape-soft); margin-block: 16px; border-left: 4px solid var(--tape); }
.alert--err { background: var(--err-bg); border-left-color: var(--err); }
.alert--ok { background: var(--ok-bg); border-left-color: var(--ok); }
.alert p + p { margin-top: 4px; }

/* ---------- header ---------- */
.strip { background: var(--ink); color: #DCE0EC; font-size: 14px; }
.strip__in { display: flex; gap: 28px; align-items: center; min-height: 36px; }
.strip__short { display: none; }
@media (max-width: 620px) { .strip__short { display: inline; } }
.strip__in > * { display: inline-flex; align-items: center; gap: 6px; }
.strip__in .i { width: 16px; height: 16px; color: var(--tape); }
.strip__in a { margin-left: auto; color: #fff; }

.hd { position: sticky; top: 0; z-index: 30; background: rgba(243,244,240,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 24px; letter-spacing: -.01em; }
.logo__mark { width: 30px; height: 30px; color: var(--ink); }
.logo small { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 22px; }
.nav a { font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--tape); }
.search { position: relative; flex: 1; max-width: 340px; margin-left: auto; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; }
.search input[type=search] { min-height: 42px; padding-left: 40px; background: var(--white); border-color: var(--line); }
.cartbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); }
.cartbtn:hover { background: var(--white); }
.cartbtn .i { width: 24px; height: 24px; }
.cartbtn__n {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--tape); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1;
}
.cartbtn__n.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.menubtn { display: none; width: 44px; height: 44px; border: 0; background: none; place-items: center; cursor: pointer; }

/* ---------- hero: size finder ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__h { font-size: clamp(40px, 6.4vw, 76px); font-stretch: 75%; font-weight: 800; line-height: 1.02; margin-bottom: 20px; }
.hero__lede { font-size: 18px; color: var(--muted); max-width: 54ch; margin-bottom: 28px; }

.fit { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 16px; }
.fit__dims { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: end; }
.fit__dims legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.fit__dims label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.fit__dims input {
  font-family: var(--display); font-stretch: 80%; font-size: 30px; font-weight: 700; min-height: 60px; color: var(--ink);
  padding: 6px 12px; text-align: center; font-variant-numeric: tabular-nums;
}
.fit__x { font-family: var(--display); font-size: 26px; color: var(--kraft); padding-bottom: 12px; }
.fit__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line-2); background: var(--paper); padding: 5px 12px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--ink); background: var(--white); }
.fit__results { display: grid; gap: 0; min-height: 52px; }
.fitrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px dashed var(--line-2); }
.fitrow:first-child { border-top: 0; }
.fitrow b { font-weight: 600; }
.fitrow small { color: var(--muted); grid-column: 1; }
.fitrow span { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--display); font-weight: 700; font-size: 19px; }
.fitrow:hover b { text-decoration: underline; text-decoration-color: var(--kraft); text-underline-offset: 3px; }
.fit__none { color: var(--muted); font-size: 15px; padding-top: 6px; }

.hero__viz { position: relative; }
.hero__viz svg { width: 100%; overflow: visible; }
.hero__viz figcaption { text-align: center; font-family: var(--display); font-stretch: 85%; font-size: 15px; color: var(--muted); margin-top: -6px; }
.iso-face { transition: d .35s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .iso-face { transition: none; } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(48px, 7vw, 88px); }
.sec + .sec { padding-top: 0; }
.sec--ink + .sec, .sec + .sec--ink { padding-top: clamp(48px, 7vw, 88px); }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }

/* category index: one bordered grid, cells share borders */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.cats li { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.cat { position: relative; display: grid; align-content: start; gap: 6px; padding: 20px 20px 0; height: 100%; min-height: 250px; overflow: hidden; background: var(--paper); transition: background .2s; }
.cat:hover { background: var(--white); }
.cat__n { font-size: 13px; color: var(--muted); }
.cat__name { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: 24px; line-height: 1.15; }
.cat__blurb { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 30ch; }
.cat__art { width: 62%; margin: auto -8% -8% auto; align-self: end; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cat:hover .cat__art { transform: translateY(-6px) rotate(-2deg); }

/* bulk ladder */
.sec--ink { background: var(--ink); color: #fff; }
.ladder { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.ladder__copy p { color: #C9CFDF; margin: 16px 0 28px; max-width: 48ch; font-size: 17px; }
.ladder__label { font-size: 14px; color: #AEB5CA; margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; height: 300px; }
.steps li { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 8px; }
.steps__price small { display: block; font-family: var(--body); font-size: 13px; font-weight: 500; color: #AEB5CA; margin-top: 2px; }
.steps__price { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); align-self: end; }
.steps__bar { align-self: end; height: var(--h); background: var(--tape); min-height: 0; border-radius: 3px 3px 0 0; position: relative; }
.steps li:last-child .steps__bar { background: var(--tape); }
.steps li:not(:last-child) .steps__bar { background: #5A6487; }
.steps__bar::after { content: ""; position: absolute; inset: 10px 0 auto; height: 2px; background: rgba(27,35,64,.25); }
.steps__qty { font-size: 14px; color: #C9CFDF; border-top: 1px solid #47517A; padding-top: 8px; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.promise > div { padding: 24px 28px 0 0; }
.promise > div + div { padding-left: 28px; border-left: 1px solid var(--line-2); }
.promise h3 { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 21px; margin-bottom: 8px; }
.promise p { color: var(--muted); font-size: 15.5px; }

.custom-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--tape); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.custom-cta p { max-width: 60ch; margin-top: 8px; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: grid; align-content: start; min-width: 0; }
.card__link { display: grid; gap: 2px; }
.card__art { position: relative; background: var(--kraft-tint); border-radius: var(--r); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 6%; margin-bottom: 14px; transition: background .2s; }
.card__link:hover .card__art { background: #E3D8C6; }
.card__link:hover .card__name { text-decoration: underline; text-decoration-color: var(--kraft); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.card__name { font-size: 17px; font-weight: 600; line-height: 1.35; }
.card__en { font-size: 13px; color: var(--muted); }
.card__price { margin-top: 8px; }
.card__price b { font-family: var(--display); font-stretch: 85%; font-size: 22px; font-weight: 700; }
.card__from, .card__unit { font-size: 14px; color: var(--muted); }
.card__meta { font-size: 13px; color: var(--muted); }
.tag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: var(--r-sm); }
.tag--muted { background: var(--muted); }

/* ---------- shop ---------- */
.pagehead { padding-block: 40px 24px; }
.pagehead__sub { color: var(--muted); max-width: 60ch; }
.shop__main { min-width: 0; }
.shop { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; padding-bottom: 80px; }
.filters ul { position: sticky; top: 92px; display: grid; border-top: 1.5px solid var(--ink); }
.filters a { display: flex; justify-content: space-between; gap: 8px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.filters a span { color: var(--muted); font-size: 13px; }
.filters a:hover { color: var(--ink-soft); }
.filters a[aria-current] { font-weight: 700; box-shadow: inset 3px 0 0 var(--tape); padding-left: 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort select { min-height: 40px; width: auto; padding-block: 6px; }
.fitlist { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 36px; }
.empty { padding: 48px 0; display: grid; gap: 18px; justify-items: start; max-width: 60ch; }

.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 12px; }
.tbl th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.is-muted td { opacity: .55; }
.tbl--form td { padding: 6px; }
.tbl--form input { min-height: 40px !important; padding: 6px 10px !important; }

/* ---------- product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding-block: 22px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 56px; }
.pdp__art { position: sticky; top: 96px; background: var(--kraft-tint); border-radius: var(--r-lg); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 8%; }
.pdp__h { font-size: clamp(32px, 4vw, 48px); font-stretch: 78%; font-weight: 800; }
.pdp__en { color: var(--muted); margin: 4px 0 14px; }
.pdp__short { font-size: 17.5px; max-width: 52ch; margin-bottom: 26px; }
.buy { display: grid; gap: 22px; }
.variants { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.variants legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.variant { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s; }
.variant:hover { border-color: var(--muted); }
.variant input { position: absolute; opacity: 0; }
.variant::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); transition: border .15s; }
.variant:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.variant:has(input:checked)::before { border: 6px solid var(--ink); }
.variant:has(input:focus-visible) { box-shadow: var(--focus); }
.variant__label { flex: 1; font-weight: 500; }
.variant__price { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }

.qtyrow { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.qtyrow .lbl { display: block; margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; min-height: 1em; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--white); overflow: hidden; }
.stepper button { width: 46px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.stepper button:hover { background: var(--paper); }
.stepper input { width: 96px !important; min-height: 48px; border: 0 !important; border-radius: 0 !important; text-align: center; font-weight: 600; font-size: 18px; -moz-appearance: textfield; box-shadow: none !important; padding: 0 !important; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.stepper--sm input { width: 72px !important; min-height: 40px; font-size: 16px; }
.stepper--sm button { width: 38px; }
.price { display: grid; justify-items: end; text-align: right; }
.price__unit { font-size: 14px; color: var(--muted); }
.price__total { font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 40px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price__save { font-size: 14px; color: var(--ok); font-weight: 600; min-height: 1.4em; }

.tiers { width: 100%; border-collapse: collapse; font-size: 15px; }
.tiers caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.tiers th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-bottom: 1.5px solid var(--ink); }
.tiers td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tiers .num { text-align: right; }
.tiers tr.is-on td { background: var(--tape-soft); font-weight: 700; }
.tiers tr.is-on td:first-child { box-shadow: inset 3px 0 0 var(--tape); }
.buy__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pdp__info { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-block: 48px 24px; border-top: 1px solid var(--line); }
.specs { display: grid; grid-template-columns: minmax(120px, auto) 1fr; border-top: 1.5px solid var(--ink); }
.specs dt, .specs dd { padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 15px; padding-right: 16px; }
.specs--tight dt, .specs--tight dd { padding-block: 8px; }

/* ---------- cart & checkout ---------- */
.cartgrid, .checkout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-bottom: 80px; }
.lines { border-top: 1.5px solid var(--ink); }
.line { display: grid; grid-template-columns: 96px 1fr auto 110px 40px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__art { background: var(--kraft-tint); border-radius: var(--r); padding: 6px; }
.line__name { font-weight: 600; }
.line__name:hover { text-decoration: underline; }
.line__unit { font-size: 14px; }
.line__off { color: var(--ok); font-weight: 600; margin-left: 6px; }
.line__total { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.line.is-busy { opacity: .55; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r); cursor: pointer; color: var(--muted); }
.iconbtn:hover { background: var(--white); color: var(--err); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 14px; align-content: start; }
.cartgrid .panel, .checkout__sum { position: sticky; top: 92px; }
.sum { display: grid; border-top: 1px solid var(--line); }
.sum > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sum dt { color: var(--muted); }
.sum__save dd { color: var(--ok); font-weight: 600; }
.sum__total { border-bottom: 0 !important; padding-top: 14px !important; }
.sum__total dt { color: var(--ink); font-weight: 600; }
.sum__total dd { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 30px; line-height: 1; }
.mini { display: grid; }
.mini li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mini small { display: block; color: var(--muted); font-size: 13px; }
.mini b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.block { border: 0; padding: 0; margin: 0 0 32px; }
.block legend { padding: 0; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.radios--stack { grid-template-columns: 1fr; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input { margin-top: 4px; flex: none; }
.radio b { display: block; font-weight: 600; }
.radio small { color: var(--muted); font-size: 14px; }

/* ---------- order page ---------- */
.orderpage { padding-block: 40px 80px; display: grid; gap: 24px; }
.done { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 28px; }
.done p { max-width: 64ch; }
.done--sm { border: 0; padding: 0; }
.done__mark { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--tape); display: grid; place-items: center; }
.done__mark .i { width: 28px; height: 28px; }
.track { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.track li { position: relative; padding-top: 30px; font-size: 14px; color: var(--muted); }
.track li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 3px; background: var(--line); }
.track li::after { content: ""; position: absolute; top: 3px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-2); }
.track li.is-done { color: var(--ink); }
.track li.is-done::before { background: var(--ink); }
.track li.is-done::after { background: var(--ink); border-color: var(--ink); }
.track li.is-now { font-weight: 700; }
.track li.is-now::after { background: var(--tape); }
.ordergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.customgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-block: 48px 80px; align-items: start; }
.narrow.empty, section.narrow { padding-block: 48px 80px; }

/* ---------- footer ---------- */
.ft { background: var(--ink); color: #C9CFDF; padding-top: 56px; margin-top: 24px; font-size: 15px; }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.ft__brand p { max-width: 38ch; margin-top: 12px; }
.ft__pay { font-size: 14px; color: #AEB5CA; }
.logo--ft { color: #fff; }
.ft__h { font-family: var(--display); font-stretch: 90%; font-size: 17px; color: #fff; margin-bottom: 12px; font-weight: 650; }
.ft__list { display: grid; gap: 6px; }
.ft__list a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--tape); text-underline-offset: 3px; }
.ft__base { border-top: 1px solid #36406A; padding-block: 18px; font-size: 13px; color: #9AA2BC; }

.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(27,35,64,.25); }
.wa .i { width: 28px; height: 28px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); display: flex; gap: 14px; align-items: center; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--tape); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.toast--err { background: var(--err); }
.toast--err a { color: #fff; }

/* ---------- admin ---------- */
.admin { background: #EEF0EA; }
.ahd { background: var(--white); border-bottom: 1px solid var(--line); }
.ahd__in { display: flex; align-items: center; gap: 28px; min-height: 64px; flex-wrap: wrap; }
.anav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.anav a { padding: 6px 0; border-bottom: 2px solid transparent; font-weight: 500; }
.anav a[aria-current] { border-bottom-color: var(--tape); }
.amain { padding-block: 32px 80px; display: grid; gap: 18px; align-content: start; }
.authbox { margin: 8vh auto 0; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 32px; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 2px; }
.stats span { color: var(--muted); font-size: 14px; }
.stats b { font-family: var(--display); font-stretch: 80%; font-size: 38px; font-weight: 800; line-height: 1.1; }
.stats small { font-size: 14px; }
.afilter { display: flex; gap: 10px; flex-wrap: wrap; }
.afilter input { max-width: 300px; }
.afilter select { width: auto; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line); white-space: nowrap; }
.pill--pending { background: var(--tape-soft); }
.pill--confirmed, .pill--processing { background: #E1E7FA; }
.pill--shipped { background: #DCEFF6; }
.pill--delivered { background: var(--ok-bg); color: var(--ok); }
.pill--cancelled { background: var(--err-bg); color: var(--err); }
.thumb { background: var(--kraft-tint); border-radius: var(--r-sm); padding: 2px; }
.thumb--lg { margin-bottom: 16px; padding: 8px; }
.hist { display: grid; gap: 10px; font-size: 15px; }
.hist li { padding-left: 14px; border-left: 2px solid var(--line-2); }
.pform { display: grid; gap: 18px; }
.pform__bar { display: flex; justify-content: space-between; gap: 12px; position: sticky; bottom: 0; background: #EEF0EA; padding-block: 14px; border-top: 1px solid var(--line); }
.checks { display: flex; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .search { max-width: 240px; }
  .nav { gap: 16px; }
}
@media (max-width: 900px) {
  .hero__grid, .ladder, .pdp, .pdp__info, .cartgrid, .checkout, .customgrid, .ordergrid { grid-template-columns: 1fr; }
  .hero__viz { order: -1; max-width: 420px; margin-inline: auto; }
  .pdp__art, .cartgrid .panel, .checkout__sum { position: static; }
  .shop { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .filters { min-width: 0; }
  .filters ul { position: static; display: flex; overflow-x: auto; border-top: 0; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .filters li { flex: none; }
  .filters a { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 6px 14px; white-space: nowrap; background: var(--white); }
  .filters a[aria-current] { border-color: var(--ink); box-shadow: none; padding-left: 14px; }
  .promise { grid-template-columns: 1fr; }
  .promise > div, .promise > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .ft__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hd__in { gap: 14px; }
  .menubtn { display: grid; order: 5; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; border-bottom: 1.5px solid var(--ink); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .search { max-width: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .strip__hide { display: none !important; }
  .strip__in { gap: 14px; font-size: 13px; }
  .hd__in { flex-wrap: wrap; padding-block: 10px; }
  .search { order: 6; flex-basis: 100%; }
  .logo { margin-right: auto; }
  .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .hero__viz { max-width: 300px; }
  .strip__long { display: none; }
  .toast { bottom: 88px; }
  .card__price b { font-size: 19px; }
  .cats { grid-template-columns: 1fr; }
  .cat { min-height: 0; grid-template-columns: 1fr 120px; padding: 16px; gap: 2px 12px; }
  .cat > :not(.cat__art) { grid-column: 1; }
  .cat__art { grid-column: 2; grid-row: 1 / span 3; width: 100%; margin: 0; align-self: center; }
  .fit__dims input { font-size: 24px; min-height: 52px; padding: 4px; }
  .steps { height: 240px; gap: 8px; }
  .custom-cta { flex-direction: column; align-items: flex-start; }
  .line { grid-template-columns: 72px 1fr 40px; grid-template-areas: "a i x" "a s t"; gap: 8px 14px; }
  .line__art { grid-area: a; align-self: start; }
  .line__info { grid-area: i; }
  .line > form[data-line-remove] { grid-area: x; align-self: start; }
  .line > .stepper { grid-area: s; justify-self: start; }
  .line__total { grid-area: t; }
  .row2, .row3, .radios { grid-template-columns: 1fr; }
  .buy__actions { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; gap: 0; }
  .track li { padding: 0 0 16px 30px; }
  .track li::before { top: 0; bottom: 0; left: 6px; right: auto; width: 3px; height: auto; }
  .track li::after { top: 3px; }
  .ft__grid { grid-template-columns: 1fr; }
  .done { flex-direction: column; padding: 20px; }
  .price__total { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
