:root {
  color-scheme: light;
  --bg: #f4f6f2;
  --surface: #ffffff;
  --surface-strong: #fff8e9;
  --text: #20241f;
  --muted: #657064;
  --line: #dde5d8;
  --primary: #1d7c65;
  --primary-dark: #125946;
  --accent: #e45f3d;
  --gold: #e9ae2f;
  --danger: #b43b40;
  --shadow: 0 16px 40px rgba(31, 42, 31, 0.1);
  --radius: 8px;
  --radius-small: 6px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1d0f24;
  --surface: #2a1735;
  --surface-strong: #3a1d46;
  --text: #fff8fb;
  --muted: #d7b9cf;
  --line: #51305e;
  --primary: #22d3c5;
  --primary-dark: #8bf3ec;
  --accent: #ff5f9b;
  --gold: #ffd75e;
  --danger: #ff8fa0;
  --soft-blue: #432153;
  --coral: #ff8b8b;
  --shadow: 0 18px 48px rgba(10, 3, 14, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9faf6 0%, var(--bg) 46%, #eef4ee 100%);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.narrow-shell {
  width: min(720px, 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.theme-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-strong);
  font-weight: 900;
  white-space: nowrap;
}

.brand,
.topbar-actions,
.panel-header,
.filters,
.search-row,
.cart-row,
.quantity-control,
.flow-step,
.order-meta,
.tabs,
.admin-product,
.admin-product-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}

.brand h1,
.toolbar h2,
.panel-header h2,
.login-card h2,
.success-card h1,
.success-card h2 {
  margin: 0;
  line-height: 1.05;
}

.brand h1 {
  font-size: clamp(20px, 3vw, 28px);
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar-actions {
  gap: 10px;
  flex-shrink: 0;
}

.session-pill {
  max-width: min(320px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 900;
}

.button,
.icon-button,
.filter-chip,
.stepper {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.button.primary {
  width: 100%;
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.button.secondary {
  background: var(--surface-strong);
}

.icon-button,
.stepper {
  display: grid;
  place-items: center;
  width: 42px;
  padding: 0;
}

.icon-button.danger {
  color: var(--danger);
}

.button:hover,
.icon-button:hover,
.filter-chip:hover,
.stepper:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 16px;
  align-items: start;
}

.shop-area,
.side-panel,
.admin-dashboard,
.admin-grid,
.order-admin-panel {
  min-width: 0;
}

.shop-area,
.panel-section,
.login-card,
.success-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.shop-area {
  padding: 16px;
}

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar h2,
.panel-header h2 {
  font-size: 22px;
}

.filters {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-chip {
  padding: 0 13px;
  font-weight: 800;
}

.filter-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.search-row {
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  flex: 1 1 260px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.notice {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #f0cc80;
  border-radius: var(--radius-small);
  background: #fff6df;
  color: #714e06;
  font-size: 14px;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.product-card {
  overflow: hidden;
  min-height: 388px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  border-color: rgba(0, 168, 168, 0.32);
  box-shadow: 0 16px 32px rgba(18, 33, 63, 0.12);
  transform: translateY(-2px);
}

.product-card.sold-out {
  opacity: 0.78;
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px;
  aspect-ratio: 1.12 / 1;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 212, 71, 0.26), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 250, 255, 0.9)),
    var(--surface-strong);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(18, 33, 63, 0.06);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 14px 18px rgba(18, 33, 63, 0.12));
}

.admin-product img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.fallback-art {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 58%, var(--gold) 100%);
}

.product-image.image-missing img {
  display: none;
}

.product-image.image-missing .fallback-art,
.feature-card-image.image-missing .fallback-art {
  display: grid;
}

.stock-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #20241f;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 33, 63, 0.12);
}

.stock-badge.low {
  background: #fff1d2;
  color: #7a4e00;
}

.stock-badge.out {
  background: #ffe1e3;
  color: #842227;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-card h3,
.admin-product h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

.price {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}

.product-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 168, 168, 0.1);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-badge.low {
  background: #fff1d2;
  color: #7a4e00;
}

.product-badge.out {
  background: #ffe1e3;
  color: #842227;
}

.product-badge.favorite {
  background: #ffe8f0;
  color: #a61145;
}

.product-badge.new {
  background: #e7f9ef;
  color: #0d6a43;
}

.product-card .button {
  margin-top: auto;
  min-height: 48px;
}

.product-card .added-feedback {
  color: #062032;
  background: var(--primary);
  border-color: var(--primary);
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.panel-section,
.login-card,
.success-card {
  padding: 14px;
  box-shadow: var(--shadow);
}

.panel-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.cart-list {
  display: grid;
  gap: 8px;
  min-height: 72px;
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  text-align: center;
}

.cart-row {
  justify-content: space-between;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.cart-item-name {
  font-weight: 800;
}

.cart-item-price {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quantity-control {
  gap: 7px;
}

.quantity-control strong {
  min-width: 22px;
  text-align: center;
}

.stepper {
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
}

.checkout-form,
.product-form {
  display: grid;
  gap: 10px;
}

.checkout-form label,
.product-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.product-form input,
.product-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  outline: 0;
  color: var(--text);
  background: var(--surface);
}

.checkout-form input,
.checkout-form select,
.product-form input,
.product-form select {
  min-height: 42px;
  padding: 0 10px;
}

.checkout-form textarea {
  min-height: 112px;
  resize: vertical;
  padding: 10px;
}

.checkout-form select,
.product-form select,
.adjustment-row select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.product-form input[type="file"] {
  padding: 9px;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus,
.product-form input:focus,
.product-form select:focus,
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 124, 101, 0.14);
}

.flow-panel {
  display: grid;
  gap: 10px;
}

.flow-step {
  gap: 10px;
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--primary-dark);
  font-weight: 900;
}

.success-card,
.login-card {
  display: grid;
  gap: 14px;
  width: min(620px, 100%);
  margin: 0 auto;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--primary-dark);
}

.status-icon svg {
  width: 28px;
  height: 28px;
}

.success-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.code-box {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: #eefaf5;
}

.code-box span,
.code-box small {
  color: var(--muted);
  font-weight: 800;
}

.code-box strong {
  font-size: clamp(44px, 12vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.order-summary {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.order-summary h3 {
  margin: 0 0 8px;
}

.order-summary ul {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--muted);
}

.receipt-header,
.receipt-card-header,
.receipt-line,
.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.receipt-header {
  margin-bottom: 12px;
}

.receipt-header h3,
.receipt-card h3 {
  margin: 0;
}

.receipt-header > strong,
.receipt-card-header > strong {
  font-size: 20px;
  white-space: nowrap;
}

.receipt-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.receipt-meta div {
  min-width: 0;
}

.receipt-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}

.receipt-lines {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.receipt-lines.compact {
  margin: 10px 0;
}

.receipt-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.receipt-total {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.receipt-total.grand {
  color: var(--text);
  font-size: 16px;
}

.receipt-access {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: #eefaf5;
}

.receipt-access span,
.receipt-access small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.receipt-access strong {
  color: var(--primary-dark);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.receipt-kiosk-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.receipt-help-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 79, 135, 0.22);
  border-radius: var(--radius-small);
  background: rgba(255, 79, 135, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.receipt-help-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--accent);
}

.payment-note-card,
.return-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.payment-buffer {
  display: grid;
  gap: 8px;
}

.payment-buffer strong {
  color: var(--text);
}

.payment-buffer span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.payment-buffer-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.payment-buffer-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 240ms linear;
}

.payment-screen {
  display: grid;
  gap: 14px;
}

.payment-note-card span,
.payment-step-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-note-card strong,
.payment-step-heading strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.payment-note-card code {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--text);
  background: var(--surface-strong);
  font: 800 14px/1.45 Inter, system-ui, sans-serif;
  white-space: normal;
}

.required-note-card {
  border-color: rgba(255, 79, 135, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 79, 135, 0.08), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.payment-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.payment-flow-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-strong);
}

.payment-flow-steps span {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.payment-flow-steps strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.15;
}

.copy-status {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.copy-status.complete {
  border-color: rgba(0, 168, 168, 0.32);
  color: var(--primary-dark);
  background: rgba(0, 168, 168, 0.1);
}

.button.complete {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.payment-method-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.payment-step-heading {
  display: grid;
  gap: 4px;
}

.payment-step-heading small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.payment-logo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
}

.payment-logo-card.ready {
  border-color: rgba(0, 168, 168, 0.26);
  background:
    linear-gradient(180deg, rgba(0, 168, 168, 0.06), rgba(255, 255, 255, 0.04)),
    var(--surface);
}

.payment-logo-card.locked {
  background: var(--surface-strong);
}

.payment-logo-button {
  width: 100%;
  min-height: 82px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 33, 63, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.payment-logo-button img {
  width: 100%;
  height: 100%;
  min-height: 82px;
  display: block;
  object-fit: contain;
  padding: 8px;
}

.cash-payment-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.cash-payment-button svg {
  width: 28px;
  height: 28px;
  color: var(--primary-dark);
}

.apple-cash-payment-button {
  background: linear-gradient(135deg, #111827, #020617);
  color: #fff;
}

.apple-cash-payment-button svg {
  color: #fff;
}

.payment-logo-button:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 28px rgba(18, 33, 63, 0.14);
  transform: translateY(-1px);
}

.payment-logo-button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.42;
  transform: none;
}

.payment-method-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payment-method-detail {
  padding: 2px 4px 0;
}

.payment-method-title-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.payment-method-title-row em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.payment-logo-card.ready .payment-method-title-row em {
  background: rgba(0, 168, 168, 0.14);
  color: var(--primary-dark);
}

.payment-method-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.payment-method-detail small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.selected-payment-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 168, 168, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 168, 168, 0.08);
}

.selected-payment-card > div {
  display: grid;
  gap: 4px;
}

.selected-payment-card span,
.selected-payment-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-payment-card strong {
  color: var(--text);
  font-size: 18px;
}

.selected-payment-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.selected-payment-card dl div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: var(--radius-small);
  background: var(--surface);
}

.selected-payment-card dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.return-note-card {
  background: rgba(0, 168, 168, 0.08);
}

.admin-stats {
  margin-bottom: 16px;
}

.admin-tool-board {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-tool-select {
  display: grid;
  gap: 7px;
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-tool-select select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
}

.admin-pages {
  display: contents;
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: block;
}

.admin-page[hidden] {
  display: none !important;
}

.admin-page.active.restock-mode-panel,
.admin-page.active.low-stock-email-panel,
.admin-page.active.weekly-report-panel {
  display: grid;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-grid div {
  min-height: 82px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-grid strong {
  font-size: 24px;
}

.stat-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.9fr) minmax(360px, 1.2fr);
  gap: 16px;
  align-items: start;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-products,
.orders-list,
.adjustment-tools,
.adjustment-log,
.low-stock-items,
.receipts-list,
.pin-issues-list,
.deal-admin-list,
.best-seller-list {
  display: grid;
  gap: 10px;
}

.low-stock-email-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.weekly-report-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.weekly-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.weekly-report-summary div {
  display: grid;
  gap: 3px;
  min-height: 68px;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.weekly-report-summary strong {
  font-size: 20px;
}

.weekly-report-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.weekly-report-details {
  display: grid;
  gap: 12px;
}

.weekly-report-period,
.report-export-panel,
.report-list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.weekly-report-period {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.weekly-report-period span,
.weekly-report-period small,
.report-list-header span,
.report-list-card p,
.report-list-row strong,
.report-metric-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.weekly-report-period strong {
  font-size: 18px;
}

.report-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-list-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.report-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-list-header h3,
.report-export-panel h3 {
  margin: 0;
  font-size: 16px;
}

.report-list-card p {
  margin: 0;
  line-height: 1.45;
}

.report-metric-list,
.report-list {
  display: grid;
  gap: 8px;
}

.report-metric-list div,
.report-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.64);
}

.report-list-row span {
  min-width: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.report-list-row strong,
.report-metric-list strong {
  text-align: right;
  white-space: nowrap;
}

.empty-state.compact {
  min-height: 0;
  padding: 10px;
  font-size: 12px;
}

.report-export-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.report-export-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.report-export-actions .button {
  width: 100%;
  justify-content: center;
}

.low-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.low-stock-row div:first-child {
  display: grid;
  gap: 4px;
}

.low-stock-row span,
.email-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.low-stock-counts {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 72px;
}

.low-stock-counts strong {
  color: var(--danger);
  font-size: 22px;
  line-height: 1;
}

.email-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 20px;
}

.email-status a {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: underline;
}

.inventory-adjustment-panel {
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.96), rgba(255, 255, 255, 0.92));
}

.inventory-adjustment-status {
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.inventory-adjustment-status.show {
  display: block;
}

.inventory-adjustment-status.success {
  border-color: rgba(29, 124, 101, 0.28);
  background: #e5f7ef;
  color: var(--primary-dark);
}

.inventory-adjustment-status.error {
  border-color: rgba(180, 59, 64, 0.3);
  background: #ffe1e3;
  color: #842227;
}

.restock-mode-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(223, 244, 255, 0.8), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.restock-mode-header {
  align-items: start;
}

.restock-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.restock-summary-grid article {
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.restock-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.restock-summary-grid strong {
  font-size: 26px;
  line-height: 1;
}

.restock-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.restock-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.restock-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.restock-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.restock-list {
  display: grid;
  gap: 10px;
}

.restock-row {
  display: grid;
  grid-template-columns: 64px minmax(160px, 1fr) 92px minmax(360px, auto);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.restock-row.needs {
  border-color: rgba(255, 212, 71, 0.72);
}

.restock-row.sold-out {
  border-color: rgba(180, 59, 64, 0.28);
}

.restock-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-small);
  background: #fff;
}

.restock-product-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.restock-product-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.restock-product-title h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.restock-product-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.restock-stock-card {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 58px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.7);
}

.restock-stock-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.restock-stock-card strong {
  font-size: 24px;
  line-height: 1;
}

.restock-actions {
  display: grid;
  grid-template-columns: 40px minmax(88px, 100px) 40px 58px 96px 88px;
  gap: 7px;
  align-items: end;
}

.restock-actions label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.restock-actions input {
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.restock-actions .icon-button,
.restock-actions .button {
  min-height: 40px;
}

.restock-actions .button {
  padding: 0 10px;
}

.restock-plus-five,
.restock-save,
.restock-sold-out {
  width: 100%;
}

.diagnostics-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(34, 211, 197, 0.1), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.diagnostics-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(110px, 0.8fr));
  gap: 10px;
}

.diagnostics-summary article,
.diagnostics-card,
.diagnostics-events-card,
.diagnostics-event {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.diagnostics-summary article {
  display: grid;
  gap: 5px;
  min-height: 76px;
  align-content: center;
  padding: 12px;
}

.diagnostics-summary span,
.diagnostics-event span,
.diagnostics-check small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.diagnostics-summary strong {
  font-size: 24px;
  line-height: 1;
}

.diagnostics-hero div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  align-items: center;
}

.diagnostics-hero p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.diagnostics-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.diagnostics-card.ok {
  border-color: rgba(29, 124, 101, 0.22);
}

.diagnostics-card.warn {
  border-color: rgba(233, 174, 47, 0.42);
}

.diagnostics-card.error {
  border-color: rgba(180, 59, 64, 0.32);
}

.diagnostics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.diagnostics-card-header h3 {
  margin: 0;
  font-size: 16px;
}

.diagnostics-checks,
.diagnostics-events {
  display: grid;
  gap: 8px;
}

.diagnostics-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.64);
}

.diagnostics-check div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.diagnostics-check strong,
.diagnostics-check small {
  overflow-wrap: anywhere;
}

.diagnostics-status-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.diagnostics-status-dot.ok {
  background: var(--primary);
}

.diagnostics-status-dot.warn {
  background: var(--gold);
}

.diagnostics-status-dot.error {
  background: var(--danger);
}

.diagnostics-events-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.diagnostics-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
}

.diagnostics-event div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.diagnostics-event small {
  color: var(--muted);
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.diagnostics-status-message.error {
  color: var(--danger);
}

.adjustment-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 92px minmax(130px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.adjustment-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.adjustment-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.adjustment-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.adjustment-row input,
.adjustment-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0 9px;
  color: var(--text);
  background: var(--surface);
}

.adjustment-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.adjustment-log-row div:first-child {
  display: grid;
  gap: 4px;
}

.adjustment-log-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.adjustment-counts {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.adjustment-counts strong {
  min-width: 38px;
  text-align: right;
}

.adjustment-counts strong.positive {
  color: var(--primary-dark);
}

.adjustment-counts strong.negative {
  color: var(--danger);
}

.admin-product {
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-product img {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: var(--radius-small);
  background: var(--surface-strong);
}

.admin-product p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-product > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.admin-product-actions {
  gap: 8px;
}

.order-admin-panel {
  margin-top: 16px;
}

.order-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.receipt-card,
.pin-issue-card,
.admin-info-card,
.best-seller-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-info-card {
  display: grid;
  gap: 6px;
}

.admin-info-card h3,
.admin-info-card p {
  margin: 0;
}

.admin-info-card p,
.admin-info-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.best-seller-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.best-seller-row > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--primary-dark);
  font-weight: 900;
}

.best-seller-row div {
  display: grid;
  gap: 3px;
}

.best-seller-row small {
  color: var(--muted);
  font-weight: 800;
}

.receipt-card-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.issue-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.issue-status a {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: underline;
}

.issue-note {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.order-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.order-meta {
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.order-items {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.status-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 900;
}

.status-pill.fulfilled {
  background: #e5f7ef;
  color: var(--primary-dark);
}

.status-pill.pending {
  background: #fff6df;
  color: #714e06;
}

.status-pill.requires_review {
  background: #ffe1e3;
  color: #842227;
}

.status-pill.needs {
  background: #fff6df;
  color: #714e06;
}

.status-pill.sold-out {
  background: #ffe1e3;
  color: #842227;
}

.status-pill.ok {
  background: #e5f7ef;
  color: var(--primary-dark);
}

.status-pill.warn {
  background: #fff6df;
  color: #714e06;
}

.status-pill.error {
  background: #ffe1e3;
  color: #842227;
}

.lock-log {
  margin: 10px 0 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.order-card.lock-needs-attention,
.pin-issue-card:has(.status-pill.requires_review) {
  border-color: rgba(180, 59, 64, 0.36);
}

.lock-recovery-message {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.lock-recovery-message.error {
  border-color: rgba(180, 59, 64, 0.28);
  background: #ffecef;
  color: #842227;
}

.lock-recovery-message.success {
  border-color: rgba(29, 124, 101, 0.28);
  background: #e5f7ef;
  color: var(--primary-dark);
}

.lock-attempt-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-strong);
}

.lock-attempt-list > strong {
  font-size: 12px;
  text-transform: uppercase;
}

.lock-attempt-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lock-attempt-list small {
  grid-column: 2;
  overflow-wrap: anywhere;
}

.lock-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lock-recovery-actions .button {
  min-height: 40px;
}

.toast {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  width: min(640px, calc(100vw - 32px));
  max-height: min(42vh, 360px);
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #20241f;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 5000;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

@media (max-width: 1080px) {
  .workspace,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 10px;
  }

  .topbar,
  .toolbar,
  .search-row,
  .side-panel,
  .admin-product {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .filters {
    justify-content: start;
  }

  .admin-shell .topbar {
    min-width: 0;
  }

  .admin-shell .brand,
  .admin-shell .topbar-actions {
    width: 100%;
    min-width: 0;
  }

  .admin-shell .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-shrink: 1;
  }

  .admin-shell .topbar-actions .session-pill {
    grid-column: 1 / -1;
  }

  .admin-shell .topbar-actions .button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-inline: 10px;
  }

  .session-pill {
    max-width: none;
    width: 100%;
  }

  .brand {
    align-items: start;
  }

  .product-grid,
  .stat-grid,
  .restock-summary-grid,
  .restock-toolbar,
  .diagnostics-summary,
  .diagnostics-grid,
  .weekly-report-summary,
  .report-detail-grid,
  .report-export-panel,
  .report-export-actions,
  .form-pair,
  .receipt-meta {
    grid-template-columns: 1fr;
  }

  .receipt-header,
  .receipt-card-header,
  .receipt-line,
  .receipt-total {
    align-items: flex-start;
  }

  .product-card {
    min-height: 0;
  }

  .admin-product img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .adjustment-row,
  .restock-row,
  .adjustment-log-row,
  .low-stock-row,
  .payment-method-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .restock-filter-row {
    justify-content: start;
  }

  .restock-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .restock-stock-card {
    justify-items: start;
    padding: 10px 12px;
  }

  .restock-actions {
    grid-template-columns: 44px minmax(80px, 1fr) 44px;
  }

  .restock-plus-five,
  .restock-save,
  .restock-sold-out {
    grid-column: 1 / -1;
  }

  .diagnostics-event {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .panel-actions {
    width: 100%;
    justify-content: stretch;
  }

  .panel-actions .button {
    flex: 1 1 150px;
    justify-content: center;
  }

  .report-metric-list div,
  .report-list-row {
    align-items: flex-start;
  }

  .report-list-row strong,
  .report-metric-list strong {
    white-space: normal;
  }

  .diagnostics-event small {
    text-align: left;
  }

  .low-stock-counts {
    justify-items: start;
  }

  .adjustment-row .button {
    width: 100%;
  }
}

/* H10 v2.2 official storefront direction */
.store-topbar {
  min-height: 70px;
  padding-right: 22px;
  padding-left: 22px;
}

.store-topbar .brand-logo {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.store-topbar .brand h1 {
  font-size: 19px;
}

.store-topbar .brand p {
  text-transform: uppercase;
}

.store-topbar .desktop-nav a {
  color: var(--muted);
  font-weight: 800;
}

.store-welcome {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.64fr);
  gap: 40px;
  align-items: end;
  padding: 42px 8px 28px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.welcome-copy h2 {
  max-width: none;
  margin-top: 7px;
  font-size: 44px;
  line-height: 1.04;
}

.welcome-copy > p:not(.eyebrow) {
  margin: 9px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.welcome-search {
  align-items: stretch;
}

.welcome-search label,
.welcome-search .button {
  min-height: 48px;
}

.welcome-search .button {
  padding-right: 14px;
  padding-left: 14px;
}

.category-filter-section {
  position: relative;
  padding: 16px 4px 22px !important;
}

.category-filter-section .section-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.category-filter-section .category-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-tab {
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.category-tab:hover,
.category-tab:focus-visible {
  color: var(--text);
  border-color: var(--primary);
}

.category-tab.category-all {
  color: #fff;
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.staff-pick-banner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 15px;
  margin: 4px 0 0;
  padding: 0 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.staff-pick-accent {
  align-self: stretch;
  background: var(--store-coral);
}

.staff-pick-banner > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.staff-pick-banner > div span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-pick-banner > div strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-pick-banner > strong {
  color: var(--primary-dark);
}

.staff-pick-banner > a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-strong);
  font-size: 12px;
  font-weight: 800;
}

.popular-section {
  padding-top: 30px !important;
}

.official-section-heading {
  align-items: end;
}

.home-availability {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
}

.home-availability strong {
  color: var(--text);
  font-size: 18px;
}

.home-availability span {
  font-size: 12px;
  font-weight: 800;
}

.feature-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  grid-template-rows: 178px minmax(104px, auto);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 33, 63, 0.05);
}

.feature-card-image {
  height: 178px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f0eaf1;
}

.feature-card > div.feature-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px 46px 12px 12px;
  border-top: 0;
}

.feature-card > div.feature-card-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.feature-card > div.feature-card-copy > strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card > div.feature-card-copy > small {
  color: var(--primary-dark);
  font-size: 14px;
}

.feature-card .icon-button {
  right: 11px;
  bottom: 15px;
  width: 32px;
  height: 32px;
}

.favorites-section,
.home-deals-preview,
.how-it-works-section {
  padding-right: 4px !important;
  padding-left: 4px !important;
  background: transparent !important;
}

.favorites-section {
  margin-top: 0;
}

.how-it-works-section {
  scroll-margin-top: 82px;
}

.product-card {
  box-shadow: 0 6px 18px rgba(18, 33, 63, 0.05);
}

.product-badge {
  text-transform: none;
}

:root[data-theme="dark"] body {
  background: #150919;
}

:root[data-theme="dark"] .store-topbar,
:root[data-theme="dark"] .mobile-nav,
:root[data-theme="dark"] .site-footer {
  background: rgba(31, 14, 39, 0.98);
}

:root[data-theme="dark"] .store-welcome {
  background: transparent;
}

:root[data-theme="dark"] .staff-pick-banner,
:root[data-theme="dark"] .category-tab,
:root[data-theme="dark"] .feature-card {
  border-color: #51305e;
  background: #2a1735;
}

:root[data-theme="dark"] .category-tab {
  color: #d7b9cf;
}

:root[data-theme="dark"] .category-tab.category-all {
  color: #0b2221;
  border-color: #22d3c5;
  background: #22d3c5;
}

:root[data-theme="dark"] .staff-pick-banner > a {
  border-color: #51305e;
  color: #fff8fb;
  background: #36203f;
}

:root[data-theme="dark"] .staff-pick-banner > strong,
:root[data-theme="dark"] .feature-card > div.feature-card-copy > small {
  color: #22d3c5;
}

:root[data-theme="dark"] .feature-card-image {
  background: #c7bbc9;
}

:root[data-theme="dark"] .home-availability strong,
:root[data-theme="dark"] .staff-pick-banner > div strong,
:root[data-theme="dark"] .feature-card > div.feature-card-copy > strong {
  color: #fff8fb;
}

@media (max-width: 900px) {
  .store-welcome {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  }
}

@media (max-width: 760px) {
  .store-topbar {
    min-height: 66px;
  }

  .store-welcome {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 4px 22px;
  }

  .welcome-copy h2 {
    font-size: 34px;
  }

  .welcome-copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  .welcome-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .welcome-search .button {
    width: auto;
  }

  .category-filter-section {
    padding: 14px 4px 20px !important;
  }

  .staff-pick-banner {
    grid-template-columns: 7px minmax(0, 1fr) auto;
    gap: 11px;
    padding-right: 12px;
  }

  .staff-pick-banner > a {
    grid-column: 2 / -1;
    justify-self: start;
    margin-bottom: 10px;
  }

  .official-section-heading {
    align-items: flex-end;
    flex-direction: row;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: auto;
    overflow: visible;
    gap: 9px;
  }

  .feature-card {
    grid-template-rows: 132px minmax(112px, auto);
  }

  .feature-card-image {
    height: 132px;
    padding: 10px;
  }

  .feature-card > div.feature-card-copy {
    padding: 10px 38px 10px 10px;
  }

  .feature-card > div.feature-card-copy > span {
    white-space: normal;
  }

  .feature-card > div.feature-card-copy > strong {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .feature-card .icon-button {
    right: 8px;
    bottom: 10px;
  }

  .favorites-section,
  .home-deals-preview,
  .how-it-works-section {
    padding-right: 4px !important;
    padding-left: 4px !important;
  }
}

@media (max-width: 420px) {
  .welcome-search {
    grid-template-columns: 1fr;
  }

  .welcome-search .button {
    width: 100%;
  }

  .home-availability span {
    display: none;
  }
}

/* Bright Pediatric Pop Shop refresh */
:root {
  --bg: #eef8fb;
  --surface-strong: #fff3b8;
  --text: #12213f;
  --muted: #5a6a84;
  --line: #d7e7ef;
  --primary: #00a8a8;
  --primary-dark: #007a82;
  --accent: #ff4f87;
  --gold: #ffd447;
  --soft-blue: #dff4ff;
  --coral: #ff7a7a;
  --shadow: 0 18px 44px rgba(18, 33, 63, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 212, 71, 0.25), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(255, 79, 135, 0.16), transparent 28%),
    linear-gradient(180deg, #f8fcff 0%, var(--bg) 52%, #f7fbff 100%);
}

.store-shell {
  padding-top: 104px;
  padding-bottom: 92px;
}

.store-topbar {
  position: fixed !important;
  left: 50%;
  right: auto;
  top: 0 !important;
  z-index: 500;
  width: min(1440px, 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateX(-50%);
}

.brand-mark,
.mini-logo {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 54%, var(--gold) 100%);
}

.desktop-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.desktop-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-small);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.desktop-nav a:hover {
  background: var(--soft-blue);
  color: var(--primary-dark);
}

.store-main {
  display: grid;
  gap: 14px;
}

.store-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: center;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(223, 244, 255, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(255, 212, 71, 0.42), transparent 32%);
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions .button {
  width: auto;
  min-height: 52px;
  padding: 0 18px;
}

.hero-art {
  position: relative;
  min-height: 270px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 168, 168, 0.14), rgba(255, 79, 135, 0.12)),
    #ffffff;
}

.hero-logo-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 10px;
  place-items: center;
  width: min(280px, 82%);
  padding: 24px 18px;
  border: 3px solid #08265c;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 0 rgba(8, 38, 92, 0.12);
  transform: translate(-50%, -50%) rotate(-2deg);
  text-align: center;
}

.hero-logo-text {
  color: #fff;
  font-size: 76px;
  font-weight: 900;
  line-height: 0.9;
  -webkit-text-stroke: 4px #08265c;
  text-shadow: 0 5px 0 var(--accent);
}

.hero-logo-card strong {
  display: block;
  color: #08265c;
  font-size: 28px;
  line-height: 1;
}

.hero-logo-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.snack-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 86px;
  padding: 12px;
  border: 3px solid #08265c;
  border-radius: 999px;
  background: var(--gold);
  color: #08265c;
  font-weight: 900;
  box-shadow: 0 10px 0 rgba(8, 38, 92, 0.12);
}

.snack-bubble.chips {
  left: 8%;
  bottom: 16%;
  background: #ff7a7a;
}

.snack-bubble.drinks {
  right: 8%;
  top: 14%;
  background: #75d6ff;
}

.snack-bubble.candy {
  right: 10%;
  bottom: 12%;
  background: #ffd447;
}

.heartbeat-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 20%;
  height: 42px;
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 0 8%, var(--accent) 8% 22%, transparent 22% 28%, var(--accent) 28% 38%, transparent 38% 44%, var(--accent) 44% 58%, transparent 58% 100%);
  clip-path: polygon(0 50%, 12% 50%, 16% 12%, 23% 88%, 30% 50%, 42% 50%, 47% 18%, 54% 78%, 60% 50%, 100% 50%, 100% 60%, 0 60%);
}

.section-heading {
  margin-bottom: 12px;
}

.split-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.compact-button {
  width: auto;
  min-height: 42px;
  white-space: nowrap;
}

.section-heading p:not(.eyebrow),
.request-section p,
.help-grid p,
.unlock-steps span,
.deal-card p {
  color: var(--muted);
  line-height: 1.45;
}

.category-grid,
.deal-grid,
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.category-card,
.deal-card,
.help-grid article,
.unlock-steps article,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.category-card {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 14px;
}

.category-card svg {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.category-card strong,
.feature-card strong,
.deal-card h3 {
  color: var(--text);
}

.category-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.feature-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.feature-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.feature-card-image {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: var(--radius-small);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 250, 255, 0.9)),
    var(--surface-strong);
  overflow: hidden;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(18, 33, 63, 0.12));
}

.feature-card-image .fallback-art {
  border-radius: var(--radius-small);
  font-size: 28px;
}

.feature-card > div:not(.feature-card-image) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feature-card span,
.feature-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shop-area {
  scroll-margin-top: 100px;
}

.sort-box {
  display: grid;
  gap: 5px;
  min-width: 190px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sort-box select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0 10px;
  color: var(--text);
  background: var(--surface);
  font-weight: 800;
}

.scroll-chips {
  margin-bottom: 14px;
  overflow-x: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding-bottom: 4px;
}

.filter-chip {
  white-space: nowrap;
  border-radius: 999px;
}

.product-card {
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(18, 33, 63, 0.08);
}

.product-card-stepper {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--soft-blue);
}

.product-card-stepper strong {
  text-align: center;
  font-size: 18px;
}

.deal-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 255, 0.94)),
    var(--surface);
}

.compact-deal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deal-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.deal-card-top span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #ffe8f0;
  color: #a61145;
  font-size: 12px;
  font-weight: 900;
}

.deal-card h3,
.deal-card p,
.deal-card ul {
  margin: 0;
}

.deal-card ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.deal-includes {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(0, 168, 168, 0.07);
}

.deal-includes > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.deal-includes div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.deal-includes small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.deal-footnote {
  padding: 8px 10px;
  border-radius: var(--radius-small);
  background: #fff8df;
  color: #714e06 !important;
  font-size: 12px;
  font-weight: 900;
}

.how-it-works-section {
  background:
    linear-gradient(135deg, rgba(223, 244, 255, 0.88), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.store-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.store-step-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.store-step-grid svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.store-step-grid strong {
  font-size: 16px;
}

.store-step-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.cart-section {
  scroll-margin-top: 100px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.checkout-step {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--muted);
}

.checkout-step span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.checkout-step strong {
  font-size: 12px;
  line-height: 1.2;
}

.checkout-step.active {
  border-color: rgba(0, 168, 168, 0.34);
  background: rgba(0, 168, 168, 0.08);
  color: var(--text);
}

.checkout-step.active span {
  background: var(--primary);
  color: #fff;
}

.checkout-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.checkout-card-heading {
  display: grid;
  gap: 3px;
}

.checkout-card-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-card-heading strong {
  color: var(--text);
  font-size: 16px;
}

.empty-cart-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  text-align: center;
}

.empty-cart-state svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.empty-cart-state p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.4;
}

.empty-cart-state .button {
  width: auto;
  min-width: 150px;
}

.checkout-reminder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.honesty-note {
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-small);
  background: #fff8df;
  color: #714e06;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.grab-note {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(0, 168, 168, 0.22);
  border-radius: var(--radius-small);
  background: rgba(0, 168, 168, 0.1);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.checkout-reminder-grid p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkout-reminder-grid svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.checkout-payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-guidance p:last-child {
  margin-bottom: 0;
}

.accepted-payment-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.accepted-payment-logos span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.accepted-payment-logos img {
  display: block;
  width: 100%;
  min-width: 0;
  object-fit: contain;
}

.accepted-payment-logos img {
  min-height: 42px;
  max-height: 58px;
  padding: 0;
  border-radius: var(--radius-small);
  background: transparent;
}

.cash-payment-pill {
  display: grid;
  min-height: 42px;
  max-height: 58px;
  place-items: center;
  border-radius: var(--radius-small);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.apple-cash-pill {
  background: #111827;
  color: #fff;
}

.stripe-checkout-note {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 168, 168, 0.22);
  border-radius: var(--radius-small);
  background: rgba(0, 168, 168, 0.08);
}

.stripe-checkout-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stripe-checkout-note strong {
  color: var(--text);
}

.stripe-checkout-note small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: center;
}

.request-section h2,
.request-section p {
  margin: 0;
}

.request-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.request-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.request-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-strong);
  font-weight: 800;
}

.request-status {
  min-height: 18px;
  margin: 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.unlock-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.unlock-steps article,
.help-grid article {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.unlock-steps svg {
  color: var(--primary-dark);
  width: 24px;
  height: 24px;
}

.unlock-steps strong,
.help-grid h3 {
  margin: 0;
}

.help-grid p {
  margin: 0;
}

.floating-cart {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 22px;
  z-index: 40;
  min-height: 54px;
  width: min(520px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.floating-cart-summary,
.floating-cart-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floating-cart-summary {
  min-width: 0;
}

.floating-cart-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-cart-action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.mobile-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 50;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mobile-nav a {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mobile-nav a.active {
  background: var(--soft-blue);
  color: var(--primary-dark);
}

.mini-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .hero-section,
  .request-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 260px;
  }

  .compact-deal-grid,
  .store-step-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    display: grid;
  }

  .floating-cart {
    bottom: 86px;
  }
}

@media (max-width: 760px) {
  .store-shell {
    padding: 164px 10px 94px;
  }

  .store-section {
    padding: 12px;
  }

  .store-topbar {
    left: 0;
    right: auto;
    top: 0;
    width: 100%;
    transform: none;
  }

  .shop-area,
  .cart-section,
  .page-section {
    scroll-margin-top: 164px;
  }

  .hero-copy h2 {
    font-size: 48px;
  }

  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-button {
    width: 100%;
  }

  .hero-actions .button,
  .request-form .button {
    width: 100%;
  }

  .feature-strip {
    grid-auto-columns: minmax(250px, 86vw);
  }

  .checkout-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-step {
    min-height: 64px;
  }

  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    gap: 10px;
  }

  .sort-box {
    min-width: 0;
  }

  .floating-cart {
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
  }
}

@media (max-width: 760px) {
  .shop-area .toolbar {
    gap: 8px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 0;
  }

  .product-image {
    min-height: 100%;
    height: 100%;
    padding: 8px;
    aspect-ratio: auto;
  }

  .product-image img {
    padding: 5px;
  }

  .product-body {
    min-width: 0;
    gap: 8px;
    padding: 10px;
  }

  .product-title-row {
    gap: 8px;
  }

  .product-card h3 {
    font-size: 15px;
    line-height: 1.15;
  }

  .product-title-row .price {
    font-size: 14px;
  }

  .product-badge-row,
  .tag-row {
    gap: 5px;
  }

  .tag-row .tag:nth-child(n+3) {
    display: none;
  }

  .product-badge,
  .product-card .tag {
    padding: 5px 7px;
    font-size: 10px;
  }

  .stock-badge {
    left: 6px;
    top: 6px;
    max-width: calc(100% - 12px);
    padding: 5px 7px;
    font-size: 10px;
    white-space: normal;
  }

  .product-card .button {
    min-height: 42px;
    font-size: 13px;
  }

  .product-card-stepper {
    grid-template-columns: 38px 1fr 38px;
    padding: 4px;
  }

  .checkout-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .checkout-step {
    min-width: 124px;
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    align-items: center;
    scroll-snap-align: start;
  }

  .checkout-step strong {
    font-size: 11px;
  }

  .checkout-reminder-grid {
    grid-template-columns: 1fr;
  }

  .payment-flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-flow-steps li {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px;
  }

  .payment-flow-steps strong {
    font-size: 11px;
  }

  .payment-logo-card {
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
  }

  .payment-logo-button {
    height: 76px;
    min-height: 72px;
  }

  .payment-logo-button img {
    height: 76px;
    min-height: 0;
    padding: 6px;
  }

  .payment-method-card {
    padding: 10px;
  }

  .payment-method-detail {
    padding: 0;
  }

  .narrow-shell .success-card {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .product-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .product-body {
    padding: 9px;
  }

  .payment-logo-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

/* Page/dropdown navigation and uploaded logo */
.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.menu-nav {
  position: relative;
  z-index: 60;
}

.desktop-nav > a,
.nav-menu summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker,
.mobile-nav-menu summary::-webkit-details-marker {
  display: none;
}

.desktop-nav > a:hover,
.nav-menu[open] summary,
.nav-menu summary:hover {
  border-color: var(--line);
  background: var(--soft-blue);
  color: var(--primary-dark);
}

.nav-menu {
  position: relative;
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 120;
  min-width: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.nav-menu-panel a + a {
  border-top: 1px solid var(--line);
}

.nav-menu-panel a:hover,
.nav-menu-panel a.active,
.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: var(--soft-blue);
  color: var(--primary-dark);
}

.page-section {
  display: none;
  scroll-margin-top: 100px;
}

.page-section.active {
  display: block;
}

.hero-art {
  display: grid;
  place-items: center;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 212, 71, 0.28), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(255, 79, 135, 0.16), transparent 22%),
    rgba(255, 255, 255, 0.7);
}

.hero-logo-image {
  width: min(420px, 100%);
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(18, 33, 63, 0.18));
}

.mobile-nav {
  grid-template-columns: 1fr 1fr 1.15fr;
}

.mobile-nav-menu {
  position: relative;
  min-width: 0;
}

.mobile-nav-menu summary {
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.mobile-nav-menu[open] summary,
.mobile-nav-menu.active summary {
  background: var(--soft-blue);
  color: var(--primary-dark);
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 120;
  width: min(280px, calc(100vw - 20px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-nav-panel a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px;
  border-radius: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.site-footer {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.payment-footer {
  display: grid;
  gap: 10px;
}

.site-footer strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.payment-footer-methods {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-footer-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.payment-footer-chip svg {
  width: 17px;
  height: 17px;
}

.payment-footer-chip.cashapp svg {
  color: #12b858;
}

.payment-footer-chip.venmo svg {
  color: #2684d9;
}

.payment-footer-chip.zelle svg {
  color: #7a35db;
}

.payment-footer-chip.applepay svg {
  color: #111827;
}

.payment-footer-chip.cash svg {
  color: #62a02d;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mobile-nav-panel a + a {
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .hero-logo-image {
    max-height: 260px;
  }

  .payment-footer-methods {
    gap: 7px;
  }
}

@media (max-width: 520px) {
  .accepted-payment-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-footer-chip {
    flex: 1 1 calc(50% - 7px);
    justify-content: center;
  }
}

/* Dark mode polish */
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 215, 94, 0.13), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(255, 95, 155, 0.18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 197, 0.1), transparent 34%),
    linear-gradient(180deg, #1b0b24 0%, #24102e 52%, #130818 100%);
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .store-section,
:root[data-theme="dark"] .shop-area,
:root[data-theme="dark"] .panel-section,
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .success-card,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .category-card,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .order-summary,
:root[data-theme="dark"] .payment-note-card,
:root[data-theme="dark"] .return-panel,
:root[data-theme="dark"] .deal-card,
:root[data-theme="dark"] .help-grid article,
:root[data-theme="dark"] .unlock-steps article,
:root[data-theme="dark"] .cart-row,
:root[data-theme="dark"] .order-card,
:root[data-theme="dark"] .receipt-card,
:root[data-theme="dark"] .pin-issue-card,
:root[data-theme="dark"] .admin-info-card,
:root[data-theme="dark"] .best-seller-row,
:root[data-theme="dark"] .low-stock-row,
:root[data-theme="dark"] .restock-row,
:root[data-theme="dark"] .restock-summary-grid article,
:root[data-theme="dark"] .restock-stock-card,
:root[data-theme="dark"] .diagnostics-summary article,
:root[data-theme="dark"] .diagnostics-card,
:root[data-theme="dark"] .diagnostics-events-card,
:root[data-theme="dark"] .diagnostics-event,
:root[data-theme="dark"] .weekly-report-period,
:root[data-theme="dark"] .report-export-panel,
:root[data-theme="dark"] .report-list-card,
:root[data-theme="dark"] .adjustment-row,
:root[data-theme="dark"] .adjustment-log-row,
:root[data-theme="dark"] .manual-section,
:root[data-theme="dark"] .admin-product {
  background: rgba(42, 23, 53, 0.94);
  border-color: var(--line);
}

:root[data-theme="dark"] .restock-mode-panel {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 215, 94, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(42, 23, 53, 0.96), rgba(55, 24, 62, 0.94));
}

:root[data-theme="dark"] .diagnostics-panel {
  background:
    radial-gradient(circle at 88% 0%, rgba(34, 211, 197, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(42, 23, 53, 0.96), rgba(55, 24, 62, 0.94));
}

:root[data-theme="dark"] .diagnostics-check {
  background: rgba(27, 11, 36, 0.64);
  border-color: var(--line);
}

:root[data-theme="dark"] .report-metric-list div,
:root[data-theme="dark"] .report-list-row {
  background: rgba(27, 11, 36, 0.64);
  border-color: var(--line);
}

:root[data-theme="dark"] .lock-attempt-list {
  background: rgba(27, 11, 36, 0.64);
  border-color: var(--line);
}

:root[data-theme="dark"] .lock-recovery-message.error {
  border-color: rgba(255, 95, 155, 0.28);
  background: rgba(255, 95, 155, 0.12);
  color: #ffc2d2;
}

:root[data-theme="dark"] .lock-recovery-message.success {
  border-color: rgba(34, 211, 197, 0.24);
  background: rgba(34, 211, 197, 0.11);
  color: #a8fff9;
}

:root[data-theme="dark"] .store-topbar,
:root[data-theme="dark"] .mobile-nav,
:root[data-theme="dark"] .nav-menu-panel,
:root[data-theme="dark"] .mobile-nav-panel {
  background: rgba(30, 13, 38, 0.96);
}

:root[data-theme="dark"] .hero-section {
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 215, 94, 0.18), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 95, 155, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(42, 23, 53, 0.97), rgba(65, 28, 70, 0.96));
}

:root[data-theme="dark"] .how-it-works-section {
  background:
    linear-gradient(135deg, rgba(42, 23, 53, 0.94), rgba(58, 29, 70, 0.92)),
    var(--surface);
}

:root[data-theme="dark"] .store-step-grid article {
  background: rgba(30, 13, 38, 0.78);
}

:root[data-theme="dark"] .hero-art {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 215, 94, 0.18), transparent 28%),
    radial-gradient(circle at 80% 24%, rgba(255, 95, 155, 0.18), transparent 24%),
    rgba(25, 9, 33, 0.42);
}

:root[data-theme="dark"] .hero-logo-image {
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.42));
}

:root[data-theme="dark"] .brand-logo {
  background: transparent;
}

:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .filter-chip,
:root[data-theme="dark"] .stepper,
:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .status-pill {
  background: var(--surface-strong);
  color: var(--text);
}

:root[data-theme="dark"] .button.primary,
:root[data-theme="dark"] .filter-chip.active {
  color: #062032;
  background: var(--primary);
  border-color: var(--primary);
}

:root[data-theme="dark"] .status-pill.needs {
  background: rgba(255, 219, 92, 0.16);
  color: #ffe58a;
}

:root[data-theme="dark"] .status-pill.sold-out {
  background: rgba(255, 95, 155, 0.16);
  color: #ffc2d2;
}

:root[data-theme="dark"] .status-pill.ok {
  background: rgba(34, 211, 197, 0.14);
  color: #a8fff9;
}

:root[data-theme="dark"] .status-pill.warn {
  background: rgba(255, 219, 92, 0.16);
  color: #ffe58a;
}

:root[data-theme="dark"] .status-pill.error {
  background: rgba(255, 95, 155, 0.16);
  color: #ffc2d2;
}

:root[data-theme="dark"] .search-box,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .product-card-stepper,
:root[data-theme="dark"] .checkout-card,
:root[data-theme="dark"] .request-form,
:root[data-theme="dark"] .empty-cart-state,
:root[data-theme="dark"] .selected-payment-card dl div {
  color: var(--text);
  background: #1b0b24;
  border-color: var(--line);
}

:root[data-theme="dark"] .search-box input {
  background: transparent;
}

:root[data-theme="dark"] .product-image,
:root[data-theme="dark"] .admin-product img,
:root[data-theme="dark"] .restock-image,
:root[data-theme="dark"] .feature-card-image {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 215, 94, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(55, 30, 69, 0.94), rgba(32, 13, 42, 0.96));
}

:root[data-theme="dark"] .product-image img,
:root[data-theme="dark"] .admin-product img,
:root[data-theme="dark"] .restock-image {
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .deal-card {
  background: linear-gradient(180deg, rgba(58, 29, 70, 0.96), rgba(42, 23, 53, 0.96));
}

:root[data-theme="dark"] .deal-includes,
:root[data-theme="dark"] .selected-payment-card,
:root[data-theme="dark"] .checkout-step.active {
  background: rgba(34, 211, 197, 0.1);
  border-color: rgba(34, 211, 197, 0.28);
}

:root[data-theme="dark"] .checkout-step {
  background: rgba(27, 11, 36, 0.82);
  border-color: var(--line);
}

:root[data-theme="dark"] .checkout-step span {
  background: #2b1638;
}

:root[data-theme="dark"] .product-badge.new {
  background: rgba(34, 211, 197, 0.14);
  color: #8ff4ea;
}

:root[data-theme="dark"] .product-badge.favorite {
  background: rgba(255, 111, 159, 0.18);
  color: #ffb5cf;
}

:root[data-theme="dark"] .deal-card-top span {
  background: rgba(255, 111, 159, 0.18);
  color: #ffb5cf;
}

:root[data-theme="dark"] .honesty-note,
:root[data-theme="dark"] .notice,
:root[data-theme="dark"] .deal-footnote {
  background: rgba(255, 219, 92, 0.14);
  border-color: rgba(255, 219, 92, 0.34);
  color: #ffe58a;
}

:root[data-theme="dark"] .toast {
  border-color: rgba(255, 255, 255, 0.16);
  background: #fff8fb;
  color: #24102e;
  box-shadow: 0 18px 48px rgba(10, 3, 14, 0.72);
}

:root[data-theme="dark"] .inventory-adjustment-status {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 248, 251, 0.08);
  color: var(--text);
}

:root[data-theme="dark"] .inventory-adjustment-status.success {
  border-color: rgba(34, 211, 197, 0.34);
  background: rgba(34, 211, 197, 0.13);
  color: #a8fff9;
}

:root[data-theme="dark"] .inventory-adjustment-status.error {
  border-color: rgba(255, 143, 160, 0.34);
  background: rgba(255, 95, 155, 0.13);
  color: #ffc2d2;
}

:root[data-theme="dark"] .code-box,
:root[data-theme="dark"] .receipt-access {
  background: rgba(40, 215, 200, 0.12);
  border-color: var(--primary);
}

:root[data-theme="dark"] .stock-badge {
  background: rgba(244, 251, 255, 0.9);
  color: #12213f;
}

:root[data-theme="dark"] .stock-badge.low {
  background: #ffe58a;
  color: #473700;
}

:root[data-theme="dark"] .stock-badge.out {
  background: #ffc3cc;
  color: #5a1018;
}

:root[data-theme="dark"] .desktop-nav > a:hover,
:root[data-theme="dark"] .nav-menu[open] summary,
:root[data-theme="dark"] .nav-menu summary:hover,
:root[data-theme="dark"] .mobile-nav a.active,
:root[data-theme="dark"] .mobile-nav-menu[open] summary,
:root[data-theme="dark"] .mobile-nav-menu.active summary,
:root[data-theme="dark"] .nav-menu-panel a:hover,
:root[data-theme="dark"] .nav-menu-panel a.active,
:root[data-theme="dark"] .mobile-nav-panel a:hover,
:root[data-theme="dark"] .mobile-nav-panel a.active {
  background: rgba(255, 95, 155, 0.18);
  color: var(--primary-dark);
}

:root[data-theme="dark"] .site-footer {
  background: rgba(42, 23, 53, 0.94);
  border-color: var(--line);
}

:root[data-theme="dark"] .payment-footer-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--text);
}

:root[data-theme="dark"] .payment-footer-chip.applepay svg {
  color: #f8fafc;
}

:root[data-theme="dark"] .payment-logo-button {
  box-shadow: 0 12px 28px rgba(10, 3, 14, 0.32);
}

:root[data-theme="dark"] .apple-cash-payment-button,
:root[data-theme="dark"] .apple-cash-pill,
:root[data-theme="dark"] .site-footer .apple-cash-pill {
  background: #f8fafc;
  color: #111827;
}

:root[data-theme="dark"] .apple-cash-payment-button svg {
  color: #111827;
}

:root[data-theme="dark"] .grab-note {
  background: rgba(34, 211, 197, 0.1);
  border-color: rgba(34, 211, 197, 0.28);
  color: var(--primary-dark);
}

:root[data-theme="dark"] .stripe-checkout-note {
  background: rgba(34, 211, 197, 0.1);
  border-color: rgba(34, 211, 197, 0.28);
}

:root[data-theme="dark"] .receipt-help-note {
  background: rgba(255, 111, 159, 0.12);
  border-color: rgba(255, 111, 159, 0.24);
}

.manual-card {
  display: grid;
  gap: 16px;
}

.manual-section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.manual-section h3,
.manual-section p {
  margin: 0;
}

.manual-section ul,
.manual-section ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.manual-section li + li {
  margin-top: 6px;
}

@media (max-width: 760px) {
  body {
    scroll-padding-top: 148px;
  }

  .store-shell {
    padding-top: calc(156px + env(safe-area-inset-top));
  }

  .store-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    transform: none !important;
    z-index: 1000;
  }
}

/* H10 v2.1 storefront overhaul */
:root {
  --store-navy: #102a43;
  --store-teal: #00a7a5;
  --store-teal-dark: #007d7d;
  --store-coral: #ff668c;
  --store-yellow: #ffd34e;
  --store-blue: #dff4ff;
  --store-pink: #fff0f5;
  --store-mint: #e6faf7;
}

body {
  background: #f6fbfd;
}

.store-shell {
  width: min(1440px, 100%);
  padding: 122px 24px 100px;
}

.store-status-bar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1002;
  width: min(1440px, 100%);
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  color: #fff;
  background: var(--store-navy);
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.store-status-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.store-status-bar svg {
  width: 14px;
  height: 14px;
  color: var(--store-yellow);
}

.store-topbar {
  top: 32px !important;
  min-height: 72px;
  margin: 0;
  padding: 8px 24px;
  border: 0;
  border-bottom: 1px solid #dbe7ec;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
}

.store-topbar .brand-logo {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.store-topbar .brand {
  gap: 10px;
}

.store-topbar .brand h1 {
  color: var(--store-navy);
  font-size: 21px;
  line-height: 1.05;
}

.store-topbar .brand p {
  margin-top: 3px;
  color: #597183;
  font-size: 11px;
}

.store-topbar .desktop-nav {
  gap: 2px;
}

.store-topbar .desktop-nav a {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  color: #40566a;
}

.store-topbar .desktop-nav a:hover,
.store-topbar .desktop-nav a:focus-visible {
  color: var(--store-navy);
  background: var(--store-blue);
}

.store-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-cart-link,
.store-topbar .theme-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #d4e3e9;
  border-radius: 6px;
  color: var(--store-navy);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.header-cart-link:hover,
.store-topbar .theme-toggle:hover {
  border-color: var(--store-teal);
  background: var(--store-mint);
}

.header-cart-link svg,
.store-topbar .theme-toggle svg {
  width: 18px;
  height: 18px;
}

.header-cart-link strong {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--store-coral);
  font-size: 11px;
}

.store-main {
  gap: 0;
}

.store-welcome {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 36px;
  align-items: center;
  padding: 34px 36px;
  border-radius: 8px;
  color: var(--store-navy);
  background: var(--store-blue);
}

.welcome-copy {
  min-width: 0;
}

.welcome-copy .eyebrow {
  color: var(--store-teal-dark);
}

.welcome-copy h2 {
  max-width: 620px;
  margin: 0;
  color: var(--store-navy);
  font-size: 48px;
  line-height: 1.02;
}

.welcome-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 14px 0 20px;
  color: #405d72;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.welcome-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.welcome-search label {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #b9dbe6;
  border-radius: 6px;
  background: #fff;
}

.welcome-search label:focus-within {
  border-color: var(--store-teal);
  box-shadow: 0 0 0 3px rgba(0, 167, 165, 0.13);
}

.welcome-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--store-navy);
  background: transparent;
  font-weight: 700;
}

.welcome-search .button {
  width: auto;
  min-height: 52px;
  padding: 0 16px;
  color: #fff;
  border-color: var(--store-teal-dark);
  background: var(--store-teal-dark);
}

.welcome-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
}

.welcome-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #486477;
  font-size: 11px;
  font-weight: 900;
}

.welcome-trust-row svg {
  width: 15px;
  height: 15px;
  color: var(--store-teal-dark);
}

.welcome-shelf {
  min-width: 0;
}

.welcome-shelf-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.welcome-shelf-heading div {
  display: grid;
  gap: 2px;
}

.welcome-shelf-heading span {
  color: #557184;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.welcome-shelf-heading strong {
  font-size: 19px;
}

.welcome-shelf-heading a {
  color: var(--store-teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.welcome-product-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.welcome-product-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 114px minmax(48px, auto);
  overflow: hidden;
  border: 1px solid #c8e1e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.08);
}

.welcome-product-image {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px;
  overflow: hidden;
  background: #f8fcfe;
}

.welcome-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.welcome-product-image.image-missing img {
  display: none;
}

.welcome-product-image.image-missing .fallback-art {
  display: grid;
}

.welcome-product-card > div:not(.welcome-product-image) {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 34px 8px 9px;
  border-top: 1px solid #e2edf1;
}

.welcome-product-card strong {
  overflow: hidden;
  color: var(--store-navy);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-product-card span {
  color: var(--store-teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.welcome-add-button {
  position: absolute;
  right: 7px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--store-coral);
}

.welcome-add-button svg {
  width: 16px;
  height: 16px;
}

.store-section.home-band {
  padding: 28px 4px;
  border: 0;
  border-bottom: 1px solid #dce9ee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.store-section.home-band .section-heading {
  margin-bottom: 16px;
}

.store-section.home-band .section-heading h2 {
  color: var(--store-navy);
  font-size: 26px;
}

.store-section.home-band .eyebrow,
.shop-area .eyebrow {
  color: var(--store-teal-dark);
}

.category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.category-card {
  min-height: 108px;
  align-content: start;
  padding: 14px;
  border-color: transparent;
  border-radius: 8px;
  background: var(--store-mint);
  transition: transform 140ms ease, border-color 140ms ease;
}

.category-card:hover {
  border-color: var(--store-teal);
  transform: translateY(-2px);
}

.category-card.category-crunch-corner {
  background: #fff5dc;
}

.category-card.category-sweet-breaks {
  background: var(--store-pink);
}

.category-card.category-sip-station {
  background: #e9f4ff;
}

.category-card.category-deals {
  background: #fff4bf;
}

.category-card.category-under-2 {
  background: #edf2ff;
}

.category-card svg {
  color: var(--store-navy);
}

.category-card strong {
  color: var(--store-navy);
  font-size: 14px;
  line-height: 1.15;
}

.category-card span {
  color: #526b7c;
  line-height: 1.3;
}

.feature-strip {
  grid-auto-flow: initial;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: visible;
  gap: 10px;
}

.feature-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 150px minmax(68px, auto);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  border-color: #dce8ed;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.06);
}

.feature-card-image {
  width: 100%;
  height: 150px;
  padding: 12px;
  border-radius: 0;
  background: #f4fafc;
}

.feature-card-image img {
  filter: none;
}

.feature-card > div:not(.feature-card-image) {
  align-content: center;
  padding: 10px 44px 10px 11px;
  border-top: 1px solid #e1ebef;
}

.feature-card > div:not(.feature-card-image) > span {
  color: var(--store-coral);
  text-transform: uppercase;
}

.feature-card strong {
  overflow: hidden;
  color: var(--store-navy);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card .icon-button {
  position: absolute;
  right: 10px;
  bottom: 18px;
  width: 30px;
  height: 30px;
  color: #fff;
  border-color: var(--store-coral);
  border-radius: 6px;
  background: var(--store-coral);
}

.favorites-section {
  margin-top: 4px;
  padding-right: 16px !important;
  padding-left: 16px !important;
  background: var(--store-pink) !important;
}

.home-deals-preview {
  padding-right: 16px !important;
  padding-left: 16px !important;
  background: #fff9df !important;
}

.how-it-works-section {
  padding-right: 16px !important;
  padding-left: 16px !important;
  background: #eef9f8 !important;
}

.shop-area,
.deals-section,
.cart-section,
.request-section,
.help-section {
  padding: 24px;
  border-color: #dce9ee;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.06);
}

.shop-area .toolbar > div {
  display: grid;
  gap: 3px;
}

.shelf-count-label {
  color: #657b8b;
  font-size: 12px;
  font-weight: 800;
}

.shop-area .search-row {
  padding: 12px;
  border-radius: 8px;
  background: #f4f9fb;
}

.shop-area .scroll-chips {
  margin-top: 12px;
}

.filter-chip {
  min-height: 38px;
  border-radius: 999px;
  color: #486073;
  background: #f1f6f8;
}

.filter-chip.active {
  color: #fff;
  border-color: var(--store-navy);
  background: var(--store-navy);
}

.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  min-height: 390px;
  border-color: #dce8ed;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(16, 42, 67, 0.06);
}

.product-card:hover {
  border-color: var(--store-teal);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.11);
}

.product-image {
  min-height: 190px;
  padding: 12px;
  aspect-ratio: 1.08 / 1;
  background: #f3faf9;
}

.product-card.category-drink .product-image {
  background: #eaf7ff;
}

.product-card.category-sweet .product-image {
  background: #fff1f6;
}

.product-card.category-salty .product-image {
  background: #fff8e5;
}

.product-image img {
  padding: 5px;
  border: 0;
  background: transparent;
  filter: none;
}

.product-body {
  gap: 9px;
  padding: 12px;
}

.product-card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  color: var(--store-navy);
  font-size: 15px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-title-row .price {
  color: var(--store-teal-dark);
  font-size: 16px;
}

.product-card .tag {
  color: #536b7b;
  background: #f1f6f8;
}

.product-card .button.primary,
.product-card-stepper {
  color: #fff;
  border-color: var(--store-teal-dark);
  background: var(--store-teal-dark);
}

.product-card-stepper .stepper {
  color: var(--store-navy);
  background: #fff;
}

.stock-badge {
  color: var(--store-navy);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.08);
}

.floating-cart {
  bottom: 18px;
  min-height: 58px;
  width: min(620px, calc(100vw - 32px));
  padding: 7px 8px 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: var(--store-navy);
  box-shadow: 0 16px 36px rgba(16, 42, 67, 0.25);
  backdrop-filter: none;
}

.floating-cart-action {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 6px;
  color: var(--store-navy);
  background: var(--store-yellow);
}

.mobile-nav {
  left: 0;
  right: 0;
  bottom: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(16, 42, 67, 0.1);
  backdrop-filter: none;
}

.mobile-nav a {
  min-height: 54px;
  border-radius: 6px;
}

.mobile-nav a.active {
  color: var(--store-navy);
  background: var(--store-blue);
}

.mini-logo {
  border-radius: 5px;
  color: #fff;
  background: var(--store-coral);
}

.site-footer {
  gap: 14px;
  margin-top: 0;
  padding: 22px 20px;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.payment-footer {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.payment-footer-chip {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 6px;
  background: #f4f8fa;
  font-size: 12px;
}

:root[data-theme="dark"] body {
  background: #180f1d;
}

:root[data-theme="dark"] .store-status-bar {
  color: #fff;
  background: #0f2d2e;
}

:root[data-theme="dark"] .store-topbar,
:root[data-theme="dark"] .mobile-nav,
:root[data-theme="dark"] .site-footer {
  border-color: #51305e;
  background: rgba(36, 20, 43, 0.98);
}

:root[data-theme="dark"] .store-topbar .brand h1,
:root[data-theme="dark"] .header-cart-link,
:root[data-theme="dark"] .store-topbar .theme-toggle,
:root[data-theme="dark"] .welcome-copy h2,
:root[data-theme="dark"] .welcome-product-card strong,
:root[data-theme="dark"] .store-section.home-band .section-heading h2,
:root[data-theme="dark"] .category-card strong,
:root[data-theme="dark"] .feature-card strong,
:root[data-theme="dark"] .product-card h3 {
  color: #fff8fb;
}

:root[data-theme="dark"] .store-topbar .brand p,
:root[data-theme="dark"] .store-topbar .desktop-nav a {
  color: #d7b9cf;
}

:root[data-theme="dark"] .header-cart-link,
:root[data-theme="dark"] .store-topbar .theme-toggle {
  border-color: #5d3a67;
  background: #321d39;
}

:root[data-theme="dark"] .store-welcome {
  color: #fff8fb;
  background: #33213d;
}

:root[data-theme="dark"] .welcome-copy > p:not(.eyebrow),
:root[data-theme="dark"] .welcome-trust-row span,
:root[data-theme="dark"] .welcome-shelf-heading span {
  color: #d7b9cf;
}

:root[data-theme="dark"] .welcome-search label,
:root[data-theme="dark"] .welcome-product-card,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .shop-area,
:root[data-theme="dark"] .deals-section,
:root[data-theme="dark"] .cart-section,
:root[data-theme="dark"] .request-section,
:root[data-theme="dark"] .help-section {
  border-color: #51305e;
  background: #2a1735;
}

:root[data-theme="dark"] .welcome-search input {
  color: #fff8fb;
}

:root[data-theme="dark"] .welcome-product-image,
:root[data-theme="dark"] .feature-card-image,
:root[data-theme="dark"] .product-image,
:root[data-theme="dark"] .product-card.category-drink .product-image,
:root[data-theme="dark"] .product-card.category-sweet .product-image,
:root[data-theme="dark"] .product-card.category-salty .product-image {
  background: #3a2442;
}

:root[data-theme="dark"] .category-card,
:root[data-theme="dark"] .category-card.category-crunch-corner,
:root[data-theme="dark"] .category-card.category-sweet-breaks,
:root[data-theme="dark"] .category-card.category-sip-station,
:root[data-theme="dark"] .category-card.category-deals,
:root[data-theme="dark"] .category-card.category-under-2 {
  background: #33213d;
}

:root[data-theme="dark"] .category-card span,
:root[data-theme="dark"] .shelf-count-label {
  color: #d7b9cf;
}

:root[data-theme="dark"] .favorites-section {
  background: #321c38 !important;
}

:root[data-theme="dark"] .home-deals-preview {
  background: #342b21 !important;
}

:root[data-theme="dark"] .how-it-works-section {
  background: #1d3132 !important;
}

:root[data-theme="dark"] .store-section.home-band {
  border-color: #51305e;
}

:root[data-theme="dark"] .shop-area .search-row,
:root[data-theme="dark"] .filter-chip,
:root[data-theme="dark"] .product-card .tag,
:root[data-theme="dark"] .payment-footer-chip {
  background: #36203f;
}

:root[data-theme="dark"] .product-card {
  border-color: #51305e;
  background: #2a1735;
}

:root[data-theme="dark"] .floating-cart {
  color: #fff;
  background: #0f2d2e;
}

@media (max-width: 1120px) {
  .store-welcome {
    grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
    gap: 24px;
    padding: 28px;
  }

  .welcome-copy h2 {
    font-size: 40px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .store-welcome {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .floating-cart {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  body {
    scroll-padding-top: 112px;
  }

  .store-shell {
    padding: calc(112px + env(safe-area-inset-top)) 10px calc(84px + env(safe-area-inset-bottom));
  }

  .store-status-bar {
    left: 0;
    width: 100%;
    min-height: 30px;
    padding: 0 10px;
    transform: none;
    font-size: 9px;
  }

  .store-status-bar #welcomeStockCount {
    display: none;
  }

  .store-topbar {
    display: flex !important;
    grid-template-columns: none;
    flex-wrap: nowrap;
    align-items: center;
    top: 30px !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 68px;
    padding: 7px 10px;
    transform: none !important;
  }

  .store-topbar .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .store-topbar .brand > div {
    min-width: 0;
  }

  .store-topbar .brand h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-header-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .store-topbar .brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .store-topbar .brand h1 {
    font-size: 17px;
  }

  .store-topbar .brand p,
  .header-cart-link > span,
  .store-topbar .theme-toggle > span {
    display: none;
  }

  .header-cart-link,
  .store-topbar .theme-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .header-cart-link {
    position: relative;
  }

  .header-cart-link strong {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .store-welcome {
    gap: 24px;
    padding: 22px 16px;
  }

  .welcome-copy h2 {
    font-size: 34px;
  }

  .welcome-copy > p:not(.eyebrow) {
    margin: 10px 0 16px;
    font-size: 15px;
  }

  .welcome-search {
    grid-template-columns: 1fr;
  }

  .welcome-search .button {
    width: 100%;
  }

  .welcome-trust-row {
    gap: 8px 12px;
  }

  .welcome-product-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 148px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x proximity;
  }

  .welcome-product-card {
    grid-template-rows: 112px minmax(50px, auto);
    scroll-snap-align: start;
  }

  .store-section.home-band {
    padding: 24px 4px;
  }

  .category-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 154px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x proximity;
  }

  .category-card {
    min-height: 112px;
    scroll-snap-align: start;
  }

  .feature-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 190px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x proximity;
  }

  .feature-card {
    grid-template-columns: 1fr;
    grid-template-rows: 148px minmax(72px, auto);
    scroll-snap-align: start;
  }

  .favorites-section,
  .home-deals-preview,
  .how-it-works-section {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .shop-area,
  .deals-section,
  .cart-section,
  .request-section,
  .help-section {
    padding: 14px;
    scroll-margin-top: 108px;
  }

  .shop-area .toolbar {
    align-items: end;
  }

  .shop-area .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .store-shell .product-card {
    min-width: 0;
    min-height: 340px;
    display: flex;
    grid-template-columns: none;
    flex-direction: column;
  }

  .store-shell .product-image {
    width: 100%;
    min-height: 142px;
    height: 142px;
    padding: 8px;
    aspect-ratio: auto;
  }

  .store-shell .product-body {
    min-height: 190px;
    gap: 7px;
    padding: 9px;
  }

  .store-shell .product-card h3 {
    min-height: 34px;
    font-size: 13px;
  }

  .store-shell .product-title-row {
    display: grid;
    gap: 4px;
  }

  .store-shell .product-title-row .price {
    font-size: 15px;
  }

  .store-shell .product-badge-row {
    min-height: 0;
  }

  .store-shell .tag-row .tag:nth-child(n+2) {
    display: none;
  }

  .store-shell .product-card .button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 12px;
  }

  .store-shell .product-card-stepper {
    grid-template-columns: 34px 1fr 34px;
    gap: 4px;
    padding: 4px;
  }

  .store-shell .stock-badge {
    left: 6px;
    top: 6px;
    max-width: calc(100% - 12px);
    padding: 4px 6px;
    font-size: 9px;
  }

  .floating-cart {
    left: 10px;
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: auto;
    min-height: 54px;
    transform: none;
  }

  .floating-cart-summary span {
    font-size: 12px;
  }

  .floating-cart-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .payment-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payment-footer-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-footer-chip {
    justify-content: center;
  }
}

@media (max-width: 370px) {
  .store-topbar .brand h1 {
    max-width: 132px;
    font-size: 15px;
  }

  .store-status-bar span:last-child {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* H10 v2.1.1 product image and dark-mode visibility polish */
.category-card svg {
  width: 24px;
  height: 24px;
  box-sizing: content-box;
  padding: 6px;
  border-radius: 6px;
  color: var(--store-teal-dark);
  background: rgba(0, 167, 165, 0.13);
}

.category-card.category-crunch-corner svg,
.category-card.category-deals svg {
  color: #775500;
  background: rgba(255, 211, 78, 0.34);
}

.category-card.category-sweet-breaks svg {
  color: #a51f4d;
  background: rgba(255, 102, 140, 0.18);
}

.category-card.category-sip-station svg {
  color: #1e6598;
  background: rgba(77, 170, 232, 0.17);
}

.category-card.category-under-2 svg {
  color: #4257a7;
  background: rgba(92, 117, 219, 0.15);
}

.product-image img,
.feature-card-image img,
.welcome-product-image img {
  width: 84%;
  height: 84%;
  margin: auto;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.feature-card-image img,
.welcome-product-image img {
  width: 86%;
  height: 86%;
}

:root[data-theme="dark"] .category-card svg {
  color: #8bf3ec;
  background: rgba(34, 211, 197, 0.14);
}

:root[data-theme="dark"] .category-card.category-crunch-corner svg,
:root[data-theme="dark"] .category-card.category-deals svg {
  color: #ffe486;
  background: rgba(255, 211, 78, 0.15);
}

:root[data-theme="dark"] .category-card.category-sweet-breaks svg {
  color: #ff9cba;
  background: rgba(255, 102, 140, 0.15);
}

:root[data-theme="dark"] .category-card.category-sip-station svg {
  color: #9ddcff;
  background: rgba(77, 170, 232, 0.15);
}

:root[data-theme="dark"] .category-card.category-under-2 svg {
  color: #c4ceff;
  background: rgba(148, 164, 255, 0.14);
}

:root[data-theme="dark"] .welcome-product-image,
:root[data-theme="dark"] .feature-card-image,
:root[data-theme="dark"] .product-image,
:root[data-theme="dark"] .product-card.category-drink .product-image,
:root[data-theme="dark"] .product-card.category-sweet .product-image,
:root[data-theme="dark"] .product-card.category-salty .product-image {
  background: #c7bbc9;
}

:root[data-theme="dark"] .product-image img,
:root[data-theme="dark"] .feature-card-image img,
:root[data-theme="dark"] .welcome-product-image img {
  filter: saturate(1.06) contrast(1.02);
}

/* H10 v2.1.2 simplified header and theme-matched cart */
.store-shell {
  padding-top: 90px;
}

.store-topbar {
  top: 0 !important;
}

:root[data-theme="dark"] .floating-cart {
  border-color: #71436f;
  background: #3a203f;
  box-shadow: 0 16px 36px rgba(10, 3, 14, 0.46);
}

:root[data-theme="dark"] .floating-cart-action {
  color: #fff;
  background: var(--store-coral);
}

@media (max-width: 760px) {
  body {
    scroll-padding-top: 80px;
  }

  .store-shell {
    padding-top: calc(80px + env(safe-area-inset-top));
  }

  .store-topbar {
    top: 0 !important;
  }

  .shop-area,
  .cart-section,
  .page-section {
    scroll-margin-top: 78px;
  }
}

/* H10 v2.2.1 storefront cascade lock */
.store-welcome {
  scroll-margin-top: 78px;
}

.store-welcome {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.64fr);
  gap: 40px;
  align-items: end;
  padding: 42px 8px 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: transparent;
}

.welcome-copy h2 {
  max-width: none;
  margin-top: 7px;
  font-size: 44px;
  line-height: 1.04;
}

.welcome-copy > p:not(.eyebrow) {
  margin: 9px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.welcome-search label,
.welcome-search .button {
  min-height: 48px;
}

.category-filter-section {
  padding: 16px 4px 22px !important;
}

.category-filter-section .category-grid {
  display: flex;
  grid-template-columns: none;
  grid-auto-flow: initial;
  grid-auto-columns: auto;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: none;
}

.feature-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: initial;
  grid-auto-columns: auto;
  gap: 12px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.feature-card {
  min-width: 0;
  grid-template-rows: 178px minmax(104px, auto);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 33, 63, 0.05);
}

.feature-card-image {
  height: 178px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f0eaf1;
}

.feature-card > div.feature-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px 46px 12px 12px;
  border-top: 0;
}

.feature-card > div.feature-card-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.feature-card > div.feature-card-copy > strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card > div.feature-card-copy > small {
  color: var(--primary-dark);
  font-size: 14px;
}

.feature-card .icon-button {
  right: 11px;
  bottom: 15px;
  width: 32px;
  height: 32px;
}

.favorites-section,
.home-deals-preview,
.how-it-works-section {
  padding-right: 4px !important;
  padding-left: 4px !important;
  background: transparent !important;
}

:root[data-theme="dark"] .store-welcome {
  color: #fff8fb;
  background: transparent;
}

:root[data-theme="dark"] .feature-card {
  border-color: #51305e;
  background: #2a1735;
}

:root[data-theme="dark"] .feature-card-image {
  background: #c7bbc9;
}

:root[data-theme="dark"] .feature-card > div.feature-card-copy > span {
  color: #d7b9cf;
}

:root[data-theme="dark"] .feature-card > div.feature-card-copy > strong {
  color: #fff8fb;
}

:root[data-theme="dark"] .feature-card > div.feature-card-copy > small {
  color: #22d3c5;
}

@media (max-width: 900px) {
  .store-welcome {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  }
}

@media (max-width: 760px) {
  .store-welcome {
    scroll-margin-top: 72px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 4px 22px;
  }

  .welcome-copy h2 {
    font-size: 34px;
  }

  .category-filter-section {
    padding: 14px 4px 20px !important;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: auto;
    gap: 9px;
    overflow: visible;
  }

  .feature-card {
    grid-template-rows: 132px minmax(112px, auto);
    scroll-snap-align: none;
  }

  .feature-card-image {
    height: 132px;
    padding: 10px;
  }

  .feature-card > div.feature-card-copy {
    padding: 10px 42px 10px 10px;
  }

  .feature-card > div.feature-card-copy > span {
    white-space: normal;
  }

  .feature-card > div.feature-card-copy > strong {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .feature-card .icon-button {
    right: 8px;
    bottom: 10px;
  }
}

@media (max-width: 420px) {
  .home-availability {
    gap: 4px;
  }

  .home-availability strong {
    font-size: 16px;
  }

  .home-availability span {
    display: inline;
    font-size: 10px;
  }
}
