/*
 * Sample Powerful web app: Bolt & Bucket Supply Co., a made-up online shop.
 * Modeled on the shop template's "Workshop" look: Archivo, steel grays, a brand-colored header and
 * amber buy buttons, light and dark mode. Storefront, product page, cart and checkout, the
 * customer's account and the owner's admin.
 */
@font-face {
  font-family: "Archivo";
  src: url("../shared/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --surface: #f4f4f5;
  --panel: #ffffff;
  --subtle: #e9e9ec;
  --edge: #d4d4d8;
  --ink: #18181b;
  --muted: #52525b;
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-ink: #1d4ed8;
  --brand-soft: #dbeafe;
  --on-brand: #ffffff;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --on-accent: #1c1305;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #a16207;
  --warn-soft: #fef3c7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --shadow: 0 1px 2px rgb(24 24 27 / 0.06), 0 8px 24px rgb(24 24 27 / 0.08);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --surface: #0c0c0e;
  --panel: #18181b;
  --subtle: #232327;
  --edge: #3f3f46;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --brand: #1d4ed8;
  --brand-hover: #2563eb;
  --brand-ink: #93b4ff;
  --brand-soft: #17203a;
  --ok: #4ade80;
  --ok-soft: #12301d;
  --warn: #fbbf24;
  --warn-soft: #33270b;
  --bad: #f87171;
  --bad-soft: #3a1414;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0c0c0e;
    --panel: #18181b;
    --subtle: #232327;
    --edge: #3f3f46;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --brand: #1d4ed8;
    --brand-hover: #2563eb;
    --brand-ink: #93b4ff;
    --brand-soft: #17203a;
    --ok: #4ade80;
    --ok-soft: #12301d;
    --warn: #fbbf24;
    --warn-soft: #33270b;
    --bad: #f87171;
    --bad-soft: #3a1414;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.55 "Archivo", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-stretch: 87.5%;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
}
.muted {
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1.5px solid transparent;
  border-radius: 0.5rem;
  font: 700 0.98rem/1 "Archivo", sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--buy {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--buy:hover {
  background: var(--accent-hover);
}
.btn--brand {
  background: var(--brand);
  color: var(--on-brand);
}
.btn--brand:hover {
  background: var(--brand-hover);
}
.btn--line {
  border-color: var(--edge);
  background: var(--panel);
  color: var(--ink);
}
.btn--line:hover {
  background: var(--subtle);
}
.btn--ghost-light {
  border-color: rgb(255 255 255 / 0.7);
  color: #fff;
}
.btn--sm {
  min-height: 36px;
  padding: 0 0.75rem;
  font-size: 0.88rem;
}
.btn--block {
  width: 100%;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.badge--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge--bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.badge--brand {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.badge--plain {
  background: var(--subtle);
  color: var(--muted);
}

/* ---------- header ---------- */
.head {
  background: var(--brand);
  color: #fff;
}
.head__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.shopmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.shopmark__badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
  font-size: 0.95rem;
}
.shopmark b {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.shopmark small {
  font-size: 0.75rem;
  opacity: 0.9;
}
.search {
  display: flex;
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}
.search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 0.85rem;
  border: 0;
  color: #18181b;
  font: inherit;
  outline: none;
}
.search button {
  display: grid;
  place-items: center;
  width: 52px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}
.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  color: #fff;
  text-decoration: none;
}
.cart-btn:hover {
  background: rgb(255 255 255 / 0.12);
}
.cart-btn .icon {
  font-size: 1.45rem;
}
.cart-btn [data-cart-count] {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.cart-btn [data-cart-count="0"] {
  display: none;
}
.acct-link {
  display: none;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .acct-link {
    display: inline;
  }
}
.cats {
  border-top: 1px solid rgb(255 255 255 / 0.2);
}
.cats .wrap {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  min-height: 42px;
  align-items: center;
}
.cats a {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.92;
}
.cats a:hover,
.cats a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}
@media (max-width: 640px) {
  .shopmark small {
    display: none;
  }
}

/* ---------- storefront ---------- */
.hero {
  background: var(--brand);
  color: #fff;
}
.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 1fr;
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
}
.hero__kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-stretch: 80%;
  text-transform: uppercase;
}
.hero p.lead {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.1rem;
  opacity: 0.95;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hero__tiles img {
  width: 100%;
  border-radius: 0.6rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
}
.trust {
  border-bottom: 1px solid var(--edge);
  background: var(--panel);
}
.trust .wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
@media (min-width: 900px) {
  .trust .wrap {
    grid-template-columns: repeat(4, 1fr);
  }
}
.trust div {
  display: flex;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.trust .icon {
  margin-top: 0.15rem;
  color: var(--brand-ink);
}
.trust b {
  display: block;
}
.section {
  padding: 2.5rem 0;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section__head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.section__head a {
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.catcards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .catcards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.catcard {
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: var(--panel);
  text-decoration: none;
}
.catcard img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.catcard div {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
}
.catcard small {
  color: var(--muted);
  font-weight: 500;
}
.promo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
}
.promo .icon {
  font-size: 2rem;
}
.promo b {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}
.promo span:last-child {
  margin-left: auto;
}
.browse {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .browse {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}
.filter {
  display: grid;
  gap: 1.25rem;
}
.filter h3 {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filter__list {
  display: grid;
  gap: 2px;
}
.filter__list button {
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--ink);
  font: 500 0.95rem "Archivo", sans-serif;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.filter__list button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.filter__list small {
  opacity: 0.8;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}
.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.grid-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.select {
  min-height: 40px;
  padding: 0 0.6rem;
  border: 1px solid var(--edge);
  border-radius: 0.4rem;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: var(--panel);
}
.pcard[hidden] {
  display: none;
}
.pcard > a {
  text-decoration: none;
}
.pcard img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.pcard .badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
}
.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
  padding: 0.75rem;
}
.pcard__name {
  font-weight: 600;
}
.pcard__price {
  font-size: 1.15rem;
  font-weight: 800;
}
.pcard__price s {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.pcard__stock {
  color: var(--muted);
  font-size: 0.8rem;
}
.pcard .btn {
  margin-top: auto;
}
.empty {
  padding: 2rem;
  border: 1px dashed var(--edge);
  border-radius: 0.6rem;
  color: var(--muted);
  text-align: center;
}
.pickup {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: var(--panel);
}
.pickup__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 1.2rem;
}
.signup {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.6rem;
  background: var(--panel);
  border: 1px solid var(--edge);
}
@media (min-width: 800px) {
  .signup {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.signup form {
  display: flex;
  gap: 0.5rem;
}
.input {
  width: 100%;
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid var(--edge);
  border-radius: 0.45rem;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.input:focus {
  outline: 2px solid var(--brand);
  border-color: transparent;
}
textarea.input {
  min-height: 90px;
  padding: 0.65rem 0.8rem;
}
.field {
  display: grid;
  gap: 0.3rem;
}
.field label,
.field .label {
  font-weight: 700;
  font-size: 0.9rem;
}
.footer {
  margin-top: 3rem;
  border-top: 1px solid var(--edge);
  background: var(--panel);
}
.footer .wrap {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 800px) {
  .footer .wrap {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}
.footer h2 {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
}
.footer__base {
  border-top: 1px solid var(--edge);
}
.footer__base .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  grid-template-columns: none;
  color: var(--muted);
  font-size: 0.85rem;
}
.themes {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--edge);
  border-radius: 999px;
}
.themes button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 0.85rem "Archivo", sans-serif;
  cursor: pointer;
}
.themes button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--panel);
}

/* ---------- product page ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
}
.crumbs a {
  text-decoration: none;
}
.pdp {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .pdp {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}
.gallery__main {
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: var(--panel);
}
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.gallery__thumbs img {
  border: 2px solid var(--edge);
  border-radius: 0.45rem;
}
.gallery__thumbs img:first-child {
  border-color: var(--brand);
}
.pdp h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.rating span {
  color: var(--accent-hover);
  letter-spacing: 0.08em;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1rem;
}
.price-row b {
  font-size: 2rem;
  font-weight: 800;
}
.price-row s {
  color: var(--muted);
}
.opt {
  margin-top: 1.25rem;
}
.opt__label {
  font-weight: 700;
}
.opt__label span {
  color: var(--muted);
  font-weight: 500;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.chips button {
  min-width: 52px;
  min-height: 42px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--edge);
  border-radius: 0.45rem;
  background: var(--panel);
  color: var(--ink);
  font: 700 0.95rem "Archivo", sans-serif;
  cursor: pointer;
}
.chips button[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.chips button:disabled {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.swatch i {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgb(0 0 0 / 0.2);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--edge);
  border-radius: 0.45rem;
  background: var(--panel);
}
.qty button {
  width: 40px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.qty output {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
}
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.buy-row .btn {
  flex: 1;
  min-height: 50px;
}
.stock-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: var(--ok);
  font-weight: 700;
  font-size: 0.92rem;
}
.ship-opts {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: var(--panel);
  font-size: 0.92rem;
}
.ship-opts div {
  display: flex;
  gap: 0.6rem;
}
.ship-opts .icon {
  margin-top: 0.15rem;
  color: var(--brand-ink);
}
.acc {
  margin-top: 1.25rem;
  border-top: 1px solid var(--edge);
}
.acc details {
  border-bottom: 1px solid var(--edge);
}
.acc summary {
  padding: 0.9rem 0;
  font-weight: 700;
  cursor: pointer;
}
.acc details p,
.acc details ul {
  padding-bottom: 1rem;
  color: var(--muted);
}
.revs {
  display: grid;
  gap: 0.75rem;
}
.rev {
  padding: 1rem 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: var(--panel);
}
.rev b {
  display: block;
}
.rev .stars {
  color: var(--accent-hover);
}

/* ---------- cart and checkout ---------- */
.cart {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
}
@media (min-width: 960px) {
  .cart {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}
.cart h1 {
  font-size: 2.2rem;
}
.box {
  padding: 1.25rem;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: var(--panel);
}
.box + .box {
  margin-top: 1rem;
}
.box h2 {
  font-size: 1.3rem;
}
.line {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--edge);
}
.line:last-child {
  border-bottom: 0;
}
.line img {
  width: 76px;
  height: 76px;
  border-radius: 0.45rem;
  object-fit: cover;
}
.line b {
  display: block;
}
.line small {
  display: block;
  color: var(--muted);
}
.line__end {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
.radio {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--edge);
  border-radius: 0.5rem;
  cursor: pointer;
}
.radio:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.radio span {
  flex: 1;
}
.radio small {
  display: block;
  color: var(--muted);
}
.radios {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.totals {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.totals li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
}
.totals li.total {
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--edge);
  font-size: 1.2rem;
  font-weight: 800;
}
.code {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.code-note {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.code-note[data-ok="yes"] {
  color: var(--ok);
}
.code-note[data-ok="no"] {
  color: var(--bad);
}
.form-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
@media (min-width: 560px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.secure {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 0.5rem;
  background: var(--subtle);
  font-size: 0.9rem;
}
.ok-box {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 0.6rem;
  background: var(--ok-soft);
}

/* ---------- account ---------- */
.acct {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
}
@media (min-width: 900px) {
  .acct {
    grid-template-columns: 230px 1fr;
    align-items: start;
  }
}
.acct nav {
  display: grid;
  gap: 2px;
}
.acct nav a {
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}
.acct nav a.is-on,
.acct nav a:hover {
  background: var(--panel);
  color: var(--brand-ink);
}
.acct h1 {
  font-size: 2rem;
}
.order {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--edge);
}
@media (min-width: 700px) {
  .order {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.order:last-child {
  border-bottom: 0;
}
.order__items {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.order__items img {
  width: 52px;
  height: 52px;
  border-radius: 0.4rem;
}
.order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 0.6rem;
}
.track span {
  height: 6px;
  border-radius: 99px;
  background: var(--edge);
}
.track span.is-on {
  background: var(--ok);
}

/* ---------- admin ---------- */
.admin {
  display: grid;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .admin {
    grid-template-columns: 250px 1fr;
  }
}
.side {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--edge);
  background: var(--panel);
}
@media (min-width: 1024px) {
  .side {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}
.side .shopmark__badge {
  background: var(--brand);
  color: #fff;
}
.side nav {
  display: grid;
  gap: 1px;
}
.side nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 38px;
  padding: 0 0.65rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.side nav a .icon {
  color: var(--muted);
}
.side nav a:hover,
.side nav a.is-on {
  background: var(--subtle);
}
.side nav a.is-on .icon {
  color: var(--brand-ink);
}
.side nav .badge {
  margin-left: auto;
}
.side__group {
  margin: 0.6rem 0 0.2rem 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.main {
  min-width: 0;
  padding: 1.5rem 1rem 6rem;
}
@media (min-width: 640px) {
  .main {
    padding: 2rem 2rem 4rem;
  }
}
.main__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.main__top h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}
.main__top p {
  color: var(--muted);
}
.mob {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.mob-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  padding-bottom: 0.25rem;
}
.mob-tabs a {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.mob-tabs a.is-on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
@media (min-width: 1024px) {
  .mob,
  .mob-tabs {
    display: none;
  }
}
.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 900px) {
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}
.kpi {
  padding: 1rem;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: var(--panel);
}
.kpi span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.kpi b {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.8rem;
  font-weight: 800;
}
.kpi small {
  color: var(--ok);
  font-weight: 700;
}
.cols {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 1000px) {
  .cols {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.todo {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.todo li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--edge);
}
.todo li:last-child {
  border-bottom: 0;
}
.todo li > span:not(.badge) {
  flex: 1;
}
.todo small {
  display: block;
  color: var(--muted);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.table th,
.table td {
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid var(--edge);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.table th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.table img {
  width: 40px;
  height: 40px;
  border-radius: 0.35rem;
}
.table .input {
  min-height: 36px;
  max-width: 90px;
}
.scroll-x {
  overflow-x: auto;
}
.chipbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.chipbar button {
  min-height: 34px;
  padding: 0 0.8rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: 700 0.85rem "Archivo", sans-serif;
  cursor: pointer;
}
.chipbar button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--panel);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  margin-top: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--edge);
}
.bars div {
  position: relative;
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--brand);
}
.bars div span {
  position: absolute;
  bottom: -1.4rem;
  left: 0;
  right: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}
.packlist {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.packlist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--edge);
}
.packlist img {
  width: 44px;
  height: 44px;
  border-radius: 0.35rem;
}
.packlist span {
  flex: 1;
}
.look {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .look {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.look-preview {
  --p-brand: #1d4ed8;
  --p-accent: #f59e0b;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
}
.look-preview__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--p-brand);
  color: #fff;
  font-weight: 800;
}
.look-preview__body {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--panel);
}
.look-preview__buy {
  padding: 0.6rem;
  border-radius: 0.45rem;
  background: var(--p-accent);
  color: #1c1305;
  font-weight: 800;
  text-align: center;
}
.color-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.color-row input[type="color"] {
  width: 48px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 0.4rem;
  background: none;
  cursor: pointer;
}
.feature-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--edge);
}
.feature-list li:last-child {
  border-bottom: 0;
}
.feature-list small {
  display: block;
  color: var(--muted);
}
