/* Food menu proportions from the supplied mobile references.
   Load after reference-style.css and fudo-theme.css. Native product actions stay intact. */
body.reference-style[data-service="food"] {
  --catalog-card-radius:28px;
  --catalog-photo-scale:1.12;
  --catalog-feature-pizza-top:#cae3b3;
  --catalog-feature-pizza-bottom:#edf5e7;
  --catalog-feature-pizza-ink:#213c18;
  --catalog-feature-pizza-muted:#49643d;
  --catalog-feature-sushi-top:#d4e3da;
  --catalog-feature-sushi-bottom:#aac5b8;
  --catalog-feature-sushi-ink:#17362a;
  --catalog-feature-sushi-muted:#2d4f3f;
  --catalog-feature-cakes-top:#f5dde4;
  --catalog-feature-cakes-bottom:#d1aeb8;
  --catalog-feature-cakes-ink:#3a222d;
  --catalog-feature-cakes-muted:#5b3a49;
  --catalog-feature-drinks-top:#e0efc5;
  --catalog-feature-drinks-bottom:#b8d68d;
  --catalog-feature-drinks-ink:#263819;
  --catalog-feature-drinks-muted:#456032;
  --catalog-feature-price:#fff;
  --catalog-feature-price-ink:#1f1b19;
}
html[data-theme="dark"] body.reference-style[data-service="food"] {
  --catalog-feature-pizza-top:#3d632d;
  --catalog-feature-pizza-bottom:var(--fudo-background);
  --catalog-feature-pizza-ink:var(--fudo-text);
  --catalog-feature-pizza-muted:var(--fudo-muted);
  --catalog-feature-sushi-top:#bfd7cd;
  --catalog-feature-sushi-bottom:#90afa1;
  --catalog-feature-cakes-top:#efcdd9;
  --catalog-feature-cakes-bottom:#c59ca8;
  --catalog-feature-drinks-top:#c5df9b;
  --catalog-feature-drinks-bottom:#94b768;
}

/* The category sections carry the hierarchy, not a second oversized hero. */
body.reference-style[data-service="food"] .reference-intro {
  padding:12px 0 8px;
  max-width:none;
}
body.reference-style[data-service="food"] .reference-intro .reference-kicker,
body.reference-style[data-service="food"] .reference-intro>p:not(.reference-kicker) {
  display:none;
}
body.reference-style[data-service="food"] .reference-intro h1 {
  margin:0;
  font-size:24px;
  line-height:1.2;
  letter-spacing:-.035em;
}
body.reference-style[data-service="food"] .meal-menu {
  padding-top:8px;
  padding-bottom:48px;
}
body.reference-style[data-service="food"] .meal-menu-heading {
  gap:16px;
  margin:0 0 8px;
}
body.reference-style[data-service="food"] .meal-menu-heading h2 {
  font-size:18px;
  line-height:1.3;
}
body.reference-style[data-service="food"] .meal-menu-heading .page-count {
  font-size:12px;
  color:var(--fudo-muted);
}
body.reference-style[data-service="food"] .meal-controls {
  display:none;
  margin:0;
}
body.reference-style[data-service="food"] details[open] .meal-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  padding:16px 0 8px;
}
body.reference-style[data-service="food"] .meal-controls :is(select,option) {
  background-color:var(--fudo-photo);
  color:var(--fudo-text);
  border-color:var(--fudo-border);
}
body.reference-style[data-service="food"] .meal-controls>label:not(.sr-only) {
  color:var(--fudo-muted);
}
body.reference-style[data-service="food"] #active-filters:empty,
body.reference-style[data-service="food"] #catalog-status:empty {
  display:none;
}
body.reference-style[data-service="food"] #catalog-grid.catalog-sections {
  width:100%;
  min-width:0;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-section {
  margin-bottom:52px;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-section-heading {
  margin:22px 0 22px;
  gap:12px;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-section-title {
  color:var(--fudo-text);
  font-size:32px;
  line-height:1.15;
  letter-spacing:-.035em;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-section-count {
  display:none;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-subcategories {
  gap:6px;
  padding-bottom:20px;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-subcategory-link {
  background:var(--fudo-photo);
  color:var(--fudo-text);
  border:0;
  min-height:36px;
  padding:9px 15px;
  font-size:13px;
  line-height:1.3;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-subcategory-link:is(:hover,.active) {
  background:var(--fudo-text);
  color:var(--fudo-background);
}

/* Regular items: a square photo, then the name and the native price action. */
body.reference-style[data-service="food"] #catalog-grid .catalog-section-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:36px 22px;
  align-items:stretch;
}
body.reference-style[data-service="food"] #catalog-grid .product-card {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  min-width:0;
  height:auto;
  min-height:0;
  margin:0;
  padding:0;
  gap:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
body.reference-style[data-service="food"] #catalog-grid .product-card>.product-media {
  position:relative;
  display:block;
  flex:none;
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  aspect-ratio:1;
  margin:0;
  padding:0;
  border:0;
  border-radius:var(--catalog-card-radius);
  background:var(--fudo-photo);
  overflow:hidden;
}
body.reference-style[data-service="food"] #catalog-grid .product-photo-link {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  overflow:hidden;
  border-radius:inherit;
}
body.reference-style[data-service="food"] #catalog-grid .product-photo-link>img {
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:contain;
  object-position:center;
  border-radius:0;
  mix-blend-mode:normal;
  transform:scale(var(--catalog-photo-scale));
  transform-origin:center;
  transition:transform .2s ease;
}
body.reference-style[data-service="food"] #catalog-grid [data-category-id="category_661177f87b508116dcf95d654efe3a08"] .product-card:not(.catalog-feature-card) {
  --catalog-photo-scale:1.16;
}
body.reference-style[data-service="food"] #catalog-grid [data-category-id="category_f797ca1fe0ee58e0ce3906f16b04506c"] .product-card:not(.catalog-feature-card) {
  --catalog-photo-scale:1.09;
}
body.reference-style[data-service="food"] #catalog-grid .product-card>.product-card-body {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  align-items:flex-start;
  align-self:stretch;
  width:auto;
  min-width:0;
  min-height:0;
  padding:12px 8px 0;
  background:transparent;
  border:0;
  overflow:visible;
}
body.reference-style[data-service="food"] #catalog-grid .product-card .product-title {
  display:block;
  margin:0 0 8px;
  color:var(--fudo-text);
  font-size:18px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.022em;
  overflow:visible;
  overflow-wrap:anywhere;
  -webkit-line-clamp:unset;
  line-clamp:unset;
}
body.reference-style[data-service="food"] #catalog-grid .product-title a:is(:hover,:focus-visible) {
  color:inherit;
}
body.reference-style[data-service="food"] #catalog-grid .product-card:not(.catalog-feature-card) :is(.product-summary,.product-unit-note,.product-brand) {
  display:none;
}
body.reference-style[data-service="food"] #catalog-grid .product-card .price-row {
  position:relative;
  display:inline-flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:center;
  align-self:flex-start;
  width:fit-content;
  max-width:100%;
  min-height:44px;
  margin-top:auto;
  padding:4px 0 0;
  gap:8px;
}
body.reference-style[data-service="food"] #catalog-grid .product-card .product-prices {
  display:flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  min-width:0;
  pointer-events:none;
}
body.reference-style[data-service="food"] #catalog-grid .product-card .product-price {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  background:var(--fudo-photo);
  color:var(--fudo-text);
  font-size:15px;
  line-height:1.25;
  font-weight:650;
  white-space:normal;
  overflow-wrap:anywhere;
}
body.reference-style[data-service="food"] #catalog-grid .product-card .product-old-price {
  color:var(--fudo-muted);
  font-size:13px;
  text-decoration-color:var(--fudo-accent);
}
/* The existing accessible button covers only its own visible price footer.
   Its native cart/options handler, focus and disabled state remain authoritative. */
body.reference-style[data-service="food"] #catalog-grid .product-card .product-add,
body.reference-style[data-service="food"] #catalog-grid .product-card .product-add:hover,
html[data-theme] body.reference-style[data-service="food"] #catalog-grid .product-card .product-add:hover {
  position:absolute;
  inset:4px 0 0;
  z-index:2;
  width:100%;
  height:calc(100% - 4px);
  min-height:44px;
  max-height:none;
  flex:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:999px;
  background:transparent;
  color:transparent;
  box-shadow:none;
}
body.reference-style[data-service="food"] #catalog-grid .product-card .product-add>svg {
  display:none;
}
body.reference-style[data-service="food"] #catalog-grid .price-row:has(.product-add:hover) .product-price {
  background:var(--fudo-surface-hover);
}
body.reference-style[data-service="food"] #catalog-grid .product-add:focus-visible {
  outline:3px solid var(--fudo-accent);
  outline-offset:3px;
}
body.reference-style[data-service="food"] #catalog-grid .price-row:has(.product-add:disabled) .product-prices {
  opacity:.6;
}
body.reference-style[data-service="food"] #catalog-grid .product-media .product-favorite {
  top:12px;
  right:12px;
  left:auto;
  width:34px;
  height:34px;
  min-height:34px;
  padding:8px;
  border:0;
  border-radius:50%;
  background:var(--fudo-surface);
  color:var(--fudo-text);
  box-shadow:none;
}
body.reference-style[data-service="food"] #catalog-grid .product-media .product-favorite[aria-pressed="true"] {
  color:var(--fudo-accent);
}
body.reference-style[data-service="food"] #catalog-grid .product-card.is-text-only {
  padding:18px;
  border-radius:var(--catalog-card-radius);
  background:var(--fudo-photo);
}
body.reference-style[data-service="food"] #catalog-grid .product-card.is-text-only>.product-card-body {
  padding:0;
}
body.reference-style[data-service="food"] #catalog-grid .product-card.is-text-only>.product-media {
  display:none;
}

/* Category lead: large food first, with diagonal curves on desktop. */
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card {
  --feature-top:var(--catalog-feature-pizza-top);
  --feature-bottom:var(--catalog-feature-pizza-bottom);
  --feature-ink:var(--catalog-feature-pizza-ink);
  --feature-muted:var(--catalog-feature-pizza-muted);
  --catalog-photo-scale:1.045;
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
  grid-column:1/-1;
  align-items:stretch;
  isolation:isolate;
  margin:6px 0 0;
  color:var(--feature-ink);
  background:transparent;
  border-radius:clamp(150px,20vw,280px) 40px clamp(150px,20vw,280px) 40px;
  overflow:visible;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  background:linear-gradient(145deg,var(--feature-top),var(--feature-bottom) 88%);
  pointer-events:none;
}
body.reference-style[data-service="food"] #catalog-grid [data-category-id="category_f797ca1fe0ee58e0ce3906f16b04506c"] .catalog-feature-card {
  --feature-top:var(--catalog-feature-sushi-top);
  --feature-bottom:var(--catalog-feature-sushi-bottom);
  --feature-ink:var(--catalog-feature-sushi-ink);
  --feature-muted:var(--catalog-feature-sushi-muted);
  --catalog-photo-scale:1.03;
}
body.reference-style[data-service="food"] #catalog-grid [data-category-id="category_5222d453f45f7a4d4c6c6b119ebc8cb8"] .catalog-feature-card {
  --feature-top:var(--catalog-feature-cakes-top);
  --feature-bottom:var(--catalog-feature-cakes-bottom);
  --feature-ink:var(--catalog-feature-cakes-ink);
  --feature-muted:var(--catalog-feature-cakes-muted);
}
body.reference-style[data-service="food"] #catalog-grid [data-category-id="f8f121a4-6f55-4ac0-82fc-62a8e2fc8142"] .catalog-feature-card {
  --feature-top:var(--catalog-feature-drinks-top);
  --feature-bottom:var(--catalog-feature-drinks-bottom);
  --feature-ink:var(--catalog-feature-drinks-ink);
  --feature-muted:var(--catalog-feature-drinks-muted);
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card>.product-media {
  width:100%;
  height:auto;
  min-height:420px;
  aspect-ratio:1.15;
  border-radius:0;
  background:transparent;
  overflow:visible;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-photo-link {
  border-radius:0;
  overflow:hidden;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-photo-link>img {
  object-fit:contain;
  transform:scale(var(--catalog-photo-scale));
  filter:drop-shadow(0 20px 20px #281b1217);
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card>.product-card-body {
  justify-content:center;
  padding:44px clamp(48px,6vw,90px) 80px 28px;
  background:transparent;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-title {
  color:var(--feature-ink);
  font-size:clamp(28px,3vw,40px);
  line-height:1.1;
  font-weight:700;
  margin:0 0 16px;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-summary {
  display:block;
  color:var(--feature-muted);
  font-size:16px;
  line-height:1.5;
  max-height:none;
  margin:0 0 18px;
  overflow:visible;
  -webkit-line-clamp:unset;
  line-clamp:unset;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-unit-note {
  display:none;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .price-row {
  align-self:flex-start;
  margin-top:10px;
  min-height:48px;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-price {
  min-height:48px;
  padding:12px 19px;
  background:var(--catalog-feature-price);
  color:var(--catalog-feature-price-ink);
  font-size:17px;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .price-row:has(.product-add:hover) .product-price {
  background:var(--catalog-feature-price);
  box-shadow:0 0 0 2px var(--feature-ink);
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-add {
  min-height:48px;
}
body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-favorite {
  top:auto;
  bottom:18px;
  right:18px;
  left:auto;
}

@media (max-width:1100px) and (min-width:761px) {
  body.reference-style[data-service="food"] #catalog-grid .catalog-section-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:30px 18px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card {
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
    border-radius:170px 30px 170px 30px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card>.product-media {
    min-height:360px;
    aspect-ratio:1.02;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card>.product-card-body {
    padding:36px 40px 64px 18px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-title {
    font-size:28px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-summary {
    font-size:14px;
  }
}
@media (max-width:760px) {
  body.reference-style[data-service="food"] {
    --catalog-card-radius:26px;
  }
  body.reference-style[data-service="food"] .reference-menu-main>.container,
  body.reference-style[data-service="food"] .meal-menu.container {
    width:calc(100% - 32px);
  }
  body.reference-style[data-service="food"] .reference-intro {
    padding:8px 0;
  }
  body.reference-style[data-service="food"] .reference-intro h1 {
    font-size:21px;
  }
  body.reference-style[data-service="food"] .meal-menu {
    padding-top:4px;
  }
  body.reference-style[data-service="food"] .meal-menu-heading h2 {
    font-size:16px;
  }
  body.reference-style[data-service="food"] details[open] .meal-controls {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-section {
    margin-bottom:36px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-section-heading {
    margin:18px 2px 20px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-section-title {
    font-size:24px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-subcategories {
    padding-bottom:18px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-subcategory-link {
    padding:8px 12px;
    font-size:12px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-section-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 12px;
  }
  body.reference-style[data-service="food"] #catalog-grid .product-card>.product-card-body {
    padding:10px 4px 0;
  }
  body.reference-style[data-service="food"] #catalog-grid .product-card .product-title {
    font-size:15px;
    line-height:1.3;
    font-weight:600;
    margin-bottom:7px;
  }
  body.reference-style[data-service="food"] #catalog-grid .product-card .product-price {
    padding:10px 13px;
    font-size:14px;
  }
  body.reference-style[data-service="food"] #catalog-grid .product-card .product-old-price {
    font-size:11px;
  }
  body.reference-style[data-service="food"] #catalog-grid .product-card .product-prices {
    gap:5px;
  }
  body.reference-style[data-service="food"] #catalog-grid .product-media .product-favorite {
    top:9px;
    right:9px;
    width:30px;
    height:30px;
    min-height:30px;
    padding:7px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card {
    display:flex;
    flex-direction:column;
    margin-top:6px;
    border-radius:50% 50% 26px 26px / 34% 34% 26px 26px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card::before {
    border-radius:inherit;
    background:linear-gradient(180deg,var(--feature-top),var(--feature-bottom) 92%);
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card>.product-media {
    height:auto;
    min-height:0;
    aspect-ratio:1.03;
    border-radius:0;
    background:transparent;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-photo-link>img {
    transform:scale(1.07);
    object-position:50% 45%;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card>.product-card-body {
    padding:8px 17px 22px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-title {
    color:var(--feature-ink);
    font-size:25px;
    line-height:1.1;
    font-weight:700;
    margin-bottom:10px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-summary {
    color:var(--feature-muted);
    font-size:14px;
    line-height:1.45;
    margin-bottom:12px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .price-row {
    align-self:flex-end;
    margin-top:8px;
    margin-left:auto;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-price {
    padding:12px 18px;
    font-size:16px;
    background:var(--catalog-feature-price);
    color:var(--catalog-feature-price-ink);
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-favorite {
    top:auto;
    bottom:12px;
    right:14px;
    left:auto;
    width:34px;
    height:34px;
    min-height:34px;
    padding:8px;
  }
}
@media (max-width:360px) {
  body.reference-style[data-service="food"] #catalog-grid .catalog-section-grid {
    column-gap:12px;
  }
  body.reference-style[data-service="food"] #catalog-grid .product-card .product-title {
    font-size:14px;
  }
  body.reference-style[data-service="food"] #catalog-grid .product-card .product-price {
    font-size:13px;
    padding-inline:11px;
  }
  body.reference-style[data-service="food"] #catalog-grid .catalog-feature-card .product-title {
    font-size:23px;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.reference-style[data-service="food"] #catalog-grid .product-photo-link>img {
    transition:none;
  }
}
