/* ============================================================
   ShenzhenB2B-bd — storefront
   ============================================================ */

:root {
  /* Palette sampled from the ShenzhenB2B-bd logo (public/logo.png):
     blue #002868 → #023D80 → #006FD7 → #009AFE, orange #FF6905 → #FFB01A.
     The wordmark is navy with "B2B" in orange, so orange is accent-only:
     #ff6a00 on white is 3.3:1 and fails for body text. */
  --brand: #023d80;
  --brand-d: #002868;
  --brand-l: #e8f0fa;
  --brand-m: #006fd7;
  --brand-navy: #001a45;
  --accent: #ff6a00;
  --accent-l: #ffb01a;
  --ink: #0d1626;
  --ink-2: #40506a;
  --ink-3: #74839b;
  --line: #e0e7f0;
  --line-2: #eff4fa;
  --bg: #fbfcfe;
  --card: #ffffff;
  --red: #c0322a;
  --green: #187a4e;
  --amber-bg: #fff4e3;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(6, 26, 61, .05), 0 4px 14px rgba(6, 26, 61, .06);
  --shadow-lg: 0 8px 30px rgba(6, 26, 61, .12);
  --wrap: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-m); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.012em; line-height: 1.25; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 680; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0 0 12px; }
ul { margin: 0; padding-left: 20px; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 720px) { .wrap { padding: 0 14px; } }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.ico { vertical-align: -3px; flex: 0 0 auto; }
.ico-sm { vertical-align: -2px; opacity: .8; }
.ico-lead { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }

/* ---------------------------------------------------------------- strip */
.strip { background: var(--brand-d); color: #bfd4f0; font-size: 12.5px; }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.strip-msg { display: flex; align-items: center; gap: 7px; }
.strip-contact { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.strip-contact a { color: #d9edef; }
.strip-sep { opacity: .45; }
@media (max-width: 860px) { .strip { display: none; } }

/* --------------------------------------------------------------- header */
.hdr { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.hdr-in { display: flex; align-items: center; gap: 22px; height: 76px; }
.menu-btn { display: none; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); flex: 0 0 auto; }
.logo-mark { color: var(--brand); }
.brand-img { display: block; height: 58px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 16.5px; letter-spacing: -.015em; color: var(--ink); font-weight: 700; }
.brand-txt i { font-style: normal; font-size: 10.5px; color: var(--ink-3); letter-spacing: .01em; }

.searchbar { flex: 1; position: relative; max-width: 620px; }
.searchbar input {
  width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 108px 0 40px; background: #f8fafb; transition: .15s;
}
.searchbar input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(10, 74, 140, .12); }
.searchbar-btn {
  position: absolute; right: 4px; top: 4px; height: 34px; padding: 0 18px; border: 0;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.searchbar-btn:hover { background: var(--brand-m); }

.hdr-actions { display: flex; gap: 4px; margin-left: auto; }
.icon-btn {
  display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 8px;
  color: var(--ink-2); font-size: 13px; background: none; border: 0; cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--line-2); color: var(--brand); }
.icon-label { font-size: 12.5px; }
.cart-count {
  position: absolute; top: 2px; left: 20px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 9px; font-size: 10.5px;
  display: grid; place-items: center; font-weight: 700;
}
@media (max-width: 860px) {
  .hdr-in { gap: 10px; height: 64px; }
  .brand-img { height: 44px; }
  .menu-btn { display: flex; }
  .brand-txt i { display: none; }
  .searchbar { display: none; }
  .icon-label { display: none; }
}
@media (max-width: 420px) { .brand-txt b { font-size: 15px; } }

/* category rail */
.catnav { border-top: 1px solid var(--line-2); background: #fff; }
.catnav-in { display: flex; align-items: center; gap: 2px; height: 42px; overflow-x: auto; scrollbar-width: none; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav-all, .catnav-link {
  white-space: nowrap; padding: 7px 11px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); font-weight: 500;
}
.catnav-all { display: flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }
.catnav-link:hover, .catnav-all:hover { background: var(--line-2); color: var(--brand); }
.catnav-link.is-on, .catnav-all.is-on { background: var(--brand-l); color: var(--brand-d); }
.catnav { overflow: hidden; }
@media (max-width: 860px) { .catnav-in { height: 40px; } .catnav-link { font-size: 13px; padding: 6px 9px; } }

/* ------------------------------------------------------------ mobile bar */
.mobile-tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.mobile-tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: var(--ink-3); padding: 4px 0; position: relative; flex: 1;
}
.mobile-tabbar a.is-on { color: var(--brand); }
.tab-badge {
  position: absolute; top: 0; right: 50%; transform: translateX(14px);
  background: var(--brand); color: #fff; font-size: 9.5px; border-radius: 8px;
  min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 3px;
}
@media (max-width: 860px) {
  .mobile-tabbar { display: flex; }
  body { padding-bottom: 62px; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding: 20px 0 0; }
.hero-slides {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: var(--r-lg);
}
.hero-slides::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden;
  min-height: 300px; border-radius: var(--r-lg); display: flex; align-items: center;
  background: linear-gradient(115deg, var(--brand-d), var(--brand) 55%, var(--brand-m));
  color: #fff; padding: 42px 44px;
}
.hero-slide:nth-child(2) { background: linear-gradient(115deg, #002868, #023d80 58%, #006fd7); }
.hero-slide:nth-child(3) { background: linear-gradient(115deg, #3a1405, #8a3a05 52%, #e86f06); }
.hero-copy { max-width: 560px; position: relative; z-index: 2; }
.hero-kicker {
  display: inline-block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 106, 0, .22); border: 1px solid rgba(255, 176, 26, .45); color: #ffcc85;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; font-weight: 600;
}
.hero-slide h2 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; color: #fff; letter-spacing: -.022em; }
.hero-slide p { color: rgba(255, 255, 255, .85); font-size: 15.5px; max-width: 46ch; margin: 0 0 22px; }
.hero-art {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px; opacity: .13; pointer-events: none;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand-d);
  padding: 11px 20px; border-radius: 999px; font-weight: 650; font-size: 14px;
}
.hero-cta:hover { background: #eef4fb; color: var(--brand-d); }
.hero-dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0 0; }
.hero-dots span { width: 22px; height: 3px; background: var(--line); border-radius: 2px; }
@media (max-width: 860px) {
  .hero-slide { min-height: 230px; padding: 26px 22px; flex-basis: 92%; }
  .hero-slide h2 { font-size: 24px; }
  .hero-slide p { font-size: 14px; margin-bottom: 16px; }
  .hero-art { width: 240px; height: 240px; right: -70px; opacity: .1; }
}

/* ----------------------------------------------------------- trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 18px 0 0; }
.trust-item { background: #fff; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.trust-ico { color: var(--accent); flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; background: #fff1e4; display: grid; place-items: center; }
.trust-item b { display: block; font-size: 13.5px; margin-bottom: 1px; }
.trust-item span { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } .trust-item { padding: 12px 13px; gap: 9px; } .trust-item b { font-size: 12.5px; } .trust-item span { font-size: 11px; } }

/* --------------------------------------------------------------- section */
.sect { padding: 34px 0 0; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sect-head h2 { font-size: 20px; }
.sect-head p { color: var(--ink-3); font-size: 13.5px; margin: 0; }
.sect-more { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; color: var(--accent); }

/* -------------------------------------------------------- category tiles */
.catgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 14px; text-align: center; transition: .15s; color: var(--ink);
}
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.cat-tile .ct-ico { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 12px; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; }
.cat-tile b { display: block; font-size: 13.5px; font-weight: 600; }
.cat-tile small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 1000px) { .catgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .catgrid { grid-template-columns: repeat(2, 1fr); gap: 9px; } .cat-tile { padding: 14px 10px; } }

/* ---------------------------------------------------------- product grid */
.pgrid { display: grid; gap: 14px; }
.pgrid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pgrid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pgrid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1040px) { .pgrid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .pgrid.cols-4, .pgrid.cols-3 { grid-template-columns: repeat(2, 1fr); } .pgrid { gap: 10px; } }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; transition: .16s; color: var(--ink);
}
.pcard:hover { border-color: #c9d8dd; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.pcard-media { position: relative; aspect-ratio: 1/1; background: var(--line-2); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pcard:hover .pcard-media img { transform: scale(1.035); }
.pcard-badge {
  position: absolute; top: 8px; left: 8px; background: rgba(16, 22, 25, .82); color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px;
}
.pcard-off { position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 3px; }
.pcard-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-brand { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 650; }
.pcard-title {
  font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 36px; margin: 0;
}
.pcard-price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; padding-top: 4px; }
.pcard-price .now { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pcard-price .was { font-size: 11.5px; color: var(--ink-3); text-decoration: line-through; }
.pcard-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--ink-3); border-top: 1px solid var(--line-2); padding-top: 6px; margin-top: 3px; }
.pcard-meta .rep { color: var(--green); font-weight: 600; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 620;
  border: 1.5px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-m); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #232f36; color: #fff; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { height: 48px; font-size: 15px; padding: 0 26px; }

/* ------------------------------------------------------------------ pills */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 5px; letter-spacing: .01em; }
.tone-ok { background: #e8f5ee; color: var(--green); }
.tone-warn { background: var(--amber-bg); color: #a86a12; }
.tone-info { background: var(--brand-l); color: var(--brand-d); }
.tone-muted { background: #f0f2f4; color: var(--ink-3); }
.tone-red { background: #fdeceb; color: var(--red); }

.alert { border-radius: 8px; padding: 12px 16px; font-size: 13.5px; margin: 0 0 16px; border: 1px solid; }
.alert.tone-ok { background: #eef8f2; border-color: #cfeadd; color: #14603f; }
.alert.tone-warn { background: var(--amber-bg); border-color: #f0dcbc; color: #8a560d; }
.alert.tone-red { background: #fdeeed; border-color: #f5cfcc; color: #99241d; }
.alert.tone-info { background: var(--brand-l); border-color: #c3d6ec; color: var(--brand-d); }
.alert-page { margin-top: 16px; }

/* ---------------------------------------------------------------- crumb */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); padding: 16px 0 0; flex-wrap: wrap; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb .sep { opacity: .5; }
.crumb [aria-current] { color: var(--ink-2); }

/* -------------------------------------------------------------- layout 2c */
.shop-layout { display: grid; grid-template-columns: 232px 1fr; gap: 26px; align-items: start; padding-top: 18px; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; gap: 14px; } }

.facets { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 0; position: sticky; top: 120px; }
.facet { border-bottom: 1px solid var(--line-2); padding: 14px 16px; }
.facet:last-child { border-bottom: 0; }
.facet h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 10px; font-weight: 700; }
.facet a, .facet label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-2); padding: 5px 0; cursor: pointer; }
.facet a.is-on { color: var(--brand); font-weight: 650; }
.facet .count { font-size: 11px; color: var(--ink-3); }
.facet input[type=number] { width: 78px; height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font-size: 12.5px; }
.price-row { display: flex; gap: 6px; align-items: center; }
@media (max-width: 900px) {
  .facets { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .facet { border-bottom: 1px solid var(--line-2); }
}

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { font-size: 13px; color: var(--ink-3); }
.select { height: 36px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 10px; font-size: 13px; }

/* ---------------------------------------------------------------- Pager */
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0 0; flex-wrap: wrap; }
.pg { min-width: 36px; height: 36px; padding: 0 11px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; background: #fff; color: var(--ink-2); }
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 650; }
.pg.is-off { opacity: .4; }

/* ----------------------------------------------------------- product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 0 0; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 20px; } }

.gallery { position: sticky; top: 120px; }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery-main { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumbs button { width: 68px; height: 68px; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; background: #fff; cursor: pointer; }
.gallery-thumbs button.is-on { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.pdp h1 { font-size: 25px; line-height: 1.28; margin: 6px 0 12px; }
.pdp-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.stars { display: inline-flex; gap: 1px; color: #e0a32a; vertical-align: -2px; }
.pdp-price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.pdp-price { font-size: 30px; font-weight: 720; letter-spacing: -.02em; }
.pdp-was { font-size: 16px; color: var(--ink-3); text-decoration: line-through; }
.pdp-save { font-size: 12px; color: var(--red); font-weight: 650; background: #fdeceb; padding: 2px 7px; border-radius: 4px; }
.pdp-ship-note { font-size: 12.5px; color: var(--ink-3); margin: 0 0 18px; }

/* freight / landed cost */
.cost { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; margin: 0 0 18px; }
.cost-head { padding: 13px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fafcfc; }
.cost-head b { font-size: 13.5px; }
.cost-head span { font-size: 11.5px; color: var(--ink-3); }
.cost-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px; }
.cost-mode {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 11px; cursor: pointer;
  position: relative; transition: .14s; background: #fff;
}
.cost-mode:hover { border-color: #c3d6ec; }
.cost-mode input { position: absolute; opacity: 0; pointer-events: none; }
.cost-mode b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.cost-mode span { font-size: 11px; color: var(--ink-3); display: block; }
.cost-mode .cm-days { font-size: 11px; color: var(--brand); font-weight: 650; margin-top: 5px; }
.cost-mode:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.cost-mode:has(input:checked) b { color: var(--brand-d); }
.cost-lines { padding: 4px 16px 14px; }
.cost-line { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--ink-2); }
.cost-line.is-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.cost-line .muted { color: var(--ink-3); font-size: 12px; }
.paysplit { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.paysplit > div { background: #fafcfc; padding: 12px 16px; }
.paysplit .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 650; }
.paysplit .amt { font-size: 17px; font-weight: 700; color: var(--ink); }
.paysplit .sub { font-size: 11px; color: var(--ink-3); }
.paysplit > div:first-child .amt { color: var(--brand); }

.qty-row { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.stepper { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button { width: 38px; height: 42px; border: 0; background: #fff; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.stepper button:hover { background: var(--line-2); }
.stepper input { width: 52px; height: 42px; border: 0; text-align: center; font-weight: 650; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.moq-note { font-size: 12px; color: var(--ink-3); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 9px 12px; width: 42%; background: #fafcfc; border-bottom: 1px solid var(--line-2); }
.spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin: 0 0 16px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; }
.panel > p:last-child, .panel > ul:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ cart */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; padding-top: 18px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line-2); align-items: center; }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-2); }
.cart-row h4 { font-size: 13.5px; font-weight: 550; line-height: 1.4; margin: 0 0 5px; }
.cart-row .sub { font-size: 11.5px; color: var(--ink-3); }
.cart-row .line-price { font-weight: 700; font-size: 15px; text-align: right; }
.cart-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.link-danger { font-size: 12px; color: var(--ink-3); background: none; border: 0; cursor: pointer; padding: 0; }
.link-danger:hover { color: var(--red); }

.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); position: sticky; top: 120px; overflow: hidden; }
.summary-head { padding: 16px 18px; border-bottom: 1px solid var(--line-2); font-weight: 650; font-size: 14px; }
.summary-body { padding: 14px 18px; }
.summary-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; color: var(--ink-2); }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 700; color: var(--ink); }
.summary-foot { padding: 0 18px 18px; }
@media (max-width: 900px) { .summary { position: static; } }

/* --------------------------------------------------------------- checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; padding-top: 18px; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: auto; } }

.field { display: block; margin-bottom: 0; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field > span b { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: #fff; font-size: 14px; transition: .14s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 74, 140, .12);
}
.field small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.field textarea { resize: vertical; min-height: 84px; }

.radio-cards { display: grid; gap: 8px; }
.radio-card { display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line); border-radius: 9px; padding: 11px 13px; cursor: pointer; background: #fff; }
.radio-card:hover { border-color: #c3d6ec; }
.radio-card input { accent-color: var(--brand); width: 16px; height: 16px; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.radio-card b { display: block; font-size: 13px; }
.radio-card span { font-size: 11.5px; color: var(--ink-3); }
.radio-card .rc-right { margin-left: auto; font-size: 12px; color: var(--brand); font-weight: 650; white-space: nowrap; }

/* ----------------------------------------------------------------- order */
.order-head { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: 26px 28px; margin: 20px 0 20px; }
.order-head h1 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.order-head p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 13.5px; }
.order-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: rgba(255, 255, 255, .16); padding: 4px 9px; border-radius: 5px; display: inline-block; margin-bottom: 12px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline li:not(:last-child):before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1.5px; background: var(--line); }
.timeline .dot { width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; position: relative; z-index: 1; color: #fff; }
.timeline li.done .dot { background: var(--brand); border-color: var(--brand); }
.timeline li.current .dot { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-l); }
.timeline b { font-size: 13.5px; display: block; }
.timeline span { font-size: 12px; color: var(--ink-3); }

.pay-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-box { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; }
.pay-box.is-due { border-color: #f0dcbc; background: var(--amber-bg); }
.pay-box.is-paid { border-color: #cfeadd; background: #f2faf6; }
.pay-box .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.pay-box .amt { font-size: 22px; font-weight: 720; margin: 3px 0; }
.pay-box .note { font-size: 11.5px; color: var(--ink-3); }

/* ----------------------------------------------------------------- table */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1.5px solid var(--line); background: #fafcfc; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; }

/* ------------------------------------------------------------------ misc */
.sect-tight { padding-top: 22px; }
.empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty-ico { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: var(--line-2); color: var(--ink-3); display: grid; place-items: center; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-3); font-size: 13.5px; max-width: 46ch; margin: 0 auto 18px; }

.prose { max-width: 74ch; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.prose h2 { font-size: 19px; margin: 28px 0 10px; color: var(--ink); }
.prose h3 { margin: 22px 0 8px; }
.page-head { padding: 30px 0 6px; }
.page-head h1 { font-size: 27px; }
.page-head p { color: var(--ink-3); margin: 8px 0 0; max-width: 68ch; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; }
.step .n { font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-l); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; }
.step b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.step p { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.5; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

.mode-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mode-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fafcfc; }
.mode-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.mode-table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------- auth */
.auth-wrap { max-width: 420px; margin: 48px auto 60px; padding: 0 20px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.auth-logo { margin-bottom: 18px; }
.auth-logo img { height: 52px; width: auto; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card > p { color: var(--ink-3); font-size: 13.5px; margin-bottom: 20px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }

/* --------------------------------------------------------------- footer */
.ftr { background: var(--brand-navy); color: #a8b8d4; margin-top: 56px; padding: 44px 0 0; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; }
.f-col h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; font-weight: 700; }
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col li { margin-bottom: 9px; }
.f-col a { color: #a9b7bd; font-size: 13.5px; }
.f-col a:hover { color: #fff; }
.f-about p { font-size: 13px; line-height: 1.6; color: #8fa0a7; margin: 14px 0 0; }
.brand-ftr .brand-txt b { color: #fff; }
.brand-ftr .brand-txt i { color: #8394b4; }
.brand-ftr .brand-bd { font-style: normal; color: var(--accent-l); }
.f-addr { display: flex; gap: 8px; align-items: flex-start; }
.f-lic { font-size: 11.5px; color: #7b8cad; border-top: 1px solid #16305c; padding-top: 10px; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid #16305c; font-size: 12px; color: #8394b4; flex-wrap: wrap; }
@media (max-width: 900px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .f-about { grid-column: span 2; }
}
@media (max-width: 860px) { .ftr { margin-top: 36px; } }

/* ------------------------------------------------------------- error page */
.errpage { max-width: 460px; margin: 120px auto; text-align: center; padding: 0 20px; }
.err-code { font-size: 68px; font-weight: 800; color: var(--brand); letter-spacing: -.04em; line-height: 1; }
.errpage h1 { font-size: 20px; margin: 10px 0 8px; }
.errpage p { color: var(--ink-3); font-size: 14px; margin-bottom: 22px; }

/* --------------------------------------------------------------- utility */
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.right { text-align: right; }
.hr { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

/* ------------------------------------------------- mobile category menu */
@media (max-width: 860px) {
  .catnav { display: none; }
  body.nav-open .catnav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 59;
  }
  body.nav-open .catnav-in {
    flex-direction: column; align-items: stretch; height: auto;
    padding: 8px 14px 16px; overflow: visible; gap: 1px;
  }
  body.nav-open .catnav-link, body.nav-open .catnav-all { width: 100%; padding: 11px 12px; font-size: 14px; }
  .catnav-scrim { position: fixed; inset: 0; background: rgba(16,22,25,.35); z-index: 55; display: none; }
  body.nav-open .catnav-scrim { display: block; }
}

/* --------------------------------------------------------------- polish */
.sect-more { white-space: nowrap; }
.hero-dots span.is-on { background: var(--accent); }
.hero-dots span { transition: background .2s; }
