/*
 * essential.css — self-contained styling for the "Essential" menu template.
 *
 * Redesigned (2026-08) after "Cantinho da Manela", a reference Lovable/React
 * project used as the visual baseline for a more elegant, minimal look:
 *   - warm cream/terracotta palette instead of the old checkered-trattoria
 *     red/green/cream scheme
 *   - a sticky, translucent desktop header with a category quick-nav
 *   - a reusable "Ornament" divider (hairline – diamond mark – label –
 *     diamond mark – hairline) used on the hero, category banner and footer
 *   - a tiled "azulejo" line-pattern accent strip (CSS data-URI, no image
 *     asset) used as a thin decorative divider under the header and above
 *     the footer
 *   - item rows in a summary (no-photo) group now read as a classic printed
 *     menu list — running index, dashed price-leader, pill-chip portions —
 *     while photo-card items and category cards keep an elevated card
 *     treatment (lift + shadow on hover)
 *
 * All class names emitted by essential.js are preserved; only new classes
 * were added for new elements (header nav, ornament, azulejo, "continue
 * exploring" section, row index/leader). No Core.* markup contracts
 * (portions/tags/diets/allergens) changed shape, only their styling.
 *
 * Design system:
 *   Brick red   #C0392B  — primary: accents, badges, prices, CTAs
 *   Ink         #332C27  — foreground / body text
 *   Cream       #F7F2EA  — background
 *   Card        #FCFAF6  — card surfaces
 *   Sand        #EBE3D6  — muted section bands
 *   Clay        #CFBCA0  — ornament lines, index numerals, quiet accents
 *   Olive       #6F7A46  — secondary accent: diet tags, "new" badge
 *
 * Typography: a single neutral sans-serif (Inter) for everything — no
 * separate display/script families. All styles scoped to .es to avoid
 * collisions with the Jekyll shell.
 *
 * Pages:
 *   /templates/essential/           (#menu-root      — homepage)
 *   /templates/essential/category/  (#category-root  — category detail)
 *   /templates/essential/item/      (#item-root       — item detail)
 */

/* Self-hosted fonts (Latin + Latin Extended subsets) — replaces the live
   Google Fonts @import that used to sit here. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/essential-latin-ext-normal-39529051.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/essential-latin-normal-56724408.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- variables */

.es {
  --es-cream:     #F7F2EA;
  --es-ink:       #332C27;
  --es-red:       #C0392B;
  --es-red-dark:  #A53225;
  --es-green:     #6F7A46;
  --es-terra:     #A5643A;
  --es-card:      #FCFAF6;
  --es-sand:      #EBE3D6;
  --es-clay:      #CFBCA0;
  --es-muted:     rgba(51, 44, 39, 0.6);
  --es-border:    rgba(51, 44, 39, 0.13);
  --es-border-md: rgba(51, 44, 39, 0.24);
  --es-shadow-card: 0 1px 2px rgba(51, 44, 39, 0.05), 0 8px 24px -12px rgba(51, 44, 39, 0.16);
  --es-shadow-lift: 0 2px 4px rgba(51, 44, 39, 0.07), 0 22px 44px -20px rgba(51, 44, 39, 0.3);

  --ff-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  font-family: var(--ff-sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--es-ink);
  background-color: var(--es-cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body { background: var(--es-cream); }

.es a { text-decoration: none; color: inherit; }
.es img { max-width: 100%; display: block; }
.es .es-ul { list-style: none; margin: 0; padding: 0; }

.es-container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.es-eyebrow {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--es-red);
}

/* ------------------------------------------------------------- motifs */

/* Tiled diamond-and-circle line pattern — same SVG tile as the reference
   project's .azulejo utility, so the two render pixel-identical: a quiet
   decorative strip under the header and above the footer, echoing
   traditional tilework without needing per-tenant artwork. */
.es-azulejo {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23c0392b' stroke-opacity='0.28' stroke-width='1'%3E%3Cpath d='M20 4l16 16-16 16L4 20z'/%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3Cpath d='M0 0h40v40H0z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}

/* h-1.5/opacity-60 and h-10/opacity-70 respectively, matching SiteHeader.tsx
   and SiteFooter.tsx exactly. The header strip lives *inside* .es-header
   (see the HTML) so it scrolls with the sticky header instead of being left
   behind. */
.es-header-azulejo { height: 6px; opacity: 0.6; }
.es-footer-azulejo { height: 40px; opacity: 0.7; }

/* Fine paper-grain overlay — a repeating 4px radial-dot tile, identical to
   the reference project's .grain utility (styles.css), layered over the
   hero and category-banner sections. Ink-colored dots at 7% opacity read as
   a faint paper texture rather than visible spots. */
.es-grain { position: relative; overflow: hidden; }
.es-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(51, 44, 39, 0.07) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* Reusable centered divider: hairline – diamond mark – (label – diamond
   mark –) hairline. Used on the hero, category banner and footer. Markup is
   duplicated per page/render-function (see CLAUDE.md "Loading states" for
   the precedent of small per-page decorative markup that isn't templated). */
.es-ornament { display: flex; align-items: center; justify-content: center; gap: 16px; }
.es-ornament-line {
  height: 1px;
  width: 64px;
  background: linear-gradient(to right, transparent, var(--es-clay));
}
.es-ornament-line--r { background: linear-gradient(to left, transparent, var(--es-clay)); }
@media (min-width: 640px) { .es-ornament-line { width: 112px; } }
.es-ornament-mark { width: 14px; height: 14px; color: var(--es-red); flex-shrink: 0; }
.es-ornament-label {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--es-muted);
  white-space: nowrap;
}

.es-accent-rule {
  width: 56px;
  height: 2px;
  border-radius: 2px;
  margin: 24px auto;
  background: var(--es-red);
}

/* ------------------------------------------------------------------ header */

.es-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 234, 0.86);
  border-bottom: 1px solid var(--es-border);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

.es-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

/* brand mark + name — links home from any page */
.es-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

.es-brand-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--es-red);
}

.es-brand-name {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--es-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.es-brand:hover .es-brand-name { color: var(--es-red); }

/* desktop-only category quick-nav (see ticket: "header navigation (desktop
   only)") — populated by renderHeaderNav() in essential.js. No mobile
   fallback is provided by design; mobile visitors navigate via the category
   grid and the breadcrumb instead. */
.es-nav { display: none; align-items: center; gap: 26px; }
@media (min-width: 992px) { .es-nav { display: flex; } }

.es-nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--es-muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.es-nav-link:hover { color: var(--es-ink); }
.es-nav-link.active,
.es-nav-link[aria-current] { color: var(--es-red); }

.es-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.es-nav-cta {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--es-muted);
  background: var(--es-card);
  border: 1px solid var(--es-border-md);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
@media (min-width: 992px) { .es-nav-cta { display: inline-flex; } }
.es-nav-cta:hover { border-color: var(--es-red); color: var(--es-red); }

/* -------------------------------------------------------- language switcher */

.es-lang { position: relative; }

.es-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--es-ink);
  background: #fff;
  border: 1px solid var(--es-border-md);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.es-lang-btn:hover { border-color: var(--es-red); }

.es-lang-caret { font-size: 0.55rem; transition: transform 0.2s; }
.es-lang.open .es-lang-caret { transform: rotate(180deg); }

.es-lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  background: var(--es-card);
  border: 1px solid var(--es-border-md);
  border-radius: 10px;
  overflow: hidden;
  z-index: 50;
  box-shadow: var(--es-shadow-lift);
}

.es-lang.open .es-lang-menu { display: block; }

.es-lang-menu li button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--es-ink);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.es-lang-menu li button:hover,
.es-lang-menu li button.active {
  background: var(--es-red);
  color: #fff;
}

/* ---------------------------------------------------------- loading state */

.es-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 96px 24px;
  color: var(--es-muted);
  font-size: 0.85rem;
}

.es-loader {
  width: 46px;
  height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}

/* A fork and a knife, drawn with clip-path (no image/SVG asset), tapping
   up and down out of phase like utensils set down mid-bite. */
.es-loader-utensil {
  width: 16px;
  height: 100%;
  transform-origin: bottom center;
  animation: es-utensil-tap 1s ease-in-out infinite;
}
.es-loader-utensil--fork {
  background: var(--es-red);
  clip-path: polygon(0% 0%, 22% 0%, 22% 40%, 39% 40%, 39% 0%, 61% 0%, 61% 40%, 78% 40%, 78% 0%, 100% 0%, 100% 45%, 65% 60%, 65% 100%, 35% 100%, 35% 60%, 0% 45%);
  animation-delay: 0s;
}
.es-loader-utensil--knife {
  background: var(--es-ink);
  clip-path: polygon(15% 0%, 85% 0%, 60% 55%, 60% 100%, 40% 100%, 40% 55%);
  animation-delay: 0.35s;
}

@keyframes es-utensil-tap {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-7px) rotate(-6deg); }
  50%      { transform: translateY(0) rotate(0deg); }
}

/* --------------------------------------------------------- boot preloader */
.preloader--essential {
  /* .preloader lives outside .es in the DOM (base.html) — redeclare. */
  --es-cream: #F7F2EA;
  --es-red: #C0392B;
  --es-terra: #A5643A;
  --es-ink: #332C27;
  background: var(--es-cream);
}
.preloader--essential .preloader-logo,
.preloader--essential .spinner-wrap .spinner { display: none; }
.preloader--essential .preloader-theme {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  position: absolute;
  top: 50%; left: 50%;
  width: 96px; height: 30px;
  transform: translate(-50%, -50%);
}
/* Reuses the shared 4-span .preloader-theme-el slot (see CLAUDE.md "Loading
   states"): the same fork/knife shapes as .es-loader-utensil above, sized
   from a fixed width instead of flex:1 since only 2 of the 4 spans are used. */
.preloader--essential .preloader-theme-el {
  flex: 0 0 auto;
  width: 18px;
  height: 100%;
  transform-origin: bottom center;
  animation: es-utensil-tap 1s ease-in-out infinite;
}
.preloader--essential .preloader-theme-el:nth-child(1) {
  background: var(--es-red);
  clip-path: polygon(0% 0%, 22% 0%, 22% 40%, 39% 40%, 39% 0%, 61% 0%, 61% 40%, 78% 40%, 78% 0%, 100% 0%, 100% 45%, 65% 60%, 65% 100%, 35% 100%, 35% 60%, 0% 45%);
  animation-delay: 0s;
}
.preloader--essential .preloader-theme-el:nth-child(2) {
  background: var(--es-ink);
  clip-path: polygon(15% 0%, 85% 0%, 60% 55%, 60% 100%, 40% 100%, 40% 55%);
  animation-delay: 0.35s;
}
.preloader--essential .preloader-theme-el:nth-child(3),
.preloader--essential .preloader-theme-el:nth-child(4) { display: none; }

.es-empty {
  text-align: center;
  color: var(--es-muted);
  padding: 48px 0;
}

.es-muted-text { color: var(--es-muted); font-size: 0.875rem; margin: 4px 0 0; }

/* ============================================================== HERO / INDEX */

/* House pattern: no photograph at all — no menu JSON field carries a
   generic "restaurant photo" to crop/fit for any tenant, so the hero's
   elegance comes from typography, the Ornament divider and a quiet grain
   texture rather than imagery. The tenant's logo in a red ring (or its
   initials, drawn by essential.js when Menu.Logo is absent) is still the
   one piece of real artwork on the page. */

@keyframes es-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.es-hero { background-color: var(--es-cream); position: relative; }

.es-hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 24px 0;
  animation: es-fade-up 0.4s ease-out both;
  /* .es-grain's ::after is position:absolute, so it paints above any
     non-positioned content regardless of DOM order — lift the real content
     (logo included) into its own stacked layer so grain dots never show
     through it, matching the reference's relative-wrapper-over-grain
     structure (routes/index.tsx). */
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) { .es-hero-inner { padding: 84px 24px 0; } }

/* Brand mark — image logo when Menu.Logo exists, initials otherwise
   (see setupChrome() in essential.js). */
.es-hero-mark { display: flex; justify-content: center; }

.es-hero-mark-ring {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  border: 2px solid var(--es-red);
  background: #fff;
  padding: 6px;
  display: grid;
  place-items: center;
}

.es-hero-mark-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--es-border);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--es-ink);
}

.es-hero-mark-inner img { width: 100%; height: 100%; object-fit: cover; }

.es-hero .es-ornament { margin: 22px 0 0; }

.es-hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--es-muted);
  max-width: 540px;
  margin: 20px auto 0;
}

/* Menus with no Description leave this <p> empty — collapse it so it doesn't
   inject its top margin (same guard as .es-footer-founded). */
.es-hero-desc:empty { display: none; }

.es-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.es-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--es-card);
  border: 1px solid var(--es-border);
  border-radius: 999px;
  padding: 12px 20px;
  color: var(--es-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.es-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--es-red);
  flex-shrink: 0;
}

.es-hero-stats {
  margin: 24px 0 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--es-muted);
}
.es-hero-stats:empty { display: none; }

/* ------------------------------------------------------------ section head */

.es-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.es-section-eyebrow { font-size: 0.82rem; margin: 0 0 6px; }

.es-section-title {
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  color: var(--es-ink);
  margin: 0;
}

@media (min-width: 640px) { .es-section-title { font-size: 2.1rem; } }

.es-categories { padding: 60px 0 76px; }

.es-categories .es-section-head { justify-content: center; text-align: center; }
.es-categories .es-section-head > div { width: 100%; }

/* -------------------------------------------------------------- cat grid */

.es-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) { .es-cat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .es-cat-grid { grid-template-columns: 1fr 1fr 1fr; } }

.es-cat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--es-card);
  border: 1px solid var(--es-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--es-shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.es-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--es-shadow-lift);
}

.es-cat-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--es-border);
}

.es-cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.es-cat-card:hover .es-cat-card-media img { transform: scale(1.05); }

.es-cat-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--es-green);
  opacity: 0.55;
}
.es-cat-card-noimg .es-cutlery { width: 40%; max-width: 56px; height: auto; }

.es-cat-card-index {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--es-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 999px;
}

.es-cat-card-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--es-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.es-cat-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.es-cat-card-title {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
  color: var(--es-ink);
  margin: 0;
  line-height: 1.2;
}

.es-cat-card-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--es-muted);
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.es-cat-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--es-red);
  margin-top: auto;
  padding-top: 18px;
}
.es-cat-card-cta i { transition: transform 0.25s ease; }
.es-cat-card:hover .es-cat-card-cta i { transform: translateX(3px); }

/* ============================================================ CATEGORY PAGE */

.es-cat-banner { position: relative; padding: 40px 0 36px; text-align: center; }

@media (min-width: 768px) { .es-cat-banner { padding: 56px 0 48px; } }

.es-cat-banner-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }

.es-cat-banner .es-crumbs { justify-content: center; }

.es-cat-eyebrow { font-size: 0.82rem; margin: 20px 0 0; }

.es-cat-title {
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.01em;
  color: var(--es-ink);
  margin: 8px 0 0;
}

@media (min-width: 640px) { .es-cat-title { font-size: 2.9rem; } }

.es-cat-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--es-muted);
  max-width: 460px;
  margin: 14px auto 0;
}

.es-cat-banner .es-ornament { margin: 22px 0 0; }

.es-items-section { padding: 24px 0 88px; }

.es-item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) { .es-item-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .es-item-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Subcategory divider — inserted between item groups inside .es-item-grid
   (see Core.categoryItemGroups / CLAUDE.md "Subcategories"). Spans every
   column so it reads as a full-width section break, not a grid cell. */
.es-subcat-divider {
  grid-column: 1 / -1;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--es-border);
}
.es-subcat-divider:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.es-subcat-divider-title {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.005em;
  color: var(--es-ink);
  margin: 0 0 4px;
}
.es-subcat-divider-desc { color: var(--es-muted); margin: 0; font-size: 14px; }

.es-item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--es-card);
  border: 1px solid var(--es-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--es-shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.2s;
}

.es-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--es-shadow-lift);
}

.es-item-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--es-border);
  overflow: hidden;
}

.es-item-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.es-item-card:hover .es-item-card-media img { transform: scale(1.05); }

.es-item-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--es-green);
  opacity: 0.55;
}
.es-item-card-noimg .es-cutlery { width: 40%; max-width: 56px; height: auto; }

.es-item-card-badge { position: absolute; left: 12px; top: 12px; }

.es-item-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.es-item-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.es-item-card-title {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--es-ink);
  margin: 0;
}

.es-item-card-price {
  font-weight: 700;
  color: var(--es-red);
  white-space: nowrap;
}

.es-item-card-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--es-muted);
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.es-item-card-body .es-diet-tags,
.es-item-card-body .menu-availability-note { margin-top: auto; padding-top: 12px; }

/* ------------------------------------------------------------- diet tags */

.es-diet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.es-diet-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--es-green);
  background: rgba(111, 122, 70, 0.1);
  border: 1px solid rgba(111, 122, 70, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ------------------------------------------------------------- tag badges */

.es-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}
.es-badge--new              { background: var(--es-green); }
.es-badge--popular          { background: var(--es-red); }
.es-badge--chef              { background: var(--es-terra); }
.es-badge--seasonal         { background: #b8860b; }
.es-badge--limited-edition  { background: var(--es-ink); }
.es-badge--unavailable      { background: #6b7280; }

/* Summary groups (a category and/or subcategory with Style === 2): no photo,
   no detail-page link — items render as a classic printed-menu row instead
   of a photo card: a quiet running index, the name, an optional tag pill, a
   dashed price-leader, and the price. Flat/borderless by default; hovering
   reveals a card outline so the row still feels interactive even without a
   link. .es-item-grid--summary collapses the whole grid to a single column
   for the common case where every group in the category is summary;
   .es-item-row--summary instead makes an individual row span every column
   (same grid-column: 1 / -1 idiom as .es-subcat-divider) so a summary
   subcategory still reads as full-width rows inside an otherwise
   multi-column category — see Core.isSummaryGroup / renderCategoryItemsHtml. */
.es-item-grid.es-item-grid--summary { grid-template-columns: 1fr; }
.es-item-row--summary { grid-column: 1 / -1; }

/* Flat/borderless at rest — .es-item-card's base rule sets a card
   background+border unconditionally, so both must be reset to transparent
   here or the "no-card" row would always look like its own hover state. */
.es-item-card--summary {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  height: auto;
  padding: 16px 10px;
  background: transparent;
  border-color: transparent;
  border-radius: 12px;
  box-shadow: none;
  cursor: default;
}
.es-item-card--summary:hover {
  transform: none;
  border-color: var(--es-border);
  background: var(--es-card);
  box-shadow: var(--es-shadow-card);
}

.es-item-row-index {
  flex-shrink: 0;
  width: 22px;
  padding-top: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--es-clay);
}

.es-item-row-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }

.es-item-card--summary .es-item-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.es-item-card--summary .es-item-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.es-item-row-leader {
  flex: 1 1 auto;
  min-width: 16px;
  align-self: center;
  margin-bottom: 3px;
  border-bottom: 1px dashed var(--es-border-md);
}
@media (max-width: 479px) { .es-item-row-leader { display: none; } }

.es-item-row-body .es-item-card-desc,
.es-item-row-body .menu-availability-note,
.es-item-row-body .es-diet-tags,
.es-item-row-body .es-portions-inline { margin-top: 10px; }
.es-item-row-body .es-item-card-desc { -webkit-line-clamp: unset; }

/* ---------------------------------------------------------- portion pricing */
/* Pill-chip portion list, used uniformly on category-list cards (both
   summary and default layouts) and the related-items rail. */

.es-portions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.es-portions-entry {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: var(--es-sand);
  border: 1px solid var(--es-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
}

.es-portions-inline .es-portions-name {
  color: var(--es-muted);
}

.es-portions-inline .es-portions-desc {
  font-size: 0.9em;
  font-style: italic;
  color: var(--es-muted);
  opacity: 0.8;
}

.es-portions-inline .es-portions-price {
  font-weight: 700;
  color: var(--es-red);
  white-space: nowrap;
}

/* The middot separator Core.portionInline inserts between entries reads as
   noise now that each entry is its own pill chip — hide it, flex gap on
   .es-portions-inline already spaces the chips. */
.es-portions-sep { display: none; }

/* -------------------------------------------------------- allergen chips */

.es-allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.es-allergen-chip {
  font-size: 0.7rem;
  color: var(--es-ink);
  background: #fff;
  border: 1px solid var(--es-border-md);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ============================================================ CONTINUE EXPLORING */

.es-explore { border-top: 1px solid var(--es-border); background: var(--es-sand); }

.es-explore-inner { padding: 52px 0; }

.es-explore-head { margin-bottom: 26px; }
.es-explore-eyebrow { font-size: 0.82rem; margin: 0 0 6px; }
.es-explore-title {
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--es-ink);
  margin: 0;
}
@media (min-width: 640px) { .es-explore-title { font-size: 1.85rem; } }

.es-explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) { .es-explore-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .es-explore-grid { grid-template-columns: 1fr 1fr 1fr; } }

.es-explore-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  background: var(--es-card);
  border: 1px solid var(--es-border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--es-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.es-explore-card:hover { transform: translateY(-2px); box-shadow: var(--es-shadow-lift); }

.es-explore-card-media {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--es-border);
}
.es-explore-card-media img { width: 100%; height: 100%; object-fit: cover; }
.es-explore-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--es-green);
  opacity: 0.55;
}
.es-explore-card-noimg .es-cutlery { width: 55%; height: auto; }

.es-explore-card-body { min-width: 0; }
.es-explore-card-title {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--es-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.es-explore-card:hover .es-explore-card-title { color: var(--es-red); }
.es-explore-card-count { font-size: 0.75rem; color: var(--es-muted); margin-top: 2px; }

/* ============================================================== ITEM PAGE */

.es-item-page { padding: 32px 0 24px; }

/* ------------------------------------------------------------- breadcrumb */

.es-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  font-size: 0.82rem;
  font-weight: 600;
}
.es-crumbs a { color: var(--es-muted); transition: color 0.15s; }
.es-crumbs a:hover { color: var(--es-red); }
.es-crumbs-sep { color: var(--es-clay); }
.es-crumbs-current { color: var(--es-ink); }

.es-item-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) { .es-item-layout { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* --------------------------------------------------------- media carousel */

.es-media { position: relative; }

.es-media-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--es-border);
  background: var(--es-border);
  box-shadow: var(--es-shadow-lift);
}

.es-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  border: none;
}

.es-slide.active { opacity: 1; }
.es-slide-video iframe { width: 100%; height: 100%; border: none; }

.es-slide-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.es-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--es-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.es-media-play svg { width: 26px; height: 26px; }
.es-media-play:hover { transform: translate(-50%, -50%) scale(1.05); }

.es-media-stop {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.es-media-stop:hover { background: var(--es-red); }

.es-media-consent {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(51, 44, 39, 0.8) 0%, rgba(51, 44, 39, 0) 100%);
  color: var(--es-cream); font-size: 0.75rem; line-height: 1.35; text-align: center;
}
.es-media-consent a { color: var(--es-cream); text-decoration: underline; font-weight: 600; }
.es-media-consent a:hover { color: var(--es-terra); }

.es-media-empty {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 1px solid var(--es-border);
  background: var(--es-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--es-green);
  opacity: 0.55;
}
.es-media-empty .es-cutlery { width: 30%; max-width: 96px; height: auto; }

.es-media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--es-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--es-shadow-card);
  transition: background 0.15s;
  z-index: 2;
}

.es-media-arrow:hover { background: var(--es-red); color: #fff; }
.es-media-arrow-prev { left: 14px; }
.es-media-arrow-next { right: 14px; }

.es-media-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.es-media-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--es-border-md);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.es-media-dot.active { background: var(--es-red); width: 22px; border-radius: 4px; }

.es-media-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--es-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.15s, color 0.15s;
}

.es-media-zoom:hover { background: var(--es-red); color: #fff; }

/* -------------------------------------------------------------- detail */

.es-item-detail { min-width: 0; }

.es-item-detail-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.es-item-detail-title {
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--es-ink);
  margin: 0;
}

@media (min-width: 640px) { .es-item-detail-title { font-size: 2.65rem; } }

.es-item-detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.es-item-detail-price {
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--es-red);
}

.es-item-detail-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(51, 44, 39, 0.85);
  margin: 0 0 8px;
}

.es-item-detail-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
  padding: 20px;
  background: var(--es-card);
  border: 1px solid var(--es-border);
  border-radius: 16px;
}

@media (min-width: 480px) { .es-item-detail-card { grid-template-columns: 1fr 1fr; } }

.es-item-detail-card-label { font-size: 0.75rem; margin: 0 0 6px; }

.es-item-detail-card-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(51, 44, 39, 0.78);
  margin: 0;
}

/* ------------------------------------------ Chef's Social Spotlight panel */
/* Full-width panel below .es-item-layout, structurally mirroring classic's
   .menu-social-panel (soft-tint rounded band, copy left / embed right on
   desktop, stacked below it) in essential's own sand/red palette. The 960px
   split and 56px gap are .es-item-layout's own recipe, not classic's 992px. */
.es-social-panel {
  margin-top: 56px;
  padding: 48px;
  background: var(--es-sand);
  border-radius: 20px;
}

.es-social-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 960px) {
  .es-social-row { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* min-width:0 on both grid children: a grid item defaults to min-width:auto,
   which Instagram's min-width:326px blockquote would blow the column out to. */
.es-social-copy { min-width: 0; }

.es-social-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--es-red); margin-bottom: 14px;
}
.es-social-eyebrow-rule { width: 54px; height: 1px; background: linear-gradient(90deg, var(--es-red), transparent); }
.es-social-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.es-social-handle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--es-card); border: 1px solid rgba(192, 57, 43, .3);
  font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--es-ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.es-social-handle:hover { transform: translateY(-1px); border-color: var(--es-red); color: var(--es-ink); box-shadow: 0 8px 18px -10px rgba(192, 57, 43, .5); }
.es-social-handle span { color: var(--es-red); }
.es-social-count { font-size: .8rem; color: var(--es-muted); }

.es-social-blurb {
  max-width: 460px;
  margin: 16px 0 0;
  line-height: 1.6;
  color: var(--es-muted);
}

.es-social-grid { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Fill the panel column instead of the shared 540px centred cap in menu.css
   (that cap was sized for a full-width block, not a half-width column). */
.es-social-grid [data-social-embed] { max-width: 100%; margin-left: 0; margin-right: 0; }

@media (min-width: 960px) {
  .es-social-grid { align-items: center; }
  /* width:100% + align-items:center, never margin:auto — an auto cross-axis
     margin stops a column-flex item stretching, which would let the hydrated
     .instagram-media (width:100% !important; min-width:0) collapse. */
  .es-social-grid [data-social-embed] { width: 100%; max-width: min(80%, 440px); }
}

@media (max-width: 959.98px) {
  .es-social-panel { padding: 32px 24px; border-radius: 16px; }
}

/* social post embeds — markup from Core.socialEmbedHtml, prefixed .es-social.
   Width normalization for the live embed itself lives in the shared
   assets/css/menu.css. See CLAUDE.md "Social post embeds". */
.es-social-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 28px;
  text-align: center;
  background: var(--es-card);
  border: 1px solid rgba(192, 57, 43, 0.18);
  border-radius: 16px;
  box-shadow: var(--es-shadow-card);
}
.es-social-embed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(192, 57, 43, 0.12);
  color: var(--es-red);
  font-size: 27px;
  line-height: 1;
}
/* Capped + wrapping, never nowrap: the longest translated label ("Carregar
   publicação do Instagram") must wrap inside the card, not overflow it. */
.es-social-embed-load {
  width: 100%;
  max-width: 320px;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
  background: var(--es-red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.28);
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.es-social-embed-load:hover { filter: brightness(.94); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(192, 57, 43, 0.34); }
.es-social-embed-load:focus-visible { outline: 2px solid var(--es-ink); outline-offset: 3px; }
.es-social-embed-permalink {
  margin-top: -2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--es-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--es-border-md);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.es-social-embed-permalink:hover { color: var(--es-red); border-bottom-color: var(--es-red); }
@media (min-width: 960px) and (max-width: 1199.98px) {
  .es-social-embed-load { font-size: 0.875rem; padding: 12px 16px; }
}
@media (max-width: 575.98px) {
  .es-social-embed-placeholder { padding: 30px 18px; }
}
.es-social-embed-consent { max-width: 320px; font-size: 0.75rem; line-height: 1.45; color: var(--es-muted); margin: 2px 0 0; }
.es-social-embed-consent a { color: var(--es-red); text-decoration: underline; }
.es-social-embed-loading,
.es-social-embed-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--es-muted);
  background: var(--es-card);
  border: 1px solid rgba(192, 57, 43, 0.18);
  border-radius: 16px;
}
.es-social-embed-error a { display: inline-block; margin-top: 8px; color: var(--es-red); text-decoration: underline; }
/* Multi-post carousel nav — 40px circles and 8px→22px pill dots, the shared
   Social Spotlight geometry used by every template's social section. */
.es-social-embed-nav { margin-top: 16px; }
.es-social-embed-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--es-card);
  border: 1px solid rgba(192, 57, 43, 0.28);
  color: var(--es-ink);
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background .2s, color .2s, border-color .2s;
}
.es-social-embed-arrow:hover { background: var(--es-red); border-color: var(--es-red); color: #fff; }
.es-social-embed-arrow:focus-visible { outline: 2px solid var(--es-ink); outline-offset: 3px; }
.es-social-embed-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--es-border-md);
  transition: background 0.2s, width 0.2s;
}
.es-social-embed-dot.active { background: var(--es-red); width: 22px; border-radius: 4px; }

/* ------------------------------------------------------- portion pricing (detail) */

.es-portions {
  margin-top: 16px;
}

.es-portions-label {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--es-red);
  margin: 0 0 6px;
}

.es-portions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.es-portions-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--es-border-md);
  color: inherit;
}

.es-portions-row:last-child { border-bottom: none; }

.es-portions-namewrap {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.es-portions-row .es-portions-name {
  font-size: 0.95rem;
  color: var(--es-ink);
}

.es-portions-row .es-portions-desc {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--es-muted);
}

.es-portions-row .es-portions-price {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--es-red);
  white-space: nowrap;
}

/* Single-portion label (Core.portionSingleLabel) -- e.g. "330 ml". Never
   carries a price (Item.Price is authoritative and renders in the standard
   .es-item-card-price / .es-item-detail-price / .es-related-card-price slot
   instead), so it's a quiet caption rather than a priced entry. */
.es-portions-single {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--es-muted);
  margin-top: 4px;
}
.es-portions-single-line { margin: 0 0 16px; }

/* -------------------------------------------------------------- related */

.es-related { padding: 24px 0 80px; }

.es-related-see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--es-red);
  white-space: nowrap;
}
.es-related-see-all:hover { text-decoration: underline; }

.es-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.es-related-grid > li { min-width: 0; }

@media (min-width: 640px) { .es-related-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .es-related-grid { grid-template-columns: 1fr 1fr 1fr; } }

.es-related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-width: 0;
  background: var(--es-card);
  border: 1px solid var(--es-border);
  border-radius: 14px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.es-related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--es-shadow-lift);
}

.es-related-card-media {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--es-border);
}

.es-related-card-media img { width: 100%; height: 100%; object-fit: cover; }

.es-related-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--es-green);
  opacity: 0.55;
}
.es-related-card-noimg .es-cutlery { width: 40%; max-width: 32px; height: auto; }

.es-related-card-body { min-width: 0; }

.es-related-card-title {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--es-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.es-related-card-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--es-red);
  margin-top: 2px;
}

/* portioned items render .es-portions-inline in place of .es-related-card-price —
   scale it down so the list doesn't blow out these small tiles. */
.es-related-card-body .es-portions-inline {
  font-size: 0.75rem;
  margin-top: 4px;
  gap: 4px;
}
.es-related-card-body .es-portions-entry { padding: 3px 9px; }

/* ============================================================ FOOTER */

.es-footer { margin-top: 32px; }

.es-footer-inner {
  padding: 40px 0 48px;
  text-align: center;
}

.es-footer .es-ornament { margin: 0 0 26px; }

.es-footer-eyebrow { font-size: 0.9rem; margin: 0 0 8px; }

.es-footer-sub {
  font-size: 0.9rem;
  color: var(--es-ink);
  margin: 0;
}

.es-footer-founded {
  font-size: 0.8rem;
  color: var(--es-muted);
  margin: 4px 0 0;
}
.es-footer-founded:empty { display: none; }

.es-footer-rule {
  display: block;
  width: 32px;
  height: 1px;
  margin: 20px auto 16px;
  background: var(--es-terra);
  opacity: .5;
}

.es-footer-copy {
  font-size: 0.8rem;
  color: var(--es-ink);
  margin: 0;
}

.es-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  font-size: 0.75rem;
  color: var(--es-muted);
  margin: 8px 0 0;
}

.es-footer-dot { opacity: .6; }

.es-footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-left: 8px; vertical-align: -3px;
  color: var(--es-muted); opacity: .85;
}
.es-footer-social-link:hover, .es-footer-social-link:focus-visible { opacity: 1; }
.es-footer-social-link i { font-size: 13px; }

/* ============================================================ ERROR STATE */

.es .menu-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.es .menu-error-card { text-align: center; max-width: 440px; }

.es .menu-error-emoji { font-size: 2.5rem; margin-bottom: 20px; }

.es .menu-error-card h1 {
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--es-ink);
  margin: 0 0 12px;
}

.es .menu-error-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--es-muted);
  margin: 0 0 24px;
}

.es .menu-error-card code {
  font-size: 0.8rem;
  background: rgba(51, 44, 39, 0.06);
  padding: 2px 6px;
  border: 1px solid var(--es-border);
  border-radius: 4px;
}

.es .common-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  background: var(--es-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s;
}

.es .common-btn:hover { background: var(--es-red-dark); }
