/* ==========================================================================
   ODG marketplace feed - Shopy marketplace translated to food.
   Loaded only on the customer For-you / Food-AI routes.
   Product cards, search + category dropdown, banner carousel, rails and
   skeletons all mirror Shopy's marketplace geometry (radius, pills, hairlines).
   ========================================================================== */

.customer-home-main {
  --feed-red: #ED1C24;
  --feed-ink: #000;
  --feed-muted: #636363;
  --feed-line: #e9e9e9;
  --feed-soft: #f0f0f0;
  --feed-white: #fff;
  --feed-sk: #ebedef;
  --feed-sheen: rgba(255, 255, 255, 0.92);
}

/* ── Welcome hero (Shopy .a-hero) ─────────────────────────────────────── */
.feed-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.62rem;
  padding: clamp(1.25rem, 3.4vw, 1.9rem);
  border: 1px solid var(--feed-line);
  border-radius: 1.35rem;
  background: var(--feed-white);
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.feed-hero--compact { padding: clamp(1.05rem, 2.6vw, 1.5rem); }
.feed-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border-radius: 99px;
  background: var(--feed-ink);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.feed-hero__pill [data-lucide] { color: var(--feed-red); width: 13px; height: 13px; }
.feed-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  color: var(--feed-ink);
}
.feed-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--feed-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── Banner carousel (Shopy .g-banner) ────────────────────────────────── */
.feed-banner { margin: 4px 0 6px; }
.g-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: inline-size;
}
.g-track { display: flex; width: 100%; min-width: 0; transition: transform 0.45s ease; touch-action: pan-y; }
.g-slide {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  min-height: clamp(9.5rem, 20vw, 12.5rem);
  overflow: hidden;
  background: #141414;
  color: #fff;
}
.g-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.38) 56%, rgba(0,0,0,.1) 100%);
  pointer-events: none;
}
.g-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.34rem;
  max-width: 82%;
  padding: 1rem clamp(1rem, 3vw, 1.6rem);
}
.g-eyebrow {
  display: inline-flex;
  padding: 0.24rem 0.7rem;
  border-radius: 99px;
  background: rgba(255,255,255,.2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* .g-slide scoping out-specifies theme.css's global `body.home-body strong`
   ink rule - banner headlines always sit over a dark photo. */
.g-slide .g-copy strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.06;
  font-size: clamp(1.05rem, 3.4vw, 1.55rem);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.g-sub { max-width: 22rem; font-size: 0.78rem; line-height: 1.4; opacity: .92; }
.feed-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding: 0.42rem 1rem;
  border: 0;
  border-radius: 99px;
  background: #fff;
  color: #000;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.feed-banner__cta [data-lucide] { width: 13px; height: 13px; }
.feed-banner__cta:hover { background: var(--feed-red); color: #fff; }
.g-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.38rem;
  padding: 0;
}
.g-dots button {
  width: 0.42rem; height: 0.42rem; padding: 0;
  border: 0; border-radius: 99px;
  background: rgba(255,255,255,.45);
  transition: width .25s ease, background-color .25s ease;
  cursor: pointer;
}
.g-dots button.on { width: 1.25rem; background: #fff; }

/* ── Section heads ────────────────────────────────────────────────────── */
.a-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 22px 0 10px;
  scroll-margin-top: 5rem;
}
.a-sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--feed-ink);
}
.feed-more {
  border: 0; background: transparent; padding: 0;
  color: var(--feed-red);
  font-size: 0.84rem; font-weight: 700; cursor: pointer;
}
.feed-more:hover { text-decoration: underline; }
.feed-count { color: var(--feed-muted); font-size: 0.8rem; font-weight: 600; }

/* ── Horizontal rails ─────────────────────────────────────────────────── */
.a-rail {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.15rem 2px 0.9rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.a-rail::-webkit-scrollbar { display: none; }

/* ── Dish / product cards (Shopy .product) ─────────────────────────────── */
.a-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.4rem, 1fr));
  gap: 0.8rem;
}
.dish-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 0;
  padding: 0;
  gap: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .18s ease;
}
.dish-card:hover { transform: translateY(-2px); }
.dish-card--rail { flex: 0 0 clamp(172px, 46vw, 216px); width: clamp(172px, 46vw, 216px); min-width: 0; }

.dish-card__media {
  position: relative;
  height: 8.6rem;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fafafa;
}
.dish-card--rail .dish-card__media { height: 7.6rem; }
.dish-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.dish-card:hover .dish-card__media img { transform: scale(1.05); }

/* interim tile until the packshot lands */
.dish-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: var(--feed-soft);
}
.dish-tile__art {
  width: 52%;
  height: 52%;
  object-fit: contain;
  opacity: .78;
  /* the doodle set ships a few coloured strokes (chili, tomato); the Shopy
     palette is strict red/black/white, so neutralise every fallback mark */
  filter: grayscale(1) brightness(0.28);
}
/* Monochrome Shopy palette: category tiles stay neutral grey, no cream. */
.dish-tile--grills, .dish-tile--drinks, .dish-tile--chops,
.dish-tile--swallow, .dish-tile--rice { background: var(--feed-soft); }

.dish-wish {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem;
  border: 0; border-radius: 50%;
  background: #fff; color: #090909;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
  transition: color .2s ease;
}
.dish-wish [data-lucide] { width: 15px; height: 15px; }
.dish-wish:hover, .dish-wish.is-saved { color: var(--feed-red); }

.dish-badge {
  position: absolute;
  top: 0.55rem; left: 0.55rem;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: rgba(255,255,255,.94);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.dish-badge--sale { background: var(--feed-red); color: #fff; }

.dish-price-pill {
  position: absolute;
  bottom: 0.5rem; left: 0.5rem;
  padding: 0.22rem 0.62rem;
  border-radius: 99px;
  background: var(--feed-red);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dish-card__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.6rem 0.65rem 0.72rem;
  min-width: 0;
}
.dish-card__info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--feed-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-card--rail .dish-card__info h3 {
  -webkit-line-clamp: 1;
  font-size: 0.84rem;
}
.dish-seller {
  color: var(--feed-muted);
  font-size: 0.76rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dish-rating, .dish-eta, .dish-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--feed-ink);
}
.dish-rating [data-lucide] { color: var(--feed-red); width: 12px; height: 12px; }
.dish-rating svg[data-lucide="star"],
.k-card__rating svg[data-lucide="star"],
.feed-suggest__rating svg[data-lucide="star"] { fill: currentColor !important; stroke-width: 0; }
.dish-rating small { color: var(--feed-muted); font-weight: 500; }
.dish-rating--new { color: var(--feed-muted); font-weight: 600; }
.dish-rating--new [data-lucide] { color: var(--feed-muted); width: 12px; height: 12px; }
.dish-eta, .dish-stock { color: var(--feed-muted); font-weight: 700; font-size: 0.72rem; }
.dish-eta [data-lucide] { width: 11px; height: 11px; }
.dish-stock.is-low { color: var(--feed-red); }

.dish-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin-top: 0.32rem;
}
.dish-price { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.dish-price strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--feed-ink);
  font-variant-numeric: tabular-nums;
}
.dish-price del { color: var(--feed-muted); font-size: 0.74rem; }
.dish-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--feed-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.dish-time [data-lucide] { color: var(--feed-red); width: 11px; height: 11px; }

/* ── Search + category dropdown (Shopy .a-search) ─────────────────────── */
.feed-search-wrap { position: relative; margin: 12px 0 4px; width: 100%; max-width: 100%; }
.a-search.feed-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0.5rem 0.2rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: #f4f4f5;
  box-shadow: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.a-search.feed-search:focus-within {
  background: #ededf0;
  box-shadow: 0 0 0 2px #111315;
}
.a-search.feed-search > [data-lucide] { color: #111315; width: 17px; height: 17px; flex: 0 0 auto; }
.a-search.feed-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--feed-ink);
  font-size: 0.92rem; font-weight: 500;
  padding: 0.65rem 0;
}
.a-search.feed-search input::placeholder { color: var(--feed-muted); }
.a-search.feed-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.feed-search__clear {
  display: flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem;
  border: 0; border-radius: 50%;
  background: #e4e4e7; color: var(--feed-ink);
  cursor: pointer; flex: 0 0 auto;
}
.feed-search__clear [data-lucide] { width: 12px; height: 12px; }
.a-catbtn {
  display: inline-flex; align-items: center; gap: 0.32rem;
  flex: 0 0 auto;
  padding: 0.44rem 0.85rem;
  border: 0;
  background: #ffffff;
  color: var(--feed-ink);
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
}
.a-catbtn [data-lucide] { color: var(--feed-muted); width: 12px; height: 12px; }
.a-catbtn:hover { color: var(--feed-red); }
.a-chips.feed-cat-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid var(--feed-line);
  border-radius: 0.9rem;
  background: var(--feed-white);
  box-shadow: 0 12px 34px rgba(0,0,0,.10);
}
.a-chips.feed-cat-menu[hidden] { display: none; }
.a-chips.feed-cat-menu button {
  padding: 0.52rem 0.75rem;
  border: 0; border-radius: 0.6rem;
  background: transparent;
  color: var(--feed-ink);
  font-size: 0.85rem; font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.a-chips.feed-cat-menu button:hover { background: var(--feed-soft); }
.a-chips.feed-cat-menu button.active { color: var(--feed-red); background: var(--feed-soft); font-weight: 800; }

/* live suggestion dropdown */
.feed-suggest {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 60;
  width: min(26rem, 78vw);
  max-height: 26rem;
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid var(--feed-line);
  border-radius: 0.95rem;
  background: var(--feed-white);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  text-align: left;
}
.feed-suggest__label {
  margin: 0.2rem 0.35rem 0.1rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--feed-muted);
}
.feed-suggest__none { margin: 0; padding: 0.7rem 0.75rem; color: var(--feed-muted); font-size: 0.84rem; }
.feed-suggest__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.42rem 0.5rem;
  border: 0; border-radius: 0.65rem;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.feed-suggest__row:hover { background: var(--feed-soft); }
.feed-suggest__row img,
.feed-suggest__thumb,
.feed-suggest__kicon {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 0.6rem;
  object-fit: cover;
}
.feed-suggest__thumb { display: flex; align-items: center; justify-content: center; font-size: 1.25rem; background: var(--feed-soft); overflow: hidden; }
.feed-suggest__thumb img { width: 60%; height: 60%; object-fit: contain; opacity: .78; filter: grayscale(1) brightness(0.28); }
.feed-suggest__kicon {
  display: flex; align-items: center; justify-content: center;
  background: var(--feed-ink); color: #fff;
}
.feed-suggest__kicon [data-lucide] { width: 17px; height: 17px; }
.feed-suggest__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.feed-suggest__text strong {
  font-size: 0.86rem; font-weight: 700; color: var(--feed-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-suggest__text small {
  font-size: 0.74rem; color: var(--feed-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-suggest__row > b {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.8rem; font-weight: 800; color: var(--feed-ink);
  font-variant-numeric: tabular-nums;
}
.feed-suggest__rating { color: var(--feed-ink) !important; display: inline-flex; align-items: center; gap: 0.2rem; }
.feed-suggest__rating [data-lucide] { color: var(--feed-red); width: 12px; height: 12px; }
.feed-suggest__all {
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem;
  border: 0; border-top: 1px solid var(--feed-line);
  background: transparent;
  color: var(--feed-red);
  font-size: 0.82rem; font-weight: 800;
  cursor: pointer;
  border-radius: 0 0 0.7rem 0.7rem;
}
.feed-suggest__all [data-lucide] { width: 13px; height: 13px; }

.feed-none {
  margin: 0.4rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px dashed var(--feed-line);
  border-radius: 1rem;
  color: var(--feed-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.feed-none span { color: var(--feed-ink); font-weight: 800; }

/* ── Kitchen cards rail ───────────────────────────────────────────────── */
.feed-kitchens { padding-bottom: 1.4rem; }
.k-card {
  flex: 0 0 clamp(15.5rem, 42vw, 18rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--feed-line);
  border-radius: 1rem;
  background: var(--feed-white);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color .18s ease, transform .18s ease;
}
.k-card:hover { border-color: #d2d2d2; transform: translateY(-2px); }
.k-card__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%;
  background: var(--feed-red); color: #fff;
  font-family: var(--font-display);
  font-weight: 800; font-size: 0.92rem;
}
.k-card__body { display: flex; flex-direction: column; gap: 0.14rem; min-width: 0; flex: 1; }
.k-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 700; color: var(--feed-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.k-card__body p {
  margin: 0;
  font-size: 0.75rem; color: var(--feed-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.k-card__meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; margin-top: 0.18rem; font-size: 0.72rem; color: var(--feed-muted); }
.k-card__meta span { display: inline-flex; align-items: center; gap: 0.22rem; }
.k-card__meta [data-lucide] { width: 11px; height: 11px; }
.k-card__rating { color: var(--feed-ink); font-weight: 800; }
.k-card__rating [data-lucide] { color: var(--feed-red); }
.k-card__from { font-weight: 700; color: var(--feed-muted); }
.k-card > [data-lucide] { color: #bdbdbd; width: 16px; height: 16px; flex: 0 0 auto; }

/* ── Skeletons: same shell / cutout as the loaded cards ───────────────── */
/* The skeleton must never be wider than the viewport: fixed-px bars wider
   than a phone (340/420/460px) used to stick out of their card and force
   the whole page to overflow. Clamp everything to the container. */
.feed-skel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.feed-skel > * { min-width: 0; }
@keyframes feed-skel-sweep { to { transform: translateX(101%); } }
.sk-bar {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 99px;
  background: var(--feed-sk);
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
}
.sk-bar::after,
.dish-card.skel .dish-card__media i::after,
.dish-card.skel .dish-card__info i::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 25%, var(--feed-sheen) 50%, transparent 75%);
  transform: translateX(-101%);
  animation: feed-skel-sweep 1.15s ease-in-out infinite;
}
.feed-banner-skel {
  height: clamp(9.5rem, 20vw, 12.5rem);
  border-radius: 1rem;
  background: var(--feed-sk);
  position: relative;
  overflow: hidden;
  margin: 4px 0 6px;
  max-width: 100%;
  min-width: 0;
}
.feed-banner-skel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 25%, var(--feed-sheen) 50%, transparent 75%);
  transform: translateX(-101%);
  animation: feed-skel-sweep 1.15s ease-in-out infinite;
}
.feed-search-skel {
  margin: 18px 0 6px;
  border-radius: 99px !important;
  width: min(460px, 100%) !important;
  max-width: 100%;
}
.dish-card.skel { pointer-events: none; border-color: var(--feed-sk); }
.dish-card.skel .dish-card__media { background: transparent; }
.dish-card.skel .dish-card__media i { display: block; width: 100%; height: 100%; background: var(--feed-sk); position: relative; overflow: hidden; }
.dish-card.skel .dish-card__info { display: flex; flex-direction: column; }
.dish-card.skel .dish-card__info i {
  display: block;
  height: 0.68rem;
  border-radius: 99px;
  background: var(--feed-sk);
  position: relative;
  overflow: hidden;
}
.dish-card.skel .l0 { width: 44%; }
.dish-card.skel .l1 { width: 88%; }
.dish-card.skel .l2 { width: 56%; }
.dish-card.skel .l3 { width: 66%; }
.dish-card.skel .dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.35rem; }
.dish-card.skel .dish-foot i { display: block; height: 0.82rem; border-radius: 99px; background: var(--feed-sk); position: relative; overflow: hidden; }
.dish-card.skel .l4 { width: 38%; }
.dish-card.skel .l5 { width: 26%; }
.order-skel {
  border: 1px solid var(--feed-line);
  border-radius: 1rem;
  background: var(--feed-white);
  padding: 1rem 1.1rem;
  margin: 0 0 0.7rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.order-skel .sk-bar { max-width: 100%; }
.a-sec-head .sk-bar { min-width: 0; flex-shrink: 1; }
@media (prefers-reduced-motion: reduce) {
  .sk-bar::after, .feed-banner-skel::after,
  .dish-card.skel .dish-card__media i::after,
  .dish-card.skel .dish-card__info i::after { animation: none; }
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 460px) {
  .a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .dish-card__media { height: 7.8rem; }
  .dish-card--rail .dish-card__media { height: 7rem; }
  .feed-search-wrap { max-width: none; }
  .feed-suggest { width: 100%; }
  .g-sub { display: none; }
}

/* ============================================================================
   POLISH PASS (customer discovery)
   ---------------------------------------------------------------------------
   The feed is the product's front room, so it gets the same tactile language
   the marketing pages use: cards that lift, media that breathes, a hero that
   is a decision surface, and type that stops truncating dish names to one
   clipped line. Nothing here changes markup or behaviour.
   ========================================================================== */

/* Hero: two columns, so the right half is not empty white. */
body.home-body .feed-hero {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: end;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--hair, #e7e4de);
  border-radius: var(--r-panel, 20px);
  background:
    radial-gradient(120% 140% at 88% -10%, rgba(237, 28, 36, .07) 0%, rgba(237, 28, 36, 0) 58%),
    #ffffff;
  box-shadow: var(--el-1, 0 1px 2px rgba(23, 19, 16, .05));
}
@media (min-width:900px) {
  body.home-body .feed-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; }
}
body.home-body .feed-hero h1 {
  margin: .5rem 0 .4rem;
  font-size: clamp(1.75rem, 1.05rem + 2.4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
body.home-body .feed-hero p {
  max-width: 46ch;
  color: var(--muted, #6d675f);
  font-size: .95rem;
}
body.home-body .feed-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill, 999px);
  background: #171310;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
body.home-body .feed-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
}
@media (min-width:900px) {
  body.home-body .feed-hero__actions { justify-content: flex-end; }
}
body.home-body .feed-hero__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .5rem;
  margin: -.3rem -.5rem;
  border-radius: var(--r-in, 8px);
  color: var(--ink, #171310);
  font-weight: 600;
  font-size: .88rem;
  transition: background-color .16s ease, gap .16s ease;
}
body.home-body .feed-hero__link:hover { background: rgba(237, 28, 36, .07); gap: .5rem; }

/* Section heads: baseline-aligned, quiet count. */
body.home-body .a-sec-head.feed-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: .75rem;
  margin: clamp(24px, 3.6vw, 36px) 0 14px;
}
body.home-body .a-sec-head.feed-sec-head h2 {
  font-size: clamp(1.1rem, .98rem + .5vw, 1.38rem);
  letter-spacing: -.022em;
  margin: 0;
}
body.home-body .feed-more {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #111315;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
}
body.home-body .feed-count {
  color: var(--faint, #938d84);
  font-size: .78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
body.home-body .feed-none {
  padding: 1.1rem 1.2rem;
  border: 0;
  border-radius: var(--r-card, 14px);
  background: #f6f6f6;
  color: var(--muted, #6d675f);
}
body.home-body .feed-none span { color: var(--ink, #171310); font-weight: 600; }

/* Cards: frameless Uber Eats media tile, real media, single-line aligned titles. */
body.home-body .dish-card {
  border-radius: 0;
  border: 0;
  padding: 0;
  gap: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: transform .16s ease;
}
body.home-body .dish-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f4f5;
}
body.home-body .dish-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
@media (hover:hover) {
  body.home-body .dish-card:hover { transform: translateY(-2px); box-shadow: none; border-color: transparent; }
  body.home-body .dish-card:hover .dish-card__media img { transform: scale(1.04); }
  body.home-body .dish-card:active { transform: translateY(-1px); }
}
body.home-body .dish-card__info { display: grid; gap: .22rem; padding: .55rem .1rem .25rem; }
body.home-body .dish-card__info h3,
body.home-body .dish-card .dish-card__info h3 {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ink, #111315);
  margin: 0;
}
body.home-body .dish-seller {
  color: var(--muted, #6b7280);
  font-size: .78rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.home-body .dish-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .1rem;
  padding-top: 0;
  border-top: 0;
}
body.home-body .dish-price strong {
  font-family: var(--font-display);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #111315);
}
body.home-body .dish-price del { color: var(--faint, #938d84); font-size: .76rem; font-variant-numeric: tabular-nums; }
body.home-body .dish-time, body.home-body .dish-eta, body.home-body .dish-stock {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
  font-variant-numeric: tabular-nums;
}
body.home-body .dish-stock.is-low { color: var(--st-bad, #a02218); }
body.home-body .dish-badge, body.home-body .dish-price-pill {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  box-shadow: none;
}
body.home-body .dish-wish { transition: background-color .16s ease, color .16s ease, transform .12s ease; }
@media (hover:hover) {
  body.home-body .dish-wish:hover { transform: translateY(-1px) scale(1.06); }
  body.home-body .dish-wish:active { transform: scale(.92); }
}
body.home-body .dish-wish.is-saved { color: var(--red, #ED1C24); }

/* Rails: snap, and full-bleed on mobile so cards scroll edge-to-edge. */
body.home-body .a-rail.feed-rail,
body.home-body .a-rail.feed-kitchens {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  min-width: 0;
  max-width: 100%;
}
body.home-body .a-rail.feed-rail::-webkit-scrollbar,
body.home-body .a-rail.feed-kitchens::-webkit-scrollbar { display: none; }
body.home-body .a-rail.feed-rail > *, body.home-body .a-rail.feed-kitchens > * { scroll-snap-align: start; }
body.home-body .dish-card--rail { flex: 0 0 clamp(176px, 22vw, 218px); width: clamp(176px, 22vw, 218px); min-width: 0; max-width: 224px; }
@media (max-width: 767px) {
  body.home-body .a-rail.feed-rail,
  body.home-body .a-rail.feed-kitchens {
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    scroll-padding-inline: 16px !important;
    box-sizing: border-box !important;
  }
  body.home-body .a-rail.feed-rail > .dish-card,
  body.home-body .dish-card--rail {
    flex: 0 0 calc((100vw - 44px) / 2) !important;
    width: calc((100vw - 44px) / 2) !important;
    min-width: 156px !important;
    max-width: 210px !important;
  }
}

/* Catalog grid: let it own the width it is given. */
body.home-body .a-grid.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 540px) {
  body.home-body .a-grid.feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
}

/* Promo banner: sentence-case display line, readable scrim. */
body.home-body .g-banner.feed-banner {
  border-radius: 16px;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: inline-size;
}
body.home-body .g-banner .g-slide { position: relative; }
body.home-body .g-banner .g-copy { padding: clamp(18px, 3vw, 30px); }
body.home-body .g-banner .g-copy strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.06;
  text-transform: none;
}
body.home-body .g-banner .g-eyebrow {
  letter-spacing: .1em;
  font-size: .66rem;
  opacity: .9;
}
body.home-body .g-banner .g-sub { max-width: 34ch; opacity: .88; }
body.home-body .g-dots button { transition: background-color .18s ease, width .22s ease; }

/* Kitchen tiles in the rail. */
body.home-body #near-you .card-vendor-minimal { box-shadow: var(--el-hair, 0 1px 2px rgba(23, 19, 16, .05)); }
@media (hover:hover) {
  body.home-body #near-you .card-vendor-minimal:hover { box-shadow: var(--el-2, 0 18px 34px -20px rgba(23, 19, 16, .22)); }
}

@media (prefers-reduced-motion: reduce) {
  body.home-body .dish-card:hover,
  body.home-body .dish-card:hover .dish-card__media img { transform: none !important; }
}
