: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;
}

* {
  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: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 10px 0 8px;
  background: rgba(255, 244, 223, 0.92);
  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;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.58);
  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;
  padding: 0 12px;
  color: var(--cream);
  background: var(--brand-green);
  font-weight: 800;
}

.cart-header-button {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 76px;
  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;
}

.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);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

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

.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: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px 4px;
}

.shop-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 2.7rem);
}

.shop-intro strong {
  flex: 0 0 auto;
  margin-bottom: 3px;
  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 {
  margin: 0 0 7px;
  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;
}

.search-box input,
.form-card input,
.form-card textarea,
.form-card select,
.import-box input,
.admin-order 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 {
  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-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-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;
}

.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);
}

.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;
}

.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;
}

.quiet-admin-link {
  display: flex;
  justify-content: center;
  padding: 4px 0 0;
}

.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);
}

.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);
}

.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;
  }

  .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: 44px;
    min-height: 44px;
    align-content: center;
    padding: 5px 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-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;
  }

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

  .cart-view,
  .checkout-view,
  .account-view,
  .admin-view,
  .done-view {
    width: min(100%, 860px);
    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 0 16px;
  }

  .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: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 8px 2px;
  }

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

  .shop-intro strong {
    justify-self: auto;
    margin: 0 8px 10px 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;
  }

  .cart-view,
  .checkout-view,
  .account-view,
  .admin-view,
  .done-view {
    width: min(100%, 860px);
    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%);
  }
}
