/* AnyPlus storefront — chrome,shelf,product,basket/checkout/order surfaces. */
[data-storefront] .top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 248, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
[data-storefront] html[data-mode="dark"] .top {
  background: rgba(10, 10, 12, 0.82);
}
[data-storefront] .topin {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
[data-storefront] .top img {
  height: 28px;
  width: auto;
  display: block;
}
[data-storefront] .top a.brandlink {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
}
[data-storefront] .search {
  position: relative;
  flex: 1;
  max-width: 340px;
  margin-left: 10px;
}
[data-storefront] .search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--faint);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}
[data-storefront] .search input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: var(--panel);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  box-shadow: var(--e1);
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
[data-storefront] .search input::placeholder {
  color: var(--faint);
}
[data-storefront] .search input:focus {
  outline: none;
  border-color: var(--hair-2);
  box-shadow: var(--e2);
}
[data-storefront] .topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
[data-storefront] .navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
[data-storefront] .navlink:hover {
  background: var(--panel);
  color: var(--ink);
}
[data-storefront] .navlink svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-storefront] .navlink .count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--brand-on);
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(196, 80, 8, 0.3);
}
[data-storefront] .navlink .count.on {
  display: inline-flex;
}
[data-storefront] .modetoggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--hair);
  background: var(--panel);
  border-radius: var(--r-pill);
  box-shadow: var(--e1);
  transition: box-shadow 0.15s var(--ease);
}
[data-storefront] .modetoggle:hover {
  box-shadow: var(--e2);
}
[data-storefront] .modetoggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink-2);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
} /* ---------- hero ---------- */
[data-storefront] .hero {
  padding: 52px 0 8px;
  animation: qbuyin 0.4s var(--ease) forwards;
}
[data-storefront] .hero .lede {
  margin-bottom: 28px;
} /* ---------- category rail + toolbar ---------- */
[data-storefront] .toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  margin: 0 -24px 0;
  padding: 12px 24px;
  background: rgba(247, 247, 248, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: 10px;
}
[data-storefront] html[data-mode="dark"] .toolbar {
  background: rgba(10, 10, 12, 0.86);
}
[data-storefront] .cats {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - 28px),
    transparent 100%
  );
}
[data-storefront] .cats::-webkit-scrollbar {
  display: none;
}
@media (min-width: 900px) {
  /* Room to breathe: on a desk the rail wraps instead of hiding a chip behind a fade. */
  .cats {
    flex-wrap: wrap;
    overflow: visible;
    mask-image: none;
    row-gap: 7px;
  }
[data-storefront] .toolbar {
    align-items: flex-start;
  }
}
.cats button,
[data-storefront] .cats a {
  flex: none;
  border: 1px solid var(--hair);
  background: var(--panel);
  border-radius: var(--r-pill);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--e1);
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease),
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.cats button:hover,
[data-storefront] .cats a:hover {
  color: var(--ink);
  box-shadow: var(--e2);
}
.cats button.on,
[data-storefront] .cats a.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  font-weight: 560;
}
html[data-mode="dark"] .cats button.on,
[data-storefront] html[data-mode="dark"] .cats a.on {
  background: var(--ink);
  color: #0a0a0c;
}
[data-storefront] .sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
[data-storefront] .sort label {
  font-size: 12.5px;
  color: var(--faint);
}
[data-storefront] .sort select {
  height: 34px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: var(--panel);
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: var(--e1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C6C75' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
[data-storefront] .sort select:focus {
  outline: none;
  box-shadow: var(--e2);
} /* ---------- product grid ---------- */
[data-storefront] .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
[data-storefront] .grid.productgrid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .grid.productgrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .grid.productgrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}
[data-storefront] .pcard {
  background: var(--panel);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--e1);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease);
}
[data-storefront] .pcard:hover {
  box-shadow: var(--e3);
  transform: translateY(-3px);
}
[data-storefront] .pcard:active {
  transform: translateY(-1px);
}
[data-storefront] .pbody {
  padding: 16px 17px 14px;
  flex: 1;
}
[data-storefront] .pname {
  font-size: 15.5px;
  letter-spacing: -0.012em;
  font-weight: 640;
  margin: 0 0 4px;
  line-height: 1.3;
}
[data-storefront] .pname a {
  display: inline-block;
  padding: 11px 0;
  margin: -11px 0;
  min-height: 40px;
}
[data-storefront] .pdesc {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-storefront] .pmeta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 13px;
} /* tier list + inline add */
[data-storefront] .tiers {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hair);
  border-top: 1px solid var(--hair);
}
[data-storefront] .tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px 17px;
  background: var(--panel);
  text-decoration: none;
  transition: background-color 0.14s var(--ease);
}
[data-storefront] .tier:hover {
  background: var(--panel-2);
}
[data-storefront] .tier .term {
  font-size: 13.5px;
  font-weight: 550;
  display: block;
}
[data-storefront] .tier .own {
  font-size: 11.5px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}
[data-storefront] .tier .price {
  font-size: 14px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
[data-storefront] .tier .add {
  width: 40px;
  height: 40px;
  border-radius: var(--r-xs);
  border: 1px solid var(--hair-2);
  background: var(--panel);
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background-color 0.14s var(--ease),
    color 0.14s var(--ease),
    border-color 0.14s var(--ease);
}
[data-storefront] .tier .add:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-on);
}
[data-storefront] .tier .add svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
}
.pcard.sold .tier .term,
[data-storefront] .pcard.sold .tier .price {
  color: var(--faint);
}
[data-storefront] .pcard.sold .visual {
  filter: grayscale(0.9);
}
[data-storefront] .pfoot {
  border-top: 1px solid var(--hair);
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  min-height: 46px;
}
[data-storefront] .pfoot a {
  font-size: 12.5px;
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 15px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
[data-storefront] .pfoot a:hover {
  text-decoration: underline;
}
[data-storefront] .catcount {
  margin-left: 4px;
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
[data-storefront] .soldlabel {
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}
[data-storefront] .addform {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
} /* ---------- chips ---------- */
[data-storefront] .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--panel-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  white-space: nowrap;
}
[data-storefront] .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}
[data-storefront] .dot.ok {
  background: var(--ok);
}
[data-storefront] .dot.warn {
  background: var(--warn);
}
[data-storefront] .dot.stop {
  background: var(--stop);
}
[data-storefront] .chip.ok {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 22%, transparent);
  color: var(--ok);
}
[data-storefront] .chip.warn {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 24%, transparent);
  color: var(--warn);
}
[data-storefront] .chip.stop {
  background: var(--stop-soft);
  border-color: color-mix(in srgb, var(--stop) 22%, transparent);
  color: var(--stop);
}
[data-storefront] .form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}
[data-storefront] .form svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke: var(--faint);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
} /* ---------- product detail ---------- */
[data-storefront] .pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}
[data-storefront] .pdp .visual {
  aspect-ratio: 1;
  border-radius: var(--r);
  box-shadow: var(--e2);
  border: 1px solid var(--hair);
  display: grid;
  place-items: center;
  background: var(--panel-2);
  max-width: 220px;
}
[data-storefront] .pdp .visual .m {
  width: 160px;
  height: 160px;
  border-radius: 28px;
}
[data-storefront] .pdp .visual .m svg {
  width: 88px;
  height: 88px;
}
[data-storefront] .pdp h1 {
  margin-bottom: 8px;
}
[data-storefront] .price-lead {
  font-size: 30px;
  font-weight: 660;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 20px 0 2px;
}
[data-storefront] .price-lead small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 8px;
}
[data-storefront] .optlabel {
  font-size: 13px;
  font-weight: 600;
  margin: 26px 0 9px;
}
[data-storefront] .optlist {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  overflow: hidden;
}
[data-storefront] .opt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  background: var(--panel);
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: background-color 0.14s var(--ease);
}
[data-storefront] .opt:hover {
  background: var(--panel-2);
}
[data-storefront] .opt.on {
  background: var(--brand-soft);
  box-shadow: inset 3px 0 0 var(--brand);
}
[data-storefront] .opt .term {
  font-size: 14px;
  font-weight: 560;
  display: block;
}
[data-storefront] .opt .own {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}
[data-storefront] .opt .price {
  font-size: 14.5px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}
[data-storefront] .qtyrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
[data-storefront] .buyrow {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
} /* ---------- buttons ---------- */
[data-storefront] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hair-2);
  background: var(--panel);
  font-size: 14.5px;
  font-weight: 560;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--e1);
  transition:
    box-shadow 0.15s var(--ease),
    background-color 0.15s var(--ease),
    transform 0.1s var(--ease);
}
[data-storefront] .btn:hover {
  box-shadow: var(--e2);
}
[data-storefront] .btn:active {
  transform: translateY(1px);
  box-shadow: var(--in1);
}
[data-storefront] .btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-storefront] .btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  font-weight: 620;
  box-shadow: var(--e1);
}
[data-storefront] .btn.primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  box-shadow: var(--e2);
}
[data-storefront] .btn.primary:active {
  transform: translateY(1px);
  box-shadow: var(--e1);
}
[data-storefront] .btn.block {
  width: 100%;
}
[data-storefront] .btn.lg {
  height: 52px;
  font-size: 15.5px;
  border-radius: var(--r-sm);
}
[data-storefront] .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
[data-storefront] .btnrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
[data-storefront] .bname {
  font-size: 13.5px;
  font-weight: 580;
  display: block;
}
[data-storefront] .bopt {
  font-size: 11.5px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
[data-storefront] .bqty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  border: 1px solid var(--hair);
  border-radius: var(--r-xs);
  background: var(--panel);
}
[data-storefront] .bqty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1;
}
[data-storefront] .bqty button:hover {
  background: var(--panel-2);
}
[data-storefront] .bqty span {
  min-width: 24px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
[data-storefront] .bprice {
  font-size: 14px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
[data-storefront] .bremove {
  display: block;
  margin-top: 6px;
  margin-left: auto;
  font-size: 11.5px;
  color: var(--faint);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 0;
}
[data-storefront] .bremove:hover {
  color: var(--stop);
} /* ---------- full basket page ---------- */
[data-storefront] .bpage {
  max-width: 900px;
}
[data-storefront] .bpage .row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
[data-storefront] .bpage .row .bthumb {
  width: 64px;
  height: 64px;
}
[data-storefront] .bpage .row .bthumb svg {
  width: 32px;
  height: 32px;
}
[data-storefront] .bpage .row .bprice {
  font-size: 15px;
} /* ---------- receipt ---------- */
[data-storefront] .receipt {
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: var(--e2);
  overflow: hidden;
}
[data-storefront] .rhead {
  padding: 20px;
  border-bottom: 1px dashed var(--hair-2);
}
[data-storefront] .rhead .t {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 10px;
}
[data-storefront] .rcode {
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: var(--well);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  box-shadow: var(--in1);
  display: inline-block;
}
[data-storefront] .rline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  align-items: center;
}
[data-storefront] .rline .k {
  color: var(--muted);
}
[data-storefront] .rline .v {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
[data-storefront] .rtotal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 20px;
  border-top: 2px solid var(--ink);
  font-size: 17px;
  font-weight: 660;
  background: var(--panel-2);
}
[data-storefront] .rtotal .v {
  font-variant-numeric: tabular-nums;
}
[data-storefront] .rprod {
  display: flex;
  gap: 13px;
  align-items: center;
}
[data-storefront] .codeitem {
  padding: 18px 20px;
  border-bottom: 1px solid var(--hair);
}
[data-storefront] .codeitem:last-child {
  border-bottom: 0;
}
[data-storefront] .codebox {
  font-family: var(--mono);
  font-size: 14.5px;
  word-break: break-all;
  background: var(--well);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  margin: 9px 0 11px;
  box-shadow: var(--in1);
}
[data-storefront] .codebox.hidden {
  filter: blur(6px);
  user-select: none;
} /* ---------- pay ---------- */
[data-storefront] .paybox {
  background: var(--panel);
  border-radius: var(--r);
  padding: 26px;
  text-align: center;
  box-shadow: var(--e3);
}
[data-storefront] .qr {
  width: 236px;
  height: 236px;
  margin: 0 auto 18px;
  border-radius: var(--r-sm);
  background: #fff;
  padding: 13px;
  box-shadow: var(--e3);
}
[data-storefront] .qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
[data-storefront] .apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 18px;
}
[data-storefront] .apps button {
  border: 1px solid var(--hair);
  background: var(--panel);
  border-radius: var(--r-sm);
  height: 46px;
  font-size: 12.5px;
  font-weight: 560;
  cursor: pointer;
  box-shadow: var(--e1);
}
[data-storefront] .apps button:hover {
  box-shadow: var(--e2);
}
[data-storefront] .timer {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
} /* ---------- panels / form ---------- */
[data-storefront] .panel {
  border-radius: var(--r);
  background: var(--panel);
  padding: 18px 19px;
  box-shadow: var(--e1);
  border-left: 3px solid var(--hair-2);
}
[data-storefront] .panel.warn {
  background: var(--warn-soft);
  border-left-color: var(--warn);
}
[data-storefront] .panel.ok {
  background: var(--ok-soft);
  border-left-color: var(--ok);
}
[data-storefront] .panel.accent {
  border-left-color: var(--brand);
}
[data-storefront] .panel p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
}
[data-storefront] .panel h3 {
  margin-bottom: 2px;
}
[data-storefront] .field {
  margin-bottom: 16px;
}
[data-storefront] .field label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 7px;
  font-weight: 560;
}
[data-storefront] .field .hint {
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
}
[data-storefront] .field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-sm);
  background: var(--panel);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  box-shadow: var(--e1);
  transition:
    box-shadow 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
[data-storefront] .field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
[data-storefront] .field input::placeholder {
  color: var(--faint);
}
[data-storefront] .field .opt {
  font-size: 12px;
  color: var(--faint);
  font-weight: 400;
  margin-left: 6px;
}
[data-storefront] .col2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
} /* ---------- footer ---------- */
/* ---------- footer (desk only) ---------- */
/* An installed app has no browser chrome to justify a footer,and on a phone the tab bar
   already carries navigation; the footer is a wide-browser artifact and nothing else. */
[data-storefront] .foot {
  display: none;
  margin-top: 72px;
  border-top: 1px solid var(--hair);
  background: var(--panel);
}
@media (min-width: 900px) {
  .foot {
    display: block;
  }
}
[data-storefront] html[data-standalone="1"] .foot {
  display: none;
}
[data-storefront] .footbar {
  padding: 16px 0;
  font-size: 12.5px;
  color: var(--faint);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
[data-storefront] .footlink {
  border: 0;
  background: none;
  padding: 10px 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-storefront] .footlink:hover {
  color: var(--ink);
}
[data-storefront] .paymarks {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
[data-storefront] .paymarks span {
  font-size: 11px;
  font-weight: 560;
  color: var(--ink-2);
  background: var(--panel-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-xs);
  padding: 4px 8px;
} /* ---------- crumbs / toast ---------- */
[data-storefront] .crumbs {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
  margin: 22px 0 18px;
  flex-wrap: wrap;
}
[data-storefront] .crumbs a {
  color: var(--muted);
  text-decoration: none;
  padding: 16px 0;
  margin: -16px 0;
  border-radius: var(--r-xs);
  display: inline-block;
  min-height: 40px;
}
[data-storefront] .crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
[data-storefront] .rowflex {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
[data-storefront] .grow {
  flex: 1;
  min-width: 0;
}
[data-storefront] .mt {
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
[data-storefront] .pcard:hover {
    transform: none;
  }
}
@media (max-width: 980px) {
  .pdp {
    grid-template-columns: 1fr;
    gap: 28px;
  }
[data-storefront] .pdp .visual {
    aspect-ratio: 4/3;
  }
}
@media (max-width: 680px) {
  .wrap {
    padding: 0 16px;
  }
[data-storefront] .search {
    max-width: none;
  }
[data-storefront] .search input {
    display: none;
  }
[data-storefront] .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
[data-storefront] .grid.productgrid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
[data-storefront] .col2 {
    grid-template-columns: 1fr;
  }
[data-storefront] .hero {
    padding: 32px 0 4px;
  }
[data-storefront] h1 {
    font-size: 25px;
  }
[data-storefront] .toolbar {
    flex-wrap: wrap;
    margin: 0 -16px 0;
    padding: 10px 16px;
  }
[data-storefront] .cats {
    order: 2;
    width: 100%;
  }
} /* ==========================================================================
     Storefront build (Round A) — additions to the approved sketch.
     Tokens above are the storefront's own; nothing here is shared with the console.
     ========================================================================== */

/* the 16 sprite marks: the tint is a fact about the vendor's mark{--mark:#10A37F}/* the accessibility floor is 44px; the sketch's 40/42px controls are raised here */
[data-storefront] .navlink {
  height: 44px;
}
[data-storefront] .modetoggle {
  width: 44px;
  height: 44px;
}
[data-storefront] .search input {
  height: 44px;
}
.cats button,
[data-storefront] .cats a {
  min-height: 44px;
}
[data-storefront] .sort select {
  height: 44px;
}
[data-storefront] .tier .add {
  width: 44px;
  height: 44px;
}
[data-storefront] .crumbs a {
  min-height: 44px;
}
[data-storefront] .brandlink {
  min-height: 44px;
} /* an inert control keeps its contrast; only the cursor and the assistive state say so */
[data-storefront] .btn:disabled {
  opacity: 1;
  cursor: not-allowed;
}
[data-storefront] .navlink:disabled {
  cursor: default;
  color: var(--muted);
}
[data-storefront] .linklike {
  cursor: default;
} /* the mode control carries both glyphs; the attribute picks one,no script required */
[data-storefront] .mode-moon {
  display: none;
}
[data-storefront] html[data-mode="dark"] .mode-sun {
  display: none;
}
[data-storefront] html[data-mode="dark"] .mode-moon {
  display: block;
}
[data-storefront] .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
[data-storefront] .count {
  display: inline-flex;
} /* Round A: the count is always shown (it is 0 until the basket exists),and every
     inert footer/panel action reads as text,not as a dead link. */
[data-storefront] .navlink .count {
  display: inline-flex;
}
[data-storefront] .pfoot .linklike {
  font-size: 12.5px;
  color: var(--faint);
  padding: 15px 0;
  display: inline-flex;
  align-items: center;
}
[data-storefront] .empty {
  text-align: center;
  padding: 44px 20px;
}
[data-storefront] .empty h3 {
  margin-bottom: 6px;
}
[data-storefront] .empty p {
  margin: 0;
}
[data-storefront] .pdpmeta {
  margin-top: 16px;
}
[data-storefront] .btnrow {
  margin-top: 22px;
}
[data-storefront] .pname a {
  min-height: 44px;
} /* Round A mobile: the wordmark and the two controls fit a 390px header once the
     labels collapse to their icons (the accessible names are on the controls). */
@media (max-width: 680px) {
  .topin {
    gap: 8px;
  }
[data-storefront] .navlink {
    padding: 0 9px;
  }
[data-storefront] .navlink .navlabel {
    display: none;
  }
}
[data-storefront] .top a.brandlink {
  min-height: 44px;
}
[data-storefront] .btn.primary {
  background-color: var(--brand);
} /* ==========================================================================
     Storefront build (Round B) — the transaction surface.
     Same tokens; the basket,checkout,pay page and order page reuse the sketch's
     receipt and form primitives. Nothing here is shared with the console.
     ========================================================================== */

/* a card's add control is a form so the basket works without JavaScript; the form
     itself must not add a grid cell{display:contents}/* product page: a labelled number input replaces the display-only stepper */
[data-storefront] .qtyfield input {
  width: 86px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-sm);
  background: var(--panel);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  box-shadow: var(--e1);
  font-variant-numeric: tabular-nums;
}
[data-storefront] .qtyfield input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
} /* basket page — one row is one form,so every control works with JavaScript off */
[data-storefront] .blist {
  margin-top: 22px;
  border-top: 1px solid var(--hair);
}
[data-storefront] .bline {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  margin: 0;
}
[data-storefront] .bline .bthumb {
  width: 64px;
  height: 64px;
}
[data-storefront] .bline .bthumb svg {
  width: 32px;
  height: 32px;
}
[data-storefront] .binfo {
  min-width: 0;
}
[data-storefront] .binfo .bname {
  font-size: 15px;
  text-decoration: none;
}
[data-storefront] .binfo .bname:hover {
  text-decoration: underline;
}
[data-storefront] .bqty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--panel);
  padding: 5px;
}
[data-storefront] .bqty button {
  min-width: 34px;
  height: 34px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1;
  border-radius: var(--r-xs);
}
[data-storefront] .bqty button:hover {
  background: var(--well);
}
[data-storefront] .bqty input {
  width: 58px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--hair);
  border-radius: var(--r-xs);
  background: var(--panel);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
[data-storefront] .bqty .qupdate {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--hair);
}
[data-storefront] .bline .bprice {
  font-size: 15px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
[data-storefront] .bline .bremove {
  margin: 0;
}
[data-storefront] .btotal {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 0;
  font-size: 15px;
  color: var(--muted);
}
[data-storefront] .btotal .v {
  font-size: 22px;
  font-weight: 660;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
[data-storefront] .bbuttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
} /* checkout — the form and a receipt summary,the sketch's two-column pdp grid */
[data-storefront] .copage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
[data-storefront] .coform {
  margin: 0;
}
[data-storefront] .coitems {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 6px;
} /* pay page — the scanner apps are labels,not dead buttons */
[data-storefront] .apps .payapp {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair);
  background: var(--panel);
  border-radius: var(--r-sm);
  min-height: 46px;
  font-size: 12.5px;
  font-weight: 560;
  box-shadow: var(--e1);
} /* order page */
[data-storefront] .orderchips {
  margin-bottom: 16px;
}
[data-storefront] .codeshead {
  margin: 30px 0 14px;
}
[data-storefront] .codecard {
  margin-bottom: 12px;
}
[data-storefront] .codehead {
  margin-bottom: 2px;
}
[data-storefront] .codebox-empty {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  background: var(--well);
  box-shadow: none;
}
[data-storefront] .linkstrong {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
}
[data-storefront] .linkstrong:hover {
  text-decoration: underline;
} /* lookup */
[data-storefront] .lookupform {
  max-width: 420px;
  margin-top: 22px;
}

@media (max-width: 860px) {
  .copage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 680px) {
  .bline {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-auto-rows: auto;
    row-gap: 10px;
  }
[data-storefront] .bline .bthumb {
    width: 52px;
    height: 52px;
  }
[data-storefront] .bqty {
    grid-column: 1 / -1;
    justify-self: start;
  }
[data-storefront] .bline .bprice {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
[data-storefront] .bline .bremove {
    grid-column: 1 / -1;
    justify-self: start;
  }
} /* Round B accessibility pass,measured at 390px: the header's icon-only nav link and
     the crumb links were narrower than 44px,the basket stepper was 34px,and an inline
     prose link had a 16px box. Each is now a 44px target; the prose link keeps its
     visual position with symmetric padding and a matching negative margin. */
[data-storefront] .navlink {
  min-width: 44px;
}
[data-storefront] .crumbs a {
  min-width: 44px;
  text-align: center;
}
[data-storefront] .binfo .bname {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
[data-storefront] .bqty button {
  min-width: 44px;
  height: 44px;
}
[data-storefront] .bqty input {
  height: 44px;
}
[data-storefront] .bqty .qupdate {
  height: 44px;
}
[data-storefront] .linkstrong {
  display: inline-block;
  padding: 14px 0;
  margin: -14px 0;
}
[data-storefront] .bline .bremove {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
} /* ---------- quick buy dialog (w3k-style product popup) ---------- */
[data-storefront] dialog.qbuy {
  width: min(620px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--e4);
  overflow: hidden;
}
[data-storefront] dialog.qbuy::backdrop {
  background: rgba(12, 12, 16, 0.46);
  backdrop-filter: blur(2px);
}
[data-storefront] dialog.qbuy[open] {
  animation: qbuyin 0.18s var(--ease);
}
@keyframes qbuyin {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
[data-storefront] to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.qbuy[open] {
    animation: none;
  }
}
[data-storefront] .pcard:hover .visual .m {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--e3);
}
[data-storefront] .pdp .visual .m {
  transition: transform 0.22s var(--ease);
} /* ---------- w3k-style smaller cards ---------- */
[data-storefront] .grid {
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 16px;
}
[data-storefront] .pcard {
  border-radius: 18px;
}
[data-storefront] .pcard .visual {
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  background: var(--panel-2);
}
[data-storefront] .pcard .visual .m {
  width: 96px;
  height: 96px;
  border-radius: 20px;
}
[data-storefront] .pcard .visual .m svg {
  width: 56px;
  height: 56px;
}
[data-storefront] .pcard .pbody {
  padding: 12px 14px 10px;
}
[data-storefront] .pcard .pname {
  font-size: 14.5px;
  margin-bottom: 3px;
}
[data-storefront] .pcard .pdesc {
  font-size: 12px;
  margin-bottom: 9px;
  -webkit-line-clamp: 2;
}
[data-storefront] .pcard .pmeta {
  margin-bottom: 10px;
  gap: 6px;
}
[data-storefront] .pcard .tier {
  padding: 9px 14px;
  gap: 8px;
}
[data-storefront] .pcard .tier .term {
  font-size: 13px;
}
[data-storefront] .pcard .tier .own {
  font-size: 11px;
}
[data-storefront] .pcard .tier .price {
  font-size: 13px;
}
[data-storefront] .pcard .tier .add {
  width: 36px;
  height: 36px;
}
[data-storefront] .pcard .tier .add svg {
  width: 14px;
  height: 14px;
}
[data-storefront] .pcard .pfoot {
  min-height: 40px;
  padding: 0 14px;
}
[data-storefront] .pcard .pfoot .addbtn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--hair-2);
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
[data-storefront] .pcard .pfoot .addbtn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
[data-storefront] .pcard .pfoot a {
  font-size: 12.5px;
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
}
[data-storefront] .pcard .qbuy-open {
  height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
}
@media (max-width: 680px) {
  .grid:not(.productgrid) {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@keyframes herofloat {
  0%,
  100% {
    transform: translateY(0);
  }
[data-storefront] 50% {
    transform: translateY(-8px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
} /* ==========================================================================
     The install surface (Phase A of the PWA round). Everything here is hidden
     until the browser says it can install — a JavaScript-off buyer sees exactly
[data-storefront] the header they had before {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 560;
  cursor: pointer;
  box-shadow: var(--e1);
  transition:
    box-shadow 0.15s var(--ease),
    transform 0.1s var(--ease);
}/* The worker says a new version is waiting; the page offers the reload rather
     than reloading under a buyer mid-checkout. */
[data-storefront] .swupdate {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 10px 12px 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  box-shadow: var(--e4);
  font-size: 13.5px;
}
[data-storefront] .swupdate[hidden] {
  display: none;
}
[data-storefront] .swupdate button {
  border: 0;
  border-radius: var(--r-pill);
  padding: 6px 12px;
  cursor: pointer;
  background: var(--brand);
  color: var(--brand-on);
  font: inherit;
  font-weight: 640;
  font-size: 13px;
}
[data-storefront] .swupdate .swdismiss {
  background: transparent;
  color: inherit;
  font-size: 17px;
  line-height: 1;
  padding: 2px 6px;
  opacity: 0.72;
}
[data-storefront] .swupdate .swdismiss:hover {
  opacity: 1;
} /* An installed app owns the bottom safe area; a browser tab does not. */
[data-storefront] body {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
} /* ==========================================================================
     Phase B — the app-store browse surface. All of it is links and forms;
[data-storefront] no tile {
    display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:20px;margin-bottom:8px;
  }/* ---------- listing page ---------- */
[data-storefront] .pdp .visual .m {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}
[data-storefront] .pdp .visual .m svg {
  width: 52px;
  height: 52px;
}
[data-storefront] .sellerline {
  font-size: 13px;
  color: var(--muted);
  margin: -3px 0 12px;
}
[data-storefront] .whatlist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
[data-storefront] .whatlist li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.45;
}
[data-storefront] .whatlist li:first-child {
  border-top: 0;
}
[data-storefront] .whatlist .k {
  width: 84px;
  flex: none;
  color: var(--muted);
}
[data-storefront] .whatlist .v {
  color: var(--ink-2);
}
[data-storefront] .infotable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
[data-storefront] .infotable th {
  text-align: left;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
  width: 120px;
  padding: 8px 12px 8px 0;
  vertical-align: top;
}
[data-storefront] .infotable td {
  font-size: 13px;
  padding: 8px 0;
  border-top: 1px solid var(--hair);
}
.infotable tr:first-child th,
[data-storefront] .infotable tr:first-child td {
  border-top: 0;
} /* the add bar is a second *view* of one form,never a second submission path */
[data-storefront] .stickyadd {
  display: none;
} /* ---------- mobile chrome: tab bar,icon search,safe areas ---------- */
[data-storefront] .searchlink {
  display: none;
}
[data-storefront] .tabbar {
  display: none;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
[data-storefront] .top .search {
    display: none;
  }
[data-storefront] .searchlink {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: var(--r-pill);
    border: 1px solid var(--hair);
    background: var(--panel);
    box-shadow: var(--e1);
    text-decoration: none;
  }
[data-storefront] .searchlink svg {
    width: 17px;
    height: 17px;
    stroke: var(--ink-2);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
  }
[data-storefront] .topnav {
    margin-left: 0;
  }
[data-storefront] .topnav .navlink {
    display: none;
  }
[data-storefront] .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--hair);
    padding: 0 4px env(safe-area-inset-bottom);
  }
[data-storefront] .tab {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 58px;
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 560;
    color: var(--muted);
  }
[data-storefront] .tab svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
[data-storefront] .tab[aria-current="page"] {
    color: var(--brand-ink);
  }
[data-storefront] .tabcount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--r-pill);
    background: var(--brand);
    color: var(--brand-on);
    font-size: 9.5px;
    font-weight: 700;
  } /* Fixed,not sticky: at the end of the form a sticky element has already scrolled
       past its containing block and never appears. The bar rides above the tab bar
       (58px) and the page reserves room for both at the bottom. */
[data-storefront] .stickyadd {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom));
    z-index: 45;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 16px;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--hair);
    box-shadow: 0 -1px 0 rgba(16, 16, 22, 0.03);
  }
[data-storefront] .pdp {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
[data-storefront] .stickyadd .btn {
    flex: none;
  }
[data-storefront] .stickyprice {
    margin-right: auto;
    font-size: 17px;
    font-weight: 660;
    font-variant-numeric: tabular-nums;
  }
[data-storefront] .stickyprice small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
  }
[data-storefront] .swupdate {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
} /* a payment screen never moves on its own */
body.no-anim *,
body.no-anim *::before,
[data-storefront] body.no-anim *::after {
  transition: none !important;
  animation: none !important;
} /* ==========================================================================
     The editorial shelf (Phase C). One product per hairline row,the price set
     as a figure,one action. No posters,no rails — at four products a rail is
     an empty corridor,and a card grid shouts louder than the catalogue.
     ========================================================================== */
[data-storefront] .ed {
  max-width: none;
}
[data-storefront] .edhero {
  padding: 52px 0 6px;
  border-bottom: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  animation: qbuyin 0.4s var(--ease) forwards;
}
@media (min-width: 900px) {
  .edhero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    column-gap: 56px;
    align-items: start;
  }
  .edhero > .eyebrow,
  .edhero > h1,
  .edhero > .lede,
[data-storefront] .edhero > .edsearch {
    grid-column: 1;
  }
[data-storefront] .edhero > .edtrust {
    grid-column: 2;
    grid-row: 1 / span 4;
    padding-top: 34px;
  }
}
[data-storefront] .edtrust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 46ch;
}
[data-storefront] .edtrust li {
  display: grid;
  gap: 2px;
}
[data-storefront] .edtrust b {
  font-size: 13px;
  font-weight: 600;
}
[data-storefront] .edtrust span {
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 899px) {
  .edtrust {
    display: none;
  }
}
[data-storefront] .edhero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
[data-storefront] .edhero h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 5.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 620;
}
[data-storefront] .edhero .lede {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
}
[data-storefront] .plist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}
[data-storefront] .pinfo {
  min-width: 0;
  flex: 1;
}
[data-storefront] .pname {
  margin: 0;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
[data-storefront] .pname a {
  color: inherit;
  text-decoration: none;
}
[data-storefront] .pname a:hover {
  color: var(--brand-ink);
}
[data-storefront] .pamount {
  flex: none;
  text-align: right;
  min-width: 104px;
}
[data-storefront] .pamount .price {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
[data-storefront] .pamount small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
[data-storefront] .prowcta {
  flex: none;
}
[data-storefront] .prowcta .btn {
  height: 34px;
  padding: 0 15px;
  font-size: 12.5px;
  border-radius: var(--r-pill);
}
[data-storefront] .prowcta.solid {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  padding: 7px 13px;
}
[data-storefront] .ednote {
  margin: 26px 0 8px;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 62ch;
}
@media (max-width: 520px) {
  .edhero {
    padding: 34px 0 4px;
  }
[data-storefront] .pamount .price {
    font-size: 14.5px;
  }
[data-storefront] .prowcta .btn {
    padding: 0 12px;
  }
} /* The listing keeps its structure and borrows the shelf's type scale. */
[data-storefront] .pdp .price-lead {
  font-size: clamp(24px, 4.4vw, 32px);
  letter-spacing: -0.03em;
}
[data-storefront] .pdp h1 {
  letter-spacing: -0.035em;
  font-weight: 620;
} /* ---------- app chrome: back,install card,help sheet ---------- */
/* A back control exists only where the screen is below the shelf: an installed app has no
   browser button,so the way out has to be in the bar. */
[data-storefront] .backlink {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 2px 0 -8px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  text-decoration: none;
  flex: none;
}
[data-storefront] .backlink:hover {
  background: var(--panel);
}
[data-storefront] .backlink svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
} /* The install offer lives on the shelf,not in the app bar: chrome that asks to be
   installed competes with the thing it is asking you to install. */
[data-storefront] .installcard {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--e1);
}
[data-storefront] .installcard[hidden] {
  display: none;
}
[data-storefront] .installcard b {
  display: block;
  font-size: 13.5px;
  font-weight: 620;
}
[data-storefront] .installcard span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
[data-storefront] .installcard .btn {
  margin-left: auto;
  flex: none;
}
[data-storefront] dialog.sheet {
  padding: 22px;
}
[data-storefront] dialog.sheet h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
[data-storefront] dialog.sheet .whatlist {
  margin: 0 0 18px;
}
[data-storefront] dialog.sheet .whatlist .k {
  width: 96px;
}

/* ---------- professional card grid (stance 004) ---------- */
[data-storefront] .cardgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 0 28px;
}
@media (min-width: 768px) {
  .cardgrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  .cardgrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
[data-storefront] .card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-storefront] .card.sold {
  opacity: 0.6;
}
[data-storefront] .cardmark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--hair);
  margin-bottom: 4px;
}
[data-storefront] .cardmark .m svg {
  width: 40px;
  height: 40px;
}
[data-storefront] .cardname {
  font-size: 14.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}
[data-storefront] .cardname a {
  color: var(--ink);
  text-decoration: none;
}
[data-storefront] .cardname a:hover {
  text-decoration: underline;
}
[data-storefront] .cardmeta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-storefront] .cardfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--hair);
}
[data-storefront] .cardprice {
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
[data-storefront] .cardstate {
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}
[data-storefront] .cardstate .chip {
  font-size: 10.5px;
  padding: 2px 7px;
}
[data-storefront] .cardadd {
  margin: 0;
}
[data-storefront] .cardplus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hair-2);
  background: var(--panel);
  color: var(--ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
[data-storefront] .cardplus:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* --- Mobile-first touch & focus (added) --- */
[data-storefront] button, [data-storefront] .btn, [data-storefront] .navlink, [data-storefront] .cardplus, [data-storefront] .opt, [data-storefront] .tab {
  min-height: 44px;
  min-width: 44px;
}
[data-storefront] button:focus-visible, [data-storefront] .btn:focus-visible, [data-storefront] a:focus-visible, [data-storefront] input:focus-visible, [data-storefront] select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
html, body { overflow-x: hidden; }
.wrap { max-width: 100%; }
[data-storefront] button:active, [data-storefront] .btn:active, [data-storefront] .cardplus:active, [data-storefront] .opt:active {
  transform: scale(0.96);
  transition: transform 0.08s ease;
}

[data-storefront] .toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 70;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 560;
  box-shadow: var(--e4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
[data-storefront] .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-storefront] .skeleton {
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel) 50%, var(--panel-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

