:root {
  --brand: #0c7a52;
  --brand-dark: #085c3e;
  --brand-soft: #e7f6ef;
  --sale: #d0123f;
  --ink: #14241c;
  --muted: #5d6d64;
  --line: #e4ebe7;
  --bg: #f3f6f4;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(16, 42, 30, 0.06);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

/* Sticky footer: on short pages (Brands, 404, empty cart...) the footer sits at the bottom of the screen instead of the middle. */
body:not(.admin-body) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:not(.admin-body) > main { flex: 1 0 auto; width: 100%; }
body:not(.admin-body) > .site-footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(32px, 4vw, 44px); }
h2 { font-size: clamp(26px, 3vw, 34px); }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 48px)); }
.page { padding: 48px 0 16px; }
.muted { color: var(--muted); }
.sale { color: var(--sale); }
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow.light { color: #b7f0d4; }
.text-link { color: var(--brand); font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(20, 36, 28, 0.06);
  font-size: 12px;
}
html:has(.nav-toggle:checked) .site-header { z-index: 80; }
html:has(.nav-toggle:checked) .mobile-nav { display: none; }
.header-main, .primary-nav-inner, .footer-bottom, .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.type-line {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #31443a;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.type-caret {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  background: var(--brand);
  vertical-align: text-bottom;
  animation: type-blink 1s steps(1) infinite;
}
@keyframes type-blink {
  50% { opacity: 0; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-main { min-height: 64px; gap: 12px; justify-content: flex-start; }
.logo-link { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; flex: none; }
.logo-words { display: flex; flex-direction: column; gap: 1px; }
.logo-name { font-size: 14px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); }
.logo-text {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.logo-img { height: 46px; width: auto; object-fit: contain; }
.logo-tag { color: var(--muted); font-size: 11px; font-weight: 600; }
.search-form {
  flex: 1 1 220px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-left: 4px;
  font-size: 12px;
  padding: 3px 3px 3px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(16, 42, 30, 0.03);
}
.search-form svg { width: 14px; height: 14px; stroke: #7b8c84; fill: none; stroke-width: 2; flex: none; }
.search-form input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  min-width: 0;
  color: var(--ink);
}
.search-form button, .btn, .btn-brand, .btn-dark, .rx-pill, .cart-pill {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 700;
}
.search-form button, .btn-brand, .cart-pill {
  background: var(--brand);
  color: #fff;
}
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 8px;
}
.search-form button svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }
.search-form button:hover, .btn-brand:hover, .cart-pill:hover { background: var(--brand-dark); }
/* Live search suggestions under the header search bar */
.search-form { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  width: max(100%, 380px); max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16, 42, 30, 0.16); padding: 6px; font-size: 13px;
}
.search-suggest[hidden] { display: none; }
.search-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.search-item:hover, .search-item.is-active { background: var(--brand-soft, #e7f6ef); }
.search-pic {
  flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #f4f7f5;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--brand-dark);
}
.search-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.search-name { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-meta { color: var(--muted); font-size: 12px; }
.search-all { display: block; text-align: center; padding: 9px 8px 6px; color: var(--brand); font-weight: 700; text-decoration: none; }
.search-all:hover { text-decoration: underline; }
.search-empty { margin: 0; padding: 12px; color: var(--muted); text-align: center; }
@media (max-width: 1023px) { .search-suggest { width: 100%; } }
.header-cluster {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  margin-left: auto;
}
.header-contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  min-width: 0;
}
.header-contact {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.header-contact a { color: var(--brand-dark); }
.header-contact a:hover { color: var(--brand); }
.header-cluster-actions { display: flex; align-items: center; gap: 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-link, .cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}
.icon-link {
  color: var(--ink);
  font-weight: 700;
  border-radius: 12px;
}
.icon-link:hover { background: var(--brand-soft); }
.count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-pill {
  position: relative;
  justify-content: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: transparent;
  color: var(--brand-dark);
}
.cart-pill:hover { background: var(--brand-soft); }
.cart-pill svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cart-pill .count {
  position: absolute;
  top: 2px;
  right: -1px;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  font-size: 8px;
  background: var(--brand);
  color: #fff;
}
@keyframes cart-added {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(12, 122, 82, 0.45); }
  28% { transform: scale(1.1) translateY(-2px); box-shadow: 0 0 0 8px rgba(12, 122, 82, 0); }
  52% { transform: scale(0.96); }
  74% { transform: scale(1.05); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(12, 122, 82, 0); }
}
@keyframes cart-count-pop {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.45); background: #fff; color: var(--brand-dark); }
}
.cart-pill.is-added { animation: cart-added 0.7s cubic-bezier(.2, .8, .2, 1); }
.cart-pill.is-added .count { animation: cart-count-pop 0.7s ease; }
.cart-pill[aria-expanded="true"] { background: var(--brand-soft); }
.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
}
.account-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-link:hover,
.account-link.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.mobile-nav .is-added { animation: cart-added 0.7s cubic-bezier(.2, .8, .2, 1); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger, .nav-backdrop, .side-head, .primary-nav .side-only { display: none; }
.primary-nav { padding: 0 0 8px; }
.primary-nav-inner { justify-content: flex-start; gap: 4px; min-height: 36px; }
.primary-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #31443a;
  font-size: 12px;
  font-weight: 600;
}
.primary-nav a:hover, .primary-nav a.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.primary-nav .rx-pill {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 5px 7px;
  border: 0;
  border-radius: 999px;
  background: var(--sale);
  color: #fff !important;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.home { padding: 28px 0 8px; }
.hero { display: grid; grid-template-columns: 1.7fr 0.9fr; gap: 20px; min-height: 360px; }
.hero-main, .hero-side a, .banner-copy, .h-banner, .placeholder, .promo-card { border-radius: 28px; overflow: hidden; }
.hero-visual, .side-visual, .h-banner, .placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-main { min-height: 360px; display: block; }
.hero-side { display: grid; gap: 20px; }
.banner-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 160px;
  padding: 28px;
  color: #fff;
}
.banner-copy p { margin: 0; opacity: 0.85; font-size: 14px; }
.banner-copy strong { font-size: clamp(22px, 3vw, 40px); letter-spacing: -0.04em; line-height: 1.05; max-width: 12ch; }
.hero-side .banner-copy strong { font-size: 26px; }
.order-steps {
  --step-time: 6.46s;
  margin-top: 20px;
  padding: 22px 16px 16px;
  background: var(--card);
  border: 1px solid rgba(20, 36, 28, 0.05);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.order-steps-row { position: relative; min-width: 760px; }
.order-rail {
  position: absolute;
  left: calc(100% / 14);
  right: calc(100% / 14);
  top: 21px;
  height: 2px;
  background: #d5e6dc;
}
.order-rail span {
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--brand));
  animation: rail-run var(--step-time) linear infinite;
}
.order-rail span::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  transform: rotate(45deg);
}
@keyframes rail-run {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 42px); opacity: 0; }
}
.order-steps ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.order-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.step-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--brand-dark);
  box-shadow: 0 0 0 5px #fff;
  animation: step-pop var(--step-time) linear infinite;
}
.order-steps li:nth-child(1) .step-mark { animation-delay: 0s; }
.order-steps li:nth-child(2) .step-mark { animation-delay: calc(var(--step-time) * 0.123); }
.order-steps li:nth-child(3) .step-mark { animation-delay: calc(var(--step-time) * 0.298); }
.order-steps li:nth-child(4) .step-mark { animation-delay: calc(var(--step-time) * 0.474); }
.order-steps li:nth-child(5) .step-mark { animation-delay: calc(var(--step-time) * 0.649); }
.order-steps li:nth-child(6) .step-mark { animation-delay: calc(var(--step-time) * 0.824); }
.order-steps li:nth-child(7) .step-mark { animation-delay: calc(var(--step-time) * 0.98); }
@keyframes step-pop {
  0% {
    transform: scale(1);
    background: #fff;
    box-shadow: 0 0 0 5px #fff, 0 0 0 0 rgba(12, 122, 82, 0.35);
  }
  3% {
    transform: scale(1.14);
    background: #e7f6ef;
    box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(12, 122, 82, 0.22);
  }
  9%, 100% {
    transform: scale(1);
    background: #fff;
    box-shadow: 0 0 0 5px #fff, 0 0 0 0 rgba(12, 122, 82, 0);
  }
}
.step-mark svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.order-steps p {
  margin: 0;
  max-width: 12ch;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
@media (prefers-reduced-motion: reduce) {
  .order-rail span { animation: none; left: 0; width: 100%; opacity: 1; }
  .order-rail span::after { display: none; }
  .step-mark { animation: none; }
  .order-steps li::after { animation: none; opacity: 1; transform: rotate(45deg); }
}
@media (max-width: 860px) {
  .order-steps { overflow: hidden; padding: 16px 14px; }
  .order-steps-row { min-width: 0; }
  .order-steps ol {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .order-steps li {
    position: relative;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
  }
  .order-steps p { max-width: none; white-space: nowrap; }
  .order-rail { display: none; }
  .order-steps .step-mark { position: relative; z-index: 1; }
  .order-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 22px;
    width: 2px;
    height: calc(100% + 18px);
    background: #b7d7c8;
    z-index: 0;
  }
  .order-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: -5px;
    top: calc(100% + 4px);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
    z-index: 2;
    animation: step-arrow-down var(--step-time) ease-in-out infinite;
  }
  .order-steps li:nth-child(1)::after { animation-delay: calc(var(--step-time) * 0.06); }
  .order-steps li:nth-child(2)::after { animation-delay: calc(var(--step-time) * 0.2); }
  .order-steps li:nth-child(3)::after { animation-delay: calc(var(--step-time) * 0.36); }
  .order-steps li:nth-child(4)::after { animation-delay: calc(var(--step-time) * 0.52); }
  .order-steps li:nth-child(5)::after { animation-delay: calc(var(--step-time) * 0.68); }
  .order-steps li:nth-child(6)::after { animation-delay: calc(var(--step-time) * 0.84); }
}
@keyframes step-arrow-down {
  0%, 18% { opacity: 0.25; transform: translateY(-8px) rotate(45deg); }
  32%, 70% { opacity: 1; transform: translateY(0) rotate(45deg); }
  100% { opacity: 0.25; transform: translateY(0) rotate(45deg); }
}
.product-card, .summary, .cart-line, .panel, .order-card, .stat {
  background: var(--card);
  border: 1px solid rgba(20, 36, 28, 0.05);
  box-shadow: var(--shadow);
}
.story p, .assist p { margin: 0; color: var(--muted); }

.section { margin-top: 56px; }
.cat-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 18px;
}
.cat-head h2 { margin: 0; font-size: 20px; text-align: center; }
.cat-all {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}
.cat-marquee { display: flex; gap: 18px; overflow: hidden; }
.cat-track {
  display: flex;
  flex: none;
  gap: 18px;
  animation: cat-loop 42s linear infinite;
}
.cat-marquee:hover .cat-track { animation-play-state: paused; }
@keyframes cat-loop {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 18px)); }
}
.cat-item {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 78px;
  text-align: center;
}
.cat-pic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-soft);
}
.cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-name {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}
@media (prefers-reduced-motion: reduce) {
  .cat-track { animation: none; }
  .cat-track[aria-hidden="true"] { display: none; }
}
.section-head { align-items: flex-end; margin-bottom: 22px; }
.product-row .text-link { font-size: 11px; font-weight: 700; }
.section-head.is-centered { position: relative; justify-content: center; align-items: center; }
.section-head.is-centered h2 { margin: 0; font-size: 20px; text-align: center; }
.section-head.is-centered .text-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
}
.tile-grid, .product-grid, .promo-grid, .footer-top, .cards { display: grid; gap: 16px; }
.tile-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tile {
  display: flex;
  align-items: flex-end;
  min-height: 128px;
  padding: 18px;
  border-radius: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #163028;
}
.promo-grid { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.pickup-steps { margin: 0 0 16px; padding-left: 18px; }
.pickup-steps li { margin: 0 0 8px; }
.promo-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: 28px;
  background: linear-gradient(145deg, #0c7a52, #124e3c);
  color: #fff;
}
.promo-card-alt { background: linear-gradient(145deg, #163028, #0d241c); }
.promo-card .eyebrow { color: rgba(255,255,255,.78); }
.hero-main, .hero-side a, .banner-row a { display: block; }
.hero-main .banner-copy, .hero-main .hero-visual { min-height: 360px; }
.hero-side .banner-copy, .hero-side .side-visual { min-height: 170px; }
.promo-card strong { font-size: 28px; margin: 4px 0 8px; }
.promo-card span { color: rgba(255,255,255,.78); }
.banner-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.h-banner { min-height: 180px; }

.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px;
  padding: 14px;
}
.product-media { position: relative; }
.product-media img, .h-photo { aspect-ratio: 1 / 1; height: auto; width: 100%; object-fit: cover; border-radius: 18px; }
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  font-weight: 700;
}
.off-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  background: var(--sale);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
}
.wish-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(16, 42, 30, 0.12);
  cursor: pointer;
}
.badge-row, .cat-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.badge-row span { background: #fff6e8; color: #8a5a12; border-radius: 999px; font-size: 9px; font-weight: 700; padding: 2px 6px; }
.cat-row a { color: var(--brand); font-size: 10px; font-weight: 700; text-transform: capitalize; }
.product-name {
  margin-top: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-height: 32px;
}
.offer-group-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.offer-types { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.offer-types li { color: var(--sale); font-size: 11px; font-weight: 700; line-height: 1.35; }
.delivery, .collect { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.collect { color: var(--brand); font-weight: 600; }
.product-buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price-row { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.price { margin: 0; font-weight: 800; color: var(--ink); font-size: 15px; white-space: nowrap; }
.price-old { margin: 0; color: #9aa79f; text-decoration: line-through; font-size: 11px; white-space: nowrap; }
.price-off { margin: 0; color: var(--sale); font-size: 11px; font-weight: 600; white-space: nowrap; }
.variant-option-copy .variant-option-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 10px;
  text-align: right;
}
.variant-option-price .variant-option-off {
  order: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fdecf0;
  color: var(--sale);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.variant-option-price .variant-option-was {
  order: 2;
  color: #9aa79f;
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
}
.variant-option-price .variant-option-final {
  order: 3;
  color: var(--brand, #0f6b4c);
  font-size: 15px;
  font-weight: 800;
}
.btn-brand { padding: 10px 16px; }
.product-buy .btn-brand { padding: 4px 10px; font-size: 11px; border-radius: 8px; }

.closing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  align-items: stretch;
}
.story, .assist {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
  border-radius: 20px;
  padding: 22px 24px;
  text-align: center;
}
.story { background: #fff; box-shadow: var(--shadow); }
.story > div, .assist > div { flex: 1; }
.story h2, .assist h2 { margin: 0; font-size: 20px; }
.story p, .assist p { max-width: 62ch; margin: 8px auto 0; font-size: 12px; }
.assist { background: linear-gradient(145deg, #0c7a52, #0a3d2e); color: #fff; }
.assist p { color: rgba(255,255,255,.82); }
.assist a {
  flex: none;
  background: #fff;
  color: var(--brand-dark);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stack { display: grid; gap: 14px; margin-top: 24px; }
.stack input, .stack textarea, .stack select, .square {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  outline: none;
}
.stack input:focus, .stack textarea:focus, .stack select:focus { border-color: var(--brand); }
.cart-line { display: flex; gap: 18px; border-radius: 20px; padding: 16px; }
.cart-line img, .thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; flex: none; }
.summary { border-radius: 20px; padding: 22px; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.qty button, .ghost {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  min-width: 36px;
  height: 36px;
  cursor: pointer;
}
.product-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; }
.product-layout .h-product { width: 100%; min-height: 460px; border-radius: 28px; object-fit: cover; }
.buy-panel { background: #fff; border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 8px 0; }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 8px 16px 16px; }
.center { text-align: center; padding: 72px 0; }
.notice { background: var(--brand-soft); color: var(--brand-dark); border-radius: 14px; padding: 14px 16px; margin: 20px 0; }
.notice.is-error { background: #fdecee; color: #8a1f32; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); }
.order-card, .panel, .stat { border-radius: 16px; padding: 18px; margin-top: 14px; }
.cards { grid-template-columns: repeat(4, 1fr); }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-size: 28px; margin-top: 6px; }
.linkish { background: none; border: 0; color: #94a3b8; cursor: pointer; padding: 0; margin-top: 24px; }
.danger { background: none; border: 0; color: var(--sale); cursor: pointer; }
.btn-dark { background: #10241c; color: #fff; padding: 12px 18px; }

.site-footer { margin-top: 36px; background: #10241c; color: #d5e3db; padding: 36px 0 32px; font-size: 12px; line-height: 1.45; }
.footer-top { grid-template-columns: 1.2fr 0.9fr 1fr 0.9fr 1.2fr; gap: 28px; align-items: start; }
.footer-brand .logo-text { background: #fff; color: var(--brand-dark); height: 36px; font-size: 12px; }
.footer-brand .logo-img { height: 42px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-lead { color: #fff; font-size: 13px; font-weight: 700; margin: 12px 0 8px; }
.footer-brand p, .site-footer li { color: #b7c9c0; }
.footer-brand p { margin: 6px 0; }
.footer-tag { margin: 0; }
.admin-cat-card {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.admin-cat-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.admin-cat-edit .admin-field { flex: 1 1 140px; }
.admin-cat-edit img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-soft);
}
.admin-cat-card .danger { font-size: 12px; }
.site-footer h3 { color: #fff; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a:hover { color: #fff; }
.social-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.social-row svg { width: 14px; height: 14px; display: block; }
.contact-facts .social-row a { background: var(--brand); color: #fff; }
.admin-social-list { display: grid; gap: 8px; grid-column: 1 / -1; }
.social-setting {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.social-setting .mail-switch { margin: 0; }
.footer-subscribe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.footer-subscribe input {
  width: min(220px, 100%);
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  outline: none;
}
.footer-subscribe button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}
.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #8ea399;
  font-size: 11px;
  align-items: flex-end;
  gap: 20px 32px;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-direction: column; gap: 6px; }
.footer-legal p:first-child { color: #e7f0eb; font-size: 12px; }
.footer-credit a { color: #e7f0eb; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: #fff; }
.footer-pay { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pay-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.pay-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
  padding: 2px;
  border-radius: 6px;
  background: #fff;
}
/*.mobile-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: #10241c;
  color: #fff;
  border-radius: 18px;
  z-index: 40;
  padding: 10px 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.mobile-nav a, .mobile-nav button { text-align: center; color: #fff; font-size: 12px; font-weight: 700; padding: 8px 0; }
.mobile-nav button {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
} */




/* Premium mobile bottom navigation */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e5eee8;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -5px 24px rgba(12, 55, 35, .09);
}

.mobile-nav a,
.mobile-nav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 52px;
  padding: 6px 2px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #738178;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.mobile-nav svg {
  display: block;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.mobile-nav a.is-active,
.mobile-nav a[aria-current="page"],
.mobile-nav button.is-active {
  background: #e7f6ef;
  color: #0c7a52;
  font-weight: 800;
}

.mobile-nav a:active,
.mobile-nav button:active {
  background: #e7f6ef;
  color: #0c7a52;
}

.mobile-cart-icon {
  position: relative;
  display: inline-flex;
}

.mobile-cart-count {
  position: absolute;
  top: -7px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: #0c7a52;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.mobile-cart-count[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .mobile-nav {
    display: grid;
  }
  .header-cluster-actions .account-link {
    display: none !important;
  }
}

@media (min-width: 861px) {
  .mobile-nav {
    display: none;
  }
}






.site-footer .rx-open {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.site-footer .rx-open:hover { color: #fff; }
body.rx-lock { overflow: hidden; }
.rx-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 11, 9, 0.46);
}
.rx-modal.is-open { display: flex; }
.rx-modal.is-leaving { animation: rx-shade .38s ease forwards; }
.rx-card {
  width: min(320px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e6eeea;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(16, 36, 28, 0.16);
}
.rx-card form { min-width: 0; }
.rx-modal.is-leaving .rx-card { animation: rx-out .38s ease forwards; }
@keyframes rx-shade { to { opacity: 0; } }
@keyframes rx-out { to { opacity: 0; transform: translateY(10px); } }
.rx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.rx-head h2 { margin: 0; font-size: 14px; }
.rx-close {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.rx-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.rx-fields > * { min-width: 0; max-width: 100%; }
.rx-field {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.rx-field:focus { border-color: var(--brand); }
.rx-file {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
}
.rx-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.rx-file-copy {
  display: block;
  min-width: 0;
  max-width: 100%;
  border: 1px dashed #c9d6cf;
  border-radius: 8px;
  padding: 8px 10px;
  overflow: hidden;
}
.rx-file-copy [data-rx-file] {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rx-file-copy small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}
.rx-error { margin: 0; font-size: 12px; color: #b42318; }
.rx-submit {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .rx-modal {
    align-items: center;
    padding: 12px 14px calc(88px + env(safe-area-inset-bottom));
  }
  .rx-card { max-height: calc(100dvh - 112px); }
}
.rx-submit:disabled { opacity: 0.7; cursor: default; }
.rx-submit.is-busy::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: rx-spin 0.6s linear infinite;
}
@keyframes rx-spin { to { transform: rotate(360deg); } }
.rx-done { text-align: center; padding: 16px 8px 10px; }
.rx-done p { margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.rx-check { width: 46px; height: 46px; }
.rx-check circle, .rx-check path {
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rx-check circle {
  stroke-width: 2;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: rx-draw .45s ease forwards;
}
.rx-check path {
  stroke-width: 3;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: rx-draw .35s ease .3s forwards;
}
@keyframes rx-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .rx-modal.is-leaving, .rx-modal.is-leaving .rx-card, .rx-check circle, .rx-check path { animation: none; }
  .rx-check circle, .rx-check path { stroke-dashoffset: 0; }
}

/* Storefront prescription popup (richer look; admin popups keep the base .rx-card) */
.rx-modal:has(.rx-rich) {
  background: rgba(6, 22, 15, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.rx-card.rx-rich {
  position: relative;
  width: min(468px, 100%);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(6, 30, 20, 0.4), 0 6px 18px rgba(6, 30, 20, 0.14);
  animation: rx-pop .32s cubic-bezier(.2, .8, .2, 1);
  scrollbar-width: thin;
}
@keyframes rx-pop { from { opacity: 0; transform: translateY(18px) scale(.96); } }

/* Header: logo only */
.rx-rich .rx-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 30px 56px 22px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 0, rgba(12, 122, 82, 0.14), transparent 70%),
    linear-gradient(180deg, var(--brand-soft), #fff);
}
.rx-rich .rx-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfe6da, transparent);
}
.rx-rich .rx-logo {
  display: block;
  width: auto;
  height: 88px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(12, 122, 82, 0.18));
  animation: rx-logo-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rx-logo-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.rx-rich .rx-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 36, 28, 0.14), inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 21px;
  transition: background .15s ease, color .15s ease, transform .2s ease;
}
.rx-rich .rx-close:hover { background: #fde8e7; color: #b42318; transform: rotate(90deg); }
/* Form */
.rx-rich .rx-fields { gap: 14px; padding: 22px 24px 24px; }
.rx-rich .rx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.rx-rich .rx-label { display: grid; gap: 6px; min-width: 0; }
.rx-rich .rx-label > span:first-child { font-size: 12px; font-weight: 700; color: var(--ink); }
.rx-rich .rx-input { position: relative; display: block; min-width: 0; }
.rx-rich .rx-input svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  fill: none;
  stroke: #7d9488;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke .15s ease;
}
.rx-rich .rx-input:focus-within svg { stroke: var(--brand); }
.rx-rich .rx-field {
  padding: 12px 12px 12px 40px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #f6faf8;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.rx-rich .rx-field:hover { border-color: #cfdcd5; }
.rx-rich .rx-field::placeholder { color: #9aa8a1; }
.rx-rich .rx-field:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(12, 122, 82, 0.14);
}

/* Description / instructions */
.rx-rich .rx-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rx-rich .rx-label-row > span { font-size: 12px; font-weight: 700; color: var(--ink); }
.rx-rich .rx-label-row em { margin-left: 4px; color: #8a9a92; font-size: 11px; font-style: normal; font-weight: 600; }
.rx-rich .rx-count { color: #8a9a92; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rx-rich .rx-input-area svg { top: 14px; margin-top: 0; }
.rx-rich .rx-area {
  display: block;
  min-height: 84px;
  max-height: 160px;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

/* Upload area */
.rx-rich .rx-drop { position: relative; min-width: 0; }
.rx-rich .rx-file-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px dashed #8fc6ad;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(12, 122, 82, 0.1), transparent 55%),
    var(--brand-soft);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rx-rich .rx-file:hover .rx-file-copy,
.rx-rich .rx-file input:focus-visible + .rx-file-copy { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12, 122, 82, 0.1); }
.rx-rich .rx-drop.is-drag .rx-file-copy {
  border-style: solid;
  border-color: var(--brand);
  background: #d6efe3;
  box-shadow: 0 0 0 5px rgba(12, 122, 82, 0.16);
}
.rx-rich .rx-drop.has-file .rx-file-copy {
  border-style: solid;
  border-color: var(--brand);
  background: #fff;
  padding-right: 48px;
}
.rx-rich .rx-file-icon {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(12, 122, 82, 0.2);
}
.rx-rich .rx-file-svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: rx-bob 2.2s ease-in-out infinite;
}
@keyframes rx-bob { 50% { transform: translateY(-3px); } }
.rx-rich .rx-drop.has-file .rx-file-svg { display: none; }
.rx-rich .rx-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rx-rich .rx-pdf {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5484d, #c4262b);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.rx-rich .rx-thumb[hidden], .rx-rich .rx-pdf[hidden], .rx-rich .rx-file-clear[hidden] { display: none; }
.rx-rich .rx-file-text { display: block; min-width: 0; flex: 1; }
.rx-rich .rx-file-copy [data-rx-file] { font-size: 14.5px; }
.rx-rich .rx-file-copy small { margin-top: 3px; }
.rx-rich .rx-drop.has-file .rx-file-copy small { color: var(--brand); }
.rx-rich .rx-file-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef3f0;
  color: #5d6d64;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.rx-rich .rx-file-clear:hover { background: #fde8e7; color: #b42318; }
.rx-rich .rx-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef3f2;
  box-shadow: inset 0 0 0 1px #fbd5d1;
  font-weight: 600;
}

/* Submit + footer note */
.rx-rich .rx-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-size: 15px;
  letter-spacing: .01em;
  box-shadow: 0 10px 22px rgba(12, 122, 82, 0.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rx-rich .rx-submit::after {
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s ease;
}
.rx-rich .rx-submit.is-busy::after { display: none; }
.rx-rich .rx-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(12, 122, 82, 0.36); }
.rx-rich .rx-submit:hover:not(:disabled)::after { transform: translateX(3px); }
.rx-rich .rx-submit:focus-visible { outline: 3px solid rgba(12, 122, 82, 0.35); outline-offset: 2px; }
.rx-rich .rx-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 600;
}
.rx-rich .rx-note svg { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }

/* Success state */
.rx-rich .rx-done { display: grid; justify-items: center; gap: 4px; padding: 44px 24px 48px; }
.rx-rich .rx-done[hidden], .rx-rich .rx-fields[hidden], .rx-rich .rx-error[hidden] { display: none; }
.rx-rich .rx-check-wrap {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft) 55%, transparent 72%);
}
.rx-rich .rx-check { width: 68px; height: 68px; }
.rx-rich .rx-done strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.rx-rich .rx-done p { margin: 0; max-width: 290px; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--muted); }

@media (max-width: 480px) {
  .rx-rich .rx-row { grid-template-columns: 1fr; }
  .rx-card.rx-rich { border-radius: 20px; }
  .rx-rich .rx-head { padding: 24px 52px 18px; }
  .rx-rich .rx-fields { padding: 18px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-card.rx-rich, .rx-rich .rx-logo, .rx-rich .rx-file-svg { animation: none; }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  background: #fde8ee;
  color: var(--sale);
  font-weight: 700;
  cursor: pointer;
}

.admin-body {
  background: #f9fafb;
  min-height: 100vh;
}
.admin-shell { display: flex; min-height: 100vh; position: relative; }
.admin-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.admin-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 36, 28, 0.46);
}
.admin-side {
  width: 240px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #ffffff;
  color: #1f2937;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 70;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.admin-side-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 12px;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #6b7280;
  cursor: pointer;
}
.admin-side-close svg { width: 16px; height: 16px; fill: currentColor; }
.admin-side-top {
  height: 64px;
  margin: 0;
  padding: 0 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.admin-side-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
.admin-side-logo img {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
}
.admin-side-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.admin-side-name strong {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.admin-side-name small {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.admin-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: auto;
  padding: 16px 12px 12px;
}
.admin-nav-label {
  margin: 0 0 8px;
  padding-left: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  margin: 2px 0;
  padding: 10px 16px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.admin-nav-link::-webkit-details-marker { display: none; }
.admin-nav-link svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: #9ca3af;
}
.admin-nav-link > span { flex: 1 1 auto; min-width: 0; }
.admin-nav-count {
  flex: none;
  min-width: 11px;
  height: 11px;
  margin-left: 4px;
  padding: 0 3px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  font-style: normal;
  line-height: 11px;
  text-align: center;
}
.admin-nav-link .admin-nav-caret { margin-left: 4px; width: 16px; height: 16px; fill: #9ca3af; transition: transform 0.15s ease; }
.admin-nav-group { width: 100%; }
.admin-nav-group[open] > .admin-nav-link .admin-nav-caret { transform: rotate(180deg); }
.admin-nav > .admin-nav-link:hover,
.admin-nav-group > .admin-nav-link:hover {
  transform: translateX(4px);
  color: var(--brand);
}
.admin-nav-link:hover svg { fill: var(--brand); }
.admin-nav-link.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.admin-nav-link.is-active svg { fill: var(--brand); }
.admin-nav-group:not([open]) .admin-subnav { display: none; }
.admin-subnav {
  display: grid;
  gap: 2px;
  margin: 2px 0 8px 32px;
}
.admin-subnav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.admin-subnav a > span { flex: 1 1 auto; min-width: 0; }
.admin-subnav a:hover {
  background: #f3f4f6;
  color: var(--brand);
}
.admin-subnav a.is-active {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.admin-logout {
  margin-top: auto;
  padding: 14px 16px 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}
.admin-logout-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.16);
  cursor: pointer;
}
.admin-logout-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.admin-logout-btn:hover {
  background: #b91c1c;
  color: #fff;
}

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0 16px 0 68px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-topbar-lead {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.admin-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 80;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.admin-menu-btn svg { width: 18px; height: 18px; fill: currentColor; }
.admin-topbar-title {
  min-width: 0;
  margin: 0;
}
.admin-topbar-title strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-crumb {
  display: none;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}
.admin-crumb a {
  display: grid;
  place-items: center;
  color: #6b7280;
}
.admin-crumb a:hover { color: var(--brand); }
.admin-crumb svg { width: 14px; height: 14px; fill: currentColor; }
.admin-crumb span:last-child { color: #374151; }
.admin-mobile-brand,
.admin-mobile-page { display: none; }
.admin-account { position: relative; flex: none; }
.admin-account-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  list-style: none;
  cursor: pointer;
}
.admin-account-btn::-webkit-details-marker { display: none; }
.admin-account-btn img { width: 100%; height: 100%; object-fit: cover; }
.admin-account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 124px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(16, 36, 28, 0.12);
}
.admin-account-menu a,
.admin-account-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.admin-account-menu a:hover,
.admin-account-menu button:hover { background: #f3f4f6; }
.admin-account-menu button { color: #dc2626; }
.email-tpl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.email-tpl-tab {
  padding: 6px 12px;
  border: 1px solid #d9dde3;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.email-tpl-tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.email-tpl-body { font-family: Consolas, Menlo, monospace; font-size: 13px; min-height: 220px; }
.email-tpl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.email-tpl-help { margin-top: 12px; font-size: 13px; }
.email-tpl-help ul { margin: 8px 0 0; padding-left: 18px; }
.email-tpl-preview {
  width: 100%;
  height: 420px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.admin-invite-copy {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 10px 0;
}
.admin-invite-copy input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.admin-invite-copy .btn { white-space: nowrap; }
.admin-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 90;
  max-width: min(280px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0c7a52;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(12, 122, 82, 0.28);
  pointer-events: none;
  animation: admin-toast-life 3.2s ease forwards;
}
.admin-toast.is-error {
  background: #d0123f;
  box-shadow: 0 10px 24px rgba(208, 18, 63, 0.28);
}
@keyframes admin-toast-life {
  0% { opacity: 0; transform: translateY(-8px); }
  8% { opacity: 1; transform: translateY(0); }
  78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}
.admin-topbar-shop {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.admin-content {
  padding: 12px;
  width: 100%;
  margin: 0;
}
.admin-content h1 { display: none; }
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.admin-page-head h1 { margin: 0; }
.admin-lead { margin: 0; max-width: 62ch; font-size: 12px; line-height: 1.4; }
.admin-blocks { display: grid; gap: 10px; }
.admin-content .narrow { width: 100%; max-width: 760px; margin: 0; }
.admin-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-stat-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}
.admin-stat-copy { min-width: 0; }
.admin-stat-copy span {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.admin-stat-copy strong {
  display: block;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.admin-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
}
.admin-stat-icon svg { width: 16px; height: 16px; fill: currentColor; }
.admin-stat-icon.is-green { background: #dcfce7; color: #16a34a; }
.admin-stat-icon.is-teal { background: #ccfbf1; color: #0d9488; }
.admin-stat-icon.is-amber { background: #fef3c7; color: #d97706; }
.admin-stat-icon.is-yellow { background: #fef9c3; color: #ca8a04; }
.admin-stat-icon.is-red { background: #fee2e2; color: #dc2626; }
.admin-stat-icon.is-blue { background: #dbeafe; color: #2563eb; }
.admin-stat-icon.is-purple { background: #f3e8ff; color: #9333ea; }
.admin-stat-icon.is-indigo { background: #e0e7ff; color: #4f46e5; }
.admin-content .panel,
.admin-content .order-card {
  margin-top: 8px;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}
.admin-content .stack { gap: 8px; margin-top: 0; }
.admin-blocks > .panel { margin-top: 0; }
.admin-content .panel h2,
.admin-content .order-card h2,
.admin-content .section-head {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1f2937;
}
.admin-content .section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-content .notice {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
}
.admin-content .square,
.admin-content .stack input,
.admin-content .stack textarea,
.admin-content .stack select {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
}
.admin-content .btn {
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
}
.admin-quick h2 { font-size: 13px; font-weight: 700; color: #1f2937; margin: 0 0 8px; }
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: 10px;
  align-items: start;
}
.dash-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}
.dash-hot { grid-column: 1 / -1; }
.dash-hot .dash-level { grid-template-columns: 22px 36px minmax(0, 1fr) auto; }
.dash-hot-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 18px;
}
.dash-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
}
.dash-level-track .is-hot { background: #0c7a52; }
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.dash-card-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.dash-card-head a {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.dash-side .dash-card-head:not(:first-child) { margin-top: 14px; }
.dash-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  height: 210px;
  align-items: end;
}
.dash-bar {
  display: grid;
  grid-template-rows: 16px 1fr 16px;
  height: 100%;
  min-width: 0;
  text-align: center;
}
.dash-bar-value,
.dash-bar-label {
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}
.dash-bar-track {
  display: flex;
  align-items: flex-end;
  height: 100%;
  border-radius: 6px 6px 2px 2px;
  background: #f3f4f6;
  overflow: hidden;
}
.dash-bar-track span {
  display: block;
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: var(--brand);
}
.dash-donut-wrap { display: grid; place-items: center; }
.dash-donut { width: 148px; height: 148px; }
.dash-donut text:first-of-type {
  fill: #1f2937;
  font-size: 22px;
  font-weight: 700;
}
.dash-donut text:last-of-type {
  fill: #6b7280;
  font-size: 11px;
  font-weight: 700;
}
.dash-legend {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.dash-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 650;
}
.dash-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dash-legend .is-green { background: #16a34a; }
.dash-legend .is-amber { background: #d97706; }
.dash-legend .is-red { background: #dc2626; }
.dash-levels { display: grid; gap: 8px; }
.dash-level {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.dash-level-photo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}
.dash-level-photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.dash-level-copy { min-width: 0; display: grid; gap: 4px; }
.dash-level-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
}
.dash-level-track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}
.dash-level-track span { display: block; height: 100%; border-radius: inherit; background: #16a34a; }
.dash-level-track .is-low { background: #d97706; }
.dash-level-track .is-out { background: #dc2626; }
.dash-level em {
  color: #374151;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.dash-sales {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}
.dash-sales p {
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f8faf9;
}
.dash-sales span {
  display: block;
  margin-bottom: 2px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
}
.dash-sales strong {
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}
.dash-orders {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dash-orders li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dash-orders strong,
.dash-orders em {
  display: block;
  color: #1f2937;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.dash-orders small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 650;
}
.dash-empty {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f8faf9;
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
}
.dash-attention { display: grid; gap: 6px; }
.dash-attention a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8faf9;
  color: #374151;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.dash-attention a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.dash-attention strong { color: #1f2937; font-size: 14px; }
@media (min-width: 768px) {
  .dash-hot-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-hot { grid-column: auto; }
}
@media (min-width: 768px) {
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-topbar-title strong { font-size: 20px; }
}
.admin-settings {
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}
.admin-settings-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}
.admin-settings-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  padding: 12px 12px 14px;
}
.admin-settings-card h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1f2937;
}
.admin-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.admin-settings-field {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
}
.admin-settings-field.is-wide { grid-column: 1 / -1; }
.admin-settings .square,
.admin-settings-smtp .square {
  width: 100%;
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
}
.admin-secret { position: relative; display: block; }
.admin-secret .square { padding-right: 34px; }
.admin-secret-toggle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}
.admin-secret-toggle:hover { color: #1f2937; background: #f3f4f6; }
.admin-secret-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-secret-toggle .eye-off { display: none; }
.admin-secret-toggle.is-on .eye-open { display: none; }
.admin-secret-toggle.is-on .eye-off { display: block; }
.admin-settings textarea.square { min-height: 64px; resize: vertical; }
.admin-settings-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f4f6;
}
.admin-settings-about,
.admin-settings-smtp { grid-column: 1 / -1; }
.admin-settings-smtp { margin-top: 12px; }
.admin-settings-note {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}
.mail-switch-heading {
  margin: 2px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}
.mail-switch-heading + .mail-switch-heading,
.mail-switch-list + .mail-switch-heading { margin-top: 12px; }
.mail-switch-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0 0 10px;
}
.mail-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.mail-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.mail-switch-ui {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background .15s ease;
}
.mail-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  transition: transform .15s ease;
}
.mail-switch input:checked + .mail-switch-ui { background: var(--brand); }
.mail-switch input:checked + .mail-switch-ui::after { transform: translateX(16px); }
.mail-switch input:focus-visible + .mail-switch-ui {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (min-width: 768px) {
  .mail-switch-list.is-split { grid-template-columns: 1fr 1fr; }
}
.admin-settings-smtp .check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}
.admin-settings-smtp .check input { width: auto; margin: 0; }
.admin-settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}
.admin-settings-save {
  position: sticky;
  bottom: 8px;
  display: flex;
  justify-content: flex-end;
  z-index: 5;
}
.admin-settings-save .btn,
.admin-settings-actions .btn {
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .admin-settings-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .admin-content { padding: 8px 10px 10px; }
  .admin-body:has(.admin-settings) .admin-content { padding: 8px 10px 10px; }
  .admin-settings { gap: 8px; }
  .admin-settings-board { gap: 8px; }
  .admin-settings-card { padding: 8px; }
  .admin-settings-card h2 { margin-bottom: 4px; }
  .admin-settings-grid { grid-template-columns: 1fr; gap: 6px; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-stat-tile { padding: 8px 10px; }
  .admin-stat-copy span { font-size: 12px; margin-bottom: 2px; }
  .admin-stat-copy strong { font-size: 16px; }
  .admin-stat-icon { width: 30px; height: 30px; }
  .admin-settings-field { gap: 2px; }
  .social-setting { grid-template-columns: 1fr; }
  .admin-settings .square,
  .admin-settings-smtp .square { padding: 4px 8px; }
  .admin-settings-smtp .admin-secret .square { padding-right: 32px; }
  .admin-settings textarea.square { min-height: 48px; }
  .admin-settings-save { bottom: 6px; }
  .admin-settings-save .btn,
  .admin-settings-actions .btn { min-height: 28px; padding: 4px 11px; font-size: 12px; }
}
@media (min-width: 1024px) {
  .admin-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-menu-btn { display: none; }
  .admin-topbar { padding: 0 12px 0 32px; }
  .admin-topbar-title strong { font-size: 22px; }
  .admin-content { padding: 16px 20px 20px; }
}
.admin-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-empty {
  text-align: center;
  padding: 20px 12px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.admin-content .admin-add-btn {
  min-height: 26px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}
.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-product-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}
.admin-product-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #f3f4f6;
  overflow: hidden;
}
.admin-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.admin-product-placeholder {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
}
.admin-product-info { padding: 8px 10px 0; }
.admin-product-info h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.admin-product-info h3 a { color: #1f2937; }
.admin-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
}
.admin-stock {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.admin-stock.is-ok { background: var(--brand-soft); color: var(--brand-dark); }
.admin-stock.is-low { background: #fff4e5; color: #b86a00; }
.admin-stock.is-out { background: #fde8ee; color: var(--sale); }
.admin-product-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding: 8px 10px 10px;
}
.admin-product-actions form { margin: 0; }
.admin-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.admin-mini-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.admin-mini-btn.is-danger { color: #dc2626; border-color: #fecaca; }
.admin-mini-btn.is-danger:hover { background: #fef2f2; border-color: #dc2626; }

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(20, 36, 28, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
}
.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table-actions {
  text-align: right;
  white-space: nowrap;
}
.admin-table-actions a {
  color: var(--brand);
  font-weight: 700;
  margin-right: 10px;
}
.admin-table-actions form { display: inline; }

.admin-form { margin-top: 0; padding: 12px; border-radius: 8px; }
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.admin-field {
  display: grid;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
}
.admin-field-full { grid-column: 1 / -1; }
.admin-hint {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}
.payment-method {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.payment-method .admin-hint { margin: 0; }
.payment-method .delivery-conditions { margin-top: 2px; }
.delivery-conditions { display: grid; gap: 8px; margin-top: 10px; }
.delivery-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
}
.delivery-choice input { accent-color: var(--brand); }
.admin-delivery .admin-settings-actions { margin-top: 12px; }
.admin-delivery [hidden] { display: none; }
.admin-record p,
.admin-record-pay {
  margin: 2px 0 0;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.admin-record .muted { color: #6b7280; }
.admin-rx-note {
  margin: 8px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  background: var(--brand-soft);
}
.admin-rx-note strong { display: block; margin-bottom: 3px; color: var(--brand-dark); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.admin-rx-note p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.admin-record-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.admin-record-head strong {
  min-width: 0;
  color: #1f2937;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.admin-record-title { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.admin-settings-board:has(> .admin-order) { align-items: stretch; }
.admin-order {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}
.admin-order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.admin-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}
.admin-order-meta .admin-order-state::before {
  content: "·";
  margin: 0 6px;
  color: #9ca3af;
}
.admin-order-state { color: #374151; font-weight: 600; }
.admin-order-state.is-receipt_review,
.admin-order-state.is-awaiting_payment,
.admin-order-state.is-cod_pending { color: #92400e; }
.admin-order-state.is-cancelled,
.admin-order-state.is-refunded { color: #991b1b; }
.admin-order-state.is-paid,
.admin-order-state.is-confirmed,
.admin-order-state.is-delivered,
.admin-order-state.is-collected { color: #065f46; }
.admin-record-who {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: baseline;
}
.admin-record-who strong { color: #111827; font-size: 13px; font-weight: 650; }
.admin-record-who span { color: #6b7280; font-weight: 500; }
.admin-record-head span {
  flex: 0 1 auto;
  color: #6b7280;
  font-size: 11px;
  font-weight: 650;
  text-align: right;
}
.admin-record-items {
  margin: 4px 0 0;
  padding-left: 16px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
}
.admin-order-figures {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.admin-order-figures div { display: contents; }
.admin-order-figures dt,
.admin-order-figures dd {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  line-height: 1.35;
}
.admin-order-figures dd { justify-content: flex-end; }
.admin-order-figures dt {
  color: #6b7280;
  font-weight: 500;
}
.admin-order-figures dd {
  color: #111827;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.admin-order-figures .is-due { color: #111827; font-weight: 700; }
.admin-order-figures .is-settled,
.admin-order-figures .is-none { color: #6b7280; font-weight: 500; }
.admin-order-figures .admin-order-view,
.admin-table .admin-order-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.admin-order-figures .admin-order-view:hover,
.admin-table .admin-order-view:hover { color: #fff; background: var(--brand-dark); }
.admin-table .admin-order-view { margin-top: 6px; }
.rx-card.admin-file-card.is-receipt { width: min(560px, 100%); }
.rx-card.is-receipt .admin-file-preview { max-height: min(72dvh, 640px); object-fit: contain; background: #f3f4f6; }
.admin-order-courier {
  flex: none;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.admin-record-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.admin-record-form .square { width: auto; flex: 1; min-width: 0; }
.admin-order .admin-record-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 0;
}
.admin-order .admin-record-status {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.admin-order .admin-record-form .square { width: 100%; }
.admin-order .admin-record-form .btn { width: 100%; }
.admin-table a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  white-space: nowrap;
  color: #fff;
}
.admin-settings .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  color: #374151;
  font-size: 12px;
  font-weight: 650;
}
.admin-settings .check input { width: auto; margin: 0; }
.admin-settings .admin-file { padding: 4px 8px; font-size: 12px; }
.admin-settings .admin-upload-preview {
  width: 72px;
  height: 40px;
  margin-bottom: 4px;
}
.admin-settings .mail-switch-list { margin-top: 8px; }
.admin-settings .admin-table-wrap {
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
}
.admin-settings .admin-table th,
.admin-settings .admin-table td { padding: 6px 8px; font-size: 12px; }
.admin-settings .notice { margin: 8px 0 0; padding: 6px 8px; font-size: 12px; }
@media (max-width: 1023px) {
  .admin-settings-board:has(> form) { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-record-head { align-items: flex-start; }
}
.admin-category-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-category-picks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fafafa;
  color: #374151;
  font-size: 12px;
  font-weight: 650;
}
.admin-category-picks input { width: auto; margin: 0; }
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.product-tags span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}
.admin-field .square,
.admin-field select.square,
.admin-field textarea.square {
  width: 100%;
  margin: 0;
}
.admin-file { padding: 10px 12px; }
.admin-upload-preview {
  width: 84px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}
.admin-form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-variants {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.admin-variants-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-variants-head h2 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.admin-variants-head .muted { margin: 0; }
.admin-variant-list { display: grid; gap: 12px; }
.admin-variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.6fr) minmax(0, 0.8fr) minmax(0, 0.5fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}
.admin-variant-photos { grid-column: 1 / -1; display: grid; gap: 6px; }
.admin-variant-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-variant-thumb { position: relative; width: 48px; height: 48px; }
.admin-variant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.admin-variant-thumb-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  cursor: pointer;
}
.admin-variant-image {
  display: grid;
  gap: 8px;
}
.admin-variant-preview {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.admin-variant-remove,
.admin-variant-clear-image { white-space: nowrap; }
.product-media-main { min-width: 0; }
.product-media-main img,
.product-media-main .h-product {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 28px;
  object-fit: cover;
}
.product-media-main .is-hidden,
#product-hero-image.is-hidden,
#product-hero-placeholder.is-hidden { display: none; }

.variant-picker {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.variant-picker legend {
  padding: 0;
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
}
.variant-options {
  display: grid;
  gap: 8px;
}
.variant-option {
  display: block;
  margin: 0;
  cursor: pointer;
}
.variant-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.variant-option-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf8;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.variant-option input:checked + .variant-option-body {
  border-color: var(--brand, #0f6b4c);
  background: #eef7f2;
}
.variant-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--line);
}
.variant-option-copy {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.variant-option-copy strong { font-size: 14px; }
.variant-option-copy span:last-child {
  font-weight: 700;
  white-space: nowrap;
}
.pinfo {
  margin: 8px auto 28px;
  background: #fff;
  border: 1px solid #e6eeea;
  border-radius: 12px;
  overflow: hidden;
}
.pinfo-nav {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  border-bottom: 1px solid #e6eeea;
  overflow-x: auto;
}
.pinfo-nav button {
  border: 0;
  background: transparent;
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.pinfo-nav button.is-on {
  color: #14241c;
  border-bottom-color: #14241c;
}
.pinfo-panel { display: none; padding: 12px 14px 14px; }
.pinfo-panel.is-on { display: block; }
.pinfo-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}
.pinfo-copy,
.pinfo-panel li,
.pinfo-faq p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}
.pinfo-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.pinfo-faq + .pinfo-faq {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef3f0;
}
.pinfo-faq strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  color: #14241c;
}
.admin-faqs {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.admin-faq-list { display: grid; gap: 8px; }
.admin-faq-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr) auto;
  gap: 8px;
  align-items: end;
}
.admin-faq-remove {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-login-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(12, 122, 82, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 40% at 100% 100%, rgba(8, 92, 62, 0.14), transparent 52%),
    #070b09;
}
.login-shell {
  width: min(320px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
}
.login-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}
.login-brand-logo {
  display: grid;
  place-items: center;
  width: clamp(72px, 18vw, 96px);
  height: clamp(72px, 18vw, 96px);
}
.login-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-brand-name {
  margin: 0;
  color: #f4f7f5;
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 16ch;
}
.login-brand-area {
  margin: 0;
  color: #7dcfab;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.login-panel {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.login-panel .notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 122, 82, 0.18);
  color: #d8f5e7;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.login-panel .login-hint {
  margin: 0 0 12px;
  color: rgba(243, 246, 244, 0.62);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.login-panel .stack {
  margin-top: 0;
  gap: 8px;
  justify-items: stretch;
}
.login-panel label {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  color: rgba(243, 246, 244, 0.78);
}
.login-panel .square {
  width: 100%;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7f5;
  font-size: 12px;
  line-height: 1.3;
  box-shadow: none;
}
.login-panel .square::placeholder {
  color: rgba(243, 246, 244, 0.38);
}
.login-panel .square:focus {
  border-color: rgba(125, 207, 171, 0.55);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}
.login-panel .btn-brand {
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}
.login-panel .btn-ghost {
  width: 100%;
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #cfe9dc;
}
.login-panel .btn-ghost:hover:not(:disabled) {
  border-color: rgba(125, 207, 171, 0.45);
  color: #fff;
}
.login-panel .btn-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.login-panel .login-resend {
  margin-top: 8px;
}
.login-back {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}
.login-back a {
  color: #7dcfab;
  display: inline-block;
  text-align: center;
  opacity: 0.9;
}
.login-back a:hover {
  color: #b7f0d4;
  opacity: 1;
}
@media (min-width: 768px) {
  .login-shell {
    width: min(340px, 100%);
    gap: 20px;
  }
  .login-brand-name {
    max-width: none;
    font-size: 22px;
  }
  .login-panel label {
    grid-template-columns: 78px minmax(0, 1fr);
    font-size: 12px;
  }
  .login-panel .square {
    min-height: 38px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .login-shell { width: min(100%, 100%); }
  .login-panel label {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .login-panel label {
    text-align: left;
  }
}
.info-page { max-width: 980px; }
.info-layout { display: grid; grid-template-columns: 210px 1fr; gap: 28px; margin-top: 28px; align-items: start; }
.info-nav { display: grid; gap: 8px; position: sticky; top: 150px; }
.info-nav a { color: var(--muted); font-weight: 650; font-weight: 600; padding: 8px 0; }
.info-nav a:hover { color: var(--brand); }
.info-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.info-card h2 { font-size: 22px; margin-bottom: 8px; }
.info-card section + section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.info-card p, .info-card li { color: #3d4f46; }
.info-card ul { margin: 8px 0 0; padding-left: 18px; }
.info-card li { margin: 8px 0; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; margin-top: 28px; align-items: start; }
.contact-facts { display: grid; gap: 16px; }
.contact-facts h2, .contact-grid h2 { font-size: 20px; }

@media (max-width: 1279px) {
  .logo-words { display: none; }
}
@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 22px 28px; }
}
@media (max-width: 1023px) {
  .wrap { width: min(1180px, calc(100% - 32px)); }
  .logo-words, .header-actions .icon-link { display: none; }
  .logo-img { height: 40px; }
  .header-main { min-height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .search-form { order: 5; flex: 1 1 100%; flex-basis: 100%; max-width: none; margin-left: 0; min-width: 0; height: 34px; }
  .header-cluster { flex: 1 1 auto; margin-left: auto; max-width: calc(100% - 56px); }
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(16, 36, 28, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .nav-toggle:checked ~ .nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
  }
  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: min(260px, calc(100vw - 48px));
    height: 100dvh;
    margin: 0;
    padding: 0 0 calc(20px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 18px 0 40px rgba(16, 42, 30, 0.16);
    transform: translateX(-105%);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 0.28s ease;
  }
  .nav-toggle:checked ~ .primary-nav {
    transform: translateX(0);
    visibility: visible;
  }
  .side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 8px;
    border-bottom: 1px solid var(--line);
  }
  .side-head p { margin: 0; font-size: 12px; font-weight: 800; }
  .side-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }
  .primary-nav-inner {
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-height: 0;
    padding: 8px;
  }
  .primary-nav a {
    display: block;
    padding: 7px 10px;
    font-size: 12px;
  }
  .primary-nav .side-only { display: block; }
  .primary-nav .rx-pill {
    display: inline-flex;
    align-self: flex-start;
    width: auto;
    margin: 1px 0 0 10px;
    padding: 4px 7px;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
  }
  html:has(.nav-toggle:checked) { overflow: hidden; }
}
@media (max-width: 480px) {
  .primary-nav { width: min(240px, calc(100vw - 36px)); }
  .primary-nav a { font-size: 12px; }
  .logo-img { height: 36px; }
  .header-contact { flex-direction: column; align-items: flex-end; gap: 1px; font-size: 10px; }
  .type-line { font-size: 10px; }
}
@media (min-width: 1024px) {
/*  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }*/
  .nav-toggle:checked ~ .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(16, 36, 28, 0.46);
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
  }
  .nav-toggle:checked ~ .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: 260px;
    height: 100dvh;
    margin: 0;
    padding: 0 0 24px;
    background: #fff;
    overflow-y: auto;
    box-shadow: 18px 0 40px rgba(16, 42, 30, 0.16);
  }
  .nav-toggle:checked ~ .primary-nav .side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .primary-nav .side-head p { margin: 0; font-size: 12px; font-weight: 800; }
  .nav-toggle:checked ~ .primary-nav .side-close {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }
  .nav-toggle:checked ~ .primary-nav .primary-nav-inner {
    width: auto;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
  }
  .nav-toggle:checked ~ .primary-nav a {
    display: block;
    padding: 7px 10px;
    font-size: 12px;
  }
  .nav-toggle:checked ~ .primary-nav .side-only { display: block; }
  .nav-toggle:checked ~ .primary-nav .rx-pill {
    display: inline-flex;
    align-self: flex-start;
    width: auto;
    margin: 1px 0 0 10px;
    padding: 4px 7px;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
  }
  html:has(.nav-toggle:checked) { overflow: hidden; }
}
@media (max-width: 1023px) {
  .admin-menu-btn { display: inline-flex; }
  .admin-side-close { display: grid; }
  .admin-side-top { padding-right: 48px; }
  .admin-side {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }
  .admin-nav-backdrop { display: block; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
  .admin-nav-toggle:checked ~ .admin-side { transform: translateX(0); }
  .admin-nav-toggle:checked ~ .admin-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  html:has(.admin-nav-toggle:checked) { overflow: hidden; }
  .admin-topbar {
    height: 92px;
    padding: 8px 58px;
    justify-content: center;
  }
  .admin-topbar-lead {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
  }
  .admin-menu-btn { top: 26px; }
  .admin-topbar-title,
  .admin-crumb { display: none; }
  .admin-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    text-align: center;
  }
  .admin-mobile-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
  .admin-mobile-brand strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    color: #1f2937;
  }
  .admin-mobile-brand small {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    color: #6b7280;
  }
  .admin-mobile-page {
    display: block;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
  }
  .admin-account {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
  }
}
@media (max-width: 860px) {
  .hero, .product-layout, .promo-grid, .footer-top, .cards, .info-layout, .contact-grid { grid-template-columns: 1fr; }
  .site-footer .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }
  .footer-brand {
    order: 1;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: left;
  }
  .footer-brand .logo-img { height: 36px; margin: 0; }
  .footer-brand .footer-lead, .footer-brand .footer-tag { margin: 0; }
  .footer-brand .footer-lead { font-size: 12px; }
  .footer-tag { font-size: 11px; }
  .footer-know { order: 2; }
  .footer-policies { order: 3; text-align: right; }
  .footer-shop { order: 4; }
  .footer-contact { order: 5; text-align: right; }
  .footer-policies ul, .footer-contact ul { display: grid; justify-items: end; }
  .footer-contact .social-row { justify-content: flex-end; }
  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px 10px;
  }
  .footer-legal { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
  .footer-pay, .pay-logos { align-items: center; justify-content: center; }
  .pay-logos img { height: 22px; }
  .site-footer { padding-bottom: 120px; }
  .info-nav { position: static; }
  .hero-main { min-height: 240px; }
  .tile-grid, .product-grid, .banner-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing-row { grid-template-columns: 1fr; }
  .story, .assist { flex-direction: column; align-items: center; padding: 18px; }
  .mobile-nav { display: grid; }
  .admin-page-head { align-items: center; }
  .admin-page-head .btn.admin-add-btn { width: auto; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form { padding: 10px; }
  .admin-form-actions .btn { flex: 1 1 auto; justify-content: center; }
  .admin-variant-row { grid-template-columns: 1fr; }
  .admin-faq-row { grid-template-columns: 1fr; }
  .product-media-main img,
  .product-media-main .h-product { min-height: 0; }
}
@media (min-width: 768px) {
  .admin-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .admin-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

body.cart-lock { overflow: hidden; }
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .32s;
}
.cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}
.cart-drawer-shade {
  position: absolute;
  inset: 0;
  background: rgba(16, 36, 28, 0.46);
  opacity: 0;
  transition: opacity .28s ease;
}
.cart-drawer.is-open .cart-drawer-shade { opacity: 1; }
.cart-sheet {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: -18px 0 50px rgba(16, 42, 30, 0.14);
  transform: translateX(104%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.cart-drawer.is-open .cart-sheet { transform: translateX(0); }
.cart-drawer.is-busy .cart-sheet-body { opacity: 0.55; pointer-events: none; }
.cart-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 12px 16px 18px;
  border-bottom: 1px solid var(--line);
}
.cart-sheet-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cart-sheet-title svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.8;
}
.cart-sheet-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cart-sheet-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-sheet-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5d6d64;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cart-sheet-close:hover { background: #f4f7f5; color: var(--ink); }
.cart-ship { margin: 14px 18px 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); }
.cart-ship p { margin: 0 0 8px; color: #31443a; font-size: 12px; font-weight: 600; }
.cart-ship strong, .cart-ship span { color: var(--brand-dark); }
.cart-ship-track { height: 4px; border-radius: 999px; background: #d5ebe2; overflow: hidden; }
.cart-ship-track span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.cart-sheet-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 100%;
  padding: 32px 24px;
  text-align: center;
}
.cart-empty p { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.cart-empty .btn { padding: 10px 16px; font-size: 13px; }
.cart-items { list-style: none; margin: 0; padding: 4px 18px 12px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f7f5;
}
.cart-item-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-fallback { color: var(--brand); font-size: 18px; font-weight: 800; }
.cart-item-main { flex: 1; min-width: 0; }
.cart-item-head { display: flex; align-items: flex-start; gap: 8px; }
.cart-item-name {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.cart-item-meta {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cart-remove {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b9a92;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.cart-remove:hover { background: #f4f7f5; color: var(--sale); }
.cart-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.cart-item-price { margin: 0; color: var(--brand); font-size: 14px; font-weight: 800; }
.cart-stepper { display: inline-flex; align-items: stretch; }
.cart-stepper form { display: flex; }
.cart-stepper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}
.cart-stepper button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.cart-stepper form:first-child button { border-radius: 10px 0 0 10px; }
.cart-stepper form:last-child button { border-radius: 0 10px 10px 0; }
.cart-stepper button:hover { background: var(--brand-soft); }
.cart-stepper button:disabled { color: #c5d0ca; background: #fff; cursor: default; }
.cart-sheet-foot {
  padding: 6px 18px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}
.cart-sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: #31443a;
  font-size: 12px;
  font-weight: 600;
}
.cart-sum + .cart-sum { border-top: 1px dashed #e1ebe6; }
.cart-sum strong { font-weight: 800; }
.cart-sum.is-muted span:last-child { color: var(--muted); font-weight: 600; }
.cart-sum.is-free span:last-child { color: var(--brand); font-weight: 800; }
.cart-sum.is-total { color: var(--ink); font-size: 14px; font-weight: 800; }
.cart-sum.is-total strong { color: var(--brand); font-size: 16px; }
.cart-checkout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 12px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.cart-checkout:hover { background: var(--brand-dark); }
.cart-checkout svg {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.cart-sheet :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 640px) {
  .cart-sheet { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-drawer-shade, .cart-sheet { transition: none; }
}

.checkout-page { padding: 28px 0 32px; }
.checkout-page h1 { margin: 0 0 16px; font-size: 28px; font-weight: 800; }
.checkout-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 420px;
}
.checkout-empty p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}
.checkout-main { display: grid; gap: 14px; }
.checkout-card, .checkout-side {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.checkout-card { padding: 18px; }
.checkout-card h2, .checkout-side h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.checkout-fields label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.checkout-fields .is-wide { grid-column: 1 / -1; }
.checkout-optional { font-weight: 600; color: #8b9a92; }
.checkout-fields input, .checkout-fields textarea, .checkout-fields select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.checkout-fields textarea { resize: vertical; min-height: 72px; }
.checkout-fields input:focus, .checkout-fields textarea:focus, .checkout-fields select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12, 122, 82, 0.12);
}
.checkout-page [data-for][hidden],
.checkout-page .pay-options[hidden] { display: none !important; }
.fulfill-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pickup-box {
  padding: 12px;
  border: 1px solid rgba(12, 122, 82, 0.18);
  border-radius: 14px;
  background: #f4fbf7;
}
.pickup-box p { margin: 0 0 8px; }
.pickup-box label { margin-top: 4px; }
.slip-page { max-width: 420px; padding-top: 8px; }
.slip-scene { display: grid; justify-items: center; margin: 0 0 12px; }
.slip-printer { width: min(100%, 300px); position: relative; z-index: 2; margin-bottom: -16px; }
.slip-printer-label {
  position: absolute;
  left: 14.5%;
  top: 48%;
  width: 57.5%;
  height: 18%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #143326;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.slip-printer-art {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(20, 59, 41, 0.16));
}
.slip-led {
  transform-box: fill-box;
  transform-origin: center;
  animation: slip-led 0.7s ease-in-out 3;
}
.slip-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 248px);
  max-height: 0;
  overflow: hidden;
  animation: slip-print 2.6s cubic-bezier(.2,.7,.2,1) forwards;
}
.slip {
  margin-top: -2px;
  padding: 8px 10px 12px;
  background: #fffef8;
  color: #1c2430;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.25;
  box-shadow: 0 10px 18px rgba(20, 36, 28, 0.1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 97% 100%, 94% calc(100% - 7px), 91% 100%, 88% calc(100% - 8px), 85% 100%, 82% calc(100% - 7px), 79% 100%, 76% calc(100% - 8px), 73% 100%, 70% calc(100% - 7px), 67% 100%, 64% calc(100% - 8px), 61% 100%, 58% calc(100% - 7px), 55% 100%, 52% calc(100% - 8px), 49% 100%, 46% calc(100% - 7px), 43% 100%, 40% calc(100% - 8px), 37% 100%, 34% calc(100% - 7px), 31% 100%, 28% calc(100% - 8px), 25% 100%, 22% calc(100% - 7px), 19% 100%, 16% calc(100% - 8px), 13% 100%, 10% calc(100% - 7px), 7% 100%, 4% calc(100% - 8px), 0 100%);
}
.slip p { margin: 0 0 2px; }
.slip-store, .slip-kind, .slip-id, .slip-meta, .slip-who { text-align: center; }
.slip-store { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.slip-kind { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.slip-id { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
.slip-meta, .slip-who { font-size: 10px; line-height: 1.3; }
.slip-rule { height: 0; border-top: 1px dashed #c5cdd6; margin: 4px 0; }
.slip-items { list-style: none; margin: 0; padding: 0; }
.slip-items li, .slip-row { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 2px; font-size: 11px; }
.slip-items li span:first-child, .slip-row span:first-child { min-width: 0; }
.slip-items li span:last-child, .slip-row span:last-child { white-space: nowrap; }
.slip-total { font-weight: 700; font-size: 12px; }
.slip-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}
.slip-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
}
.slip-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #d5e2da;
  border-radius: 8px;
  background: #fff;
  color: #143326;
}
.slip-home svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linejoin: round; }
@keyframes slip-print {
  0% { max-height: 0; }
  100% { max-height: 1600px; }
}
@keyframes slip-led {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .slip-sheet { max-height: none; animation: none; }
  .slip-led { animation: none; }
}
@media print {
  body * { visibility: hidden; }
  .slip-sheet, .slip-sheet * { visibility: visible; }
  .slip-sheet { position: absolute; left: 0; top: 0; max-height: none; overflow: visible; width: 80mm; animation: none; }
  .slip { box-shadow: none; }
}
@media (max-width: 640px) {
  .fulfill-options { grid-template-columns: 1fr; }
}
.pay-options { display: grid; gap: 8px; }
.pay-options[hidden] { display: none !important; }
.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.pay-option input { margin-top: 3px; accent-color: var(--brand); }
.pay-option strong { display: block; color: var(--ink); font-size: 13px; font-weight: 700; }
.pay-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.bank-pay {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d7e7dc;
  border-radius: 14px;
  background: #f4faf6;
}
.bank-pay-lead {
  margin: 0 0 12px;
  color: #3d5348;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.bank-pay-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}
.bank-pay-list div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e3eee7;
  border-radius: 10px;
  background: #fff;
}
.bank-pay-list dt {
  margin: 0;
  color: #6d8176;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bank-pay-list dd {
  margin: 4px 0 0;
  color: #163226;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.bank-file {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #163226;
  font-size: 13px;
  font-weight: 700;
}
.bank-file input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 8px;
  border: 1px dashed #b7d0c2;
  border-radius: 10px;
  background: #fff;
  color: #163226;
  font-size: 13px;
  font-weight: 600;
}
.bank-file span {
  color: #6d8176;
  font-size: 12px;
  font-weight: 600;
}
.account-premier .bank-pay { margin: 14px 0 4px; }
.plan-card.is-featured .bank-file,
.plan-card.is-featured .bank-file span { color: #fff; }
.plan-card.is-featured .bank-file input[type="file"] {
  border-color: transparent;
  background: #fff;
  color: #163226;
}
@media (max-width: 640px) {
  .bank-pay-list { grid-template-columns: 1fr; }
}
.courier-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 110px));
  justify-content: start;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}
.courier-option {
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 8px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.courier-option input { accent-color: var(--brand); }
.courier-option img {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 42px;
  aspect-ratio: auto;
  object-fit: contain;
}
.courier-option span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.courier-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(12, 122, 82, 0.12);
}
.courier-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.courier-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.courier-admin-brand h2 { margin: 0; }
.courier-admin-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px;
}
.courier-admin-head .mail-switch { flex: 0 0 auto; margin: 0; }
.checkout-note { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.checkout-side { position: sticky; top: 96px; padding: 16px 16px 18px; }
.checkout-side .cart-ship { margin: 0 0 4px; }
.checkout-lines { list-style: none; margin: 0; padding: 0; }
.checkout-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-line-copy { flex: 1; min-width: 0; }
.checkout-line-qty { margin: 4px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.checkout-line .cart-item-price { margin-top: 2px; }
.checkout-totals { padding-top: 2px; }
.checkout-pay-split { margin-top: 2px; }
.checkout-pay-split .cart-sum { align-items: flex-start; }
.checkout-pay-split .cart-sum strong {
  max-width: 62%;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}
.cart-sum.is-now strong { color: var(--brand); }
.checkout-place { width: 100%; border: 0; font: inherit; }
@media (max-width: 860px) {
  .checkout-grid, .checkout-fields { grid-template-columns: 1fr; }
  .checkout-side { position: static; }
  .courier-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .courier-option {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 8px 4px 8px;
    gap: 6px;
  }
  .courier-option img {
    width: 70%;
    min-width: 0;
    max-width: 72px;
    height: auto;
    aspect-ratio: 1;
  }
  .courier-option span { font-size: 11px; }
}
.admin-record-tools { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.admin-eye {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}
.admin-eye svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.rx-card.admin-file-card { width: min(480px, 100%); }
.admin-file-preview { display: block; width: 100%; height: auto; border-radius: 8px; }
.admin-file-frame { width: 100%; height: min(60dvh, 420px); border: 0; border-radius: 8px; background: #f3f4f6; }
.admin-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-cat-tile {
  display: grid;
  gap: 6px;
  justify-items: stretch;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.admin-cat-tile { position: relative; }
.admin-cat-tile form { display: grid; gap: 6px; min-width: 0; justify-items: center; }
.admin-cat-tile .admin-cat-delete-form {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: block;
  width: auto;
  margin: 0;
}
.admin-cat-delete {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fdecf0;
  color: #d0123f;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.admin-cat-delete:hover { background: #d0123f; color: #fff; }
.admin-cat-delete svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-toast.is-error { animation-duration: 5s; }
.admin-cat-photo-wrap { position: relative; width: 64px; height: 64px; }
.admin-cat-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 800;
}
.admin-cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.admin-cat-photo-wrap-modal { margin: 0 auto; }
.admin-cat-pencil {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.admin-cat-pencil svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}
.admin-cat-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.admin-cat-tile .admin-settings-field,
.admin-cat-tile .square { width: 100%; max-width: 100%; }
.admin-content .admin-cat-save {
  width: auto;
  min-height: 32px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.product-media-main .product-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.product-media-main .product-thumb.is-on { border-color: var(--brand); }
.product-media-main .product-thumb img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: cover;
}
.admin-body .rx-modal { align-items: center; padding: 16px; }
.admin-content, .admin-settings-card, .admin-record, .dash-card { min-width: 0; max-width: 100%; }
.admin-table td, .admin-table th { overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .admin-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .admin-cat-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .product-media-main .product-thumb img { min-height: 0; }
}

/* Shop With Category dropdown (primary nav / side menu) */
.primary-nav .nav-cat { position: relative; }
.primary-nav .nav-cat > summary,
.primary-nav .nav-sub > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #31443a;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.primary-nav .nav-cat > summary::-webkit-details-marker,
.primary-nav .nav-sub > summary::-webkit-details-marker { display: none; }
.primary-nav .nav-cat > summary::after,
.primary-nav .nav-sub > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}
.primary-nav .nav-cat[open] > summary::after,
.primary-nav .nav-sub[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }
.primary-nav .nav-cat > summary:hover,
.primary-nav .nav-cat[open] > summary,
.primary-nav .nav-cat > summary.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.primary-nav .nav-cat-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 240px;
  max-height: 70vh;
  padding: 8px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 42, 30, 0.14);
}
.primary-nav .nav-cat-panel a,
.primary-nav .nav-sub > summary {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
}
.primary-nav .nav-sub > summary:hover { background: var(--brand-soft); color: var(--brand-dark); }
.primary-nav .nav-sub-list {
  display: grid;
  gap: 2px;
  margin: 2px 0 4px 12px;
  padding-left: 8px;
  border-left: 2px solid var(--brand-soft);
}
.primary-nav .nav-cat-empty { padding: 7px 10px; color: var(--muted); font-size: 12px; }
@media (max-width: 1023px) {
  .primary-nav .nav-cat > summary { display: flex; justify-content: space-between; padding: 7px 10px; }
  .primary-nav .nav-cat-panel {
    position: static;
    min-width: 0;
    max-height: none;
    padding: 2px 0 4px 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
}
.nav-toggle:checked ~ .primary-nav .nav-cat > summary { display: flex; justify-content: space-between; padding: 7px 10px; }
.nav-toggle:checked ~ .primary-nav .nav-cat-panel {
  position: static;
  min-width: 0;
  max-height: none;
  padding: 2px 0 4px 10px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* ---------- Mobile only: typing line under the search bar ---------- */
@media (max-width: 1023px) {
  .site-header .header-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
  }
  .site-header .header-cluster,
  .site-header .header-contact-row { display: contents; }
  .site-header .logo-link { grid-column: 1; grid-row: 1 / span 2; }
  .site-header .header-contact { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-header .header-cluster-actions { grid-column: 2; grid-row: 2; justify-self: end; }
  .site-header .search-form {
    grid-column: 1 / -1;
    grid-row: 3;
    width: auto;
    margin: 6px 0 0;
  }
  .site-header .type-line {
    grid-column: 1 / -1;
    grid-row: 4;
    flex: none;
    min-height: 2.7em;
    margin: 2px 0 0;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }
}

/* ---------- Mobile only: order steps, 2 per row + final step alone ---------- */
@media (max-width: 860px) {
  .order-steps { padding: 18px 14px 28px; }
  .order-steps ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 28px;
  }
  .order-steps ol > li {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 6px;
    text-align: center;
  }
  .order-steps ol > li p { max-width: 15ch; white-space: normal; }
  .order-steps ol > li:nth-child(7) { grid-column: 1 / -1; }

  .order-steps ol > li:nth-child(1) .step-mark { animation-delay: 0s; }
  .order-steps ol > li:nth-child(2) .step-mark { animation-delay: calc(var(--step-time) * 0.143); }
  .order-steps ol > li:nth-child(3) .step-mark { animation-delay: calc(var(--step-time) * 0.286); }
  .order-steps ol > li:nth-child(4) .step-mark { animation-delay: calc(var(--step-time) * 0.429); }
  .order-steps ol > li:nth-child(5) .step-mark { animation-delay: calc(var(--step-time) * 0.571); }
  .order-steps ol > li:nth-child(6) .step-mark { animation-delay: calc(var(--step-time) * 0.714); }

  /* in-row connector (1>2, 3>4, 5>6) */
  .order-steps ol > li:nth-child(odd):not(:last-child)::before {
    content: "";
    position: absolute;
    left: calc(50% + 22px);
    top: 21px;
    width: calc(100% - 44px);
    height: 2px;
    background:
      linear-gradient(90deg, var(--brand), #3bc48f) left center / 100% 2px no-repeat,
      linear-gradient(#d5e6dc, #d5e6dc) left center / 100% 2px no-repeat;
    z-index: 0;
    animation: mstep-line-a var(--step-time) ease-in-out infinite backwards;
  }
  .order-steps ol > li:nth-child(odd):not(:last-child)::after { content: none; animation: none; }
  .order-steps ol > li:nth-child(1)::before { animation-delay: calc(var(--step-time) * 0.02); }
  .order-steps ol > li:nth-child(3)::before { animation-delay: calc(var(--step-time) * 0.306); }
  .order-steps ol > li:nth-child(5)::before { animation-delay: calc(var(--step-time) * 0.591); }

  /* row-to-row connector (2>3, 4>5, 6>7): down, back across, down */
  .order-steps ol > li:nth-child(even)::before,
  .order-steps ol > li:nth-child(even)::after {
    content: "";
    position: absolute;
    left: calc(-50% - 1px);
    top: 100%;
    width: calc(100% + 2px);
    height: 28px;
    z-index: 0;
    transform: none;
    border: 0;
  }
  .order-steps ol > li:nth-child(6)::before,
  .order-steps ol > li:nth-child(6)::after {
    left: -1px;
    width: calc(50% + 2px);
  }
  .order-steps ol > li:nth-child(even)::before {
    background:
      linear-gradient(#d5e6dc, #d5e6dc) right 0 top 0 / 2px 14px no-repeat,
      linear-gradient(#d5e6dc, #d5e6dc) right 0 top 13px / 100% 2px no-repeat,
      linear-gradient(#d5e6dc, #d5e6dc) left 0 top 14px / 2px 14px no-repeat;
    animation: none;
  }
  .order-steps ol > li:nth-child(even)::after {
    background:
      linear-gradient(var(--brand), var(--brand)) right 0 top 0 / 2px 14px no-repeat,
      linear-gradient(270deg, var(--brand), #3bc48f) right 0 top 13px / 100% 2px no-repeat,
      linear-gradient(var(--brand), var(--brand)) left 0 top 14px / 2px 14px no-repeat;
    animation: mstep-line-b var(--step-time) ease-in-out infinite backwards;
  }
  .order-steps ol > li:nth-child(2)::after { animation-delay: calc(var(--step-time) * 0.163); }
  .order-steps ol > li:nth-child(4)::after { animation-delay: calc(var(--step-time) * 0.449); }
  .order-steps ol > li:nth-child(6)::after { animation-delay: calc(var(--step-time) * 0.734); }

  /* arrow heads, lit as each line finishes */
  .order-steps ol > li:nth-child(even) .step-mark::before,
  .order-steps ol > li:nth-child(odd):not(:first-child) .step-mark::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--brand);
    border-right: 2px solid var(--brand);
    animation: mstep-arrow var(--step-time) ease-in-out infinite backwards;
  }
  .order-steps ol > li:nth-child(even) .step-mark::before {
    left: -13px;
    top: 50%;
    margin-top: -4px;
    transform: rotate(45deg);
  }
  .order-steps ol > li:nth-child(odd):not(:first-child) .step-mark::after {
    top: -13px;
    left: 50%;
    margin-left: -4px;
    transform: rotate(135deg);
  }
  .order-steps ol > li:nth-child(2) .step-mark::before { animation-delay: calc(var(--step-time) * 0.02); }
  .order-steps ol > li:nth-child(4) .step-mark::before { animation-delay: calc(var(--step-time) * 0.306); }
  .order-steps ol > li:nth-child(6) .step-mark::before { animation-delay: calc(var(--step-time) * 0.591); }
  .order-steps ol > li:nth-child(3) .step-mark::after { animation-delay: calc(var(--step-time) * 0.163); }
  .order-steps ol > li:nth-child(5) .step-mark::after { animation-delay: calc(var(--step-time) * 0.449); }
  .order-steps ol > li:nth-child(7) .step-mark::after { animation-delay: calc(var(--step-time) * 0.734); }

  /* final step: own row, arrival effects */
  .order-steps ol > li:nth-child(7) .step-mark {
    width: 54px;
    height: 54px;
    background: var(--brand-soft);
    animation: mstep-final var(--step-time) ease-in-out infinite;
    animation-delay: calc(var(--step-time) * 0.857);
  }
  .order-steps ol > li:nth-child(7) .step-mark svg {
    width: 24px;
    height: 24px;
    animation: mstep-hop var(--step-time) ease-in-out infinite;
    animation-delay: calc(var(--step-time) * 0.857);
  }
  .order-steps ol > li:nth-child(7) .step-mark::before {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid var(--brand);
    border-radius: 50%;
    opacity: 0;
    animation: mstep-ripple 2.4s ease-out infinite;
  }
  .order-steps ol > li:nth-child(7)::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    width: 130px;
    height: 90px;
    margin-left: -65px;
    pointer-events: none;
    background:
      radial-gradient(circle, #0c7a52 0 2.5px, transparent 3px) 6% 38% / 7px 7px no-repeat,
      radial-gradient(circle, #f2b134 0 2.5px, transparent 3px) 94% 30% / 7px 7px no-repeat,
      radial-gradient(circle, #3bc48f 0 2px, transparent 2.5px) 20% 6% / 6px 6px no-repeat,
      radial-gradient(circle, #d0123f 0 2px, transparent 2.5px) 82% 4% / 6px 6px no-repeat,
      radial-gradient(circle, #f2b134 0 2px, transparent 2.5px) 2% 78% / 6px 6px no-repeat,
      radial-gradient(circle, #0c7a52 0 2px, transparent 2.5px) 98% 76% / 6px 6px no-repeat;
    opacity: 0;
    animation: mstep-sparkle var(--step-time) ease-out infinite;
    animation-delay: calc(var(--step-time) * 0.857);
  }
  .order-steps ol > li:nth-child(7) p {
    background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 38%, var(--brand) 50%, var(--ink) 62%, var(--ink) 100%) 0 0 / 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 12px;
    animation: mstep-shimmer 3.2s linear infinite;
  }
}
@keyframes mstep-line-a {
  0% { background-size: 0% 2px, 100% 2px; }
  11%, 86% { background-size: 100% 2px, 100% 2px; }
  96%, 100% { background-size: 0% 2px, 100% 2px; }
}
@keyframes mstep-line-b {
  0% { background-size: 2px 0, 0% 2px, 2px 0; }
  3% { background-size: 2px 14px, 0% 2px, 2px 0; }
  9% { background-size: 2px 14px, 100% 2px, 2px 0; }
  12%, 86% { background-size: 2px 14px, 100% 2px, 2px 14px; }
  96%, 100% { background-size: 2px 0, 0% 2px, 2px 0; }
}
@keyframes mstep-arrow {
  0%, 9% { opacity: 0.15; }
  14%, 86% { opacity: 1; }
  96%, 100% { opacity: 0.15; }
}
@keyframes mstep-final {
  0% { transform: scale(1); box-shadow: 0 0 0 5px #fff, 0 0 0 0 rgba(12, 122, 82, 0.4); }
  5% { transform: scale(1.22); box-shadow: 0 0 0 5px #fff, 0 0 0 10px rgba(12, 122, 82, 0.25); }
  14% { transform: scale(1); box-shadow: 0 0 0 5px #fff, 0 0 0 18px rgba(12, 122, 82, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 5px #fff, 0 0 0 0 rgba(12, 122, 82, 0); }
}
@keyframes mstep-hop {
  0%, 20%, 100% { transform: translateY(0); }
  6% { transform: translateY(-5px); }
  11% { transform: translateY(0); }
  15% { transform: translateY(-2px); }
}
@keyframes mstep-ripple {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes mstep-sparkle {
  0% { opacity: 0; transform: scale(0.4); }
  6% { opacity: 1; transform: scale(1.1); }
  16%, 100% { opacity: 0; transform: scale(1.35); }
}
@keyframes mstep-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .order-steps ol > li::before,
  .order-steps ol > li::after,
  .order-steps ol > li .step-mark,
  .order-steps ol > li .step-mark svg,
  .order-steps ol > li .step-mark::before,
  .order-steps ol > li .step-mark::after,
  .order-steps ol > li p { animation: none !important; }
  .order-steps ol > li:nth-child(7)::before { opacity: 0; }
}

/* ---------- Banners: keep each slot at the same shape as the upload size (tablet + phone) ---------- */
@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero-main { min-height: 0; aspect-ratio: 1520 / 720; }
  .hero-main .banner-copy, .hero-main .hero-visual { min-height: 0; height: 100%; }
  .hero-side { grid-template-rows: 1fr 1fr; }
  .hero-side a { min-height: 0; }
  .hero-side .banner-copy, .hero-side .side-visual { min-height: 0; height: 100%; }
  .banner-row a { aspect-ratio: 760 / 360; }
  .banner-row .h-banner { min-height: 0; height: 100%; }
}
@media (max-width: 860px) {
  .hero-side { grid-template-rows: none; }
  .hero-side a { aspect-ratio: 800 / 340; }
  .banner-copy { padding: 18px; }
}
@media (max-width: 600px) {
  .banner-row { grid-template-columns: 1fr; }
}

/* ---------- Staff accounts, roles and access ---------- */
.staff-tabs { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.staff-tabs a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #31443a;
  font-size: 13px;
  font-weight: 700;
}
.staff-tabs a.is-on, .staff-tabs a:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.staff-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0;
}
.staff-pill.is-on { background: var(--brand-soft); color: var(--brand-dark); }
.staff-pill.is-off { background: #fee2e2; color: #b91c1c; }
.staff-card.is-off { opacity: 0.8; }
.staff-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.staff-card-actions form { margin: 0; }
.staff-perms { display: grid; gap: 12px; margin: 14px 0 6px; }
.staff-perm-tools { display: flex; gap: 8px; }
.staff-perm-group {
  margin: 0;
  padding: 10px 12px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.staff-perm-group legend { padding: 0 6px; font-size: 12px; font-weight: 800; color: var(--brand-dark); }
.staff-perm { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.staff-perm input { margin-top: 3px; flex: none; }
.staff-perm span { display: grid; gap: 1px; font-size: 13px; }
.staff-perm small { color: var(--muted); font-size: 11px; }
.admin-account-who { display: grid; gap: 1px; margin: 0; padding: 8px 12px 6px; border-bottom: 1px solid var(--line); }
.admin-account-who small { color: var(--muted); font-size: 11px; }
@media (min-width: 700px) {
  .staff-perms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-perm-tools { grid-column: 1 / -1; }
}

/* ---------- Product page (minimal) ---------- */
.pdp { padding: 28px 0 8px; }
.pdp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; font-size: 12.5px; color: var(--muted); }
.pdp-crumbs a:hover { color: var(--brand); }
.pdp-crumbs span[aria-hidden] { color: #b4bfb8; }
.pdp-crumb-current { color: var(--ink); max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-top { display: grid; grid-template-columns: minmax(0, min(520px, 46%)) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.pdp #product-hero-image,
.pdp .product-media-main .h-product {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}
.pdp .product-thumbs { gap: 10px; margin-top: 12px; }
.pdp .product-media-main .product-thumb { width: 60px; height: 60px; border: 1px solid var(--line); border-radius: 10px; }
.pdp .product-media-main .product-thumb.is-on { border-color: var(--ink); }
.pdp .product-media-main .product-thumb img { padding: 4px; object-fit: contain; }

/* Desktop: the picture card is exactly as tall as the info column, so its bottom lines up with the three trust badges. */
@media (min-width: 861px) {
  .pdp-media { display: grid; grid-template-rows: minmax(0, 1fr) auto; contain: size; min-height: 440px; }
  .pdp #product-hero-image,
  .pdp .product-media-main .h-product { height: 100%; aspect-ratio: auto; min-height: 0; }
}

.pdp-info { max-width: 620px; padding-top: 0; }
.pdp-brand { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.pdp-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.pdp-tags span { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 500; }
.pdp-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 20px; }
.pdp-price { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.pdp-was { margin: 0; font-size: 15px; color: #9aa79f; text-decoration: line-through; }
.pdp-save { padding: 2px 8px; border-radius: 6px; background: #fdecf0; color: var(--sale); font-size: 12px; font-weight: 600; }
.pdp-summary { margin: 16px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.pdp-stock { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13px; font-weight: 600; }
.pdp-stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pdp-stock.is-in { color: var(--brand); }
.pdp-stock.is-low { color: #b7791f; }
.pdp-stock.is-out { color: var(--sale); }
.pdp-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }

.pdp-form .variant-picker { margin: 0 0 4px; }
.pdp-form .variant-picker legend { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pdp-form .variant-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 10px;
}
.pdp-form .variant-option { min-width: 0; }
.pdp-form .variant-option-body {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.pdp-form .variant-option input:focus-visible + .variant-option-body {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.pdp-form .variant-option input:checked + .variant-option-body {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand);
}
.pdp-form .variant-thumb {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}
.pdp-form .variant-option-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.pdp-form .variant-option-copy strong {
  display: block;
  max-width: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.pdp-form .variant-option-copy > .variant-option-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  width: 100%;
  min-width: 0;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}
.pdp-form .variant-option-deal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}
.pdp-form .variant-option-price .variant-option-final {
  order: 0;
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.pdp-form .variant-option-price .variant-option-was {
  order: 0;
  color: #8b9891;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: line-through;
  white-space: nowrap;
}
.pdp-form .variant-option-price .variant-option-off {
  order: 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fdecf0;
  color: var(--sale);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.pdp-buy { display: flex; gap: 12px; margin-top: 20px; }
.pdp-qty { display: inline-flex; align-items: stretch; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.pdp-qty button { width: 40px; border: 0; background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.pdp-qty button:hover { background: var(--bg); }
.pdp-qty input { width: 44px; padding: 0; border: 0; background: transparent; text-align: center; font-size: 15px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.pdp-qty input::-webkit-outer-spin-button,
.pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-qty input:focus { outline: none; }
.pdp-add { flex: 1; height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; }
.pdp-add:hover { background: var(--brand-dark); }
.pdp-add:disabled { background: #cfd8d3; color: #fff; cursor: not-allowed; }

.pinfo { margin: 56px auto 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.pinfo-nav { gap: 28px; padding: 0; border-bottom: 1px solid var(--line); }
.pinfo-nav button { padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.pinfo-nav button.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.pinfo-panel { max-width: 780px; padding: 24px 0 0; }
.pinfo-copy,
.pinfo-panel li,
.pinfo-faq p { font-size: 14.5px; line-height: 1.75; color: #4b5a52; }
.pinfo-faq strong { margin-bottom: 4px; font-size: 14.5px; }

.pdp-related { margin: 64px auto 0; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.pdp-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pdp-related-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.pdp-related-head a { font-size: 13px; font-weight: 600; color: var(--brand); }
.pdp-related-head a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .pdp { padding-top: 20px; }
  .pdp-top { grid-template-columns: 1fr; gap: 22px; }
  .pdp-media { width: 100%; max-width: 360px; margin: 0 auto; }
  .pdp .product-thumbs { justify-content: center; }
  .pdp-info { max-width: none; }
  .pdp-related { margin-top: 48px; padding-top: 32px; }
}
.pdp-wa { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin-top: 12px; border: 1px solid #128c4a; border-radius: 10px; background: #fff; color: #128c4a; font-size: 14.5px; font-weight: 600; transition: background 0.15s ease, color 0.15s ease; }
.pdp-wa:hover { background: #128c4a; color: #fff; }
.pdp-wa svg { flex: none; }
/* Product info: three stacked sections, FAQ accordion */
.pinfo { margin: 56px auto 0; display: grid; gap: 0; }
.pinfo-section { max-width: 780px; padding: 32px 0; border-top: 1px solid var(--line); }
.pinfo-section:first-child { padding-top: 32px; }
.pinfo-section h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.pinfo-section ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pinfo-section li { margin: 0; font-size: 14.5px; line-height: 1.75; color: #4b5a52; }
.pinfo-faqs { border-top: 1px solid var(--line); }
.pinfo-faq { border-bottom: 1px solid var(--line); }
.pinfo-faq + .pinfo-faq { margin: 0; padding: 0; border-top: 0; }
.pinfo-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.pinfo-faq summary::-webkit-details-marker { display: none; }
.pinfo-faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid #7b8a82;
  border-bottom: 2px solid #7b8a82;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.pinfo-faq[open] summary::after { transform: rotate(-135deg); }
.pinfo-faq summary:hover { color: var(--brand); }
.pinfo-faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pinfo-faq p { margin: 0; padding: 0 28px 18px 0; font-size: 14.5px; line-height: 1.7; color: #4b5a52; }
.wish-btn.is-on { color: var(--sale); }
.wish-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.footer-subscribe-note { flex: 0 0 100%; margin: 0; text-align: center; color: #8ea399; font-size: 11px; line-height: 1.4; }
/* Product cards: keep price and old price clear of the Add button */
.product-buy { flex-wrap: wrap; gap: 6px 8px; }
.price-row { flex-wrap: wrap; row-gap: 0; }
@media (max-width: 640px) {
  .product-buy { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-buy .price-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .product-buy .price-old { line-height: 1.2; }
  .product-buy form { width: 100%; }
  .product-buy .btn-brand { display: block; width: 100%; padding: 8px 10px; font-size: 12px; text-align: center; }
}
/* Brands page */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; margin-top: 28px; }
.brand-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  color: var(--ink); text-decoration: none; gap: 6px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.brand-card:hover, a.brand-card:focus-visible { border-color: var(--brand); box-shadow: 0 8px 22px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.brand-count { font-size: 13px; }
.brand-logo { width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; background: #fff; }
/* The logo JPEGs have a baked-in light grey (#f7f7f7) background; lifting brightness turns it pure white so it blends into the card. */
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; background: transparent; filter: brightness(1.033); }
.brand-logo-text { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; text-align: center; padding: 12px; }
.brand-name { font-weight: 600; font-size: 15px; text-align: center; }
@media (max-width: 520px) { .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* 404 page */
.notfound { text-align: center; max-width: 560px; padding: 72px 0 48px; }
.notfound-code { margin: 0; font-size: clamp(88px, 18vw, 160px); font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: -4px; }
.notfound h1 { margin: 12px 0 8px; }
.notfound-search { display: flex; gap: 10px; margin: 28px 0 20px; }
.notfound-search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; outline: none; background: #fff; }
.notfound-search input:focus { border-color: var(--brand); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Admin: brands */
.brand-guide-list { margin: 6px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.6; color: #374151; }
.brand-guide-list li { margin-bottom: 4px; }
.brand-admin-preview { display: flex; align-items: center; justify-content: center; width: 160px; height: 120px; margin-bottom: 6px; background: #fff; border: 1px dashed #d1d5db; border-radius: 8px; overflow: hidden; }
.brand-admin-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Store locator */
.store-offer { margin: 20px 0; padding: 18px 22px; border-radius: 18px; background: var(--brand-soft); border: 1px solid rgba(12, 122, 82, .25); }
.store-offer-tag { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.store-offer h2 { margin: 0 0 6px; color: var(--brand-dark); font-size: clamp(20px, 3vw, 26px); }
.store-offer p:last-child { margin: 0; color: var(--ink); }
.store-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; align-items: stretch; }
.store-grid:has(.store-map) { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr); }
.store-details h2 { margin-bottom: 12px; }
.store-details p { margin: 0 0 14px; }
.store-map { min-height: 340px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.store-map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
.store-more { margin-top: 20px; }
.store-more h2 { margin-bottom: 8px; }
@media (max-width: 760px) { .store-grid:has(.store-map) { grid-template-columns: 1fr; } }

/* Quantity discount (cart, drawer, checkout) */
.cart-discount-note { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: #6b7280; line-height: 1.4; }
.cart-discount-note.is-on { color: var(--brand-dark); background: var(--brand-soft); border-radius: 8px; padding: 4px 8px; display: inline-block; }
.cart-sum.is-discount, .cart-sum.is-discount strong { color: var(--brand); }
.cart-discount-line { color: var(--brand); font-weight: 700; }
.cart-price-was { color: #9ca3af; font-weight: 500; font-size: 12px; }
.pdp-bulk-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.pay-lock-note { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13px; font-weight: 650; line-height: 1.45; }
.pay-lock-note[hidden],
.cart-checkout[hidden],
.loss-product[hidden] { display: none; }
.loss-master .mail-switch-label { font-size: 16px; }
.loss-products { display: grid; gap: 12px; margin-top: 12px; }
.loss-product { margin: 0; padding: 12px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.loss-product-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.loss-price-row { display: grid; grid-template-columns: minmax(120px, 1fr) 1fr 1fr; gap: 8px; align-items: end; margin-bottom: 8px; }
.loss-price-row label { display: grid; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; color: #374151; }
.loss-product .btn { margin-top: 4px; }
@media (max-width: 720px) {
  .loss-price-row { grid-template-columns: 1fr; }
}
.cod-cat-list { display: grid; gap: 10px; margin-top: 12px; }
.cod-group { border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; overflow: hidden; }
.cod-group[hidden],
.cod-toggle[hidden] { display: none; }
.cod-toggle { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; cursor: pointer; }
.cod-toggle.is-child { padding-left: 36px; background: #f8faf9; border-top: 1px solid #eef2f0; }
.cod-toggle.is-on { background: #f3faf6; }
.cod-toggle-copy { display: grid; gap: 2px; min-width: 0; }
.cod-toggle-copy strong { font-size: 15px; line-height: 1.3; }
.cod-toggle.is-child .cod-toggle-copy strong { font-size: 14px; font-weight: 650; }
.cod-state { color: #6b7280; font-size: 12px; font-weight: 650; line-height: 1.3; }
.cod-state.is-pay { color: #166534; }
.cod-toggle input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.cod-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin-left: auto; border-radius: 999px; background: #d1d5db; transition: background .15s ease; }
.cod-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); transition: transform .15s ease; }
.cod-toggle input:checked + .cod-switch { background: #16834b; }
.cod-toggle input:checked + .cod-switch::after { transform: translateX(20px); }
.cod-toggle input:focus-visible + .cod-switch { outline: 2px solid #16834b; outline-offset: 2px; }

/* Track order page */
.track-page { max-width: 760px; padding: 32px 0 48px; }
.track-hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 22px 26px;
  overflow: hidden;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 90% 0, rgba(12, 122, 82, 0.14), transparent 50%),
    linear-gradient(180deg, var(--brand-soft), #fff);
  box-shadow: var(--shadow);
}
.track-hero-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 22px rgba(12, 122, 82, 0.3);
}
.track-hero-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.track-hero h1 { margin: 6px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.track-hero p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.track-form { display: flex; gap: 10px; width: 100%; max-width: 520px; margin-top: 12px; }
.track-input { position: relative; flex: 1; min-width: 0; }
.track-input svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  fill: none;
  stroke: #7d9488;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.track-input input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.track-input input::placeholder { color: #9aa8a1; font-weight: 600; letter-spacing: 0; text-transform: none; }
.track-input input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12, 122, 82, 0.14); }
.track-btn {
  flex: none;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(12, 122, 82, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.track-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(12, 122, 82, 0.34); }
.track-tip { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.track-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fef3f2;
  box-shadow: inset 0 0 0 1px #fbd5d1;
  color: #b42318;
}
.track-alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.track-alert p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; }

.track-card {
  --tone: var(--brand);
  --tone-soft: var(--brand-soft);
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: track-in .35s cubic-bezier(.2, .8, .2, 1);
}
.track-card.track-wait { --tone: #b7791f; --tone-soft: #fff4dc; }
.track-card.track-stop { --tone: #b42318; --tone-soft: #fef3f2; }
@keyframes track-in { from { opacity: 0; transform: translateY(12px); } }
.track-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.track-label { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.track-id { display: block; margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.track-date { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.track-badge {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--tone);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 25%, transparent);
}
.track-message { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--tone-soft); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.55; }

.track-steps { display: flex; margin: 26px 0 8px; padding: 0; list-style: none; }
.track-steps li { position: relative; flex: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
.track-steps li::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.track-steps li:first-child::before { display: none; }
.track-steps li.is-done::before, .track-steps li.is-current::before { background: var(--brand); }
.track-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
  color: #9aa8a1;
  font-size: 13px;
  font-weight: 800;
}
.track-dot svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.track-steps li.is-done .track-dot { background: var(--brand); box-shadow: none; }
.track-steps li.is-current .track-dot { background: var(--brand); box-shadow: 0 0 0 5px rgba(12, 122, 82, 0.18); color: #fff; }
.track-wait .track-steps li.is-current .track-dot { background: #b7791f; box-shadow: 0 0 0 5px rgba(183, 121, 31, 0.2); }
.track-steps li.is-current:not(.is-done) .track-dot { animation: track-pulse 1.8s ease-in-out infinite; }
@keyframes track-pulse { 50% { box-shadow: 0 0 0 9px rgba(12, 122, 82, 0.06); } }
.track-wait .track-steps li.is-current:not(.is-done) .track-dot { animation-name: track-pulse-wait; }
@keyframes track-pulse-wait { 50% { box-shadow: 0 0 0 9px rgba(183, 121, 31, 0.07); } }
.track-step-name { max-width: 90px; color: #9aa8a1; font-size: 12px; font-weight: 700; line-height: 1.25; }
.track-steps li.is-done .track-step-name, .track-steps li.is-current .track-step-name { color: var(--ink); }

.track-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 0; }
.track-facts div { padding: 12px; border-radius: 12px; background: #f6faf8; }
.track-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.track-facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.track-help { margin: 16px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.track-help a { color: var(--brand); font-weight: 800; }

@media (max-width: 640px) {
  .track-page { padding: 18px 0 32px; }
  .track-hero { padding: 24px 16px 20px; border-radius: 20px; }
  .track-hero h1 { font-size: 24px; }
  .track-form { flex-direction: column; }
  .track-btn { padding: 14px; }
  .track-card { padding: 18px; }
  .track-card-head { flex-direction: column-reverse; }
  .track-steps { flex-direction: column; gap: 0; margin: 20px 0 4px; }
  .track-steps li { grid-template-columns: 32px 1fr; justify-items: start; align-items: center; gap: 12px; padding-bottom: 18px; text-align: left; }
  .track-steps li:last-child { padding-bottom: 0; }
  .track-steps li::before { top: -18px; right: auto; left: 14px; width: 3px; height: 100%; }
  .track-step-name { max-width: none; font-size: 13.5px; }
  .track-facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .track-card, .track-steps li.is-current .track-dot { animation: none !important; }
}
/* ---- Pages SEO (admin) ---- */
.admin-seo-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.admin-seo-summary > div { display: grid; line-height: 1.15; }
.admin-seo-summary strong { font-size: 20px; color: #1f2937; }
.admin-seo-summary span { font-size: 11px; font-weight: 700; color: #6b7280; }
.admin-seo-summary .is-warn strong { color: #d97706; }
.admin-seo-search { margin-left: auto; flex: 1 1 200px; max-width: 280px; }
.admin-seo-help summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #1f2937; }
.admin-seo-help ul { margin: 8px 0 0; padding-left: 18px; color: #4b5563; font-size: 12px; line-height: 1.6; }
.admin-seo-help code, .admin-seo-name code { padding: 1px 5px; border-radius: 4px; background: #f3f4f6; font-size: 11px; color: #374151; }
.admin-seo-group { margin: 10px 0 0; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; }
.admin-seo-item { padding: 0; scroll-margin-top: 76px; }
.admin-seo-item[hidden], .admin-seo-group[hidden] { display: none; }
.admin-seo-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; cursor: pointer; list-style: none;
}
.admin-seo-item > summary::-webkit-details-marker { display: none; }
.admin-seo-item > summary::after { content: "+"; margin-left: 4px; font-size: 18px; font-weight: 700; color: #9ca3af; }
.admin-seo-item[open] > summary::after { content: "–"; }
.admin-seo-item[open] > summary { border-bottom: 1px solid #eef0f2; }
.admin-seo-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; margin-right: auto; font-size: 13px; color: #1f2937; }
.admin-seo-name code { word-break: break-all; }
.admin-seo-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.admin-seo-badge { padding: 2px 8px; border-radius: 999px; background: #f3f4f6; color: #4b5563; font-size: 10px; font-weight: 700; font-style: normal; white-space: nowrap; }
.admin-seo-badge.is-ok { background: #e7f6ef; color: #085c3e; }
.admin-seo-badge.is-warn { background: #fef3c7; color: #92400e; }
.admin-seo-badge.is-new { background: #dbeafe; color: #1e40af; }
.admin-seo-form { display: grid; gap: 10px; padding: 12px 12px 6px; }
.admin-seo-form h3 { margin: 4px 0 0; font-size: 12px; font-weight: 800; color: #1f2937; }
.admin-seo-form .check { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #374151; }
.admin-seo-form .admin-settings-actions { margin-top: 2px; }
.admin-seo-count { font-size: 11px; font-weight: 600; color: #9ca3af; }
.admin-seo-count.is-over { color: #d97706; }
.admin-seo-reset { padding: 0 12px 12px; }
.admin-seo .square::placeholder { color: #9ca3af; }
@media (max-width: 640px) {
  .admin-seo-item > summary { align-items: flex-start; }
  .admin-seo-badges { justify-content: flex-start; }
  .admin-seo .admin-settings-grid { grid-template-columns: 1fr; }
}

/* ---- Hero text set from Pages SEO ---- */
.page-lead { margin: 6px 0 0; max-width: 62ch; font-size: 15px; }
.center .page-lead, .checkout-empty .page-lead, .track-hero .page-lead { margin-left: auto; margin-right: auto; }
.page-intro { padding: 28px 0 4px; }
.page-intro h1 { font-size: clamp(26px, 3.2vw, 36px); }

/* ---- Product description: bold, headings, bullets ---- */
.rt p { margin: 0 0 12px; }
.rt p:last-child, .rt ul:last-child { margin-bottom: 0; }
.rt strong { font-weight: 700; color: var(--ink); }
.rt .rt-heading { margin: 22px 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.35; }
.rt .rt-heading:first-child { margin-top: 0; }
.rt ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.rt li { font-size: 14.5px; line-height: 1.75; color: #4b5a52; }

/* ---- Admin formatting toolbar ---- */
.admin-rt { display: grid; gap: 4px; }
.admin-rt-label { font-size: 11px; font-weight: 700; color: #6b7280; }
.admin-rt-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-rt-bar button {
  padding: 4px 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff;
  font-size: 12px; font-weight: 600; color: #374151; cursor: pointer;
}
.admin-rt-bar button:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.admin-rt .admin-hint code { padding: 1px 5px; border-radius: 4px; background: #f3f4f6; font-size: 11px; color: #374151; }

/* ---- Coming soon (Home Nursing) ---- */
.coming-soon { margin-top: 24px; padding: 40px 24px; text-align: center; }
.coming-soon h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); color: var(--brand-dark); }
.coming-soon p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--muted); }
.coming-soon p a { color: var(--brand); font-weight: 700; }

/* ---- Floating Help WhatsApp button ---- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #128c7e; }
@media (max-width: 860px) {
  /* sit above the bottom mobile menu */
  .wa-float { right: 14px; bottom: 92px; width: 42px; height: 42px; }
}
@media print { .wa-float { display: none; } }

/* Product info: three tabs (Description / Directions & safety / FAQs) */
.pinfo-tabbed { display: block; }
.pinfo-tablist { display: flex; gap: 28px; padding: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.pinfo-tab { flex: none; margin-bottom: -1px; padding: 12px 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer; }
.pinfo-tab:hover { color: var(--ink); }
.pinfo-tab.is-on { color: var(--brand); border-bottom-color: var(--brand); }
.pinfo-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pinfo-tabbed .pinfo-section { max-width: 780px; padding: 24px 0 0; border-top: 0; }
.pinfo-tabbed .pinfo-section[hidden] { display: none; }

/* Product page: verified brand line and trust badges */
.pdp-verified { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.pdp-verified-brand { color: var(--ink); }
.pdp-verified-badge { display: inline-flex; align-items: center; gap: 6px; color: #15803d; }
.pdp-verified-badge svg { flex: none; color: #16a34a; }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); text-decoration: none; }
.pdp-rating .rv-stars { font-size: 17px; }
.pdp-rating strong { color: var(--ink); font-weight: 700; }
.pdp-rating:hover span { color: var(--brand); text-decoration: underline; }
.pdp-reviews { scroll-margin-top: 90px; }
.pdp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.pdp-trust li { display: flex; align-items: flex-start; gap: 8px; padding: 0 10px; }
.pdp-trust li:first-child { padding-left: 0; }
.pdp-trust li + li { border-left: 1px solid var(--line); }
.pdp-trust svg { flex: none; margin-top: 1px; color: var(--brand); }
.pdp-trust span { display: grid; gap: 1px; min-width: 0; }
.pdp-trust strong { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.pdp-trust small { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
@media (max-width: 480px) {
  .pdp-media { max-width: 290px; }
  .pdp .product-media-main .product-thumb { width: 52px; height: 52px; }
  .pdp-title { font-size: 22px; }
  .pdp-price { font-size: 23px; }
  .pdp-trust { grid-template-columns: 1fr; gap: 12px; }
  .pdp-trust li, .pdp-trust li:first-child { padding: 0; }
  .pdp-trust li + li { border-left: 0; }
}

/* Reviews: stars, product page section */
.rv-stars { position: relative; display: inline-block; flex: none; font-size: 15px; line-height: 1; letter-spacing: 1px; color: #d5ddd8; white-space: nowrap; }
.rv-stars::before { content: "\2605\2605\2605\2605\2605"; }
.rv-stars > i { position: absolute; left: 0; top: 0; overflow: hidden; height: 100%; color: #f5a623; }
.rv-stars > i::before { content: "\2605\2605\2605\2605\2605"; }

.pdp-reviews { margin: 48px auto 0; padding: 36px 0 8px; border-top: 1px solid var(--line); }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; max-width: 780px; margin-bottom: 8px; }
.rv-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.rv-summary { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.rv-summary strong { color: var(--ink); font-size: 16px; }
.rv-summary .rv-stars { font-size: 17px; }
.rv-list { max-width: 780px; }
.rv-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rv-item[hidden] { display: none; }
.rv-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rv-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #e3f3ec; color: var(--brand-dark); font-size: 15px; font-weight: 700; }
.rv-item-head strong { display: block; font-size: 14.5px; }
.rv-item-meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.rv-text { font-size: 14.5px; line-height: 1.75; color: #4b5a52; overflow-wrap: anywhere; }
.rv-text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.rv-toggle { margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rv-toggle:hover { text-decoration: underline; }
.rv-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rv-photo { width: 84px; height: 84px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; cursor: zoom-in; }
.rv-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-more { margin: 20px 0 0; height: 44px; padding: 0 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rv-more:hover { border-color: var(--brand); color: var(--brand); }
.rv-more[hidden] { display: none; }
.rv-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(10, 20, 15, 0.82); cursor: zoom-out; }
.rv-lightbox[hidden] { display: none; }
.rv-lightbox img { max-width: min(96vw, 1100px); max-height: 88vh; border-radius: 10px; background: #fff; cursor: default; }
.rv-lightbox-close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.rv-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* Admin: Reviews page */
.rv-admin-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.rv-admin-thumbs img, .rv-admin-thumb img { display: block; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #f3f4f6; }
.rv-admin-thumb { display: grid; gap: 4px; justify-items: start; font-weight: 500; }
.rv-picker { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.rv-picker-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.rv-picker-bar .square { flex: 1 1 200px; width: auto; }
.rv-picker-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand-dark); }
.rv-picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-height: 300px; overflow-y: auto; }
.rv-picker-item { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 10px; border-bottom: 1px solid #f1f3f2; color: #1f2937; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.rv-picker-item[hidden] { display: none; }
.rv-picker-item:hover { background: #f4faf7; }
.rv-picker-item input { flex: none; margin-top: 2px; }
.rv-picker-item span { display: grid; gap: 1px; min-width: 0; }
.rv-picker-item strong { font-weight: 600; overflow-wrap: anywhere; }
.rv-picker-item small { color: #6b7280; font-size: 11px; }
.rv-filter { margin: 0 0 10px; max-width: 320px; }
.rv-admin-item { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid #eef0ef; }
.rv-admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.rv-admin-head time { color: #6b7280; font-size: 12px; }
.rv-admin-text { margin: 0; color: #374151; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.rv-admin-products { margin: 0; color: #374151; font-size: 12px; }
.rv-admin-products span { color: #6b7280; font-weight: 700; }
.rv-admin-products em { color: #6b7280; font-style: normal; }
.rv-admin-actions { display: flex; align-items: center; gap: 8px; }
.rv-admin-actions form { margin: 0; }
.rv-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 12px; color: #6b7280; }
@media (max-width: 720px) {
  .rv-picker-list { grid-template-columns: 1fr; }
  .pdp-reviews { margin-top: 36px; padding-top: 28px; }
}

/* Store locator redesign */
.locator-page {
  max-width: 1180px;
  padding-top: 24px;
  padding-bottom: 40px;
}

.locator-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  font-size: 13px;
  color: #76827c;
}

.locator-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.locator-breadcrumb [aria-current="page"] {
  color: #087b53;
}

.locator-heading {
  margin-bottom: 26px;
}

.locator-heading .locator-eyebrow {
  margin: 0 0 10px;
  color: #087b53;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.locator-heading h1 {
  margin: 0 0 10px;
  color: #142b21;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
}

.locator-heading > p:last-child {
  margin: 0;
  color: #58645f;
  font-size: 16px;
  line-height: 1.7;
}

.locator-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e5ede8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(20, 50, 35, 0.05);
}

.locator-card.has-map {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
}

.locator-details {
  min-width: 0;
  padding: 30px;
}

.locator-details > h2 {
  margin: 0 0 20px;
  color: #172a21;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
}

.locator-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
}

.locator-row + .locator-row {
  border-top: 1px solid #edf1ee;
}

.locator-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf7f1;
  color: #126447;
}

.locator-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.locator-row > div {
  min-width: 0;
}

.locator-row h3 {
  margin: 0 0 4px;
  color: #35483e;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.locator-row p {
  margin: 0;
  color: #5b6660;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.locator-row a {
  color: inherit;
  text-decoration: none;
}

.locator-row a:hover {
  color: #087b53;
}

.locator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.locator-btn {
  display: inline-flex;
  flex: 1 1 160px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #087b53;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.locator-btn svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.locator-btn-primary {
  background: #087b53;
  color: #fff;
}

.locator-btn-primary:hover {
  background: #056341;
  color: #fff;
}

.locator-btn-outline {
  background: #fff;
  color: #087b53;
}

.locator-btn-outline:hover {
  background: #edf7f1;
  color: #056341;
}

.locator-btn:focus-visible,
.locator-row a:focus-visible {
  outline: 3px solid #6bc6a2;
  outline-offset: 3px;
}

.locator-map {
  min-width: 0;
  min-height: 420px;
  padding: 8px;
  background: #fff;
}

.locator-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 14px;
}

.locator-more {
  margin-top: 22px;
  padding: 24px 30px;
  border: 1px solid #e5ede8;
  border-radius: 16px;
  background: #fff;
}

.locator-more h2 {
  margin: 0 0 8px;
  color: #172a21;
  font-size: 20px;
}

.locator-more p {
  margin: 0;
  color: #5b6660;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .locator-card.has-map {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .locator-details {
    padding: 24px;
  }
}

@media (max-width: 700px) {
  .locator-page {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .locator-breadcrumb {
    margin-bottom: 24px;
  }

  .locator-heading {
    margin-bottom: 20px;
  }

  .locator-heading > p:last-child {
    font-size: 14px;
  }

  .locator-card.has-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .locator-details {
    padding: 24px 20px;
  }

  .locator-details > h2 {
    font-size: 23px;
  }

  .locator-map,
  .locator-map iframe {
    min-height: 320px;
  }

  .locator-map iframe {
    height: 320px;
  }

  .locator-more {
    padding: 22px 20px;
  }
}

@media (max-width: 600px) {
  .pdp-form .variant-options { gap: 8px; }
  .pdp-form .variant-option-body { padding: 10px 12px; }
  .pdp-form .variant-thumb { width: 36px; height: 36px; flex-basis: 36px; }
}
    






/* EJAZ SONS - PREMIUM MOBILE HEADER */
@media (max-width: 1199px) {

  .site-header {
    background: #fff;
    border-bottom: 1px solid #e5eee8;
    box-shadow: 0 3px 15px rgba(12,55,35,.06);
  }

  .header-main {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas:
      "logo actions"
      "search search"
      "notice notice";
    align-items: center;
    gap: 11px 10px;
    padding: 12px 15px;
    min-height: 0;
  }

  /* Logo */
  .header-main .logo-link {
    grid-area: logo;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .header-main .logo-img {
    height: 43px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }

  /* Actions container */
  .header-cluster {
    display: contents;
  }

  .header-cluster-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
  }

  .header-actions {
    display: none !important;
  }

  .header-cluster-actions .account-link {
    width: 41px;
    height: 41px;
    min-height: 41px;
    padding: 0;
    border: 1px solid #e0ece4;
    border-radius: 12px;
    background: #f4faf6;
    color: #0c7a52;
  }
  .header-cluster-actions .account-link svg { width: 22px; height: 22px; }
  .header-cluster-actions .account-link-label { display: none; }

  /* Cart */
  .header-main .cart-pill {
    display: inline-flex;
    order: 1;
    width: 41px;
    height: 41px;
    min-height: 41px;
    padding: 0;
    border: 1px solid #e0ece4;
    border-radius: 12px;
    background: #f4faf6;
    color: #0c7a52;
  }

  .header-main .cart-pill svg {
    width: 23px;
    height: 23px;
  }

  .header-main .cart-pill .count {
    top: -5px;
    right: -5px;
  }

  /* Menu text button */
  .header-main .nav-burger {
    display: inline-flex;
    order: 2;
    align-items: center;
    justify-content: center;
    width: 61px;
    height: 41px;
    padding: 0 10px;
    border: 1px solid #e0ece4;
    border-radius: 12px;
    background: #f4faf6;
    color: #0c7a52;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
  }

  /* Search bar */
  .header-main .search-form {
    grid-area: search;
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 5px 5px 5px 14px;
    border: 1px solid #dfeae3;
    border-radius: 13px;
    background: #f7faf8;
    box-shadow: none;
  }

  .header-main .search-form input {
    min-width: 0;
    width: 100%;
    font-size: 13px;
  }

  .header-main .search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #0c7a52;
  }

  .header-main .search-form button svg {
    width: 17px;
    height: 17px;
  }

  .header-main .search-suggest {
    left: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Announcement row - preserve existing text animation */
  .header-contact-row {
    grid-area: notice;
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 3px 0 0;
  }

  .header-contact-row .type-line {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    color: #496254;
  }

  .header-contact-row .header-contact {
    display: none;
  }
}



/* MOBILE HEADER FINAL LAYOUT FIX */
@media (max-width: 1199px) {

  .site-header .header-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "logo actions"
      "search search"
      "notice notice" !important;
    align-items: center !important;
    gap: 11px 10px !important;
    width: calc(100% - 30px);
    margin: 0 auto;
    padding: 12px 0 !important;
  }

  .site-header .header-main > .logo-link {
    grid-area: logo !important;
    justify-self: start;
    min-width: 0;
  }

  .site-header .header-main > .search-form {
    grid-area: search !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .site-header .header-main > .header-cluster {
    display: contents !important;
  }

  .site-header .header-cluster-actions {
    grid-area: actions !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 9px !important;
  }

  .site-header .header-cluster-actions .nav-burger {
    display: inline-flex !important;
    order: 2;
    width: 61px;
    height: 41px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #e0ece4;
    border-radius: 12px;
    background: #f4faf6;
    color: #0c7a52;
    font-size: 12px !important;
    font-weight: 800;
    cursor: pointer;
  }

  .site-header .header-cluster-actions .cart-pill {
    display: inline-flex !important;
    order: 1;
    width: 41px;
    height: 41px;
    min-height: 41px;
    flex: none;
  }

  .site-header .header-cluster-actions .account-link {
    order: 0;
    width: 41px;
    height: 41px;
    min-height: 41px;
    padding: 0;
  }
  .site-header .header-cluster-actions .account-link-label {
    display: none;
  }

  .site-header .header-contact-row {
    grid-area: notice !important;
    display: flex !important;
    justify-content: center;
    width: 100%;
  }

  .site-header .header-contact-row .header-contact {
    display: none !important;
  }

  .site-header .header-contact-row .type-line {
    display: block !important;
    text-align: center !important;
  }
}


/* NEW MOBILE DELIVERY PROMO BAR */
.mobile-delivery-promo {
  display: none;
}

@media (max-width: 1199px) {

  /* Keep the header in three clean rows */
  .site-header .header-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "logo actions"
      "search search" !important;
    gap: 11px 10px !important;
    align-items: center !important;
    padding: 12px 0 !important;
    width: calc(100% - 30px);
    margin: 0 auto;
  }

  .site-header .header-main > .logo-link {
    grid-area: logo !important;
    min-width: 0;
  }

  .site-header .header-main > .search-form {
    grid-area: search !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .site-header .header-main > .header-cluster {
    display: contents !important;
  }

  .site-header .header-cluster-actions {
    grid-area: actions !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
  }

  .site-header .header-cluster-actions .nav-burger {
    display: inline-flex !important;
    order: 2;
    align-items: center;
    justify-content: center;
    width: 61px;
    height: 41px;
    padding: 0 10px;
    border: 1px solid #e0ece4;
    border-radius: 12px;
    background: #f4faf6;
    color: #0c7a52;
    font-size: 12px !important;
    font-weight: 800;
    cursor: pointer;
  }

  .site-header .header-cluster-actions .cart-pill {
    display: inline-flex !important;
    order: 1;
    width: 41px;
    height: 41px;
    min-height: 41px;
    flex: none;
  }

  .site-header .header-cluster-actions .account-link {
    order: 0;
    width: 41px;
    height: 41px;
    min-height: 41px;
    padding: 0;
  }
  .site-header .header-cluster-actions .account-link-label {
    display: none;
  }

  /* Hide old announcement on mobile only */
  .site-header .header-contact-row {
    display: none !important;
  }
}

.ip-block {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  vertical-align: middle;
}
.ip-block-form {
  display: inline-flex;
  margin: 0;
}
.ip-block-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.ip-block-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.ip-block-switch span {
  position: relative;
  display: block;
  width: 22px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #d1d5db;
}
.ip-block-switch span::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.ip-block-switch input:checked + span,
.ip-block-switch.is-on span {
  background: #dc2626;
}
.ip-block-switch input:checked + span::after,
.ip-block-switch.is-on span::after {
  left: 11px;
}
.ip-block-switch em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #6b7280;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ip-block-switch.is-on em,
.ip-block-switch input:checked ~ em {
  color: #dc2626;
}
.ip-block-switch input:focus-visible + span {
  outline: 2px solid #dc2626;
  outline-offset: 1px;
}

.visitors-page { min-width: 0; }
.visitors-page .admin-lead { max-width: 72ch; }
.visitors-search {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-end;
  margin: 8px 0 12px;
}
.visitors-search-field {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.visitors-search-wrap {
  position: relative;
  display: block;
}
.visitors-search-wrap .square::-webkit-search-decoration,
.visitors-search-wrap .square::-webkit-search-cancel-button,
.visitors-search-wrap .square::-webkit-search-results-button,
.visitors-search-wrap .square::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.visitors-search-icon {
  display: none;
  position: absolute;
  top: 50%;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0c7a52;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.visitors-search-icon:hover,
.visitors-search-icon:focus-visible {
  background: #ecfdf5;
  color: #086644;
  outline: none;
}
.visitors-search-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.visitors-search-text,
.visitors-search-clear {
  flex: 0 0 auto;
  white-space: nowrap;
}
.visitors-sub {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
}
.visitors-facts {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}
.visitors-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.visitors-facts dt {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.visitors-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.visitors-ua {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.4;
}
.visitors-wa { margin: 12px 0 0; }
.visitors-page .admin-table-actions a { margin-right: 8px; }
@media (min-width: 861px) {
  .visitors-page .visitors-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .visitors-page .admin-table { min-width: 720px; }
}
@media (max-width: 860px) {
  .visitors-page .admin-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .visitors-page .visitors-back { width: 100%; text-align: center; }
  .visitors-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .visitors-tabs a { text-align: center; padding: 9px 8px; font-size: 12px; }
  .visitors-search { flex-wrap: wrap; }
  .visitors-search-field { flex: 1 1 100%; }
  .visitors-search-text { display: none; }
  .visitors-search-icon { display: inline-flex; }
  .visitors-search-wrap .square { padding-right: 34px; }
  .visitors-search-clear { margin-left: auto; }
  .visitors-page .admin-stat-copy span { font-size: 11px; }
  .visitors-page .visitors-table {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .visitors-page .admin-table,
  .visitors-page .admin-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .visitors-page .admin-table thead { display: none; }
  .visitors-page .admin-table tr {
    display: block;
    margin: 0 0 8px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
  }
  .visitors-page .admin-table td {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    width: auto;
    padding: 6px 0;
    border: 0;
    font-size: 13px;
  }
  .visitors-page .admin-table td::before {
    content: attr(data-label);
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
    padding-top: 2px;
  }
  .visitors-page .admin-table tr td:last-child { padding-bottom: 0; }
  .visitors-page .admin-table-actions { text-align: left; }
  .visitors-page .admin-table-actions a {
    display: inline-block;
    min-height: 32px;
    padding: 6px 10px 0 0;
  }
  .ip-block {
    flex-wrap: wrap;
    white-space: normal;
    gap: 8px;
  }
  .ip-block-switch { min-height: 32px; }
  .ip-block-switch span { width: 28px; height: 16px; }
  .ip-block-switch span::after { width: 14px; height: 14px; }
  .ip-block-switch input:checked + span::after,
  .ip-block-switch.is-on span::after { left: 13px; }
  .visitors-facts > div { grid-template-columns: 78px minmax(0, 1fr); }
  .visitors-wa .btn { width: 100%; text-align: center; }
}

.auth-screen {
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}
.auth-screen.is-wide { width: min(720px, calc(100% - 32px)); }
.auth-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 24px 22px;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 22px;
  text-align: center;
}
.auth-logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  object-fit: contain;
}
.auth-panel h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(26px, 6vw, 34px);
  text-align: center;
}
.auth-panel .auth-fields {
  display: grid;
  gap: 12px;
}
.auth-panel .auth-fields.auth-pairs {
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.auth-panel .auth-fields.auth-pairs .is-wide { grid-column: 1 / -1; }
.req-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--sale);
  vertical-align: 1px;
}
.auth-panel .auth-fields label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.auth-panel .auth-fields input,
.auth-panel .auth-fields textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.auth-panel .auth-fields textarea {
  min-height: 96px;
  resize: vertical;
}
.auth-panel .auth-fields input:focus,
.auth-panel .auth-fields textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12, 122, 82, 0.12);
}
.auth-panel .btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  font-size: 15px;
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #7d8b84;
  font-size: 12px;
  font-weight: 700;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  color: #3c4043;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.google-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.google-btn:hover { background: #f7faf8; border-color: #c5cdc8; }
.google-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.auth-page { padding-bottom: 48px; }
.auth-card { padding: 22px; }
.auth-card h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
}
.auth-page .auth-fields { grid-template-columns: 1fr; }
.auth-page .auth-fields .is-wide { grid-column: 1; }
.auth-actions { display: flex; gap: 10px; margin-top: 4px; }
.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.auth-logout { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-page { width: min(960px, calc(100% - 28px)); padding-top: 14px; padding-bottom: 24px; }
.account-hero {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 12px;
  border: 1px solid rgba(20, 36, 28, 0.06);
  border-radius: 16px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(12, 122, 82, 0.14), transparent 70%),
    #fff;
  box-shadow: 0 16px 40px rgba(16, 42, 30, 0.06);
}
.account-hero-top { display: flex; align-items: flex-start; gap: 10px; }
.account-hero-copy { flex: 1; min-width: 0; }
.account-hero .eyebrow { margin-bottom: 2px; }
.account-hero h1 {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.account-hello {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 800;
}
.account-hero-lead {
  margin: 8px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.account-hero h1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.account-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.account-meta-line { min-width: 0; overflow-wrap: anywhere; }
.account-meta-line:not(:last-child)::after { content: "·"; margin-left: 6px; }
.account-google {
  display: inline-flex;
  flex: none;
  width: 14px;
  height: 14px;
}
.account-google svg { width: 14px; height: 14px; display: block; }
.account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: #063d12;
  box-shadow: 0 8px 18px rgba(8, 92, 62, 0.18);
}
.account-signout { margin: 0 0 0 auto; flex: none; }
.account-signout-btn,
.account-signout-btn:hover {
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-color: #c4233a;
  background: #c4233a;
  color: #fff;
  font-size: 12px;
}
.account-signout-btn:hover { background: #a31b2e; border-color: #a31b2e; }
.account-signout-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.account-stat {
  display: block;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(12, 122, 82, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
}
.account-stat:hover { border-color: rgba(12, 122, 82, 0.32); background: #fff; }
.account-stat:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.account-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.account-stat strong {
  display: block;
  margin-top: 1px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.account-stat small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 10px;
  align-items: start;
  margin-top: 10px;
}
.account-layout > *,
.account-side > * { min-width: 0; }
.account-side { display: grid; gap: 10px; align-content: start; }
.account-card {
  background: #fff;
  border: 1px solid rgba(20, 36, 28, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 42, 30, 0.05);
  padding: 12px 14px;
}
.account-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.account-card-head h2 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.account-card-head p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.account-card-head .eyebrow { margin: 0 0 4px; }
.account-head-link {
  margin-left: auto;
  align-self: center;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.account-head-link:hover { color: var(--brand); }
.account-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  flex: none;
}
.account-ico svg,
.account-empty-mark svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-page .account-form { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.account-page .account-form label { color: #31443a; font-size: 12px; font-weight: 700; }
.account-kicker {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.account-form .account-kicker:first-of-type { border-top: 0; padding-top: 0; }
.account-page .account-form input,
.account-page .account-form textarea {
  min-height: 34px;
  padding: 6px 10px;
  border-color: transparent;
  border-radius: 10px;
  background: #f4f7f5;
  font-size: 13px;
  font-weight: 600;
}
.account-page .account-form textarea { min-height: 58px; }
.account-page .account-form input:focus,
.account-page .account-form textarea:focus { background: #fff; border-color: var(--brand); }
.account-page .checkout-note {
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(12, 122, 82, 0.12);
  border-radius: 12px;
  background: #f4fbf7;
  color: #245743;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.account-form-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.account-form-foot .btn { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.account-wallet {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(155deg, #129264 0%, #0b6b49 48%, #064832 100%);
  box-shadow: 0 18px 40px rgba(8, 92, 62, 0.22);
}
.account-wallet::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -54px;
  top: -70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.account-wallet > * { position: relative; z-index: 1; }
.account-wallet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account-wallet .account-ico { background: rgba(255, 255, 255, 0.14); color: #fff; }
.account-wallet-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.account-wallet-balance { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 0; }
.account-wallet-balance strong {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.account-wallet-balance span { color: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 700; }
.account-wallet-worth { margin: 2px 0 0; color: #d7f5e6; font-size: 12px; font-weight: 700; }
.account-wallet-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.account-wallet-facts li {
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}
.account-wallet-facts strong { display: block; font-size: 14px; }
.account-wallet-facts span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.account-wallet-empty {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
}
.account-ledger { display: grid; gap: 8px; margin-top: 16px; }
.account-ledger article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}
.account-ledger p { margin: 2px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 12px; font-weight: 600; }
.account-ledger .is-plus { color: #b7f0d4; }
.account-ledger .is-minus { color: #ffd0d8; }
.account-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px 4px;
  text-align: center;
}
.account-empty strong { font-size: 16px; letter-spacing: -0.02em; }
.account-empty p { margin: 0; max-width: 36ch; color: var(--muted); font-size: 13px; font-weight: 600; }
.account-empty .btn { min-height: 34px; margin-top: 4px; padding: 6px 12px; font-size: 13px; }
.account-empty-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.account-empty-mark svg { width: 18px; height: 18px; }
.account-orders { display: grid; gap: 8px; }
.account-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f7faf8;
}
.account-order-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-order-main p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.account-order-total { display: grid; justify-items: end; gap: 6px; text-align: right; }
.account-order-total strong { font-size: 15px; letter-spacing: -0.02em; }
.account-order-total .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}
.account-order-total .text-link:hover { border-color: var(--brand); background: var(--brand-soft); }
.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f0;
  color: #3d4f46;
  font-size: 11px;
  font-weight: 800;
}
.account-status.is-wait { background: #fff6e8; color: #9a6700; }
.account-status.is-go { background: #e7f6ef; color: #0c7a52; }
.account-status.is-done { background: #e8f1ff; color: #1d4e89; }
.account-status.is-stop { background: #fde8ee; color: #b42318; }
.account-premier { margin-top: 10px; }
.account-premier-status {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f6faf8;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
}
.account-premier-status.is-on { background: var(--brand-soft); color: var(--brand-dark); }
.account-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.account-perks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}
.account-perks li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.account-premier .plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}
.account-premier .plan-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.account-premier .plan-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 42, 30, 0.08); }
.account-premier .plan-card h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
}
.account-premier .plan-price {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.account-premier .plan-price.is-off { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.account-premier .plan-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.account-premier .plan-card form,
.account-premier .plan-card > .btn { margin-top: auto; }
.account-premier .plan-card form { width: 100%; padding-top: 8px; }
.account-premier .plan-card .btn { width: 100%; min-height: 32px; padding: 6px 8px; font-size: 12px; }
.account-premier .plan-badge {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-premier .plan-card.is-featured {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(165deg, #0e8a5c, #064832);
  box-shadow: 0 16px 32px rgba(8, 92, 62, 0.22);
}
.account-premier .plan-card.is-featured .plan-note,
.account-premier .plan-card.is-featured .plan-price { color: #fff; }
.account-premier .plan-card.is-featured .plan-note { color: rgba(255, 255, 255, 0.78); }
.account-premier .plan-card.is-featured .btn-brand { background: #fff; color: var(--brand-dark); }
.account-premier .plan-card.is-featured .btn-brand:hover { background: #e7f6ef; }
@media (max-width: 860px) {
  .account-page { width: min(960px, calc(100% - 20px)); padding-top: 10px; padding-bottom: 16px; }
  .account-hero { padding: 10px 12px; border-radius: 14px; }
  .account-hero h1 { font-size: 20px; }
  .account-avatar { width: 36px; height: 36px; border-radius: 10px; }
  .account-layout,
  .account-page .account-form { grid-template-columns: 1fr; }
  .account-card { padding: 10px 12px; border-radius: 14px; }
  .account-stat { padding: 6px 8px; }
  .account-stat strong { font-size: 15px; }
}
@media (max-width: 640px) {
  .account-hero-meta { display: grid; gap: 1px; margin-top: 6px; }
  .account-meta-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .account-meta-line:not(:last-child)::after { content: none; }
  .account-signout { margin-left: auto; }
  .account-signout .btn { width: auto; }
  .account-form-foot { justify-content: stretch; }
  .account-form-foot .btn { width: 100%; }
  .account-wallet-facts { gap: 6px; }
  .account-premier .plan-grid { grid-template-columns: 1fr; }
  .account-premier .plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 12px;
    min-height: 0;
    padding: 8px 10px;
  }
  .account-premier .plan-card:hover { transform: none; }
  .account-premier .plan-badge { grid-column: 1 / -1; margin-bottom: 4px; }
  .account-premier .plan-price { margin: 0; font-size: 16px; text-align: right; }
  .account-premier .plan-note { grid-column: 1 / -1; }
  .account-premier .plan-card form,
  .account-premier .plan-card > .btn { grid-column: 1 / -1; margin-top: 8px; padding-top: 0; }
}
@media (max-width: 420px) {
  .account-order { grid-template-columns: 1fr; }
  .account-order-total { justify-items: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .account-premier .plan-card { transition: none; }
}
@media (max-width: 860px) {
  .auth-screen {
    width: min(440px, calc(100% - 24px));
    padding: 16px 0 calc(108px + env(safe-area-inset-bottom));
  }
  .auth-panel {
    padding: 20px 16px 18px;
    border-radius: 18px;
  }
  .auth-screen.is-wide { width: min(720px, calc(100% - 24px)); }
  .auth-logo { width: 76px; height: 76px; }
  .auth-card { padding: 16px; }
}
@media (max-width: 560px) {
  .auth-panel .auth-fields.auth-pairs { grid-template-columns: 1fr; }
}

.cart-sum[hidden] { display: none; }
.coin-toggle { margin-top: 12px; }
.coin-toggle small { line-height: 1.45; }

.popup-links { display: grid; gap: 8px; margin-top: 10px; }
.popup-links-label { margin: 0; color: #374151; font-size: 12px; font-weight: 800; }
.popup-link-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 10px; }
.popup-admin-preview {
  display: block;
  width: min(100%, 360px);
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin: 4px 0;
  background: #f3f4f6;
}
.popup-remove { margin: 0 0 6px; }
.popup-when { margin: -4px 0 8px; }
.popup-status {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7f6ef;
  color: #0c7a52;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  vertical-align: 1px;
}
.popup-status.is-saved { background: #f3f4f6; color: #6b7280; }
@media (max-width: 640px) {
  .popup-link-row { grid-template-columns: 1fr; }
}

body.site-popup-lock { overflow: hidden; }
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
}
.site-popup.is-open { display: flex; }
.site-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(12, 122, 82, 0.22), transparent 46%),
    rgba(6, 18, 13, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: site-popup-shade .45s ease both;
}
.site-popup.is-leaving::before { animation: site-popup-shade-out .36s ease forwards; }
@keyframes site-popup-shade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes site-popup-shade-out {
  to { opacity: 0; }
}
.site-popup-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow:
    inset 0 3px 0 #0c7a52,
    0 40px 90px rgba(6, 30, 20, 0.42),
    0 12px 28px rgba(6, 30, 20, 0.16),
    0 0 0 8px rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  animation: site-popup-in .62s cubic-bezier(.16, 1, .3, 1) both;
}
.site-popup.is-leaving .site-popup-card { animation: site-popup-out .36s ease forwards; }
@keyframes site-popup-in {
  from { opacity: 0; transform: translateY(36px) scale(.9); }
}
@keyframes site-popup-out {
  to { opacity: 0; transform: translateY(18px) scale(.96); }
}
.site-popup-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.site-popup-shine::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-160%) skewX(-16deg);
  animation: site-popup-gleam 1.05s .42s ease both;
}
@keyframes site-popup-gleam {
  to { transform: translateX(380%) skewX(-16deg); }
}
.site-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #24342c;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(16, 36, 28, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: transform .28s ease, background .2s ease, color .2s ease;
}
.site-popup-close svg { width: 14px; height: 14px; display: block; }
.site-popup-close:hover { background: #fff; color: #b42318; transform: rotate(90deg) scale(1.04); }
.site-popup-close:focus-visible { outline: 3px solid #6bc6a2; outline-offset: 2px; }
.site-popup-media {
  position: relative;
  height: 228px;
  margin: 16px 16px 0;
  overflow: hidden;
  border-radius: 18px;
  background: #e7f6ef;
}
.site-popup-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}
.site-popup-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: site-popup-zoom 1.15s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes site-popup-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.site-popup-crest {
  display: flex;
  justify-content: center;
  padding: 32px 24px 4px;
  background:
    radial-gradient(circle at 50% 0, rgba(12, 122, 82, 0.16), transparent 68%),
    linear-gradient(180deg, #f3fbf7, #fff 78%);
}
.site-popup-crest img {
  width: auto;
  height: 72px;
  max-width: 70%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(12, 122, 82, 0.18));
}
.site-popup-copy { padding: 18px 24px 26px; text-align: center; }
.site-popup-copy.is-plain { padding-top: 8px; }
.site-popup-rule {
  display: block;
  width: 46px;
  height: 3px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #7ddebe);
  transform-origin: center;
  animation: site-popup-rule .5s cubic-bezier(.16, 1, .3, 1) .16s both;
}
@keyframes site-popup-rule {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
.site-popup-copy h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.site-popup-copy p {
  margin: 0;
  color: #4b5c54;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.site-popup-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.site-popup-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 13px 16px;
  background: linear-gradient(180deg, #12966a, var(--brand) 42%, var(--brand-dark));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(12, 122, 82, 0.28);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.site-popup-arrow { width: 16px; height: 16px; flex: none; transition: transform .22s ease; }
.site-popup-link + .site-popup-link {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid #c9e6d8;
  box-shadow: none;
}
.site-popup-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(12, 122, 82, 0.32);
}
.site-popup-link:hover .site-popup-arrow { transform: translateX(4px); }
.site-popup-link + .site-popup-link:hover {
  background: var(--brand-soft);
  box-shadow: none;
}
.site-popup.is-leaving .site-popup-rule,
.site-popup.is-leaving .site-popup-banner,
.site-popup.is-leaving .site-popup-shine::after {
  animation: none;
}
@media (max-width: 860px) {
  .site-popup {
    align-items: flex-end;
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom));
  }
  .site-popup-card {
    width: 100%;
    max-height: calc(100dvh - 120px);
    border-radius: 24px;
    animation-name: site-popup-in-sheet;
  }
  .site-popup.is-leaving .site-popup-card { animation-name: site-popup-out-sheet; }
  .site-popup-media { height: 176px; }
  .site-popup-copy { padding: 16px 18px 22px; }
  .site-popup-copy h2 { font-size: 24px; }
}
@keyframes site-popup-in-sheet {
  from { opacity: 0; transform: translateY(56px); }
}
@keyframes site-popup-out-sheet {
  to { opacity: 0; transform: translateY(36px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-popup::before,
  .site-popup.is-leaving::before,
  .site-popup-card,
  .site-popup.is-leaving .site-popup-card,
  .site-popup-banner,
  .site-popup-rule,
  .site-popup-shine::after {
    animation: none;
  }
  .site-popup::before,
  .site-popup-card,
  .site-popup-banner,
  .site-popup-rule {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .site-popup { display: none !important; }
}

.home-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-head.is-centered .see-all {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.section-head.is-centered .see-all:hover { background: var(--brand-dark); color: #fff; }
@media (max-width: 860px) {
  .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head.is-centered { flex-wrap: wrap; }
  .section-head.is-centered .see-all {
    position: static;
    transform: none;
    margin-left: auto;
  }
}

.list-tools { display: none; }
.list-tools-bar { position: relative; z-index: 1; }
.list-tools-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 2px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 122, 82, 0.28);
}
.list-tools-pill button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.list-tools-pill button.is-on { color: #d9ffe8; }
.list-tools-pill svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.list-tools-split {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.45);
}
.list-tools-shade {
  position: fixed;
  inset: 0;
  z-index: 44;
  border: 0;
  background: transparent;
  cursor: default;
}
.list-sheet {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 1;
  transform: translateX(-50%);
  width: min(210px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 36, 28, 0.18);
}
.list-sheet[hidden] { display: none; }
.list-sheet p { margin: 0; font-size: 12px; font-weight: 800; }
.list-sheet label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}
.list-sheet input { width: auto; margin: 0; }
.list-sheet .btn { min-height: 28px; margin-top: 2px; padding: 4px 10px; font-size: 12px; }
@media (max-width: 860px) {
  .list-tools { display: block; }
  .list-tools-bar {
    position: fixed;
    left: 50%;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 55;
    transform: translateX(-50%);
  }
  body[data-path="/products"] .page { padding-bottom: 48px; }
}
body.cart-lock .list-tools,
body.rx-lock .list-tools { display: none; }
@media print { .list-tools { display: none !important; } }

.catalog-head { align-items: flex-end; }
.catalog-sort { margin: 0; }
.catalog-sort label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #31443a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.catalog-sort select {
  min-height: 34px;
  padding: 4px 28px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 700;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.catalog-filter {
  position: sticky;
  top: 108px;
  display: block;
  max-height: calc(100dvh - 124px);
  overflow: auto;
  padding: 14px 14px 16px;
  border: 1px solid rgba(20, 36, 28, 0.08);
  border-radius: 16px;
  background: #fff;
}
.catalog-filter form { display: grid; gap: 8px; margin: 0; }
.catalog-filter-head,
.catalog-filter-close { display: none; }
.catalog-label {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 36, 28, 0.08);
  font-size: 13px;
  font-weight: 800;
}
.catalog-switch,
.catalog-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.catalog-switch { justify-content: space-between; font-weight: 800; }
.catalog-check input { width: auto; margin: 0; accent-color: var(--brand); }
.catalog-check[hidden] { display: none; }
.catalog-switch input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: 999px;
  background: #d5ddd8;
  cursor: pointer;
}
.catalog-switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.catalog-switch input:checked { background: var(--brand); }
.catalog-switch input:checked::after { transform: translateX(16px); }
.catalog-switch input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.catalog-brand-search {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.catalog-slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  color: #31443a;
  font-size: 12px;
  font-weight: 800;
}
.catalog-slider-track {
  position: relative;
  height: 28px;
}
.catalog-slider-bar,
.catalog-slider-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
}
.catalog-slider-bar { left: 0; right: 0; background: #d5ddd8; }
.catalog-slider-fill { background: var(--brand); }
.catalog-slider-track input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.catalog-slider-track input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.catalog-slider-track input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
  border: 0;
}
.catalog-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1px 4px rgba(16, 36, 28, 0.28);
  pointer-events: auto;
  cursor: pointer;
}
.catalog-slider-track input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1px 4px rgba(16, 36, 28, 0.28);
  pointer-events: auto;
  cursor: pointer;
}
.catalog-apply { width: 100%; min-height: 36px; }
.catalog-cat,
.catalog-cat-group summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 0;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.catalog-cat.is-on,
.catalog-cat-group summary.is-on { color: var(--brand); font-weight: 800; }
.catalog-cat-child { padding-left: 16px; font-weight: 600; }
.catalog-cat-group summary { list-style: none; }
.catalog-cat-group summary::-webkit-details-marker { display: none; }
.catalog-cat-group summary::before {
  content: "+";
  width: 12px;
  color: #6b7c74;
  font-weight: 700;
}
.catalog-cat-group[open] > summary::before { content: "–"; }
.catalog-brands { display: grid; gap: 6px; }
.catalog-more,
.catalog-clear {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.catalog-more[hidden] { display: none; }
.catalog-results { min-width: 0; }
.catalog-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .catalog-sort { display: none; }
  .catalog-layout { display: block; }
  .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filter {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 46;
    display: none;
    max-height: min(78dvh, 640px);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 32px rgba(16, 36, 28, 0.18);
  }
  .catalog-filter.is-open { display: block; }
  .catalog-filter-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -14px -14px 10px;
    padding: 12px 14px;
    background: #fff;
    font-size: 15px;
  }
  .catalog-filter-close {
    display: inline-flex;
    border: 0;
    background: none;
    color: var(--brand);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }
  .catalog-apply-last {
    position: sticky;
    bottom: 0;
    background: #fff;
    box-shadow: 0 -8px 12px #fff;
  }
  body.catalog-lock { overflow: hidden; }
  body.catalog-lock .list-tools-shade { background: rgba(16, 36, 28, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-switch input::after { transition: none; }
}







/* PRODUCT IMAGE + NAME */
.loss-product-head {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 12px 15px !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    min-height: 80px !important;
}

/* PRODUCT IMAGE */
.loss-product-head img {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    max-width: 65px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    padding: 5px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* PRODUCT NAME */
.loss-product-head strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
}

/* INACTIVE STATUS */
.loss-product-head .muted {
    font-size: 11px !important;
    color: #dc2626 !important;
    background: #fee2e2 !important;
    padding: 4px 8px !important;
    border-radius: 5px !important;
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
    .loss-product-head {
        gap: 10px !important;
        padding: 10px !important;
    }

    .loss-product-head img {
        width: 55px !important;
        height: 55px !important;
        min-width: 55px !important;
        max-width: 55px !important;
    }

    .loss-product-head strong {
        font-size: 13px !important;
    }
}




.loss-filter-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    margin: 14px 0 !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
}

.loss-filter-bar label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

#loss-buy-filter {
    min-width: 190px !important;
    padding: 10px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

#loss-buy-filter:focus {
    outline: 2px solid #16a34a !important;
    outline-offset: 2px !important;
}

@media (max-width: 600px) {
    .loss-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #loss-buy-filter {
        width: 100% !important;
    }
}

#loss-products .loss-product[hidden] {
    display: none !important;
}



.loss-save-all-bar {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 0 !important;
    flex-wrap: wrap !important;
}

#loss-save-all {
    background: var(--brand-dark);
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 5px 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

#loss-save-all:disabled {
    opacity: 0.6 !important;
    cursor: wait !important;
}

#loss-save-status {
    font-size: 13px !important;
    font-weight: 600 !important;
}





/* Admin Products - Default Theme */

.ap-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.ap-search-box {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
}

.ap-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

#admin-product-search {
    width: 100%;
    height: 44px;
    padding: 10px 14px 10px 42px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    font-size: 13px;
}

#admin-product-search:focus {
    border-color: var(--brand);
}

.ap-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ap-filter,
.ap-more-toggle {
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ap-filter:hover,
.ap-more-toggle:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

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

.ap-filter span {
    font-weight: 700;
}

/* More Filters */

.ap-more-panel {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    margin-bottom: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.ap-more-panel[hidden],
.ap-no-results[hidden] {
    display: none;
}

.ap-more-panel label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.ap-more-panel select {
    min-width: 180px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
}

#ap-reset {
    height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Stock Summary */

.ap-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.ap-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.ap-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 23px;
}

.ap-stat-danger .ap-stat-icon {
    background: #fdecec;
    color: #dc2626;
}

.ap-stat-warning .ap-stat-icon {
    background: #fff4df;
    color: #d97706;
}

.ap-stat > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ap-stat strong {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}

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

.ap-results {
    margin: 12px 0;
    color: var(--muted);
    font-size: 12px;
}

.ap-no-results {
    padding: 30px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
}

/* Responsive */

@media (max-width: 1100px) {
    .ap-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ap-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ap-search-box {
        flex: none;
        width: 100%;
    }

    .ap-filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-filter,
    .ap-more-toggle {
        font-size: 11px;
        padding: 9px 6px;
    }

    .ap-stat {
        padding: 10px;
        gap: 8px;
    }

    .ap-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .ap-stat strong {
        font-size: 19px;
    }

    .ap-stat span {
        font-size: 10px;
    }
}
