/* Local webfonts — Rubik (display) + Nunito Sans (text), ~129 KB, no CDN call. */
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/rubik-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/rubik-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/rubik-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/rubik-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/nunito-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/nunito-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/nunito-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/nunito-sans-latin-700-normal.woff2') format('woff2'); }

/* ==========================================================================
   Novall Mart storefront — own visual language.
   Warm paper background, deep pine brand colour, amber accents, generous radii.
   Deliberately NOT the dark-nav / orange-button pattern of the big US retailers:
   the goal is a shop that looks like its own place.
   ========================================================================== */

:root {
  /* palette */
  --ink: #17211d;
  --ink-2: #55635d;
  --ink-3: #7d8a84;
  --brand: #0d4f43;
  --brand-2: #146b5a;
  --brand-soft: #e6f0ec;
  --amber: #f0a24b;
  --amber-2: #dd8b2c;
  --amber-soft: #fdf1e0;
  --bg: #f5f2ec;
  --card: #ffffff;
  --line: #e6dfd3;
  --line-2: #d7cdbc;
  --price: #0d4f43;
  --link: #146b5a;
  --link-hover: #a75f24;
  --star: #e8a33d;
  --danger: #b3261e;
  --green: #146b5a;

  /* shape + depth */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(23, 33, 29, 0.06);
  --sh: 0 6px 22px rgba(23, 33, 29, 0.08);
  --sh-lg: 0 18px 48px rgba(23, 33, 29, 0.16);

  --max: 1480px;
  /* type: three families, each with a job (Walmart-style assignment) */
  --font-display: "Rubik", "Segoe UI Variable Display", "Segoe UI", Inter, Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --font-num: "Rubik", "Segoe UI", Consolas, monospace;
  --font: var(--font-body);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: 42px; line-height: 1.1; max-width: 640px; font-weight: 800; }
h3 { font-weight: 650; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 60; }

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  min-height: 72px;
}

.brand {
  display: flex; align-items: baseline; gap: 1px;
  color: var(--brand); font-size: 24px; font-weight: 800; letter-spacing: -0.04em;
  padding: 4px 6px; border-radius: var(--r-sm);
}
.brand:hover { text-decoration: none; color: var(--brand); background: var(--brand-soft); }
.brand .brand-dot { color: var(--amber-2); }
.brand .brand-tld { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0; margin-left: 3px; }

.nav-slot {
  display: flex; flex-direction: column; justify-content: center;
  padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid transparent;
  color: var(--ink); line-height: 1.2; white-space: nowrap; cursor: pointer; background: none;
}
.nav-slot:hover { border-color: var(--line-2); background: #fbfaf7; text-decoration: none; color: var(--ink); }
.nav-slot .nl1 { font-size: 11.5px; color: var(--ink-3); }
.nav-slot .nl2 { font-size: 13px; font-weight: 700; }

.searchbar {
  flex: 1; display: flex; height: 46px; border-radius: var(--r-pill); overflow: hidden;
  min-width: 260px; border: 1.5px solid var(--line-2); background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.searchbar:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft); }
.searchbar select {
  background: #fbfaf7; border: 0; padding: 0 14px; font-size: 13px; color: var(--ink-2);
  border-right: 1px solid var(--line); max-width: 150px;
}
.searchbar input { flex: 1; border: 0; padding: 0 16px; font-size: 15px; min-width: 0; background: transparent; }
.searchbar input:focus { outline: none; }
.searchbar button { width: 56px; border: 0; background: var(--amber); display: grid; place-items: center; }
.searchbar button:hover { background: var(--amber-2); }
.searchbar button svg { width: 20px; height: 20px; }

.cart-link { display: flex; align-items: center; gap: 8px; position: relative; }
.cart-link svg { width: 26px; height: 26px; stroke: var(--brand); }
.cart-link:hover svg { stroke: var(--brand-2); }
.cart-count {
  position: absolute; left: 16px; top: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--brand); color: #fff; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.cart-label { font-size: 13px; font-weight: 700; color: var(--ink); }

.subnav {
  background: #fff; display: flex; align-items: center; gap: 6px;
  padding: 8px 24px 10px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a, .subnav button {
  color: var(--ink-2); background: #f7f4ee; border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 7px 14px; font-size: 13.5px; white-space: nowrap; font-weight: 500;
}
.subnav a:hover, .subnav button:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.subnav .all-btn { display: flex; align-items: center; gap: 7px; font-weight: 700; background: var(--brand); color: #fff; }
.subnav .all-btn svg { width: 15px; height: 15px; stroke: #fff; }
.subnav .all-btn:hover { background: var(--brand-2); color: #fff; }
.subnav .promo { margin-left: auto; font-size: 12px; color: var(--ink-3); background: none; }

/* department drawer */
.dept-drawer {
  position: fixed; inset: 0; background: rgba(23, 33, 29, 0.42); z-index: 90;
  display: grid; grid-template-columns: 380px 1fr; animation: fade 0.15s ease;
}
.dept-drawer[hidden] { display: none; }
.dept-panel { background: #fff; height: 100%; overflow-y: auto; padding: 22px 0 40px; box-shadow: var(--sh-lg); }
.dept-panel h3 { padding: 0 26px 12px; font-size: 19px; }
.dept-panel .dept-item { padding: 11px 26px; display: flex; justify-content: space-between; gap: 8px; color: var(--ink); }
.dept-panel .dept-item:hover { background: var(--brand-soft); text-decoration: none; }
.dept-panel .dept-item .cnt { color: var(--ink-3); font-size: 12px; }
.dept-panel .sub-list { padding: 0 26px 14px 42px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dept-panel .sub-list a { font-size: 13px; color: var(--ink-2); }
.dept-close { position: absolute; left: 396px; top: 14px; background: none; border: 0; color: #fff; font-size: 30px; }

/* suggestions */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--r);
  box-shadow: var(--sh-lg); overflow: hidden; z-index: 70; border: 1px solid var(--line);
}
.suggest[hidden] { display: none; }
.suggest .sug-head { padding: 9px 16px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: #fbfaf7; }
.suggest .sug-row { display: flex; align-items: center; gap: 12px; padding: 9px 16px; color: var(--ink); }
.suggest .sug-row:hover { background: var(--brand-soft); text-decoration: none; }
.suggest .sug-row img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #f4f1ea; }
.suggest .sug-row .t { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .sug-row .p { margin-left: auto; color: var(--price); font-weight: 700; font-size: 13px; }

/* account flyout */
.flyout-wrap { position: relative; }
.flyout {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px; background: #fff; color: var(--ink);
  border-radius: var(--r); box-shadow: var(--sh-lg); padding: 18px; z-index: 80; border: 1px solid var(--line);
}
.flyout[hidden] { display: none; }
.flyout .cta {
  display: inline-block; background: var(--brand); color: #fff; padding: 9px 18px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 13px;
}
.flyout .cta:hover { background: var(--brand-2); color: #fff; text-decoration: none; }

/* ------------------------------------------------------------------- shell */
.site-main { min-height: 70vh; }
.page { padding-top: 22px; padding-bottom: 56px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 20px; border: 1px solid var(--line); }
.card.pad-sm { padding: 14px; }
.section-title { display: flex; align-items: baseline; gap: 14px; margin: 38px 0 16px; }
.section-title h2 { font-size: 23px; }
.section-title a { font-size: 13px; font-weight: 600; }

/* hero */
.hero {
  position: relative; border-radius: 26px; overflow: hidden; height: 380px;
  background: linear-gradient(115deg, #fbf6ec 0%, #f3e7d3 45%, #e9d9c0 100%);
  box-shadow: var(--sh); margin-bottom: -46px;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(13, 79, 67, 0.16), transparent 62%);
  border-radius: 50%;
}
.hero-slide { position: absolute; inset: 0; padding: 40px 56px 64px; display: flex; flex-direction: column; justify-content: center; opacity: 0; transition: opacity 0.5s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide .eyebrow { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 12px; font-weight: 700; }
.hero-slide h1 { font-size: 42px; line-height: 1.12; max-width: 640px; color: var(--ink); }
.hero-slide p { max-width: 520px; color: var(--ink-2); margin: 14px 0 24px; font-size: 15.5px; }
.hero-slide .btn { align-self: flex-start; }
.hero-art { display: none; }
.hero-dots { position: absolute; bottom: 22px; left: 56px; display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 5px; border-radius: var(--r-pill); border: 0; background: rgba(23, 33, 29, 0.18); padding: 0; }
.hero-dots button.on { background: var(--brand); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-pill); padding: 12px 24px;
  font-size: 14px; font-weight: 700; background: var(--brand); color: #fff; text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--brand-2); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--amber); color: #3a2a12; }
.btn.primary:hover { background: var(--amber-2); color: #2f2210; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #24352f; color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: #fbfaf7; border-color: var(--brand-2); color: var(--brand); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* category tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 2; }
.tile {
  background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
}
.tile h3 { font-size: 18px; }
.tile .tile-art { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.tile .tile-art img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #f7f4ee; padding: 6px; }
.tile .tile-art a:hover img { background: var(--brand-soft); }
.tile a.more { font-size: 13.5px; font-weight: 600; }

/* rails */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 16px;
  overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x proximity;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--r-pill); }
.rail > * { scroll-snap-align: start; }

/* product card */
.pcard {
  background: #fff; border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column;
  gap: 9px; border: 1px solid var(--line); box-shadow: var(--sh-sm); position: relative;
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease; min-height: 100%;
}
.pcard:hover { box-shadow: var(--sh); transform: translateY(-2px); border-color: var(--line-2); }
.pcard .thumb { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #f8f6f1; display: grid; place-items: center; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pcard .title {
  font-size: 13.5px; line-height: 1.4; color: var(--ink); font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px;
}
.pcard .title:hover { color: var(--link-hover); }
.pcard .brand-line { font-size: 12px; color: var(--ink-3); }
.pcard .price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--font-display); color: var(--price); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
/* numbers sit in their own family so totals line up in tables */
.order-head b, .stat .v, .table td, .track-steps time, .hist + *, .money, time { font-variant-numeric: tabular-nums; }
.stat .v, .order-head b { font-family: var(--font-num); letter-spacing: -0.01em; }
.btn { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.005em; }
.badge-pill, .chip, .nav-links a, .subnav a, .crumb { font-family: var(--font-body); }
.price .sym { font-size: 12px; vertical-align: super; }
.price .big { font-size: 26px; }
.price .cents { font-size: 12px; vertical-align: baseline; }
.was { color: var(--ink-3); font-size: 12px; text-decoration: line-through; }
.off-badge { background: var(--amber-soft); color: #8a5216; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill); }
.badge-pill {
  position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px;
  border-radius: var(--r-pill); color: var(--ink-2); backdrop-filter: blur(4px);
}
.badge-pill.deal { background: var(--amber); color: #3a2a12; border-color: var(--amber); }
.prime-mark { color: var(--brand-2); font-weight: 800; font-size: 12px; letter-spacing: -0.01em; }
.ship-line { font-size: 12px; color: var(--ink-2); }
.stock-low { color: var(--danger); font-size: 12px; font-weight: 700; }

.stars { display: inline-flex; align-items: center; gap: 5px; }
.stars .glyphs { position: relative; display: inline-block; line-height: 0; }
.stars .bg, .stars .fg { display: flex; }
.stars svg { width: 14px; height: 14px; }
.stars .fg { position: absolute; inset: 0; overflow: hidden; }
.stars .num { font-size: 12px; color: var(--ink-3); }

/* listing */
.listing { display: grid; grid-template-columns: 258px 1fr; gap: 22px; align-items: start; }
.facets {
  background: #fff; border-radius: var(--r-lg); padding: 18px; position: sticky; top: 132px;
  max-height: calc(100vh - 150px); overflow-y: auto; border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.facet { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facet:last-child { border-bottom: 0; }
.facet h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.facet .opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.facet .opt input { margin: 0; accent-color: var(--brand); }
.facet .opt .cnt { color: var(--ink-3); font-size: 12px; margin-left: auto; }
.facet .opt:hover { color: var(--brand); }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 78px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13px; background: #fbfaf7; }
.quick-ranges a { display: block; padding: 4px 0; font-size: 13.5px; }

.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 2px 2px 14px; }
.results-head .count { font-size: 13px; color: var(--ink-3); }
.sortbox { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.sortbox select { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.empty-state { background: #fff; border-radius: var(--r-lg); padding: 56px 32px; text-align: center; border: 1px solid var(--line); }
.empty-state h2, .empty-state h3 { margin-bottom: 10px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 32px 0 10px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink);
}
.pagination a:hover { border-color: var(--brand-2); color: var(--brand); text-decoration: none; }
.pagination .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* breadcrumbs */
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3); padding: 4px 2px 14px; flex-wrap: wrap; }

/* product detail */
.pdp { display: grid; grid-template-columns: 1.05fr 1.2fr 340px; gap: 26px; align-items: start; }
.gallery { display: flex; gap: 14px; position: sticky; top: 132px; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 10px; width: 60px; }
.gallery .thumbs button { border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: #fff; overflow: hidden; }
.gallery .thumbs button.on { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.gallery .main-img { flex: 1; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.gallery .main-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 18px; }

.pdp-title { font-family: var(--font-display); font-size: 27px; line-height: 1.28; font-weight: 650; letter-spacing: -0.028em; }
.pdp-brand { font-size: 13px; margin: 8px 0 10px; color: var(--ink-3); }
.rating-row { display: flex; align-items: center; gap: 12px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.rating-row .num { font-size: 13px; color: var(--ink-3); }
.price-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-block .line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.coupon { color: var(--green); font-size: 13px; font-weight: 700; margin-top: 6px; }
.bullets { margin: 14px 0; padding-left: 20px; list-style: disc; }
.bullets li { margin: 6px 0; font-size: 14px; }
.about { font-size: 14px; color: var(--ink-2); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.spec-table th { text-align: left; width: 200px; background: #fbfaf7; padding: 10px 14px; font-weight: 600; border: 1px solid var(--line); color: var(--ink-2); }
.spec-table td { padding: 10px 14px; border: 1px solid var(--line); }
.variants { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.variants .vgroup { width: 100%; font-size: 13px; }
.variants .vgroup b { margin-right: 10px; }
.variants .chip { border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 7px 15px; font-size: 12.5px; background: #fff; color: var(--ink); }
.variants .chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }

.buybox {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
  position: sticky; top: 132px; box-shadow: var(--sh);
}
.buybox .bb-price { font-size: 30px; color: var(--price); font-weight: 800; letter-spacing: -0.03em; }
.buybox .delivery { font-size: 13.5px; margin: 12px 0; }
.buybox select { width: 100%; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fbfaf7; margin-top: 6px; }
.buybox .secure { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.seller-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

/* reviews */
.reviews { display: grid; grid-template-columns: 320px 1fr; gap: 32px; margin-top: 10px; }
.rev-summary h3 { font-size: 21px; margin-bottom: 10px; }
.hist { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.hist .hbar { display: grid; grid-template-columns: 42px 1fr 44px; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); }
.hist .track { height: 10px; background: #f0ece3; border-radius: var(--r-pill); overflow: hidden; }
.hist .fill { display: block; height: 100%; background: var(--star); border-radius: var(--r-pill); }
.rev-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row .chip { border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-pill); padding: 7px 14px; font-size: 12.5px; color: var(--ink); }
.chip-row .chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.rev-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rev-item .who { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.rev-item .who img { width: 28px; height: 28px; border-radius: 50%; }
.rev-item .meta { font-size: 12px; color: var(--ink-3); margin: 3px 0 9px; }
.rev-item h4 { font-size: 15px; margin: 5px 0 7px; }
.rev-item p { margin: 0 0 9px; font-size: 14px; color: var(--ink-2); }
.rev-item .helpful { font-size: 12px; color: var(--ink-3); display: flex; gap: 16px; align-items: center; }
.rev-item .helpful button { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 5px 14px; font-size: 12px; }
.verified { color: var(--brand-2); font-weight: 700; font-size: 11.5px; background: var(--brand-soft); padding: 2px 8px; border-radius: var(--r-pill); }

/* forms */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 14px;
  font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* cart / checkout / orders */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 160px; height: 160px; object-fit: contain; background: #f8f6f1; border-radius: 14px; padding: 10px; }
.cart-item .ci-title { font-size: 16px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.cart-item .ci-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 13px; }
.cart-item select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; }
.cart-item .linkbtn { background: none; border: 0; color: var(--link); padding: 0; font-size: 13px; }
.summary { background: #fff; border-radius: var(--r-lg); padding: 22px; position: sticky; top: 132px; box-shadow: var(--sh); border: 1px solid var(--line); }
.summary .line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); }
.summary .total { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 800; color: var(--ink); }
.order-card { background: #fff; border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--sh-sm); border: 1px solid var(--line); }
.order-head { display: flex; gap: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; flex-wrap: wrap; }
.order-head b { display: block; color: var(--ink); font-size: 13px; text-transform: none; letter-spacing: 0; margin-top: 3px; }
.order-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.order-line img { width: 68px; height: 68px; object-fit: contain; background: #f8f6f1; border-radius: 10px; padding: 4px; }

/* virtual delivery tracking */
.track { margin: 6px 0 4px; padding: 14px 16px; background: #fbfaf7; border: 1px solid var(--line); border-radius: 14px; }
.track-head { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.track-steps li { display: grid; grid-template-columns: 16px 1fr auto; grid-template-areas: "dot label time" ". detail detail"; gap: 2px 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.track-steps .dot { grid-area: dot; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.track-steps li.done .dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(13, 79, 67, 0.12); }
.track-label { grid-area: label; font-weight: 600; color: var(--ink); }
.track-detail { grid-area: detail; font-size: 11.5px; color: var(--ink-3); }
.track-steps time { grid-area: time; font-size: 11.5px; color: var(--ink-3); }
.track-steps li:not(.done) .track-label { color: var(--ink-3); font-weight: 500; }

/* seller console */
.seller-hero {
  background: linear-gradient(120deg, var(--brand) 0%, #176a5a 55%, #1d7f6b 100%);
  color: #fff; border-radius: var(--r-lg); padding: 26px; display: flex; gap: 22px; align-items: center;
  box-shadow: var(--sh);
}
.seller-hero h1 { color: #fff; }
.seller-hero img { width: 84px; height: 84px; border-radius: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0; }
.stat { background: #fff; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-sm); border: 1px solid var(--line); }
.stat .k { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font-size: 24px; font-weight: 800; margin-top: 4px; color: var(--brand); }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; font-size: 13px; border: 1px solid var(--line); }
.table th { background: #fbfaf7; text-align: left; padding: 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table input { width: 92px; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.status-dot.on { background: var(--green); }
.status-dot.off { background: var(--line-2); }

/* vendor page */
.vendor-banner {
  background: linear-gradient(120deg, #123a33, var(--brand) 60%, #175f51);
  border-radius: var(--r-lg); color: #fff; padding: 30px; display: flex; gap: 24px; align-items: center;
  box-shadow: var(--sh);
}
.vendor-banner h1 { color: #fff; font-size: 28px; }
.vendor-banner img { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--sh); }
.vendor-banner .vmeta { display: flex; gap: 24px; margin-top: 12px; font-size: 13px; color: #d7e6e1; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 22px 0 18px; }
.tabs button { background: none; border: 0; padding: 11px 18px; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }

/* footer */
.site-footer { background: #10332d; color: #cfe0db; margin-top: 56px; }
.footer-top { background: #0c2a25; text-align: center; padding: 15px; }
.footer-top a { color: #e9f1ee; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: var(--max); margin: 0 auto; padding: 44px 24px; }
.footer-cols h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.footer-cols a { display: block; color: #bcd2cc; font-size: 13px; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1d4a41; padding: 22px 24px 34px; text-align: center; font-size: 12px; color: #86a39c; }

/* toast + modal + skeleton */
.toast-root { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 120; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r); box-shadow: var(--sh-lg);
  font-size: 13.5px; animation: slidein 0.2s ease; max-width: 360px;
}
.toast.ok { background: var(--brand); }
.toast.err { background: var(--danger); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 40, 35, 0.5); z-index: 110; display: grid; place-items: center; padding: 20px; }
.modal { background: #fff; border-radius: var(--r-lg); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 26px; box-shadow: var(--sh-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h3 { font-size: 20px; }
.modal-close { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--ink-3); }
.modal .tabs { margin-top: 0; }

.skel { background: linear-gradient(90deg, #efeae0 25%, #e5dfd2 37%, #efeae0 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r); }
.skel-card { height: 330px; }

@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* responsive */
@media (max-width: 1280px) {
  .pdp { grid-template-columns: 1fr 1fr; }
  .buybox { position: static; grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 1fr; }
  .facets { position: static; max-height: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary, .gallery, .buybox { position: static; }
  .reviews { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .searchbar select { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .navbar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; min-height: 0; }
  .brand { font-size: 21px; }
  .searchbar { order: 3; flex-basis: 100%; height: 42px; }
  .nav-slot.deliver, .nav-slot.orders, .nav-slot.account { display: none; }
  .subnav { padding: 8px 16px 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { flex-direction: column-reverse; }
  .gallery .thumbs { flex-direction: row; width: auto; }
  .gallery .thumbs button { width: 54px; }
  .hero { height: 320px; margin-bottom: -48px; border-radius: 20px; }
  .hero-slide { padding: 26px; }
  .hero-slide h1 { font-size: 27px; }
  .tile-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 96px 1fr; }
  .cart-item img { width: 96px; height: 96px; }
  .dept-drawer { grid-template-columns: 1fr; }
  .dept-close { left: auto; right: 14px; }
  .pdp-title { font-size: 21px; }
  .hero-dots { left: 26px; bottom: 16px; }
}

/* ---------------------------------------------------------------- payment hand-off
   A short bank-style authorisation screen: amount, card, progress, then a
   check mark. Keeps the shopper on the page instead of snapping to "done". */
.pay-overlay {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(12, 20, 17, 0.55); backdrop-filter: blur(3px);
  animation: payFade 160ms ease-out;
}
@keyframes payFade { from { opacity: 0 } to { opacity: 1 } }
.pay-card {
  width: min(420px, 92vw); background: #fff; border-radius: 20px; padding: 26px 26px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); text-align: center; font-family: var(--font-body);
}
.pay-brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.pay-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.pay-amount { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.pay-line { font-size: 12.5px; color: var(--ink-3); font-family: var(--font-num); }
.pay-status { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pay-status.ok { color: var(--green); }
.pay-status.bad { color: var(--danger); }
.pay-bar { height: 6px; border-radius: 99px; background: #eee6da; margin: 10px 0 12px; overflow: hidden; }
.pay-bar span { display: block; height: 100%; width: 42%; border-radius: 99px; background: var(--brand); animation: paySlide 1.1s ease-in-out infinite; }
.pay-bar span.done { width: 100%; background: var(--green); animation: none; }
.pay-bar span.stop { width: 100%; background: var(--danger); animation: none; opacity: .5; }
@keyframes paySlide { 0% { transform: translateX(-60%) } 100% { transform: translateX(240%) } }
.pay-note { font-size: 11px; color: var(--ink-3); }
.pay-check { width: 54px; height: 54px; margin: 12px auto 4px; border-radius: 50%; background: var(--green); color: #fff; font-size: 28px; display: grid; place-items: center; animation: pop 220ms ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.pay-meta { font-size: 12px; color: var(--ink-3); margin-top: 6px; font-family: var(--font-num); }
.pay-card.declined { box-shadow: 0 0 0 2px rgba(179,38,30,.18), 0 24px 60px rgba(0,0,0,.28); }
.pay-retry { margin-top: 14px; display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: 13px; font-weight: 600; }
.pay-retry:hover { background: #f7f4ee; }

/* delivery summary row + tracking modal */
.track-mini { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; font-size: 13px; }
.track-mini .muted { font-size: 12px; }
.track-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.track-dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(20,107,90,.12); }
.track-banner { border-radius: 10px; padding: 9px 12px; font-size: 13px; background: #f7f4ee; border: 1px solid var(--line); margin-bottom: 12px; }
.track-banner.ok { background: #eef7f2; border-color: #cfe7dc; color: #14543f; }

/* carrier block inside the tracking modal */
.track-number { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf7; margin-bottom: 10px; }
.tn-carrier { font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.tn-code { font-family: var(--font-num); font-size: 13px; letter-spacing: .04em; cursor: pointer; color: var(--ink-2); }
.tn-code:hover { color: var(--brand); }

/* admin dashboard blocks */
.dash-kpis { display: flex; gap: 22px; flex-wrap: wrap; padding: 10px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dash-kpis > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.dash-kpis b { font-family: var(--font-num); font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.tabs button { font-family: var(--font-body); }

#cards-table.hide-money .col-money { display: none; }

/* live card brand chip */
.card-input-wrap { position: relative; }
.card-input-wrap input { padding-right: 74px; }
.brand-badge { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--font-num); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; color: #fff; opacity: 0; transition: opacity .12s; pointer-events: none; }
.brand-badge.visa { background: #1a1f71; opacity: 1; }
.brand-badge.mastercard { background: #eb001b; opacity: 1; }
.brand-badge.amex { background: #006fcf; opacity: 1; }
.brand-badge.discover { background: #f26b21; opacity: 1; }

/* account page */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.addr-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.addr-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: #fff; }
.addr-card.default { border-color: var(--brand); box-shadow: inset 0 0 0 1px rgba(15,110,86,.15); }
.addr-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }

.ship-summary { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fbfaf7; margin-bottom: 6px; }
.addr-line { font-size: 13.5px; line-height: 1.5; }
.addr-card.pick { text-align: left; cursor: pointer; width: 100%; font: inherit; }
.addr-card.pick:hover { border-color: var(--brand); background: #fbfaf7; }

/* remaining-limit cell in the admin card table */
td.remaining { font-family: var(--font-num); font-weight: 700; color: var(--green); white-space: nowrap; }
td.remaining.low { color: #b26a00; }
td.remaining.out { color: var(--danger); }

/* deep-link target flash on the account page */
.anchor-flash { box-shadow: 0 0 0 2px var(--brand) !important; transition: box-shadow .3s; }
/* numbers should never be machine-translated or reformatted */
.price, .money-v { white-space: nowrap; }
