:root {
  --fox: #f97316;
  --fox-dark: #ea580c;
  --fox-deep: #c2410c;
  --fox-soft: #fff7ed;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --card: #ffffff;
  --bg: #f8fafc;
  --disabled: #f1f5f9;
  --zepto: #7c3aed;
  --instamart: #ea580c;
  --radius: 16px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Source Sans 3", sans-serif;
  --shell: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

/* —— Header —— */

.app-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.app-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "menu search loc";
  align-items: center;
  gap: 8px;
}

.app-header__inner--plain {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "menu loc";
}

#menu-btn { grid-area: menu; }
.search-form { grid-area: search; }
.header-location { grid-area: loc; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
}
.icon-btn:hover { background: var(--disabled); }

.app-header__brand {
  display: flex;
  width: 24px;
  height: 24px;
}

.app-header__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

@keyframes fox-idle {
  0%,
  100% { transform: translateY(0) rotate(-1.2deg) scale(1); }
  50% { transform: translateY(-3px) rotate(1.4deg) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .app-header__logo {
    animation: none;
  }

  .product-card--skeleton .skel {
    animation: none;
  }
}

.app-header__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.app-header__tag {
  margin: 0.12rem 0 0;
  font-size: 0.8rem;
  color: var(--fox-dark);
  font-weight: 600;
}

.header-location {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  max-width: min(100%, 11rem);
  min-width: 0;
  text-align: left;
  padding: 0 12px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.header-location:hover {
  background: var(--disabled);
}

.header-location__pin {
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--fox-deep);
}
.header-location__pin svg { display: block; width: 16px; height: 16px; }

#header-location-label {
  display: block;
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page__main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.search-well {
  padding: 1.1rem 1.15rem 1rem;
  margin-bottom: 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
}

.search-well__kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fox-dark);
}

.idle {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.idle__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.idle__copy {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

/* —— Search + ETA —— */

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.search-field {
  position: relative;
  min-width: 0;
}

.search-mark {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  object-fit: contain;
  pointer-events: none;
}

.search-ghost {
  position: absolute;
  z-index: 1;
  left: 44px;
  right: 16px;
  top: 0;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.search-ghost[hidden] {
  display: none;
}

#search-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 16px;
  background: var(--card);
}

#search-input:focus {
  outline: 2px solid var(--fox-dark);
  outline-offset: 1px;
  border-color: var(--line);
}

/* —— Modal —— */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal--open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal__panel.dialog.loc {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 28px 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
}
.loc__head { display: flex; align-items: center; gap: 12px; margin: 0 36px 14px 0; }
.loc__pin {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--fox-soft);
  color: var(--fox-deep);
}
.dialog.loc .modal__title { margin: 0; font-size: 22px; }
.loc__intro { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
.loc__note { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.loc__saved {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fox-soft);
  text-align: left;
}
.loc__saved-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.loc__saved strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
}
.location-tabs { margin: 20px 0 16px; }
.loc__gps {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.loc__gps svg { color: var(--fox-dark); }
.loc__gps:hover { background: var(--fox-soft); border-color: var(--fox); }
.loc__hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center; }
.dialog.loc .field { font-size: 14px; font-weight: 600; }
.dialog.loc #places-input {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 16px;
}
.dialog.loc .btn--primary { min-height: 52px; margin-top: 20px; }

.modal__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.modal__subtitle {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal__status {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
}

.loc__resolved {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}

.loc__next {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.modal__status--info,
.modal__status--loading {
  background: #f1f5f9;
  color: var(--ink);
}

.modal__status--error {
  background: #fef2f2;
  color: #991b1b;
}

.modal__actions {
  margin-top: 1.25rem;
}

.location-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  background: var(--disabled);
  border-radius: 12px;
}

.location-tab {
  flex: 1;
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.location-tab--active {
  background: var(--card);
  color: var(--ink);
  outline: 1px solid var(--line);
}

.location-mode {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.location-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.location-hint--warn {
  color: #92400e;
  background: #fffbeb;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

#places-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: #fff;
}

.btn {
  padding: 0 16px;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

.btn--primary:hover:not(:disabled) {
  background: var(--fox-dark);
}

.btn--secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--secondary:hover:not(:disabled) {
  background: #f8fafc;
}

/* —— Search + ETA —— */

#search-btn {
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: var(--fox-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#search-btn:hover:not(:disabled) { background: var(--fox-deep); }
#search-btn:disabled { background: var(--disabled); color: var(--muted); cursor: default; }

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 25;
  max-height: min(360px, 50vh);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.suggest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

.suggest__thumb {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  background: var(--disabled);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.suggest__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest__typed {
  color: var(--muted);
  font-weight: 500;
}

.suggest__rest {
  color: var(--ink);
  font-weight: 700;
}

.suggest__item:last-child { border-bottom: 0; }
.suggest__item:hover { background: var(--disabled); }

.eta-bar { margin: 0 0 12px; }
.eta-vendors { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.eta-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.eta-chip__logo { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.eta-chip--muted, .eta-chip--unserviceable { color: var(--muted); }

.status {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.status--loading {
  background: #f1f5f9;
  color: var(--ink);
}

.status--error {
  background: #fef2f2;
  color: #991b1b;
}

.status--warning {
  background: #fffbeb;
  color: #92400e;
}

.status--empty {
  background: #f1f5f9;
  color: #475569;
}

.search-loader {
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
}

.search-loader[hidden] {
  display: none !important;
}

.search-loader__marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 224px;
}

.search-loader__mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  opacity: 0.28;
}

@media (prefers-reduced-motion: no-preference) {
  .search-loader__mark {
    transition: opacity 280ms ease;
  }
}

.search-loader__mark.is-on {
  opacity: 1;
}


.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-width: 0;
  padding: 0 0 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.product-hero {
  position: relative;
  width: 100%;
}

.product-image-wrap,
.skel--img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  background: var(--disabled);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image--placeholder {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: 8px;
}

.cart-add {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-add svg { width: 14px; height: 14px; display: block; }
.cart-add[aria-pressed="true"] { background: var(--fox-soft); border-color: transparent; color: var(--fox-deep); }

.product-identity {
  min-width: 0;
  display: grid;
  align-items: center;
  height: 2.6em;
  padding: 0 12px;
  text-align: center;
}
.product-name {
  margin: 0;
  max-height: 2.6em;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vendor-row { display: flex; flex-direction: column; margin-top: auto; padding: 0 12px; }
.vendor-offer {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.vendor-offer--link:hover,
.vendor-offer--link:active { background: var(--disabled); }
.vendor-offer:has(.pack-list:not([hidden])) { z-index: 4; }
.vendor-offer__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.vendor-offer__hit:focus-visible {
  outline: 2px solid var(--fox-deep);
  outline-offset: -2px;
}
.vendor-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.pack-plain {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.pack-menu { position: relative; z-index: 2; }
.pack-toggle {
  height: 26px;
  margin: 0;
  padding: 0 20px 0 8px;
  border: 0;
  border-radius: 8px;
  background: var(--disabled) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 6px center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pack-list {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 4px);
  z-index: 6;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.pack-list[hidden] { display: none !important; }
.pack-pick {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.pack-pick[aria-selected="true"] { background: var(--disabled); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fox-soft);
  color: var(--fox-deep);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
}
.vendor-offer__buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
  text-align: right;
  text-decoration: none;
  color: inherit;
}
.vendor-price-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}
.vendor-amount {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.vendor-outbound {
  width: 11px;
  height: 11px;
  display: block;
  color: var(--muted);
}
.vendor-caption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  margin-top: 1px;
}
.vendor-caption__sep { color: var(--muted); font-size: 11px; line-height: 1; }
.vendor-unit { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.vendor-unit--lower { font-weight: 700; color: var(--ink); }

.stack--home { display: flex; flex-direction: column; gap: 16px; }
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.index { margin: 0; padding: 0; list-style: none; }
.row-btn, .browse__back, .back {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.browse__back, .back { width: auto; min-height: 44px; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.row-btn > span:nth-child(2) { min-width: 0; flex: 1; }
.row-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: var(--disabled);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.row-mark svg { width: 22px; height: 22px; display: block; }
.row-btn strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.preview {
  display: block;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.chev { color: var(--muted); font-size: 18px; line-height: 1; }
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.product-card--skeleton .skel {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--disabled), #fff, var(--disabled));
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
}
.product-card--skeleton .skel--img { margin: 0; border-radius: 0; }
.skel--title { height: 2.6em; margin: 0; }
.skel--offer { height: 28px; margin-top: 8px; }
.meta { display: none; }

.sheet {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 130;
}
.sheet__panel {
  position: absolute;
  left: 0;
  top: 0;
  width: min(100%, 300px);
  height: 100%;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 16px 20px 24px;
}
.sheet__head { display: flex; justify-content: space-between; align-items: center; }
.sheet__brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sheet__brand img { width: 24px; height: 24px; display: block; }
.sheet__brand p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.menu-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.menu-link[aria-current="page"] { font-weight: 700; color: var(--fox-dark); }
.menu-link--apart {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.dialog {
  position: relative;
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.dialog h2 {
  margin: 0 40px 8px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.dialog .close { position: absolute; top: 12px; right: 12px; }
.lede { margin: 0; color: var(--muted); font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  font: inherit;
  font-weight: 400;
  background: var(--card);
}
.field input { height: 44px; }
.field textarea { min-height: 140px; padding: 12px 16px; resize: vertical; }
.primary {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--fox-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack.stack--home { gap: 16px; }
.contact__form { gap: 12px; margin-top: 16px; }
.contact__error { margin: 0; color: #991b1b; font-size: 14px; font-weight: 600; }
#contact-sent { margin: 12px 0 0; font-family: var(--font-display); font-weight: 700; }
.dialog.coffee { width: min(100%, 460px); padding: 28px 28px 24px; text-align: left; }
.coffee__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.coffee__mark { width: 44px; height: 44px; display: block; }
.coffee__kicker {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--fox-deep);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fox-deep);
}
.coffee__lead { margin: 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.5; }
.coffee__body { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.coffee__thanks { margin: 16px 0 0; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
.coffee__foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.coffee__note { margin: 0; color: var(--muted); font-size: 13px; }
.bmc img { width: 217px; height: 60px; display: block; }

.doc { max-width: 65ch; }
.doc h2 {
  margin: 32px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.doc h2:first-of-type { margin-top: 24px; }
.doc p { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.6; }
.doc p + p { margin-top: 16px; }
.doc-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fox-deep);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.doc .lede { margin-top: 12px; }
.about-doc .page-title { margin-bottom: 8px; }
.about-doc p + p { margin-top: 18px; }
.about-doc .about-label {
  margin: 40px 0 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fox-deep);
}
.about-doc .about-label + p { margin-top: 0; }
.about-doc .about-sign {
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.doc blockquote.pull {
  margin: 36px 0;
  padding: 0;
  border: 0;
  font-style: normal;
}
.doc blockquote.pull p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.doc blockquote.pull p::before { content: "\201C"; }
.doc blockquote.pull p::after { content: "\201D"; }
.doc blockquote.pull footer {
  margin: 14px 0 0;
  text-align: right;
  font-family: var(--font);
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.doc .back { margin-top: 32px; }

@media (max-width: 719px) {
  body { font-size: 14px; line-height: 1.45; }
  .app-header__inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "menu loc" "search search";
  }
  .app-header__inner.app-header__inner--plain {
    grid-template-areas: "menu loc";
  }
  .header-location { justify-self: end; width: auto; max-width: min(100%, 11rem); padding: 0 4px 0 8px; }
  #header-location-label { font-size: 13px; }
  .product-name { font-size: 12px; }
  .vendor-amount { font-size: 13px; }
  .pack-plain, .pack-toggle, .pack-pick { font-size: 11px; }
  .search-form { display: block; }
  .suggest { max-height: min(280px, 45vh); }
  #search-input { height: 44px; padding-right: 16px; font-size: 16px; }
  .search-ghost { right: 16px; }
  #search-btn { display: none; }
  .page__main { padding-top: 8px; }
  .section-title, .row-btn strong, .browse__back, .back, .menu-link, .primary { font-size: 14px; }
  .preview, .about-doc .about-label { font-size: 12px; }
  .page-title, .doc blockquote.pull p, .about-doc .about-sign, .dialog h2 { font-size: 18px; }
  .doc p, .lede, .coffee__lead, .coffee__body, .coffee__thanks { font-size: 14px; }
  .doc h2 { font-size: 18px; }
  .dialog.loc .modal__title { font-size: 18px; }
  .loc__intro { font-size: 14px; }
  .loc__note { display: none; }
  .loc__pin { width: 32px; height: 32px; flex-basis: 32px; }
  .loc__head { margin: 0 36px 8px 0; }
  .location-tabs { margin: 12px 0 10px; }
  .location-tab { min-height: 36px; font-size: 13px; }
  .location-mode { min-height: 0; }
  .loc__gps { min-height: 44px; font-size: 14px; }
  .loc__hint { font-size: 12px; }
  .dialog.loc .btn--primary { min-height: 44px; margin-top: 12px; }
  .dialog.loc #places-input { height: 44px; }
  .results { gap: 10px; }
}

.page__main--doc .eta-bar { display: none !important; }

@media (min-width: 720px) {
  .app-header__inner { padding: 12px 32px; }
  .page__main { padding: 40px 32px 64px; }
  .page__main--doc { max-width: 960px; }
  .page__main--doc .doc { max-width: none; }
  .page-title { font-size: 32px; }
  .header-location { max-width: 220px; }
  #header-location-label { max-width: 220px; }
  .product-hero { display: block; width: 100%; }
  .product-image-wrap,
  .skel--img { aspect-ratio: auto; }
  .skel--img { width: 100%; height: 180px; }
  .product-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    background: var(--disabled);
    overflow: hidden;
  }
  .product-image {
    position: static;
    inset: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .product-name { font-size: 16px; }
  .cart-add { width: 36px; height: 36px; }
  .cart-add svg { width: 16px; height: 16px; }
  .vendor-offer { grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; padding: 8px 0; }
  .vendor-logo { width: 22px; height: 22px; }
  .vendor-amount { font-size: 16px; }
  .pack-plain, .pack-pick { font-size: 12px; }
  .results { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card--skeleton .skel { animation: none; }
  .search-loader__mark,
  .search-loader__mark.is-on {
    opacity: 1;
    transition: none;
  }
}

@keyframes skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
