/**
 * InputSupply design tokens + base building blocks
 * (header, footer, buttons, inputs) and hero visual system.
 * Loaded on the storefront layout after page CSS.
 */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  /* —— Type —— */
  --is-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --is-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --is-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --is-text-display: clamp(2.125rem, 5.2vw, 3.5rem);
  --is-text-subhead: clamp(1.0625rem, 2vw, 1.25rem);
  --is-text-body: 0.9375rem; /* 15px */
  --is-text-label: 0.75rem; /* 12px */
  --is-leading-tight: 1.14;
  --is-leading-body: 1.6;
  --is-tracking-display: -0.03em;
  --is-tracking-label: 0.08em;

  /* —— Color: one loud accent only —— */
  --is-accent: #2f8a4c; /* CTAs, active chrome, price emphasis */
  --is-accent-ink: #ffffff;
  --is-accent-soft: #e7f2ea;

  /* Neutral ramp */
  --is-ink: #08170f;
  --is-ink-2: #14402a;
  --is-ink-muted: #71807a;
  --is-ink-faint: #98a5a0;
  --is-paper: #f6f7f4;
  --is-surface: #ffffff;
  --is-line: #e1e7e3;
  --is-line-strong: #cfdad4;
  --is-footer-bg: #08170f;
  --is-footer-fg: rgba(238, 245, 240, 0.62);

  /* Semantic (quiet — not a second brand accent) */
  --is-success: #1f7a45;
  --is-success-soft: #e3f5ea;
  --is-warning: #b7791f;
  --is-warning-soft: #f8efd9;
  --is-danger: #b4402c;

  /* —— Space —— */
  --is-space-1: 0.25rem; /* 4 */
  --is-space-2: 0.5rem; /* 8 */
  --is-space-3: 0.75rem; /* 12 */
  --is-space-4: 1rem; /* 16 */
  --is-space-5: 1.5rem; /* 24 */
  --is-space-6: 2rem; /* 32 */
  --is-space-7: 3rem; /* 48 */

  /* —— Radius / shadow —— */
  --is-radius-sm: 0.5rem;
  --is-radius-md: 0.75rem;
  --is-radius-lg: 1rem;
  --is-radius-pill: 999px;
  --is-shadow-sm: 0 1px 2px rgba(8, 23, 15, 0.04), 0 4px 12px rgba(8, 23, 15, 0.05);
  --is-shadow-md: 0 1px 2px rgba(8, 23, 15, 0.04), 0 12px 32px rgba(8, 23, 15, 0.06);
  --is-shadow-lg: 0 24px 60px rgba(8, 23, 15, 0.16);
  --is-focus-ring: 0 0 0 4px rgba(47, 138, 76, 0.16);

  /* Legacy aliases used by existing page CSS (hero/grid stay stable) */
  --ink: var(--is-ink);
  --forest: #0f3222;
  --forest-2: var(--is-ink-2);
  --green: var(--is-accent);
  --green-soft: var(--is-accent-soft);
  --amber: #d99b12;
  --paper: var(--is-paper);
  --card: var(--is-surface);
  --line: var(--is-line);
  --line-2: var(--is-line-strong);
  --muted: var(--is-ink-muted);
  --muted-2: var(--is-ink-faint);
  --radius: var(--is-radius-lg);
  --shadow: var(--is-shadow-md);
  --shadow-lift: var(--is-shadow-lg);
  --display: var(--is-font-display);
  --ui: var(--is-font-body);
  --mono: var(--is-font-mono);
}

/* ------------------------------------------------------------------ */
/* Storefront shell: soften Limitless padding only                     */
/* ------------------------------------------------------------------ */
body.is-storefront {
  background: var(--is-paper);
  color: var(--is-ink);
  font-family: var(--is-font-body);
  font-size: var(--is-text-body);
  line-height: var(--is-leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

html:has(body.is-storefront) {
  overflow-x: hidden;
  max-width: 100%;
}

body.is-storefront .page-content,
body.is-storefront .content-wrapper,
body.is-storefront .content-inner,
body.is-storefront .content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent;
  max-width: 100%;
  overflow-x: hidden;
}

body.is-storefront #is-app {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ */
/* Global header (.site inside #is-app)                                */
/* ------------------------------------------------------------------ */
body.is-storefront #is-app .site {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--is-line);
}

body.is-storefront #is-app .site-in {
  display: flex;
  align-items: center;
  gap: var(--is-space-5);
  height: 4.375rem;
}

body.is-storefront #is-app .mark {
  display: flex;
  align-items: center;
  gap: var(--is-space-3);
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

body.is-storefront #is-app .mark img {
  height: 2.125rem;
  width: 2.125rem;
  border-radius: var(--is-radius-sm);
  object-fit: cover;
  display: block;
  box-shadow: var(--is-shadow-sm);
}

body.is-storefront #is-app .mark-name {
  font-family: var(--is-font-display);
  font-size: var(--is-text-subhead);
  font-weight: 700;
  letter-spacing: var(--is-tracking-display);
  color: var(--is-ink);
  line-height: 1;
}

body.is-storefront #is-app .mark-by {
  font-size: 0.59375rem;
  font-weight: 700;
  letter-spacing: var(--is-tracking-label);
  text-transform: uppercase;
  color: var(--is-ink-muted);
  margin-top: 0.2rem;
}

body.is-storefront #is-app .mark-by b {
  color: var(--is-accent);
  font-weight: 800;
}

body.is-storefront #is-app .site-spacer {
  flex: 1;
}

body.is-storefront #is-app .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--is-line-strong);
  background: var(--is-surface);
  border-radius: var(--is-radius-pill);
  padding: 3px;
  margin-right: var(--is-space-2);
  box-shadow: var(--is-shadow-sm);
  position: relative;
}

body.is-storefront #is-app .lang-switch .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;
}

body.is-storefront #is-app .lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b60' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 0.65rem center;
  font-family: var(--is-font-body);
  font-size: var(--is-text-label);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.45rem 1.85rem 0.45rem 0.75rem;
  border-radius: var(--is-radius-pill);
  cursor: pointer;
  color: var(--is-ink);
  min-width: 7.5rem;
  max-width: 11rem;
  line-height: 1.2;
}

body.is-storefront #is-app .lang-select:focus {
  outline: 2px solid var(--is-accent);
  outline-offset: 1px;
}

body.is-storefront #is-app .lang-switch .gt-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
}

/* Hide Google Translate chrome; our select is the only language UI */
body.is-storefront .goog-te-banner-frame.skiptranslate,
body.is-storefront iframe.goog-te-banner-frame,
body.is-storefront > .skiptranslate,
body.is-storefront > .skiptranslate iframe,
body.is-storefront .VIpgJd-ZVi9od-ORHb-OEVmcd,
body.is-storefront .VIpgJd-ZVi9od-ORHb,
html body.is-storefront > iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Google pushes the page down with body { top: 40px } — force it back */
html.translated-ltr,
html.translated-rtl,
html.translated-ltr body,
html.translated-rtl body,
body.is-storefront.translated-ltr,
body.is-storefront.translated-rtl,
body.is-storefront {
  top: 0 !important;
  margin-top: 0 !important;
}

html.translated-ltr body.is-storefront,
html.translated-rtl body.is-storefront {
  position: static !important;
  top: 0 !important;
}

body.is-storefront .goog-logo-link,
body.is-storefront .goog-te-gadget span {
  display: none !important;
}

body.is-storefront .goog-te-gadget {
  font-size: 0 !important;
}

body.is-storefront #goog-gt-tt,
body.is-storefront .goog-te-balloon-frame,
body.is-storefront .goog-tooltip,
body.is-storefront .goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}

body.is-storefront #is-app .lang-switch button {
  border: 0;
  background: transparent;
  font-family: var(--is-font-body);
  font-size: var(--is-text-label);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.7rem;
  border-radius: var(--is-radius-pill);
  cursor: pointer;
  color: var(--is-ink-muted);
  min-width: 2.5rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

body.is-storefront #is-app .lang-switch button:hover:not(.on) {
  color: var(--is-ink);
}

body.is-storefront #is-app .lang-switch button.on {
  background: var(--is-accent);
  color: var(--is-accent-ink);
}

body.is-storefront #is-app .basket-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--is-line-strong);
  background: var(--is-surface);
  color: var(--is-ink);
  font-family: var(--is-font-body);
  font-size: 0.84375rem;
  font-weight: 700;
  padding: 0.625rem 1rem;
  border-radius: var(--is-radius-pill);
  cursor: pointer;
  box-shadow: var(--is-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.is-storefront #is-app .basket-btn:hover {
  border-color: var(--is-accent);
  box-shadow: var(--is-shadow-md);
}

body.is-storefront #is-app .basket-btn .n {
  background: var(--is-accent);
  color: var(--is-accent-ink);
  border-radius: var(--is-radius-pill);
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0 0.35rem;
}

/* ------------------------------------------------------------------ */
/* Global footer (.foot inside #is-app)                                */
/* ------------------------------------------------------------------ */
body.is-storefront #is-app .foot {
  background: var(--is-footer-bg);
  color: var(--is-footer-fg);
  padding: var(--is-space-5) 0;
  font-size: var(--is-text-label);
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.is-storefront #is-app .foot-bar {
  display: flex;
  justify-content: space-between;
  gap: var(--is-space-4);
  flex-wrap: wrap;
  font-family: var(--is-font-body);
}

body.is-storefront #is-app .foot a {
  color: var(--is-footer-fg);
  text-decoration: none;
}

body.is-storefront #is-app .foot a:hover {
  color: #fff;
}

/* Limitless footer2 is commented out in practice; keep a quiet fallback */
body.is-storefront .navbar-footer,
body.is-storefront #navbar-footer {
  background: var(--is-footer-bg);
  color: var(--is-footer-fg);
  border: 0;
  font-size: var(--is-text-label);
}

/* ------------------------------------------------------------------ */
/* Base button styles (site chrome + basket — not hero .go / cards)    */
/* ------------------------------------------------------------------ */
body.is-storefront #is-app .basket-btn,
body.is-storefront #is-app .reset-mini,
body.is-storefront #is-app .checkout,
body.is-storefront #is-app .is-btn {
  font-family: var(--is-font-body);
  border-radius: var(--is-radius-md);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.is-storefront #is-app .reset-mini {
  border: 1px solid var(--is-line-strong);
  background: var(--is-surface);
  color: var(--is-ink-muted);
  font-size: var(--is-text-label);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.9rem;
  border-radius: var(--is-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--is-space-2);
  box-shadow: var(--is-shadow-sm);
}

body.is-storefront #is-app .reset-mini:hover {
  color: var(--is-ink);
  border-color: var(--is-accent);
}

body.is-storefront #is-app .checkout,
body.is-storefront #is-app .yellow-btn,
body.is-storefront #is-app .is-btn-primary {
  width: 100%;
  border: 0;
  background: var(--is-accent);
  color: var(--is-accent-ink);
  font-size: 0.90625rem;
  font-weight: 700;
  padding: 0.875rem var(--is-space-4);
  border-radius: var(--is-radius-md);
  cursor: pointer;
  box-shadow: var(--is-shadow-sm);
}

body.is-storefront #is-app .checkout:hover:not(:disabled),
body.is-storefront #is-app .yellow-btn:hover:not(:disabled),
body.is-storefront #is-app .is-btn-primary:hover:not(:disabled) {
  background: var(--is-ink);
}

body.is-storefront #is-app .checkout:disabled,
body.is-storefront #is-app .yellow-btn:disabled,
body.is-storefront #is-app .is-btn-primary:disabled {
  background: #c3d2c8;
  cursor: not-allowed;
  box-shadow: none;
}

body.is-storefront #is-app .drawer-foot {
  background: var(--is-paper);
  border-top: 1px solid var(--is-line);
  padding: var(--is-space-4) var(--is-space-5) var(--is-space-5);
}

body.is-storefront #is-app .drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--is-space-3);
  padding: var(--is-space-4) var(--is-space-5);
  border-bottom: 1px solid var(--is-line);
  background: var(--is-paper);
}

body.is-storefront #is-app .drawer-head h3 {
  font-family: var(--is-font-body);
  font-size: var(--is-text-subhead);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--is-ink);
}

body.is-storefront #is-app .x {
  border: 0;
  background: none;
  font-size: 1rem;
  color: var(--is-ink-muted);
  cursor: pointer;
  padding: var(--is-space-1) var(--is-space-2);
  border-radius: var(--is-radius-sm);
}

body.is-storefront #is-app .x:hover {
  color: var(--is-ink);
  background: var(--is-accent-soft);
}

/* ------------------------------------------------------------------ */
/* Base input / select styles (shop tools — not hero .prompt)          */
/* ------------------------------------------------------------------ */
body.is-storefront #is-app input.find,
body.is-storefront #is-app .adv-panel input[type="number"],
body.is-storefront #is-app .adv-panel input[type="text"],
body.is-storefront #is-app .shop-head select,
body.is-storefront #is-app select#sort-select,
body.is-storefront #is-app select.sort-select,
body.is-storefront #is-app .is-input {
  font-family: var(--is-font-body);
  font-size: var(--is-text-body);
  font-weight: 500;
  color: var(--is-ink);
  background: var(--is-surface);
  border: 1.5px solid var(--is-line);
  border-radius: var(--is-radius-md);
  padding: 0.65rem 0.9rem;
  outline: none;
  box-shadow: var(--is-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.is-storefront #is-app input.find {
  border-radius: var(--is-radius-pill);
  padding: 0.7rem 1.1rem;
  min-width: 0;
  flex: 1;
}

body.is-storefront #is-app .shop-head select,
body.is-storefront #is-app select#sort-select {
  border-radius: var(--is-radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 14rem;
}

body.is-storefront #is-app input.find:focus,
body.is-storefront #is-app .adv-panel input[type="number"]:focus,
body.is-storefront #is-app .adv-panel input[type="text"]:focus,
body.is-storefront #is-app .shop-head select:focus,
body.is-storefront #is-app select#sort-select:focus,
body.is-storefront #is-app .is-input:focus {
  border-color: var(--is-accent);
  box-shadow: var(--is-focus-ring);
}

body.is-storefront #is-app input.find::placeholder,
body.is-storefront #is-app .adv-panel input::placeholder,
body.is-storefront #is-app .is-input::placeholder {
  color: var(--is-ink-faint);
  font-weight: 400;
}

/* Semantic helpers for later batches (safe to ship unused) */
body.is-storefront .is-success-text { color: var(--is-success); }
body.is-storefront .is-warning-text { color: var(--is-warning); }
body.is-storefront .is-price { color: var(--is-accent); font-family: var(--is-font-display); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Hero / landing (visual only — same fields, ids, handlers)           */
/* ------------------------------------------------------------------ */
body.is-storefront #is-app .hero {
  position: relative;
  /* Clip sideways spill from the field graphic; store suggestions still
     open downward from .store-box (z-index) without widening the page. */
  overflow-x: clip;
  overflow-y: visible;
  z-index: 4;
  padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(2.5rem, 5vw, 4rem);
  color: #eef5f0;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(47, 138, 76, 0.42), transparent 68%),
    radial-gradient(700px 380px at 8% 110%, rgba(20, 64, 42, 0.55), transparent 70%),
    linear-gradient(165deg, #0a1f15 0%, var(--forest) 42%, #123528 100%);
}

body.is-storefront #is-app .hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  overflow: hidden;
  border-radius: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

body.is-storefront #is-app .hero-field {
  position: absolute;
  right: 0;
  /* Stay inside the hero — never extend past the viewport edge */
  bottom: 0;
  width: min(48vw, 520px);
  height: auto;
  max-height: 100%;
  max-width: 100%;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

body.is-storefront #is-app .hero-in {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

body.is-storefront #is-app .hero h1 {
  font-family: var(--is-font-display);
  font-size: var(--is-text-display);
  font-weight: 600;
  letter-spacing: var(--is-tracking-display);
  line-height: var(--is-leading-tight);
  color: #fff;
  margin: 0 0 var(--is-space-3);
  max-width: 18ch;
}

body.is-storefront #is-app .hero h1 span {
  color: var(--is-accent);
  display: inline;
}

body.is-storefront #is-app .hero-sub {
  font-family: var(--is-font-body);
  font-size: var(--is-text-subhead);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(238, 245, 240, 0.78);
  margin: 0 0 var(--is-space-5);
  max-width: 36rem;
}

/* Intake console — focal card */
body.is-storefront #is-app .console {
  position: relative;
  z-index: 5;
  background: var(--is-surface);
  color: var(--is-ink);
  border-radius: calc(var(--is-radius-lg) + 4px);
  box-shadow: var(--is-shadow-lg);
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

body.is-storefront #is-app .prompt {
  display: flex;
  gap: var(--is-space-3);
  align-items: stretch;
}

body.is-storefront #is-app .prompt input {
  flex: 1;
  min-width: 0;
  min-height: 3.75rem;
  border: 1.5px solid var(--is-line);
  border-radius: var(--is-radius-md);
  padding: 1.05rem 1.25rem;
  font-family: var(--is-font-body);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--is-ink);
  outline: none;
  background: var(--is-paper);
  box-shadow: inset 0 1px 2px rgba(8, 23, 15, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.is-storefront #is-app .prompt input:focus {
  background: var(--is-surface);
  border-color: var(--is-accent);
  box-shadow: var(--is-focus-ring);
}

body.is-storefront #is-app .prompt input::placeholder {
  color: var(--is-ink-faint);
  font-weight: 400;
}

body.is-storefront #is-app .go {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  background: var(--is-accent);
  color: var(--is-accent-ink);
  font-family: var(--is-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0 1.85rem;
  border-radius: var(--is-radius-md);
  box-shadow: var(--is-shadow-sm);
  transition: background 0.15s ease, transform 0.12s ease;
}

body.is-storefront #is-app .go:hover:not(:disabled) {
  background: var(--is-ink);
}

body.is-storefront #is-app .go:active:not(:disabled) {
  transform: translateY(1px);
}

body.is-storefront #is-app .go:disabled {
  background: #b3c3ba;
  cursor: not-allowed;
  box-shadow: none;
}

/* Role chips — tactile pill group */
body.is-storefront #is-app .role-row {
  display: flex;
  gap: var(--is-space-2);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--is-space-4);
  padding-top: var(--is-space-4);
  border-top: 1px solid var(--is-line);
}

body.is-storefront #is-app .role-row .lbl {
  font-size: var(--is-text-label);
  font-weight: 700;
  letter-spacing: var(--is-tracking-label);
  text-transform: uppercase;
  color: var(--is-ink-muted);
  margin-right: var(--is-space-1);
}

body.is-storefront #is-app .role,
body.is-storefront #is-app .role-chip {
  border: 1.5px solid var(--is-line-strong);
  background: var(--is-paper);
  font-family: var(--is-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--is-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--is-ink);
  box-shadow: var(--is-shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.is-storefront #is-app .role i,
body.is-storefront #is-app .role-chip i {
  font-size: 0.7rem;
  color: var(--is-ink-muted);
}

body.is-storefront #is-app .role:hover,
body.is-storefront #is-app .role-chip:hover {
  border-color: var(--is-accent);
  box-shadow: var(--is-shadow-md);
}

body.is-storefront #is-app .role.on,
body.is-storefront #is-app .role-chip.active,
body.is-storefront #is-app .role-chip.on {
  background: var(--is-accent);
  border-color: var(--is-accent);
  color: var(--is-accent-ink);
  box-shadow: 0 2px 10px rgba(47, 138, 76, 0.28);
}

body.is-storefront #is-app .role.on i,
body.is-storefront #is-app .role-chip.active i,
body.is-storefront #is-app .role-chip.on i {
  color: var(--is-accent-ink);
}

/* Location row inside console */
body.is-storefront #is-app .place-row {
  display: flex;
  gap: var(--is-space-2);
  align-items: center;
  margin-top: var(--is-space-3);
  flex-wrap: wrap;
}

body.is-storefront #is-app .place {
  border: 1.5px solid var(--is-line);
  border-radius: var(--is-radius-pill);
  padding: 0.55rem 0.9rem;
  font-family: var(--is-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--is-ink);
  background: var(--is-surface);
  outline: none;
  cursor: pointer;
  max-width: 220px;
  box-shadow: var(--is-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.is-storefront #is-app .place:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.is-storefront #is-app .place:focus {
  border-color: var(--is-accent);
  box-shadow: var(--is-focus-ring);
}

body.is-storefront #is-app .store-box {
  position: relative;
  z-index: 6;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

body.is-storefront #is-app .store-box input {
  width: 100%;
  border: 1.5px solid var(--is-line);
  border-radius: var(--is-radius-pill);
  padding: 0.55rem 2.25rem 0.55rem 0.9rem;
  font-family: var(--is-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--is-ink);
  background: var(--is-surface);
  outline: none;
  box-shadow: var(--is-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.is-storefront #is-app .store-box input:focus {
  border-color: var(--is-accent);
  box-shadow: var(--is-focus-ring);
}

body.is-storefront #is-app .store-box .search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--is-ink-muted);
  cursor: pointer;
  display: none;
}

body.is-storefront #is-app .store-box .search-clear.show {
  display: inline-flex;
}

body.is-storefront #is-app .suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--is-surface);
  border: 1px solid var(--is-line);
  border-radius: var(--is-radius-md);
  box-shadow: var(--is-shadow-lg);
  z-index: 80;
  max-height: 240px;
  overflow: auto;
}

body.is-storefront #is-app .suggestions.hidden {
  display: none;
}

/* Sections after the hero must sit under the store dropdown */
body.is-storefront #is-app .answer,
body.is-storefront #is-app .shop {
  position: relative;
  z-index: 1;
}

body.is-storefront #is-app .selected-store {
  display: none;
  margin-top: var(--is-space-3);
  padding: var(--is-space-3);
  border: 1px solid var(--is-line);
  border-radius: var(--is-radius-md);
  background: var(--is-paper);
}

body.is-storefront #is-app .selected-store.show {
  display: block;
}

@media (max-width: 720px) {
  body.is-storefront #is-app .hero {
    padding: 2rem 0 2.25rem;
  }

  body.is-storefront #is-app .hero-field {
    width: min(70vw, 300px);
    opacity: 0.55;
    right: 0;
    bottom: 0;
  }

  body.is-storefront #is-app .hero h1 {
    max-width: none;
  }

  body.is-storefront #is-app .prompt {
    flex-direction: column;
  }

  body.is-storefront #is-app .go {
    min-height: 3.25rem;
    width: 100%;
  }

  body.is-storefront #is-app .place {
    max-width: none;
    flex: 1;
  }

  body.is-storefront #is-app .store-box {
    max-width: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-storefront #is-app .go,
  body.is-storefront #is-app .role,
  body.is-storefront #is-app .role-chip {
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/* Product detail sheet                                                */
/* ------------------------------------------------------------------ */
body.is-storefront #is-app .sheet,
body.is-storefront #product-sheet {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(640px, 96vw);
  background: var(--is-surface);
  z-index: 105;
  transform: translateX(101%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--is-shadow-lg);
}

body.is-storefront #is-app .sheet.on,
body.is-storefront #product-sheet.on {
  transform: none;
}

body.is-storefront #is-app .sheet-veil {
  z-index: 104;
}

body.is-storefront #is-app .sheet-veil[hidden] {
  display: none !important;
}

body.is-storefront #is-app .ps-edu {
  background: var(--is-paper);
  border-style: dashed;
}

body.is-storefront #is-app .ps-edu-soon {
  margin: var(--is-space-3) 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--is-accent);
}

/* Once real seller-typed content fills this block, drop the dashed
   "placeholder" treatment -- it's no longer an empty coming-soon state. */
body.is-storefront #is-app .ps-edu.has-content {
  border-style: solid;
}

body.is-storefront #is-app .ps-seller-desc {
  margin-top: var(--is-space-3);
  padding-top: var(--is-space-3);
  border-top: 1px solid var(--is-line);
}

body.is-storefront #is-app .ps-seller-desc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--is-space-3);
  margin-bottom: 4px;
}

body.is-storefront #is-app .ps-seller-desc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--is-tracking-label);
  text-transform: uppercase;
  color: var(--is-ink-muted);
}

body.is-storefront #is-app .ps-seller-desc-auto,
body.is-storefront #product-sheet .ps-seller-desc-auto {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--is-ink-muted);
  flex-shrink: 0;
}

body.is-storefront #is-app .ps-seller-desc-text {
  font-size: var(--is-text-body);
  color: var(--is-ink);
  white-space: pre-line;
}

body.is-storefront #is-app .ps-seller-desc-caveat {
  margin-top: var(--is-space-2, 8px);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--is-ink-muted);
}

body.is-storefront #is-app .sheet-top,
body.is-storefront #product-sheet .sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--is-space-3);
  padding: var(--is-space-4) var(--is-space-5);
  border-bottom: 1px solid var(--is-line);
  font-size: var(--is-text-label);
  font-weight: 700;
  letter-spacing: var(--is-tracking-label);
  text-transform: uppercase;
  color: var(--is-ink-muted);
  background: var(--is-paper);
}

body.is-storefront #is-app .sheet-body,
body.is-storefront #product-sheet .sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 2.5rem;
  background: var(--is-surface);
}

body.is-storefront #is-app .ps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.is-storefront #is-app .ps-media {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vh, 380px);
  background:
    radial-gradient(ellipse at 50% 40%, #fff 0%, var(--is-paper) 55%, #e8eee9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--is-line);
}

body.is-storefront #is-app .ps-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--is-space-5);
  display: block;
}

body.is-storefront #is-app .ps-intro {
  padding: var(--is-space-5) var(--is-space-5) var(--is-space-4);
}

body.is-storefront #is-app .ps-tier {
  position: static;
  display: inline-block;
  margin-bottom: var(--is-space-3);
  box-shadow: none;
}

body.is-storefront #is-app .ps-name {
  font-family: var(--is-font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: var(--is-tracking-display);
  line-height: 1.18;
  margin: 0 0 var(--is-space-2);
  color: var(--is-ink);
}

body.is-storefront #is-app .ps-desc {
  font-size: var(--is-text-body);
  line-height: var(--is-leading-body);
  color: var(--is-ink-muted);
  margin: 0;
}

/* Price + qty + CTA — visual anchor */
body.is-storefront #is-app .ps-buy {
  margin: 0 var(--is-space-5);
  padding: var(--is-space-4);
  border-radius: var(--is-radius-lg);
  background: var(--is-paper);
  border: 1px solid var(--is-line);
  box-shadow: var(--is-shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--is-space-4);
}

body.is-storefront #is-app .ps-price-col .ps-now {
  font-family: var(--is-font-display);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 600;
  color: var(--is-accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

body.is-storefront #is-app .ps-per {
  font-size: 0.8125rem;
  color: var(--is-ink-muted);
  margin-top: 0.35rem;
}

body.is-storefront #is-app .ps-actions {
  display: flex;
  align-items: stretch;
  gap: var(--is-space-3);
  flex-wrap: wrap;
}

body.is-storefront #is-app .ps-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--is-line-strong);
  border-radius: var(--is-radius-md);
  background: var(--is-surface);
  overflow: hidden;
  box-shadow: var(--is-shadow-sm);
  min-height: 3rem;
}

body.is-storefront #is-app .ps-step {
  width: 2.75rem;
  height: 100%;
  min-height: 3rem;
  border: 0;
  background: var(--is-surface);
  color: var(--is-ink);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

body.is-storefront #is-app .ps-step:hover {
  background: var(--is-accent-soft);
  color: var(--is-accent);
}

body.is-storefront #is-app .ps-step:active {
  background: var(--is-accent);
  color: var(--is-accent-ink);
}

body.is-storefront #is-app .ps-qty {
  min-width: 2.5rem;
  text-align: center;
  font-family: var(--is-font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--is-ink);
  border-left: 1px solid var(--is-line);
  border-right: 1px solid var(--is-line);
  padding: 0 var(--is-space-2);
  line-height: 3rem;
  display: inline-block;
}

@keyframes is-ps-qty-tick {
  0% { transform: scale(1.2); opacity: 0.65; }
  100% { transform: scale(1); opacity: 1; }
}

body.is-storefront #is-app .ps-qty.ps-qty-tick {
  animation: is-ps-qty-tick 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.is-storefront #is-app .ps-qty.ps-qty-tick {
    animation: none;
  }
}

body.is-storefront #is-app .ps-add {
  flex: 1;
  min-width: 10rem;
  min-height: 3rem;
  border: 0;
  background: var(--is-accent);
  color: var(--is-accent-ink);
  font-family: var(--is-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: var(--is-radius-md);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(47, 138, 76, 0.28);
  transition: background 0.15s ease, transform 0.12s ease;
}

body.is-storefront #is-app .ps-add:hover:not(:disabled) {
  background: var(--is-ink);
  box-shadow: var(--is-shadow-sm);
}

body.is-storefront #is-app .ps-add:active:not(:disabled) {
  transform: translateY(1px);
}

body.is-storefront #is-app .ps-add:disabled {
  background: #c3d2c8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Logistics / meta blocks */
body.is-storefront #is-app .ps-block {
  margin: var(--is-space-5) var(--is-space-5) 0;
  padding: var(--is-space-4);
  border-radius: var(--is-radius-lg);
  background: var(--is-surface);
  border: 1px solid var(--is-line);
  box-shadow: var(--is-shadow-sm);
}

body.is-storefront #is-app .ps-h {
  font-family: var(--is-font-body);
  font-size: var(--is-text-label);
  font-weight: 700;
  letter-spacing: var(--is-tracking-label);
  text-transform: uppercase;
  color: var(--is-ink-muted);
  margin: 0 0 var(--is-space-3);
}

body.is-storefront #is-app .ps-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

body.is-storefront #is-app .ps-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--is-space-4);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--is-line);
  font-size: 0.875rem;
}

body.is-storefront #is-app .ps-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.is-storefront #is-app .ps-fact:first-child {
  padding-top: 0;
}

body.is-storefront #is-app .ps-fact span {
  color: var(--is-ink-muted);
  font-weight: 500;
}

body.is-storefront #is-app .ps-fact b {
  text-align: right;
  font-weight: 700;
  color: var(--is-ink);
  max-width: 60%;
}

body.is-storefront #is-app .ps-note {
  font-size: var(--is-text-body);
  line-height: var(--is-leading-body);
  color: var(--is-ink-muted);
  margin: 0;
}

body.is-storefront #is-app .ps-empty {
  color: var(--is-ink-muted);
  font-size: var(--is-text-body);
  padding: 3rem var(--is-space-5);
  text-align: center;
}

/* Product comments */
body.is-storefront #is-app .ps-comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--is-space-3);
  margin-bottom: var(--is-space-4);
}

body.is-storefront #is-app .ps-comment {
  padding: var(--is-space-3);
  border-radius: var(--is-radius-md, 10px);
  background: var(--is-paper);
  border: 1px solid var(--is-line);
}

body.is-storefront #is-app .ps-comment-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--is-ink);
}

body.is-storefront #is-app .ps-comment-text {
  font-size: var(--is-text-body);
  color: var(--is-ink-muted);
  margin-top: 4px;
}

body.is-storefront #is-app .ps-comment-photo {
  margin-top: var(--is-space-2, 8px);
  max-width: 160px;
  max-height: 160px;
  border-radius: var(--is-radius-md, 10px);
  object-fit: cover;
  display: block;
}

body.is-storefront #is-app .ps-comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--is-space-2, 8px);
}

body.is-storefront #is-app .ps-comment-input {
  width: 100%;
  resize: vertical;
  padding: var(--is-space-3);
  border-radius: var(--is-radius-md, 10px);
  border: 1px solid var(--is-line);
  font-family: inherit;
  font-size: var(--is-text-body);
  color: var(--is-ink);
  background: var(--is-paper);
}

body.is-storefront #is-app .ps-comment-row {
  display: flex;
  align-items: center;
  gap: var(--is-space-3);
}

body.is-storefront #is-app .ps-comment-filename,
body.is-storefront #product-sheet .ps-comment-filename {
  font-size: 0.75rem;
  color: var(--is-ink-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-storefront #is-app .ps-comment-photo-btn,
body.is-storefront #product-sheet .ps-comment-photo-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0.45rem 0.75rem !important;
  border: 1px solid var(--is-line-strong) !important;
  border-radius: var(--is-radius-pill) !important;
  background: var(--is-surface) !important;
  box-shadow: none !important;
  font-family: var(--is-font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--is-ink-muted) !important;
  cursor: pointer;
  min-height: 0 !important;
}

body.is-storefront #is-app .ps-comment-photo-btn:hover,
body.is-storefront #product-sheet .ps-comment-photo-btn:hover {
  color: var(--is-ink) !important;
  border-color: var(--is-accent) !important;
}

body.is-storefront #is-app .ps-comment-submit,
body.is-storefront #product-sheet .ps-comment-submit {
  appearance: none !important;
  -webkit-appearance: none !important;
  margin-left: auto;
  border: 0 !important;
  cursor: pointer;
  padding: 0.55rem 1.15rem !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  border-radius: var(--is-radius-md) !important;
  background: var(--is-accent) !important;
  color: var(--is-accent-ink) !important;
  font-family: var(--is-font-body) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 2px 8px rgba(47, 138, 76, 0.22) !important;
}

body.is-storefront #is-app .ps-comment-submit:hover:not(:disabled),
body.is-storefront #product-sheet .ps-comment-submit:hover:not(:disabled) {
  background: var(--is-ink) !important;
}

body.is-storefront #is-app .ps-comment-submit:disabled,
body.is-storefront #product-sheet .ps-comment-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.is-storefront #is-app .ps-comment-input,
body.is-storefront #product-sheet .ps-comment-input {
  width: 100%;
  resize: vertical;
  min-height: 4.5rem;
  padding: var(--is-space-3) !important;
  border-radius: var(--is-radius-md) !important;
  border: 1.5px solid var(--is-line) !important;
  font-family: var(--is-font-body) !important;
  font-size: var(--is-text-body) !important;
  color: var(--is-ink) !important;
  background: var(--is-surface) !important;
  box-shadow: none !important;
  outline: none;
}

body.is-storefront #is-app .ps-comment-input:focus,
body.is-storefront #product-sheet .ps-comment-input:focus {
  border-color: var(--is-accent) !important;
  box-shadow: var(--is-focus-ring) !important;
}

@media (max-width: 720px) {
  body.is-storefront #is-app .ps-media {
    height: 240px;
  }

  body.is-storefront #is-app .ps-buy,
  body.is-storefront #is-app .ps-intro,
  body.is-storefront #is-app .ps-block {
    margin-left: var(--is-space-4);
    margin-right: var(--is-space-4);
  }

  body.is-storefront #is-app .ps-intro {
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--is-space-4);
    padding-right: var(--is-space-4);
  }

  body.is-storefront #is-app .ps-actions {
    flex-direction: column;
  }

  body.is-storefront #is-app .ps-stepper {
    width: 100%;
    justify-content: space-between;
  }

  body.is-storefront #is-app .ps-qty {
    flex: 1;
  }

  body.is-storefront #is-app .ps-add {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Shop: category chips (match hero role chips) + product grid/cards   */
/* ------------------------------------------------------------------ */
body.is-storefront #is-app .chips {
  display: flex;
  gap: var(--is-space-2);
  flex-wrap: wrap;
  margin-bottom: var(--is-space-5);
}

body.is-storefront #is-app .chip {
  border: 1.5px solid var(--is-line-strong);
  background: var(--is-paper);
  font-family: var(--is-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--is-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--is-ink);
  box-shadow: var(--is-shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.is-storefront #is-app .chip i {
  font-size: 0.7rem;
  color: var(--is-ink-muted);
}

body.is-storefront #is-app .chip .n,
body.is-storefront #is-app .chip .c-count {
  color: var(--is-ink-faint);
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.is-storefront #is-app .chip:hover {
  border-color: var(--is-accent);
  box-shadow: var(--is-shadow-md);
}

body.is-storefront #is-app .chip.on,
body.is-storefront #is-app .chip.active,
body.is-storefront #is-app .cat-item.active {
  background: var(--is-accent);
  border-color: var(--is-accent);
  color: var(--is-accent-ink);
  box-shadow: 0 2px 10px rgba(47, 138, 76, 0.28);
}

body.is-storefront #is-app .chip.on i,
body.is-storefront #is-app .chip.active i,
body.is-storefront #is-app .cat-item.active i {
  color: var(--is-accent-ink);
}

body.is-storefront #is-app .chip.on .n,
body.is-storefront #is-app .chip.on .c-count,
body.is-storefront #is-app .chip.active .n,
body.is-storefront #is-app .chip.active .c-count,
body.is-storefront #is-app .cat-item.active .c-count {
  color: rgba(255, 255, 255, 0.72);
}

body.is-storefront #is-app .active-filters .chip {
  cursor: default;
  background: var(--is-surface);
}

body.is-storefront #is-app .active-filters .chip.xable {
  cursor: pointer;
  padding-right: 0.65rem;
}

body.is-storefront #is-app .chip .xchip {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  font-size: 0.75rem;
  padding: 0 0.25rem;
  line-height: 1;
}

body.is-storefront #is-app .chip .xchip:hover {
  opacity: 1;
}

body.is-storefront #is-app .chip.on .xchip {
  color: var(--is-accent-ink);
}

/* Product grid — room for rich cards */
body.is-storefront #is-app .prod-grid,
body.is-storefront #is-app .grid#products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--is-space-5);
}

/* Product pagination — only when filtered set spans multiple pages */
body.is-storefront #is-app .prod-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--is-space-3) var(--is-space-4);
  margin-top: var(--is-space-5);
  padding-top: var(--is-space-4);
  border-top: 1px solid var(--is-line);
}

body.is-storefront #is-app .prod-pager[hidden] {
  display: none !important;
}

body.is-storefront #is-app .prod-pager .pager-meta,
body.is-storefront #is-app .prod-pager .pager-of {
  font-family: var(--is-font-body);
  font-size: 0.8125rem;
  color: var(--is-ink-muted);
  font-weight: 500;
}

body.is-storefront #is-app .prod-pager .pager-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--is-space-2);
  margin-left: auto;
  margin-right: auto;
}

body.is-storefront #is-app .prod-pager .pager-nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

body.is-storefront #is-app .prod-pager .pager-btn {
  appearance: none;
  border: 1px solid var(--is-line);
  background: var(--is-surface);
  color: var(--is-ink);
  font-family: var(--is-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--is-radius-md);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

body.is-storefront #is-app .prod-pager .pager-btn:hover:not(:disabled):not(.on) {
  border-color: var(--is-line-strong);
  background: var(--is-paper);
}

body.is-storefront #is-app .prod-pager .pager-btn.on {
  background: var(--is-accent);
  border-color: var(--is-accent);
  color: var(--is-accent-ink);
  cursor: default;
}

body.is-storefront #is-app .prod-pager .pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body.is-storefront #is-app .prod-pager .pager-nav {
  min-width: auto;
  padding-inline: 0.9rem;
}

@media (max-width: 640px) {
  body.is-storefront #is-app .prod-pager {
    flex-direction: column;
    align-items: stretch;
  }

  body.is-storefront #is-app .prod-pager .pager-controls {
    margin: 0;
    justify-content: center;
  }

  body.is-storefront #is-app .prod-pager .pager-meta,
  body.is-storefront #is-app .prod-pager .pager-of {
    text-align: center;
  }
}

/* Product cards — rich / at-a-glance */
body.is-storefront #is-app .card,
body.is-storefront #is-app .modern-card {
  background: var(--is-surface);
  border: 1px solid var(--is-line);
  border-radius: var(--is-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--is-shadow-sm);
  cursor: default;
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.22s ease,
    opacity 0.28s ease;
}

body.is-storefront #is-app .card:hover,
body.is-storefront #is-app .modern-card:hover {
  transform: translateY(-3px);
  border-color: var(--is-line-strong);
  box-shadow: var(--is-shadow-md);
}

body.is-storefront #is-app .card:active {
  transform: translateY(-1px);
}

body.is-storefront #is-app .card.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}

body.is-storefront #is-app .card-media,
body.is-storefront #is-app .product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  overflow: hidden;
  flex-shrink: 0;
  background:
    radial-gradient(ellipse at 50% 40%, #fff 0%, var(--is-paper) 55%, #e8eee9 100%);
}

body.is-storefront #is-app .card-media img,
body.is-storefront #is-app .product-image-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--is-space-4);
  display: block;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.is-storefront #is-app .card:hover .card-media img {
  transform: scale(1.03);
}

body.is-storefront #is-app .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: var(--is-ink-muted);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--is-radius-pill);
}

body.is-storefront #is-app .tier {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  color: var(--is-ink-2);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--is-radius-pill);
  box-shadow: 0 1px 4px rgba(8, 23, 15, 0.12);
}

body.is-storefront #is-app .tier.mfr {
  background: var(--is-ink-2);
  color: #fff;
}

body.is-storefront #is-app .tier.dist {
  background: #e8eef8;
  color: #274a86;
}

body.is-storefront #is-app .tier.agro {
  background: var(--is-accent-soft);
  color: var(--is-ink-2);
}

body.is-storefront #is-app .card-body,
body.is-storefront #is-app .product-info {
  padding: var(--is-space-4) var(--is-space-4) var(--is-space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  min-width: 0;
}

body.is-storefront #is-app .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--is-space-3);
}

body.is-storefront #is-app .card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--is-radius-pill);
  background: var(--is-paper);
  color: var(--is-ink-muted);
  border: 1px solid var(--is-line);
}

body.is-storefront #is-app .card-tag.is-in {
  background: var(--is-success-soft);
  color: var(--is-success);
  border-color: transparent;
}

body.is-storefront #is-app .card-tag.is-out {
  background: #fceceb;
  color: var(--is-danger);
  border-color: transparent;
}

body.is-storefront #is-app .card-name,
body.is-storefront #is-app .product-name {
  font-family: var(--is-font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--is-ink);
  margin: 0 0 var(--is-space-2);
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

body.is-storefront #is-app .card-price-block {
  margin-bottom: var(--is-space-3);
}

body.is-storefront #is-app .card-price,
body.is-storefront #is-app .product-price {
  font-family: var(--is-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  margin: 0;
  padding: 0;
  color: var(--is-accent);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body.is-storefront #is-app .card-price-note {
  font-size: 0.75rem;
  color: var(--is-ink-muted);
  font-weight: 500;
  margin-top: 0.25rem;
  line-height: 1.35;
}

body.is-storefront #is-app .card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--is-ink-muted);
  margin: 0 0 var(--is-space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.is-storefront #is-app .card-meta {
  font-size: 0.78rem;
  color: var(--is-ink-muted);
  font-weight: 500;
  margin: -0.15rem 0 var(--is-space-2);
  line-height: 1.35;
}

body.is-storefront #is-app .card.is-clickable {
  cursor: pointer;
}

body.is-storefront #is-app .card.is-clickable:focus-visible {
  outline: 2px solid var(--is-accent);
  outline-offset: 3px;
}

/* Compact “More details” chip — never a full-width Limitless button */
body.is-storefront #is-app .card-more,
body.is-storefront #is-app span.card-more,
body.is-storefront #is-app button.card-more,
body.is-storefront #product-sheet .card-more {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  width: auto !important;
  max-width: max-content !important;
  margin: 0.2rem 0 var(--is-space-3) !important;
  padding: 0.3rem 0.65rem !important;
  border: 1px solid var(--is-line) !important;
  border-radius: var(--is-radius-pill) !important;
  background: var(--is-paper) !important;
  box-shadow: none !important;
  color: var(--is-accent) !important;
  font-family: var(--is-font-body) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 1.2 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: none; /* whole card opens details */
}

body.is-storefront #is-app .card.is-clickable:hover .card-more {
  color: var(--is-ink) !important;
  border-color: var(--is-accent) !important;
  background: var(--is-accent-soft) !important;
}

body.is-storefront #is-app .card-more i,
body.is-storefront #product-sheet .card-more i {
  font-size: 0.6rem;
  transition: transform 0.15s ease;
}

body.is-storefront #is-app .card.is-clickable:hover .card-more i {
  transform: translateX(2px);
}

body.is-storefront #is-app .card-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 var(--is-space-4);
  padding: var(--is-space-3);
  border-radius: var(--is-radius-md);
  background: var(--is-paper);
  border: 1px solid var(--is-line);
}

body.is-storefront #is-app .card-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--is-space-3);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--is-line);
  font-size: 0.8125rem;
}

body.is-storefront #is-app .card-fact:first-child {
  padding-top: 0;
}

body.is-storefront #is-app .card-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.is-storefront #is-app .card-fact-l {
  color: var(--is-ink-muted);
  font-weight: 500;
  flex-shrink: 0;
}

body.is-storefront #is-app .card-fact-v {
  text-align: right;
  font-weight: 700;
  color: var(--is-ink);
  max-width: 62%;
  overflow-wrap: break-word;
}

body.is-storefront #is-app .card-buy {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--is-space-3);
}

body.is-storefront #is-app .card-stepper,
body.is-storefront #is-app .card-rich .card-stepper {
  margin-top: 0;
  min-height: 2.75rem;
  flex: 0 0 auto;
}

body.is-storefront #is-app .card-stepper .ps-step {
  width: 2.5rem;
  min-height: 2.75rem;
}

body.is-storefront #is-app .card-stepper .ps-qty {
  line-height: 2.75rem;
  min-width: 2.25rem;
}

body.is-storefront #is-app .card-add,
body.is-storefront #is-app .add-to-cart-btn {
  margin-top: 0;
  flex: 1;
  min-width: 8rem;
  min-height: 2.75rem;
  border: 0;
  background: var(--is-accent);
  color: var(--is-accent-ink);
  font-family: var(--is-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: var(--is-radius-md);
  cursor: pointer;
  width: auto;
  box-shadow: 0 2px 8px rgba(47, 138, 76, 0.2);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

body.is-storefront #is-app .card-add:hover:not(:disabled):not(.is-added),
body.is-storefront #is-app .add-to-cart-btn:hover:not(:disabled):not(.is-added) {
  background: var(--is-ink);
  box-shadow: var(--is-shadow-sm);
}

body.is-storefront #is-app .card-add:active:not(:disabled):not(.is-added) {
  transform: translateY(1px);
}

body.is-storefront #is-app .card-add:disabled,
body.is-storefront #is-app .add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

body.is-storefront #is-app .card-add.is-added,
body.is-storefront #is-app .ps-add.is-added {
  background: var(--is-success);
  color: #fff;
  box-shadow: none;
  opacity: 1;
}

/* legacy meta (unused on rich cards; keep harmless) */
body.is-storefront #is-app .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.15rem;
}

body.is-storefront #is-app .card-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--is-ink-faint);
}

body.is-storefront #is-app .card-seller {
  font-size: 0.75rem;
  color: var(--is-ink-muted);
  font-weight: 500;
}

/* Basket count pulse on add */
@keyframes is-basket-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

body.is-storefront #is-app .basket-btn .n.is-pulse,
body.is-storefront #is-app #cart-count.is-pulse,
body.is-storefront #is-app .mobile-fab .n.is-pulse {
  animation: is-basket-pulse 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 720px) {
  body.is-storefront #is-app .prod-grid,
  body.is-storefront #is-app .grid#products-container {
    grid-template-columns: 1fr;
    gap: var(--is-space-4);
  }

  body.is-storefront #is-app .card-body,
  body.is-storefront #is-app .product-info {
    padding: var(--is-space-4);
  }

  body.is-storefront #is-app .card-price,
  body.is-storefront #is-app .product-price {
    font-size: 1.4rem;
  }

  body.is-storefront #is-app .card-buy {
    flex-direction: column;
  }

  body.is-storefront #is-app .card-stepper {
    width: 100%;
    justify-content: space-between;
  }

  body.is-storefront #is-app .card-stepper .ps-qty {
    flex: 1;
  }

  body.is-storefront #is-app .card-add {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-storefront #is-app .card,
  body.is-storefront #is-app .card-media img,
  body.is-storefront #is-app .chip {
    transition: none;
  }

  body.is-storefront #is-app .card:hover {
    transform: none;
  }

  body.is-storefront #is-app .basket-btn .n.is-pulse,
  body.is-storefront #is-app #cart-count.is-pulse,
  body.is-storefront #is-app .mobile-fab .n.is-pulse {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* Batch 6 — responsive / touch / reduced-motion QA                    */
/* ------------------------------------------------------------------ */

/* Headline stays large but wraps cleanly; avoid horizontal overflow */
body.is-storefront #is-app .hero h1 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

body.is-storefront #is-app .card-name,
body.is-storefront #is-app .ps-name,
body.is-storefront #is-app .line-name {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Sticky hover lifts only on real hover pointers (no stuck state on touch) */
@media (hover: none), (pointer: coarse) {
  body.is-storefront #is-app .card:hover,
  body.is-storefront #is-app .modern-card:hover {
    transform: none;
    box-shadow: var(--is-shadow-sm);
    border-color: var(--is-line);
  }

  body.is-storefront #is-app .card:hover .card-media img {
    transform: none;
  }

  body.is-storefront #is-app .card:active {
    transform: none;
  }

  body.is-storefront #is-app .chip:hover,
  body.is-storefront #is-app .role:hover,
  body.is-storefront #is-app .role-chip:hover {
    box-shadow: var(--is-shadow-sm);
  }

  body.is-storefront #is-app .chip:hover:not(.on):not(.active),
  body.is-storefront #is-app .role:hover:not(.on),
  body.is-storefront #is-app .role-chip:hover:not(.on):not(.active) {
    border-color: var(--is-line-strong);
  }

  body.is-storefront #is-app .go:hover:not(:disabled),
  body.is-storefront #is-app .card-add:hover:not(:disabled):not(.is-added),
  body.is-storefront #is-app .ps-add:hover:not(:disabled),
  body.is-storefront #is-app .checkout:hover:not(:disabled) {
    /* keep color affordance via :active below; avoid sticky hover ink flash */
    background: var(--is-accent);
    color: var(--is-accent-ink);
  }

  body.is-storefront #is-app .go:active:not(:disabled),
  body.is-storefront #is-app .card-add:active:not(:disabled):not(.is-added),
  body.is-storefront #is-app .ps-add:active:not(:disabled),
  body.is-storefront #is-app .checkout:active:not(:disabled) {
    background: var(--is-ink);
  }

  body.is-storefront #is-app .basket-btn:hover {
    border-color: var(--is-line-strong);
    box-shadow: var(--is-shadow-sm);
  }
}

@media (max-width: 720px) {
  body.is-storefront {
    --is-text-display: clamp(1.85rem, 8.2vw, 2.4rem);
    --is-text-subhead: clamp(1rem, 3.6vw, 1.125rem);
  }

  body.is-storefront #is-app .site-in {
    height: 3.75rem;
    gap: var(--is-space-2);
  }

  body.is-storefront #is-app .mark img {
    height: 1.875rem;
    width: 1.875rem;
  }

  body.is-storefront #is-app .mark-name {
    font-size: 1.05rem;
  }

  body.is-storefront #is-app .mark-by {
    display: none;
  }

  body.is-storefront #is-app .basket-btn > span[data-i18n] {
    display: none;
  }

  body.is-storefront #is-app .basket-btn {
    padding: 0.55rem 0.7rem;
    gap: 0.4rem;
  }

  body.is-storefront #is-app .hero-sub {
    margin-bottom: var(--is-space-4);
    max-width: none;
  }

  body.is-storefront #is-app .console {
    padding: 0.9rem;
  }

  body.is-storefront #is-app .prompt input {
    min-height: 3.25rem;
    font-size: 1.05rem;
    padding: 0.9rem 1rem;
  }

  body.is-storefront #is-app .role-row {
    margin-top: var(--is-space-3);
    padding-top: var(--is-space-3);
  }

  body.is-storefront #is-app .role,
  body.is-storefront #is-app .role-chip,
  body.is-storefront #is-app .chip {
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
  }

  body.is-storefront #is-app .place-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.is-storefront #is-app .place,
  body.is-storefront #is-app .store-box {
    width: 100%;
    max-width: none;
  }

  body.is-storefront #is-app .shop {
    padding-top: 1.5rem;
    padding-bottom: 4.5rem; /* room for mobile FAB */
  }

  body.is-storefront #is-app .shop-head {
    gap: var(--is-space-2);
  }

  body.is-storefront #is-app .shop-head .find,
  body.is-storefront #is-app input.find {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  body.is-storefront #is-app .shop-head .sort-select,
  body.is-storefront #is-app .shop-head .adv-toggle,
  body.is-storefront #is-app .shop-head .count {
    flex: 1 1 auto;
  }

  body.is-storefront #is-app .chips {
    margin-bottom: var(--is-space-4);
    /* allow horizontal glance-scroll without breaking wrap */
    max-width: 100%;
  }

  body.is-storefront #is-app .prod-grid,
  body.is-storefront #is-app .grid#products-container {
    grid-template-columns: 1fr;
  }

  body.is-storefront #is-app .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  body.is-storefront #is-app .card-seller {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.is-storefront #is-app .ps-name {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  }

  body.is-storefront #is-app .ps-media {
    height: min(52vw, 240px);
  }

  body.is-storefront #is-app .sheet,
  body.is-storefront #product-sheet,
  body.is-storefront #is-app .drawer,
  body.is-storefront #is-app .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }

  body.is-storefront #is-app .drawer-foot .checkout {
    min-height: 3.1rem;
  }

  body.is-storefront #is-app .mobile-fab {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 380px) {
  body.is-storefront {
    --is-text-display: clamp(1.65rem, 9vw, 2rem);
  }

  body.is-storefront #is-app .prod-grid,
  body.is-storefront #is-app .grid#products-container {
    grid-template-columns: 1fr;
    gap: var(--is-space-3);
  }

  body.is-storefront #is-app .card-media,
  body.is-storefront #is-app .product-image-container {
    aspect-ratio: 16 / 10;
  }

  body.is-storefront #is-app .lang-select {
    min-width: 6.5rem;
    max-width: 9.5rem;
    padding: 0.4rem 1.7rem 0.4rem 0.55rem;
    font-size: 0.75rem;
  }
}

/* Desktop: keep two-up+ grid comfortable */
@media (min-width: 721px) and (max-width: 980px) {
  body.is-storefront #is-app .prod-grid,
  body.is-storefront #is-app .grid#products-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  body.is-storefront #is-app .hero-field {
    width: min(46vw, 420px);
    opacity: 0.75;
  }
}

/* Unified reduced-motion: all Batch 1–5 motion chrome */
@media (prefers-reduced-motion: reduce) {
  body.is-storefront #is-app .go,
  body.is-storefront #is-app .role,
  body.is-storefront #is-app .role-chip,
  body.is-storefront #is-app .chip,
  body.is-storefront #is-app .card,
  body.is-storefront #is-app .modern-card,
  body.is-storefront #is-app .card-media img,
  body.is-storefront #is-app .card-add,
  body.is-storefront #is-app .ps-add,
  body.is-storefront #is-app .ps-step,
  body.is-storefront #is-app .checkout,
  body.is-storefront #is-app .basket-btn,
  body.is-storefront #is-app .reset-mini,
  body.is-storefront #is-app .x,
  body.is-storefront #is-app .rm,
  body.is-storefront #is-app .sheet,
  body.is-storefront #product-sheet,
  body.is-storefront #is-app .drawer,
  body.is-storefront #is-app .cart-drawer,
  body.is-storefront #is-app .veil,
  body.is-storefront #is-app .cart-overlay {
    transition: none !important;
  }

  body.is-storefront #is-app .card:hover,
  body.is-storefront #is-app .modern-card:hover,
  body.is-storefront #is-app .card:active {
    transform: none;
  }

  body.is-storefront #is-app .card:hover .card-media img {
    transform: none;
  }

  body.is-storefront #is-app .ps-qty.ps-qty-tick,
  body.is-storefront #is-app .basket-btn .n.is-pulse,
  body.is-storefront #is-app #cart-count.is-pulse,
  body.is-storefront #is-app .mobile-fab .n.is-pulse {
    animation: none !important;
  }

  body.is-storefront #is-app .veil,
  body.is-storefront #is-app .cart-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.is-storefront #is-app .site {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--is-paper);
  }
}

/* ------------------------------------------------------------------ */
/* Basket drawer + checkout dialogs                                    */
/* ------------------------------------------------------------------ */
body.is-storefront #is-app .veil,
body.is-storefront #is-app .cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 23, 15, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.is-storefront #is-app .veil.on,
body.is-storefront #is-app .cart-overlay.open,
body.is-storefront #is-app .cart-overlay.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.is-storefront #is-app .drawer,
body.is-storefront #is-app .cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 96vw);
  background: var(--is-surface);
  z-index: 100;
  transform: translateX(101%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--is-shadow-lg);
  will-change: transform;
}

body.is-storefront #is-app .drawer.on,
body.is-storefront #is-app .cart-drawer.open,
body.is-storefront #is-app .cart-drawer.on {
  transform: none;
}

body.is-storefront #is-app .drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--is-space-2) var(--is-space-5) var(--is-space-4);
  background: var(--is-surface);
}

body.is-storefront #is-app .line-item {
  display: flex;
  gap: var(--is-space-3);
  padding: var(--is-space-4) 0;
  border-bottom: 1px solid var(--is-line);
  align-items: flex-start;
}

body.is-storefront #is-app .line-item:last-child {
  border-bottom: 0;
}

body.is-storefront #is-app .line-main {
  flex: 1;
  min-width: 0;
}

body.is-storefront #is-app .line-name {
  font-family: var(--is-font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--is-ink);
  line-height: 1.3;
}

body.is-storefront #is-app .line-meta {
  font-size: 0.8125rem;
  color: var(--is-ink-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* Compact Batch-3 stepper in basket lines */
body.is-storefront #is-app .cart-drawer .cart-stepper,
body.is-storefront #is-app .cart-drawer .ps-stepper.cart-stepper {
  margin-top: var(--is-space-3);
  min-height: 2.5rem;
  width: fit-content;
}

body.is-storefront #is-app .cart-drawer .cart-stepper .ps-step {
  width: 2.35rem;
  min-height: 2.5rem;
  font-size: 1.05rem;
}

body.is-storefront #is-app .cart-drawer .cart-stepper .ps-qty {
  min-width: 2.25rem;
  line-height: 2.5rem;
  font-size: 0.9375rem;
}

body.is-storefront #is-app .rm {
  border: 0;
  background: none;
  color: var(--is-danger);
  font-family: var(--is-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
  border-radius: var(--is-radius-sm);
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: background 0.12s ease, color 0.12s ease;
}

body.is-storefront #is-app .rm:hover {
  background: #fceceb;
  color: #8f2f1f;
}

body.is-storefront #is-app .empty-basket {
  text-align: center;
  padding: 3.5rem var(--is-space-4);
  color: var(--is-ink-muted);
  font-size: var(--is-text-body);
  line-height: var(--is-leading-body);
}

body.is-storefront #is-app .empty-basket p {
  margin: 0;
}

/* Totals — running total is the visual anchor */
body.is-storefront #is-app .trow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--is-space-3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--is-ink-muted);
  margin-bottom: 0.55rem;
}

body.is-storefront #is-app .trow span:last-child {
  color: var(--is-ink);
  font-variant-numeric: tabular-nums;
}

body.is-storefront #is-app .trow.big {
  font-size: 1rem;
  color: var(--is-ink);
  font-weight: 700;
  border-top: 1px solid var(--is-line);
  padding-top: var(--is-space-3);
  margin-top: var(--is-space-3);
  margin-bottom: var(--is-space-4);
}

body.is-storefront #is-app .trow.big .cart-total-value,
body.is-storefront #is-app #cart-total {
  font-family: var(--is-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--is-accent);
  letter-spacing: -0.02em;
}

body.is-storefront #is-app .drawer-foot .checkout {
  box-shadow: 0 2px 12px rgba(47, 138, 76, 0.28);
  min-height: 3rem;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

body.is-storefront #is-app .drawer-foot .checkout:active:not(:disabled) {
  transform: translateY(1px);
}

body.is-storefront #is-app .drawer-continue,
body.is-storefront #is-app .drawer-foot .reset-mini {
  width: 100%;
  margin-top: var(--is-space-3);
  justify-content: center;
}

/* Mobile FAB stays on-token */
body.is-storefront #is-app .mobile-fab {
  background: var(--is-accent);
  color: var(--is-accent-ink);
  box-shadow: var(--is-shadow-md);
}

body.is-storefront #is-app .mobile-fab .n {
  background: var(--is-warning);
  color: var(--is-ink);
}

@media (prefers-reduced-motion: reduce) {
  body.is-storefront #is-app .veil,
  body.is-storefront #is-app .cart-overlay,
  body.is-storefront #is-app .drawer,
  body.is-storefront #is-app .cart-drawer {
    transition: none;
  }

  body.is-storefront #is-app .veil,
  body.is-storefront #is-app .cart-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* SweetAlert — checkout / toasts (appended to body, outside #is-app) */
body.is-storefront .is-swal {
  font-family: var(--is-font-body) !important;
  border-radius: var(--is-radius-lg) !important;
  border: 1px solid var(--is-line) !important;
  box-shadow: var(--is-shadow-lg) !important;
  padding: var(--is-space-5) !important;
  background: var(--is-surface) !important;
  color: var(--is-ink) !important;
}

body.is-storefront .is-swal-title {
  font-family: var(--is-font-display) !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  color: var(--is-ink) !important;
  letter-spacing: -0.02em !important;
}

body.is-storefront .is-swal-body {
  font-size: var(--is-text-body) !important;
  color: var(--is-ink-muted) !important;
  line-height: var(--is-leading-body) !important;
}

body.is-storefront .is-swal-note {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  color: var(--is-ink-muted);
}

body.is-storefront .is-swal-confirm {
  font-family: var(--is-font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border: 0 !important;
  border-radius: var(--is-radius-md) !important;
  background: var(--is-accent) !important;
  color: var(--is-accent-ink) !important;
  padding: 0.75rem 1.35rem !important;
  box-shadow: 0 2px 10px rgba(47, 138, 76, 0.25) !important;
  cursor: pointer !important;
}

body.is-storefront .is-swal-confirm:hover {
  background: var(--is-ink) !important;
}

body.is-storefront .is-swal-confirm-warn {
  background: var(--is-ink) !important;
  box-shadow: var(--is-shadow-sm) !important;
}

body.is-storefront .is-swal-toast {
  padding: var(--is-space-3) var(--is-space-4) !important;
  border-radius: var(--is-radius-md) !important;
}

body.is-storefront .is-swal-toast .is-swal-title {
  font-family: var(--is-font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

body.is-storefront .is-swal-toast-info {
  background: var(--is-surface) !important;
  border-color: var(--is-line-strong) !important;
  color: var(--is-ink) !important;
  box-shadow: var(--is-shadow-md) !important;
}

body.is-storefront .is-swal-toast-info .is-swal-title {
  color: var(--is-ink) !important;
  font-weight: 600 !important;
}

body.is-storefront .is-swal-toast-info .swal2-html-container {
  display: none !important;
}

body.is-storefront .is-swal-toast-warn {
  background: var(--is-surface) !important;
  border-color: var(--is-line-strong) !important;
  color: var(--is-ink) !important;
  box-shadow: var(--is-shadow-md) !important;
}

body.is-storefront .is-swal-toast-warn .is-swal-title {
  color: var(--is-ink) !important;
  font-weight: 600 !important;
}

/* Soft accent icon for warnings — not the stock red alert look */
body.is-storefront .is-swal-toast-warn .swal2-icon.swal2-warning {
  border-color: var(--is-accent) !important;
  color: var(--is-accent) !important;
  width: 1.65rem !important;
  height: 1.65rem !important;
  margin: 0 0.55rem 0 0 !important;
}

body.is-storefront .is-swal-toast-warn .swal2-icon.swal2-warning .swal2-icon-content {
  font-size: 1rem !important;
  color: var(--is-accent) !important;
}

body.is-storefront .swal2-timer-progress-bar {
  background: var(--is-accent) !important;
}

/* ------------------------------------------------------------------ */
/* Cascade-winning mobile / touch overrides (must stay last)           */
/* ------------------------------------------------------------------ */
@media (max-width: 720px) {
  body.is-storefront #is-app .sheet,
  body.is-storefront #product-sheet,
  body.is-storefront #is-app .drawer,
  body.is-storefront #is-app .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }

  body.is-storefront #is-app .prod-grid,
  body.is-storefront #is-app .grid#products-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  body.is-storefront #is-app .prod-grid,
  body.is-storefront #is-app .grid#products-container {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse) {
  body.is-storefront #is-app .card:hover,
  body.is-storefront #is-app .modern-card:hover {
    transform: none;
    box-shadow: var(--is-shadow-sm);
    border-color: var(--is-line);
  }

  body.is-storefront #is-app .card:hover .card-media img {
    transform: none;
  }

  body.is-storefront .is-swal-confirm:hover {
    background: var(--is-accent) !important;
  }

  body.is-storefront .is-swal-confirm:active {
    background: var(--is-ink) !important;
  }

  body.is-storefront #is-app .card,
  body.is-storefront #is-app .skeleton-card {
    animation: none !important;
  }
}

/* ---------------------------------------------------------------------
 * Motion polish: card entrance + skeleton loading state
 * ------------------------------------------------------------------- */

@keyframes is-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes is-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

body.is-storefront #is-app .card {
  animation: is-fade-up 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stagger the first two rows so the grid doesn't pop in all at once --
   nth-child selectors are cheap and need no JS wiring. */
body.is-storefront #is-app .card:nth-child(2) { animation-delay: 0.03s; }
body.is-storefront #is-app .card:nth-child(3) { animation-delay: 0.06s; }
body.is-storefront #is-app .card:nth-child(4) { animation-delay: 0.09s; }
body.is-storefront #is-app .card:nth-child(5) { animation-delay: 0.12s; }
body.is-storefront #is-app .card:nth-child(6) { animation-delay: 0.15s; }
body.is-storefront #is-app .card:nth-child(7) { animation-delay: 0.18s; }
body.is-storefront #is-app .card:nth-child(8) { animation-delay: 0.21s; }

body.is-storefront #is-app .skeleton-card {
  border-radius: var(--is-radius-lg);
  overflow: hidden;
  background: var(--is-surface);
  border: 1px solid var(--is-line);
}

body.is-storefront #is-app .skeleton-media,
body.is-storefront #is-app .skeleton-line {
  background: linear-gradient(
    90deg,
    var(--is-line) 25%,
    var(--is-paper) 50%,
    var(--is-line) 75%
  );
  background-size: 200% 100%;
  animation: is-shimmer 1.4s ease-in-out infinite;
}

body.is-storefront #is-app .skeleton-media {
  aspect-ratio: 1 / 1;
}

body.is-storefront #is-app .skeleton-body {
  padding: var(--is-space-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.is-storefront #is-app .skeleton-line {
  height: 12px;
  border-radius: var(--is-radius-sm);
}

body.is-storefront #is-app .skeleton-line.w-60 { width: 60%; }
body.is-storefront #is-app .skeleton-line.w-80 { width: 80%; }
body.is-storefront #is-app .skeleton-line.w-40 { width: 40%; }

/* Voice input mic button */
body.is-storefront #is-app .mic-btn {
  border: 0;
  background: var(--is-paper);
  color: var(--is-ink-muted);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  /* .prompt uses align-items:stretch -- a fixed-height item like this one
     doesn't actually stretch, but without this it still falls back to
     the top of the (taller) row instead of centering against the input
     and Find button. */
  align-self: center;
  transition: background 0.15s ease, color 0.15s ease;
}

body.is-storefront #is-app .mic-btn:hover {
  background: var(--is-line);
  color: var(--is-ink);
}

body.is-storefront #is-app .mic-btn.is-listening {
  background: #dc2626;
  color: #fff;
  animation: is-mic-pulse 1.2s ease-in-out infinite;
}

@keyframes is-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

/* Delivery / transporter (checkout) */
body.is-storefront #is-app .delivery {
  padding: var(--is-space-4) var(--is-space-5) var(--is-space-2);
  border-top: 1px solid var(--is-line);
}

body.is-storefront #is-app .delivery-title {
  margin: 0 0 4px;
  font-size: var(--is-text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--is-tracking-label);
  color: var(--is-ink);
}

body.is-storefront #is-app .delivery-hint {
  margin: 0 0 var(--is-space-3);
  font-size: 0.75rem;
  color: var(--is-ink-muted);
}

body.is-storefront #is-app .delivery-field {
  position: relative;
  margin-bottom: var(--is-space-3);
}

body.is-storefront #is-app .delivery-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--is-line);
  border-radius: var(--is-radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--is-ink);
  background: var(--is-paper);
}

body.is-storefront #is-app .delivery-field input:focus {
  outline: none;
  border-color: var(--is-brand, #2D5A27);
  box-shadow: 0 0 0 3px rgba(47, 138, 76, 0.15);
}

body.is-storefront #is-app .delivery-results {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--is-line);
  border-radius: var(--is-radius-md);
  box-shadow: var(--is-shadow-md);
  max-height: 220px;
  overflow-y: auto;
}

body.is-storefront #is-app .delivery-result {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--is-line);
}

body.is-storefront #is-app .delivery-result:last-child { border-bottom: 0; }
body.is-storefront #is-app .delivery-result:hover { background: var(--is-paper); }
body.is-storefront #is-app .delivery-result strong { display: block; font-size: 0.85rem; }
body.is-storefront #is-app .delivery-result small { color: var(--is-ink-muted); font-size: 0.7rem; }

body.is-storefront #is-app .delivery-results-empty {
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--is-ink-muted);
}

body.is-storefront #is-app .delivery-picked {
  border: 1px solid var(--is-brand, #2D5A27);
  background: rgba(47, 138, 76, 0.06);
  border-radius: var(--is-radius-md);
  padding: 12px 14px;
  margin-bottom: var(--is-space-3);
}

body.is-storefront #is-app .delivery-picked-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

body.is-storefront #is-app .delivery-picked-name { font-size: 0.9rem; font-weight: 700; color: var(--is-ink); }
body.is-storefront #is-app .delivery-picked-phone { margin-top: 4px; font-size: 0.9rem; font-weight: 700; color: var(--is-brand, #1e6b3a); }
body.is-storefront #is-app .delivery-picked-covers { margin-top: 4px; font-size: 0.72rem; color: var(--is-ink-muted); }

body.is-storefront #is-app .delivery-change {
  border: 0;
  background: none;
  color: var(--is-brand, #1e6b3a);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
body.is-storefront #is-app .delivery-change:hover { text-decoration: underline; }

body.is-storefront #is-app .delivery-cost {
  display: flex;
  align-items: center;
  border: 1px solid var(--is-line);
  border-radius: var(--is-radius-md);
  overflow: hidden;
  height: 46px;
  margin-bottom: var(--is-space-3);
}

body.is-storefront #is-app .delivery-cost span {
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--is-ink-muted);
  background: var(--is-paper);
  height: 100%;
  display: flex;
  align-items: center;
}

body.is-storefront #is-app .delivery-cost input {
  flex: 1;
  height: 100%;
  border: 0;
  padding: 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--is-ink);
}
body.is-storefront #is-app .delivery-cost input:focus { outline: none; }
body.is-storefront #is-app .delivery-cost:focus-within {
  border-color: var(--is-brand, #2D5A27);
  box-shadow: 0 0 0 3px rgba(47, 138, 76, 0.15);
}

body.is-storefront #is-app .delivery-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #1e7e34;
  background: #e6f4ea;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.is-storefront #is-app .delivery-unverified {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 999px;
}

body.is-storefront #is-app .delivery-result.is-unavailable {
  opacity: 0.55;
}
