:root {
  color-scheme: light;
  --cream: #fff4df;
  --cream-strong: #f1ddbb;
  --paper: #fffaf0;
  --ink: #2a160c;
  --muted: #786653;
  --line: #e5cfaf;
  --brand-red: #a74317;
  --brand-red-dark: #6a310d;
  --brand-green: #596332;
  --brand-gold: #b87528;
  --good: #596332;
  --warning: #8b5614;
  --shadow: 0 18px 36px rgba(58, 31, 13, 0.13);
  --radius: 8px;
  font-family: "Avenir Next", "Nunito Sans", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Aiia platform */
.platform-shell {
  width: min(100%, 1180px);
  max-width: 1180px;
  padding-bottom: 42px;
}

.tenant-shell {
  width: min(100%, 1220px);
  max-width: 1220px;
}

.platform-topbar {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(229, 207, 175, 0.78);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 16px 36px rgba(58, 31, 13, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.platform-brand {
  width: 100%;
}

.support-button,
.magic-ready,
.premium-inline span,
.section-kicker,
.mode-note,
.watermark {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.support-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--brand-green);
  font-weight: 900;
  text-decoration: none;
}

.landing-page,
.owner-workspace,
.onboarding-view {
  display: grid;
  gap: 22px;
}

.landing-hero {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 5vw, 54px) 0 18px;
}

.landing-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.92;
}

.landing-hero .hero-copy {
  max-width: 58ch;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.magic-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.magic-form label {
  display: grid;
  gap: 6px;
}

.magic-form span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.magic-form input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.magic-form .primary-button {
  align-self: end;
  min-height: 52px;
}

.magic-ready {
  display: grid;
  gap: 8px;
  max-width: 760px;
  padding: 14px;
}

.magic-ready p {
  margin: 0;
  color: var(--muted);
}

.landing-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
}

.landing-points article,
.minimal-section,
.faq-section,
.owner-panel,
.premium-panel,
.business-type-card {
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
}

.landing-points span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--cream);
  background: var(--brand-green);
  font-weight: 900;
}

.landing-points strong,
.business-type-card strong {
  display: block;
  font-size: 1.22rem;
}

.landing-points p,
.minimal-section p,
.faq-section p,
.business-type-card p,
.premium-panel p,
.owner-product-row p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.minimal-section {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.section-kicker {
  width: fit-content;
  padding: 5px 10px;
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.premium-inline span {
  padding: 8px 10px;
  color: var(--brand-red-dark);
  font-weight: 850;
}

.faq-section {
  display: grid;
  gap: 14px;
}

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

.faq-list article {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding-top: 18px;
}

.workspace-head.centered {
  grid-template-columns: minmax(0, 740px);
  justify-content: center;
  text-align: center;
}

.workspace-head h1 {
  margin-bottom: 4px;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.workspace-head p {
  margin: 0;
  color: var(--muted);
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.workspace-actions select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
}

.owner-tabs,
.step-pills,
.fulfillment-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.owner-tabs {
  margin-top: 2px;
}

.owner-tabs button,
.fulfillment-tabs button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-red-dark);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.owner-tabs button.selected,
.fulfillment-tabs button.selected {
  color: var(--cream);
  border-color: transparent;
  background: var(--brand-green);
}

.step-pills span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 900;
}

.step-pills span.selected {
  color: var(--cream);
  border-color: transparent;
  background: var(--brand-green);
}

.business-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.business-type-card {
  min-height: 220px;
  text-align: left;
}

.business-type-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand-red-dark);
  font-weight: 900;
}

.business-type-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 67, 23, 0.42);
}

.platform-form {
  width: 100%;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: start;
}

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

.owner-product-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.owner-product-row.muted {
  opacity: 0.58;
}

.owner-product-row img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream-strong);
}

.owner-product-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

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

.premium-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

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

.premium-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.72);
}

.tenant-service-strip {
  cursor: default;
}

.mode-note {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
}

.watermark {
  display: grid;
  gap: 2px;
  width: fit-content;
  margin: 8px auto 74px;
  padding: 9px 14px;
  color: var(--brand-red-dark);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.watermark span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.loading-state {
  min-height: 70dvh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 679px) {
  .platform-shell,
  .tenant-shell {
    padding: 10px 10px calc(92px + env(safe-area-inset-bottom));
  }

  .platform-topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-button,
  .platform-topbar .text-button {
    width: 100%;
  }

  .landing-hero h1 {
    max-width: 9ch;
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .magic-form,
  .landing-points,
  .faq-list,
  .workspace-head,
  .business-type-grid,
  .split-panel,
  .premium-panel,
  .premium-grid,
  .mode-checks {
    grid-template-columns: 1fr;
  }

  .magic-form .primary-button {
    width: 100%;
  }

  .workspace-actions {
    justify-content: stretch;
  }

  .workspace-actions > * {
    flex: 1 1 100%;
  }

  .owner-product-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .owner-product-row .row-actions,
  .owner-product-row > .text-button {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .tenant-service-strip {
    grid-column: 1 / -1;
  }

  .shop-intro {
    grid-template-columns: 1fr;
  }

  .shop-intro > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }

  .shop-intro h1 {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .shop-intro strong {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (min-width: 680px) {
  .tenant-shell .bottom-nav {
    display: none;
  }
}

@media (min-width: 860px) {
  .tenant-shell .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tenant-shell .product-card {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .tenant-shell .product-card img {
    width: 100%;
    height: clamp(230px, 25vw, 340px);
  }
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--cream);
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(184, 117, 40, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(241, 221, 187, 0.94), rgba(255, 244, 223, 0.98) 42%, rgba(255, 250, 240, 0.92)),
    var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

noscript {
  display: block;
  max-width: 520px;
  margin: 24px auto;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

#app {
  width: 100%;
  min-height: 100dvh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100dvh;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 12px calc(92px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid rgba(229, 207, 175, 0.74);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 16px 36px rgba(58, 31, 13, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  z-index: 4;
}

.brand-button,
.address-strip,
.cart-header-button,
.call-button,
.nav-item,
.chip,
.add-button,
.primary-button,
.secondary-button,
.text-button,
.payment-box button,
.admin-tabs button,
.row-actions button,
.address-actions button,
.stepper button {
  min-height: 44px;
  border-radius: var(--radius);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.brand-button:active,
.address-strip:active,
.cart-header-button:active,
.call-button:active,
.nav-item:active,
.chip:active,
.add-button:active,
.primary-button:active,
.secondary-button:active,
.text-button:active,
.payment-box button:active,
.admin-tabs button:active,
.row-actions button:active,
.address-actions button:active,
.stepper button:active {
  transform: translateY(1px) scale(0.99);
}

.brand-button {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(229, 207, 175, 0.18);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  text-align: left;
}

.brand-button strong,
.brand-button small {
  display: block;
}

.brand-button strong {
  font-size: 1.02rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-button small,
.address-strip span,
.status-card small,
.product-card small,
.compact-order small,
.helper-text {
  color: var(--muted);
}

.logo-mark {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: hidden;
  border: 2px solid rgba(42, 22, 12, 0.22);
  border-radius: 999px;
  background: var(--cream-strong);
  box-shadow: 0 5px 12px rgba(42, 22, 12, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.call-button {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  min-width: 62px;
  min-height: 54px;
  padding: 0 12px;
  color: var(--cream);
  background: var(--brand-green);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cart-header-button {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 76px;
  min-height: 54px;
  padding: 0 12px;
  border: 1px solid rgba(167, 67, 23, 0.22);
  color: var(--brand-red-dark);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.cart-header-button.has-items {
  color: var(--cream);
  background: var(--brand-red);
}

.address-strip {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  text-align: left;
}

.address-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-button:hover,
.address-strip:hover,
.cart-header-button:hover,
.call-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 679px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cart-header-button {
    display: none;
  }

  .call-button {
    grid-column: 2;
  }
}

.main-content {
  display: grid;
  gap: 12px;
}

.shop-view,
.cart-view,
.checkout-view,
.account-view,
.admin-view {
  display: grid;
  gap: 14px;
}

.shop-controls {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.status-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--good);
  border-radius: var(--radius);
  background: var(--paper);
}

.status-card span {
  font-weight: 800;
}

.status-card strong {
  text-align: right;
}

.status-card small {
  grid-column: 1 / -1;
}

.status-card.closed {
  border-left-color: var(--warning);
}

.shop-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 4px 4px;
}

.shop-intro > div {
  display: contents;
}

.shop-intro h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: clamp(1.95rem, 8.8vw, 2.3rem);
  line-height: 0.98;
  white-space: nowrap;
}

.shop-intro strong {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding: 8px 10px;
  border: 1px solid rgba(89, 99, 50, 0.16);
  border-radius: 999px;
  color: var(--brand-green);
  background: rgba(89, 99, 50, 0.08);
  font-size: 0.92rem;
}

.shop-intro.closed strong {
  color: var(--warning);
  background: rgba(184, 117, 40, 0.12);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(182, 64, 49, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 244, 223, 0.9), rgba(255, 250, 240, 0.94)),
    var(--paper);
  box-shadow: var(--shadow);
}

.eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--brand-red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.72rem, 8vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.04rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 42ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.search-box.compact {
  margin-top: -2px;
}

.search-box.compact input {
  min-height: 48px;
}

.featured-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.featured-card img {
  width: 96px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius);
}

.featured-card span,
.product-title-row span,
.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--brand-red-dark);
  background: rgba(167, 67, 23, 0.11);
  font-size: 0.75rem;
  font-weight: 900;
}

.featured-card strong,
.featured-card small {
  display: block;
}

.featured-card strong {
  margin-top: 4px;
}

.featured-card button {
  grid-column: 1 / -1;
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--cream);
  background: var(--brand-red);
  font-weight: 900;
}

.search-box,
.form-card label,
.import-box {
  display: grid;
  gap: 7px;
}

.search-box span,
.form-card label span,
.import-box span,
.payment-box legend {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.field-hint {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.search-box input,
.form-card input,
.form-card textarea,
.form-card select,
.import-box input,
.admin-order select,
.crm-filter select,
.crm-status-select {
  width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--paper);
  color: var(--ink);
}

.search-box input:focus,
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus,
.import-box input:focus,
.admin-order select:focus,
.crm-filter select:focus,
.crm-status-select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(182, 64, 49, 0.12);
}

.category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.chip.selected {
  border-color: var(--brand-red);
  color: var(--cream);
  background: var(--brand-red);
}

.product-list,
.cart-list,
.admin-list,
.recent-orders {
  display: grid;
  gap: 10px;
}

.product-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 11px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.product-card.muted {
  opacity: 0.62;
}

.product-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream-strong);
}

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

.product-title-row {
  display: grid;
  gap: 5px;
}

.product-title-row h2 {
  margin: 0;
}

.product-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.34;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.product-bottom strong {
  display: block;
  font-size: 1.06rem;
}

.product-bottom small {
  display: block;
  margin-top: 2px;
}

.add-button,
.primary-button,
.secondary-button {
  padding: 0 16px;
  font-weight: 900;
}

.add-button {
  min-width: 92px;
}

.add-button,
.primary-button {
  color: var(--cream);
  background: var(--brand-red);
}

.primary-button.wide,
.secondary-button.wide {
  width: 100%;
}

.primary-button:hover,
.add-button:hover {
  background: var(--brand-red-dark);
}

.secondary-button {
  color: var(--brand-green);
  border: 1px solid rgba(47, 104, 71, 0.28);
  background: rgba(47, 104, 71, 0.08);
}

.text-button {
  padding: 0 12px;
  color: var(--brand-red-dark);
  background: transparent;
  font-weight: 850;
}

.stepper {
  display: grid;
  grid-template-columns: 42px 36px 42px;
  align-items: center;
  overflow: hidden;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.stepper button {
  min-height: 42px;
  border-radius: 0;
  color: var(--brand-red-dark);
  background: transparent;
  font-size: 1.2rem;
  font-weight: 900;
}

.stepper strong {
  text-align: center;
}

.bottom-nav {
  position: fixed;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 736px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(43, 33, 25, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(43, 33, 25, 0.16);
  backdrop-filter: blur(18px);
  z-index: 5;
}

.nav-item {
  padding: 0 6px;
  color: var(--muted);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 900;
}

.nav-item.active {
  color: var(--cream);
  background: var(--brand-green);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.section-heading h1 {
  margin-bottom: 0;
}

.account-heading {
  justify-content: center;
  text-align: center;
}

.account-heading .eyebrow {
  margin-bottom: 0;
  font-size: 1rem;
}

.account-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.account-pills button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-red-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.account-pills button.selected {
  border-color: transparent;
  color: var(--cream);
  background: var(--brand-green);
}

.account-tab-panel {
  display: grid;
  gap: 14px;
}

.delivery-area-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.delivery-area-card strong,
.delivery-area-card small {
  display: block;
}

.delivery-area-card small {
  margin-top: 3px;
  color: var(--muted);
}

.delivery-area-card.ok {
  border-color: rgba(89, 99, 50, 0.28);
  background: rgba(89, 99, 50, 0.08);
}

.delivery-area-card.blocked {
  border-color: rgba(167, 67, 23, 0.34);
  background: rgba(167, 67, 23, 0.08);
}

.delivery-area-card.blocked small {
  color: var(--brand-red-dark);
}

.cart-line,
.compact-order,
.admin-product-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.cart-line {
  grid-template-columns: 60px 1fr auto;
}

.cart-line img,
.admin-product-row img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-line .stepper {
  grid-column: 2;
  width: 122px;
}

.cart-line > strong {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.totals-box,
.done-card,
.form-card,
.empty-state,
.admin-order {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.totals-box div,
.simple-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.totals-box span,
.simple-list span {
  color: var(--muted);
}

.free-delivery-row strong {
  color: var(--brand-green);
}

.grand-total {
  border-top: 1px solid var(--line);
  padding-top: 12px !important;
  font-size: 1.1rem;
}

.inline-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(143, 91, 18, 0.22);
  border-radius: var(--radius);
  color: var(--warning);
  background: rgba(214, 154, 45, 0.1);
  font-weight: 750;
}

.form-card {
  gap: 14px;
}

.form-card textarea {
  resize: vertical;
}

.check-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
}

.check-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--brand-red);
}

.payment-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payment-box legend {
  padding: 0 6px;
}

.payment-box button {
  color: var(--ink);
  background: var(--cream);
  font-weight: 900;
}

.payment-box button.selected {
  color: var(--cream);
  background: var(--brand-green);
}

.payment-box p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.done-view {
  min-height: 60dvh;
  display: grid;
  align-items: center;
}

.done-card {
  justify-items: start;
  padding: 18px;
  box-shadow: var(--shadow);
}

.done-card .logo-mark {
  width: 78px;
  height: 78px;
}

.empty-state {
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.empty-state p {
  margin-bottom: 0;
}

.empty-state.full {
  min-height: 48dvh;
  align-content: center;
}

.address-book {
  display: grid;
  gap: 10px;
}

.address-list {
  display: grid;
  gap: 8px;
}

.address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.address-card.selected {
  border-color: rgba(89, 99, 50, 0.34);
  background: rgba(89, 99, 50, 0.08);
}

.address-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.address-actions button {
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--brand-red-dark);
  background: var(--paper);
  font-size: 0.84rem;
  font-weight: 850;
}

.address-form {
  margin-top: 2px;
}

.pending-order {
  display: grid;
  gap: 10px;
}

.pending-order-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.compact-order {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 9px;
}

.compact-order-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.compact-order-head small {
  display: block;
}

.order-status-pill {
  min-width: 86px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--brand-green);
  background: rgba(47, 104, 71, 0.09);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.order-status-pill.compact {
  display: inline-flex;
  min-width: auto;
  align-items: center;
  justify-content: center;
}

.compact-order-items,
.order-items {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.compact-order-items li,
.order-items li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.compact-order-items strong,
.order-items strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.92rem;
}

.order-tracker {
  display: grid;
  gap: 9px;
  padding-top: 3px;
}

.order-tracker h3 {
  margin: 0;
  font-size: 0.98rem;
}

.tracking-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tracking-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
}

.tracking-list li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.tracking-list strong,
.tracking-list small {
  display: block;
}

.tracking-list small {
  color: var(--muted);
}

.tracking-list li.done > span,
.tracking-list li.active > span {
  border-color: rgba(89, 99, 50, 0.36);
  color: var(--cream);
  background: var(--brand-green);
}

.tracking-list li.active strong {
  color: var(--ink);
}

.tracking-cancelled {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--warning);
  background: rgba(214, 154, 45, 0.1);
  font-weight: 850;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
}

.admin-tabs button {
  color: var(--muted);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-tabs button.selected {
  color: var(--cream);
  background: var(--brand-green);
}

.private-entry-view {
  min-height: min(58dvh, 520px);
  align-content: start;
}

.private-entry-view .admin-login {
  width: min(100%, 460px);
  margin: clamp(42px, 10vh, 96px) auto 0;
}

.private-entry-view .admin-login input {
  text-align: center;
  letter-spacing: 0.12em;
}

.form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-title h2,
.admin-list h2,
.pending-order h2,
.recent-orders h2 {
  margin-bottom: 0;
}

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

.admin-preview {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.admin-product-row {
  grid-template-columns: 62px 1fr;
}

.admin-product-row small {
  display: block;
  margin: 3px 0 7px;
  color: var(--muted);
}

.admin-crm {
  display: grid;
  gap: 14px;
}

.admin-crm-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.admin-crm-header.secondary {
  margin-top: 10px;
}

.admin-crm-header h2 {
  margin: 2px 0 0;
}

.admin-crm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-crm-actions .secondary-button,
.admin-crm-header > .secondary-button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.84rem;
}

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

.crm-kpi {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(89, 99, 50, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.crm-kpi span,
.crm-kpi strong {
  display: block;
}

.crm-kpi span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.crm-kpi strong {
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.05;
}

.crm-tools {
  display: grid;
  gap: 8px;
  align-items: end;
}

.crm-filter {
  display: grid;
  gap: 7px;
}

.crm-filter span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.crm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(58, 31, 13, 0.08);
}

.crm-owner-title {
  align-items: center;
  margin-top: 4px;
}

.crm-owner-title .helper-text {
  margin: 4px 0 0;
}

.crm-customers-panel {
  margin-top: 16px;
}

.crm-customers-table {
  min-width: 880px;
}

.crm-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.84rem;
}

.crm-table th,
.crm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(229, 207, 175, 0.66);
  text-align: left;
  vertical-align: top;
}

.crm-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--brand-red-dark);
  background: rgba(255, 244, 223, 0.97);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-table tr:last-child td {
  border-bottom: 0;
}

.crm-table tr.needs-action td {
  background: rgba(167, 67, 23, 0.05);
}

.crm-table tr.on-route td {
  background: rgba(89, 99, 50, 0.05);
}

.crm-table tr.complete td {
  color: rgba(42, 22, 12, 0.72);
}

.crm-table tr.cancelled td {
  color: rgba(42, 22, 12, 0.54);
  background: rgba(118, 107, 97, 0.06);
}

.crm-table strong,
.crm-table small {
  display: block;
}

.crm-table small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.crm-number {
  width: 48px;
  color: var(--brand-red-dark);
  font-weight: 950;
}

.crm-wide-cell {
  color: var(--muted);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.crm-next-step {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-green);
  background: rgba(89, 99, 50, 0.1);
  font-weight: 900;
}

.crm-status-select {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.pill {
  color: var(--muted);
  background: rgba(118, 107, 97, 0.1);
}

.pill.ok {
  color: var(--brand-green);
  background: rgba(47, 104, 71, 0.1);
}

.row-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.row-actions button {
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font-size: 0.86rem;
  font-weight: 850;
}

.admin-order {
  gap: 14px;
}

.order-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.order-head small {
  display: block;
  color: var(--muted);
}

.admin-order select {
  min-width: 142px;
}

.simple-list {
  display: grid;
  gap: 4px;
}

.simple-list div {
  border-bottom: 1px solid rgba(234, 223, 207, 0.7);
}

.simple-list div:last-child {
  border-bottom: 0;
}

.order-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}

.import-box {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  right: 14px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 13px 14px;
  border: 1px solid rgba(47, 104, 71, 0.18);
  border-radius: var(--radius);
  color: var(--cream);
  background: var(--brand-green);
  box-shadow: 0 16px 28px rgba(43, 33, 25, 0.18);
  font-weight: 850;
  z-index: 6;
}

@media (max-width: 380px) {
  .delivery-area-card {
    grid-template-columns: 1fr;
  }

  .delivery-area-card button {
    width: 100%;
  }

  .address-card {
    grid-template-columns: 1fr;
  }

  .address-actions {
    justify-content: flex-start;
  }

  .compact-order-head {
    grid-template-columns: 1fr auto;
  }

  .order-status-pill {
    grid-column: 1;
    grid-row: 2;
    width: fit-content;
  }

  .product-card {
    grid-template-columns: 86px 1fr;
  }

  .product-card img {
    width: 86px;
    height: 86px;
  }

  .product-bottom {
    grid-template-columns: 1fr;
  }

  .add-button,
  .stepper {
    width: 100%;
  }

  .stepper {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cart-line {
    grid-template-columns: 54px 1fr;
  }

  .cart-line > strong {
    grid-column: 2;
    grid-row: auto;
  }

  .brand-button {
    gap: 8px;
  }

  .logo-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .cart-header-button,
  .call-button {
    min-width: 56px;
    padding: 0 9px;
  }
}

@media (min-width: 680px) {
  .app-shell {
    width: min(calc(100% - 32px), 1040px);
    max-width: none;
    padding: 18px 0 64px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(136px, 160px) auto auto;
    gap: 10px;
    align-items: stretch;
    padding: 10px;
  }

  .brand-button,
  .address-strip,
  .cart-header-button,
  .call-button {
    grid-row: 1;
  }

  .brand-button {
    grid-column: 1;
  }

  .address-strip {
    grid-column: 2;
    align-self: center;
    height: 54px;
    min-height: 54px;
    align-content: center;
    padding: 6px 10px;
  }

  .address-strip span {
    font-size: 0.78rem;
    line-height: 1;
  }

  .address-strip strong {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .cart-header-button {
    grid-column: 3;
    min-width: 112px;
  }

  .call-button {
    grid-column: 4;
    min-width: 82px;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr) 278px;
    align-items: end;
    padding: 24px;
  }

  .featured-card {
    grid-template-columns: 104px 1fr;
  }

  .featured-card button {
    grid-column: 2;
  }

  .shop-view {
    gap: 16px;
  }

  .shop-controls {
    gap: 14px;
  }

  .category-row {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .chip {
    flex: 1 1 148px;
    justify-content: center;
  }

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

  .product-list.single-result {
    grid-template-columns: minmax(0, min(100%, 280px));
    justify-content: start;
  }

  .product-list.single-result .product-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 0;
    padding: 10px;
  }

  .product-list.single-result .product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
  }

  .product-list.single-result .product-bottom {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-list.single-result .add-button,
  .product-list.single-result .stepper {
    width: 100%;
  }

  .product-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 286px;
    padding: 10px;
  }

  .product-card img {
    width: 100%;
    height: clamp(170px, 24vw, 220px);
  }

  .admin-product-row {
    grid-template-columns: 68px 1fr auto;
  }

  .crm-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crm-tools {
    grid-template-columns: minmax(0, 1fr) 170px;
  }

  .row-actions {
    grid-column: auto;
    grid-template-columns: repeat(3, auto);
  }

  .cart-view,
  .checkout-view,
  .account-view,
  .done-view {
    width: min(100%, 860px);
    margin: 0 auto;
  }

  .admin-view {
    width: min(100%, 1040px);
    margin: 0 auto;
  }

  .bottom-nav {
    display: none;
  }

  .toast {
    right: auto;
    left: 50%;
    width: min(calc(100% - 32px), 720px);
    transform: translateX(-50%);
  }
}

@media (min-width: 1180px) {
  .app-shell {
    width: min(calc(100% - 48px), 1840px);
    max-width: none;
    padding: 18px 0 72px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) minmax(150px, 190px) minmax(112px, 144px);
    gap: 12px;
    padding: 10px;
  }

  .brand-button {
    padding: 10px 12px;
  }

  .address-strip {
    grid-column: auto;
    align-self: center;
  }

  .call-button {
    min-width: 86px;
  }

  .main-content {
    gap: 18px;
  }

  .shop-view {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .shop-controls {
    position: static;
    gap: 20px;
  }

  .shop-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 24px;
    padding: 22px 8px 2px;
  }

  .shop-intro h1 {
    font-size: clamp(3.2rem, 5vw, 4.7rem);
  }

  .shop-intro strong {
    justify-self: end;
    margin: 0;
    padding: 10px 16px;
    font-size: 1.03rem;
  }

  .category-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
    padding-bottom: 0;
  }

  .chip {
    width: auto;
    justify-content: center;
    min-height: 56px;
    font-size: 1.05rem;
  }

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

  .product-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 0;
    padding: 14px;
  }

  .product-card img {
    width: 100%;
    height: clamp(260px, 21vw, 380px);
  }

  .product-copy {
    gap: 16px;
  }

  .crm-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .cart-view,
  .checkout-view,
  .account-view,
  .done-view {
    width: min(100%, 860px);
    margin: 0 auto;
  }

  .admin-view {
    width: min(100%, 1280px);
    margin: 0 auto;
  }

  .bottom-nav {
    right: auto;
    left: 50%;
    width: min(calc(100% - 48px), 620px);
    max-width: none;
    transform: translateX(-50%);
  }

  .toast {
    right: auto;
    left: 50%;
    width: min(calc(100% - 48px), 720px);
    transform: translateX(-50%);
  }
}

@media (max-width: 679px) {
  .tenant-shell {
    padding: 10px 10px calc(96px + env(safe-area-inset-bottom));
  }

  .tenant-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border-radius: 26px;
  }

  .tenant-topbar .brand-button {
    grid-column: 1;
    min-height: 74px;
    padding: 8px;
  }

  .tenant-topbar .call-button {
    grid-column: 2;
    min-width: 76px;
    min-height: 74px;
  }

  .tenant-topbar .cart-header-button {
    display: none;
  }

  .tenant-topbar .tenant-service-strip {
    grid-column: 1 / -1;
    min-height: 68px;
    height: auto;
    padding: 10px 12px;
  }

  .shop-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 20px 0 0;
  }

  .shop-intro > div {
    display: contents;
  }

  .shop-intro .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .shop-intro strong {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    padding: 7px 9px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .shop-intro h1 {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    font-size: clamp(2.1rem, 10vw, 2.75rem);
    line-height: 0.92;
    white-space: nowrap;
  }

  .category-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .chip {
    flex: 0 0 auto;
    min-width: 82px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.94rem;
  }

  .product-list,
  .product-list.single-result {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card,
  .product-list.single-result .product-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 10px;
  }

  .product-card img,
  .product-list.single-result .product-card img {
    width: 104px;
    height: 104px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
  }

  .product-copy {
    min-width: 0;
    gap: 8px;
  }

  .product-title-row h2 {
    font-size: 1.05rem;
    line-height: 1.08;
  }

  .product-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .product-bottom > strong {
    font-size: 1rem;
  }

  .add-button,
  .stepper {
    width: 100%;
    min-height: 42px;
  }

  .bottom-nav {
    display: grid;
  }

  .watermark {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
