/* First-paint catalog. All selectors stay inside the server shell. */
#ecommerce-server-shell[hidden] { display: none !important; }
#ecommerce-server-shell:not([hidden]):not([data-handoff]) ~ #ecommerce-home-app {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}
.ec-server {
  --ec-ink: var(--color-ink, #19191c);
  --ec-muted: var(--color-muted, #66666e);
  --ec-surface: var(--color-surface, #f5f5f6);
  --ec-border: var(--color-border, #e9e9ec);
  --ec-accent: var(--primary-color, #d44231);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--body-color, #fff);
  color: var(--ec-ink);
  font: 500 16px/1.5 EcommerceManrope, Manrope, system-ui, sans-serif;
  overflow: clip;
  width: 100%;
  max-width: 448px;
  margin-inline: auto;
  box-shadow: 0 0 0 1px var(--ec-border);
}
.ec-server *, .ec-server *::before, .ec-server *::after { box-sizing: border-box; }
.ec-server a { color: inherit; text-decoration: none; }
.ec-server a:focus-visible { outline: 3px solid var(--ec-accent); outline-offset: 3px; }
.ec-server__visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ec-server__header { background: var(--body-color, #fff); }
.ec-server__header-inner { max-width: 1440px; min-height: 68px; margin: auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ec-server__brand { display: inline-flex; align-items: center; min-width: 0; gap: 12px; font-size: 18px; font-weight: 800; line-height: 1.25; }
.ec-server__brand img { flex: none; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.ec-server__brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-server__back { width: 44px; height: 44px; display: inline-grid; flex: none; place-items: center; margin-left: -8px; border-radius: 50%; font-size: 22px; }
.ec-server__category-title { min-width: 0; overflow: hidden; margin-right: auto; font-size: 18px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ec-server__header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.ec-server__header-actions a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 24px; font-size: 14px; font-weight: 700; }
.ec-server__menu-link { background: var(--ec-surface); }
.ec-server__header-pending { width: 44px; height: 44px; display: block; flex: none; border-radius: 50%; background: var(--ec-surface); }
.ec-server__menu-link, .ec-server__phone { display: none !important; }
.ec-server__phone { color: var(--ec-accent) !important; }
.ec-server__fulfillment { max-width: 1440px; min-height: 44px; margin: auto; padding: 8px 20px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ec-muted); }
.ec-server__fulfillment strong { color: var(--ec-ink); }
.ec-server__fulfillment-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ec-accent); }
.ec-server__hero { position: relative; width: 100%; margin: 16px auto 0; }
.ec-server__hero-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; padding: 0 20px 4px; }
.ec-server__hero-rail::-webkit-scrollbar, .ec-server__categories::-webkit-scrollbar, .ec-server__products::-webkit-scrollbar { display: none; }
.ec-server__hero-slide { position: relative; flex: 0 0 88%; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 16px; background: var(--ec-surface); scroll-snap-align: start; }
.ec-server__hero--single .ec-server__hero-slide { flex-basis: 100%; }
.ec-server__hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ec-server__hero-slide--titled::after { content: ''; position: absolute; inset: auto 0 0; height: 66.666%; background: linear-gradient(transparent, rgb(0 0 0 / .7)); pointer-events: none; }
.ec-server__hero-slide strong { position: absolute; z-index: 1; inset: auto 16px 12px; display: -webkit-box; overflow: hidden; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ec-server__hero-fade { display: none; }
.ec-server__hero-indicators { justify-content: center; align-items: center; }
.ec-server__hero-indicators--mobile { display: flex; gap: 6px; margin-top: 8px; }
.ec-server__hero-indicators--mobile span { width: 6px; height: 6px; border-radius: 999px; background: var(--ec-border); }
.ec-server__hero-indicators--mobile span.is-active { width: 16px; background: var(--ec-accent); }
.ec-server__hero-indicators--desktop { display: none; }
.ec-server__catalog { max-width: 1440px; margin: auto; padding-bottom: 88px; }
.ec-server__categories { position: sticky; z-index: 4; top: 0; display: flex; gap: 8px; overflow-x: auto; max-width: 100%; margin-top: 16px; padding: 8px 20px 10px; background: var(--body-color, #fff); scrollbar-width: none; }
.ec-server__category-navigation { position: sticky; z-index: 4; top: 0; margin-top: 16px; background: var(--body-color, #fff); }
.ec-server__category-navigation .ec-server__categories { position: static; margin-top: 0; }
.ec-server__categories a { flex: none; min-height: 36px; max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 14px; border-radius: 24px; background: var(--ec-surface); font-size: 14px; font-weight: 700; line-height: 20px; }
.ec-server__categories a[aria-current="page"] { background: var(--ec-accent); color: var(--ecommerce-on-accent, #fff); }
.ec-server__categories--groups { gap: 20px; padding-top: 0; padding-bottom: 0; }
.ec-server__categories--groups a { position: relative; min-height: 44px; padding: 12px 0; border-radius: 0; background: transparent; font-size: 15px; }
.ec-server__categories--groups a[aria-current="page"] { background: transparent; color: var(--ec-ink); }
.ec-server__categories--groups a[aria-current="page"]::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px; background: var(--ec-accent); }
.ec-server__categories--children { margin-top: 0; padding-top: 8px; }
.ec-server__section { padding-top: 24px; scroll-margin-top: 64px; }
.ec-server__section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; }
.ec-server__section h2 { flex: 1 1 max-content; min-width: 0; max-width: 100%; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: normal; hyphens: none; font-size: 22px; font-weight: 800; line-height: 1.25; }
.ec-server__heading-word { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.ec-server__all-link { flex: none; margin-inline-start: auto; min-height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 0 14px; border-radius: 24px; background: var(--ec-surface); color: var(--ec-accent) !important; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ec-server__products { display: flex; gap: 12px; overflow-x: auto; padding: 12px 20px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.ec-server__products--rows { flex-direction: column; overflow: visible; }
.ec-server__product { flex: 0 0 min(60vw, 224px); min-width: 0; overflow: hidden; border-radius: 16px; background: var(--body-color, #fff); box-shadow: 0 3px 18px rgb(0 0 0 / .1); scroll-snap-align: start; }
.ec-server__products--rows .ec-server__product { flex-basis: auto; min-height: 144px; }
.ec-server__product-link { display: flex; height: 100%; flex-direction: column; padding: 8px; }
.ec-server__products--rows .ec-server__product-link { flex-direction: row-reverse; align-items: stretch; gap: 12px; padding: 12px; }
.ec-server__product-image { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--ec-surface); }
.ec-server__products--rows .ec-server__product-image { flex: 0 0 120px; width: 120px; height: 120px; aspect-ratio: auto; }
.ec-server__product-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ec-server__product-image { position: relative; }
.ec-server__discount { position: absolute; top: 8px; left: 8px; padding: 4px 6px; border-radius: 6px; background: var(--color-label-sale, #d23b3b); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.ec-server__product-arrow { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--body-color, #fff); color: var(--ec-ink); box-shadow: 0 3px 10px rgb(0 0 0 / .12); font-size: 20px; }
.ec-server__product-copy { display: flex; min-height: 64px; flex-direction: column; padding: 8px 2px 2px; }
.ec-server__products--rows .ec-server__product-copy { flex: 1; padding: 0; }
.ec-server__product-title { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ec-server__product-description { display: none; }
.ec-server__products--rows .ec-server__product-description { display: -webkit-box; overflow: hidden; margin-top: 2px; color: var(--ec-muted); font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ec-server__product-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ec-server__products--rows .ec-server__product-meta { margin-top: auto; }
.ec-server__product-price { order: -1; font-size: 16px; font-weight: 800; line-height: 1.35; }
.ec-server__product-old-price { color: var(--ec-muted); font-size: 16px; font-weight: 400; }
.ec-server__product--stopped { opacity: .62; }
.ec-server__category-card { flex: 0 0 132px; display: grid; place-items: center; text-align: center; scroll-snap-align: start; }
.ec-server__category-card > span { width: 112px; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--ec-border); border-radius: 16px; background: var(--body-color, #fff); color: var(--ec-accent); font-size: 20px; line-height: 1; }
.ec-server__category-card strong { font-size: 14px; }
.ec-server__category-card span span { max-width: 100%; padding: 0 8px; color: var(--ec-muted); font-size: 12px; line-height: 1.3; }
.ec-server__footer { max-width: 1440px; margin: auto; padding: 30px 20px 110px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ec-border); color: var(--ec-muted); font-size: 14px; }
.ec-server__bottom-nav { position: fixed; z-index: 5; inset: auto 12px max(12px, env(safe-area-inset-bottom)); min-height: 56px; display: flex; align-items: center; padding: 6px; border-radius: 40px; background: color-mix(in srgb, var(--body-color, #fff) 85%, transparent); box-shadow: 0 8px 32px rgb(0 0 0 / .14); backdrop-filter: blur(20px); }
.ec-server__bottom-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 40px; background: var(--ec-accent); color: var(--ecommerce-on-accent, #fff); font-size: 13px; font-weight: 800; }
@media (min-width: 768px) {
  .ec-server { max-width: 768px; }
  .ec-server__menu-link { display: inline-flex !important; }
  .ec-server__hero-slide { flex-basis: 64%; aspect-ratio: 12 / 5; }
  .ec-server__hero--single .ec-server__hero-slide { flex-basis: 100%; }
  .ec-server__bottom-nav { display: none; }
  .ec-server__catalog { padding-bottom: 0; }
  .ec-server__footer { padding-bottom: 30px; }
}
@media (min-width: 1024px) {
  .ec-server { max-width: 1024px; }
  .ec-server__phone { display: inline-flex !important; }
}
@media (min-width: 1280px) {
  .ec-server { max-width: none; box-shadow: none; }
  .ec-server__hero-rail { gap: 40px; padding: 28px 20% 44px; }
  .ec-server__hero-slide, .ec-server__hero--single .ec-server__hero-slide { flex: 0 0 100%; aspect-ratio: 8 / 3; scroll-snap-align: center; }
  .ec-server__hero-slide.is-active { transform: scale(1.04); box-shadow: 0 12px 32px rgb(0 0 0 / .15); }
  .ec-server__hero-slide:not(.is-active) { opacity: .6; }
  .ec-server__hero-fade { position: absolute; z-index: 5; top: 0; bottom: 0; display: block; width: 16%; pointer-events: none; }
  .ec-server__hero-fade--start { left: 0; background: linear-gradient(to right, var(--body-color, #fff), transparent); }
  .ec-server__hero-fade--end { right: 0; background: linear-gradient(to left, var(--body-color, #fff), transparent); }
  .ec-server__hero-indicators--mobile { display: none; }
  .ec-server__hero-indicators--desktop { display: flex; gap: 8px; margin-top: 12px; }
  .ec-server__hero-indicators--desktop span { width: 48px; height: 4px; margin-block: 10px; border-radius: 999px; background: var(--ec-border); }
  .ec-server__hero-indicators--desktop span.is-active { background: var(--ec-accent); }
  .ec-server__categories { top: 0; }
  .ec-server__section { padding-top: 40px; }
  .ec-server__section h2 { font-size: 26px; }
  .ec-server__products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; overflow: visible; }
  .ec-server__products--rows { flex-direction: initial; }
  .ec-server__product, .ec-server__products--rows .ec-server__product { width: auto; box-shadow: 0 3px 18px rgb(0 0 0 / .1); }
  .ec-server__product-link, .ec-server__products--rows .ec-server__product-link { flex-direction: column; gap: 0; padding: 12px; }
  .ec-server__product-image, .ec-server__products--rows .ec-server__product-image { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .ec-server__product-copy { gap: 5px; padding: 12px 0; }
  .ec-server__products--rows .ec-server__product-copy { padding: 12px 0; }
  .ec-server__product-title { order: 0; font-size: 18px; }
  .ec-server__product-description, .ec-server__products--rows .ec-server__product-description { display: -webkit-box; overflow: hidden; color: var(--ec-muted); font-size: 14px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .ec-server__product-meta { margin-top: auto; padding-top: 12px; }
  .ec-server__product-price { order: 1; margin-top: 4px; font-size: 19px; }
  .ec-server__category-card { min-height: 380px; }
  .ec-server__category-card > span { width: 100%; max-width: 180px; min-height: 180px; }
}
[data-theme="dark"] .ec-server { --ec-ink: #f5f5f6; --ec-muted: #b4b4bc; --ec-surface: #29292d; --ec-border: #424248; background: #1c1c1e; }
[data-theme="dark"] .ec-server__header, [data-theme="dark"] .ec-server__categories, [data-theme="dark"] .ec-server__category-navigation, [data-theme="dark"] .ec-server__product { background: #1c1c1e; }
@media (prefers-reduced-motion: reduce) { .ec-server * { scroll-behavior: auto !important; } }

/* Match SourceHome's two navigation rows before Vue loads. */
.ec-server__category-navigation { margin-top:0; }
.ec-server__navigation-row { display:flex; align-items:center; gap:8px; padding-right:20px; }
.ec-server__navigation-row > nav { flex:1; min-width:0; }
.ec-server__categories { position:static; margin-top:0; gap:6px; }
.ec-server__categories button { display:flex; align-items:center; flex:none; height:36px; max-width:55vw; padding:0 14px; border:0; border-radius:999px; background:var(--ec-surface); color:var(--ec-ink); font:600 14px/20px EcommerceManrope,system-ui,sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; opacity:1; }
.ec-server__categories button[aria-current="page"] { background:var(--ec-ink); color:var(--color-white,#fff); }
.ec-server__categories--groups { gap:16px; padding-block:0; }
.ec-server__categories--groups button { position:relative; height:44px; max-width:60vw; padding:0; border-radius:0; background:transparent; color:var(--ec-muted); font-size:14px; }
.ec-server__categories--groups button[aria-current="page"] { background:transparent; color:var(--ec-ink); }
.ec-server__categories--groups button[aria-current="page"]::after { content:""; position:absolute; inset-inline:0; bottom:6px; height:2px; border-radius:999px; background:var(--color-accent-strong,var(--primary-color)); }
.ec-server__filter { display:grid; place-items:center; box-sizing:border-box; width:44px; height:44px; flex:0 0 44px; margin-block:8px; border:1px solid var(--ec-border); border-radius:999px; background:var(--ec-surface); color:var(--ec-ink); opacity:1; }

.ec-server__navigation-only { max-width:1440px; margin-inline:auto; }
.ec-server__section { padding-top:32px; }
.ec-server__section--first { padding-top:16px; }
@media(min-width:1280px) {
  .ec-server__section { padding-top:40px; }
  .ec-server__section--first { padding-top:24px; }
}
.ec-server__fulfillment-icon { color:var(--color-accent-strong,var(--primary-color)); }
.ec-server .ec-server-bottom-nav { position:fixed; inset:auto auto 0 50%; width:100%; max-width:448px; transform:translateX(-50%); margin:0; box-sizing:border-box; }
.ec-server .ec-server-bottom-nav button:disabled { opacity:1; cursor:default; }
@media(min-width:768px) { .ec-server .ec-server-bottom-nav { max-width:768px; } }
.ec-server-bottom-nav { --color-on-accent:var(--secondary-color,#fff); --color-muted:var(--grey,#66666e); }

@media(min-width:1280px) {
 .ec-server__scroll > .ec-site-header { position:sticky; top:0; z-index:30; }
 .ec-server__category-navigation { top:72px; }
}

@media(max-width:1279.98px) {
 .ec-server__products--rail .ec-server__product-meta { order:-1; }
 .ec-server__products--rail .ec-server__product-title { margin-top:2px; }
 .ec-server__product-arrow { width:32px; height:32px; }
}

/* Both renderers use one viewport-sized catalog and an internal scroll panel. */
.ec-server { display:flex; flex-direction:column; height:100dvh; min-height:0; overflow:hidden; }
.ec-server__scroll { flex:1; min-height:0; overflow-y:auto; overflow-anchor:none; position:relative; }

.ec-server__desktop-add { display:none; }
@media(min-width:1280px) {
 .ec-server__product-copy, .ec-server__products--rows .ec-server__product-copy { flex:1; gap:0; padding:12px 0 0; }
 .ec-server__product-title { line-height:1.375; }
 .ec-server__product-description, .ec-server__products--rows .ec-server__product-description { margin-top:4px; line-height:1.625; }
 .ec-server__product-meta { gap:8px; padding-top:12px; min-height:56px; align-items:center; }
 .ec-server__product-price { margin-top:0; line-height:1.5; }
 .ec-server__desktop-add { display:inline-flex; align-items:center; justify-content:center; flex:none; min-height:44px; min-width:44px; margin-left:auto; padding:0 14px; border-radius:999px; background:var(--primary-color); color:var(--secondary-color,#fff); font-size:14px; font-weight:800; line-height:20px; }
}
/* Apply the final catalog shell geometry before Vue changes body classes. */
html:has(#ecommerce-server-shell.ec-server:not([hidden])) { font-size:16px!important; }
body:has(#ecommerce-server-shell.ec-server:not([hidden])) { margin:0!important; overflow:hidden!important; }
body:has(#ecommerce-server-shell.ec-server:not([hidden])) .safe-area-spacer,
body:has(#ecommerce-server-shell.ec-server:not([hidden])) #app-header { display:none!important; }
body:has(#ecommerce-server-shell.ec-server:not([hidden])) .app-content { width:100%!important; max-width:none!important; min-height:100dvh!important; margin:0!important; padding:0!important; }
.ec-server { font-weight:400; }
/* Match the live desktop grid's mt-4 rather than the mobile rail inset. */
@media(min-width:1280px) {
 .ec-server__products { padding-top:16px; padding-bottom:0; }
}

.ec-server__section h2 { letter-spacing:-.02em; }
.ec-server__categories button { line-height:1.5; }

.ec-server-mobile-product { flex-shrink:0; }
@media(min-width:1280px){.ec-server-mobile-product{display:none!important;}}
@media(max-width:1279.98px){
 .ec-server__products--rail { padding-top:12px; padding-bottom:24px; scroll-padding-left:20px; }
 .ec-server__section--first .ec-server__products--rail { padding-top:16px; }
 .ec-server__products--rows { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; padding-top:8px; padding-bottom:0; }
}
@media(min-width:768px) and (max-width:1279.98px){.ec-server__products--rows{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;}}
@media(min-width:1024px) and (max-width:1279.98px){.ec-server__products--rows{grid-template-columns:repeat(3,minmax(0,1fr));}}

.ec-server-repeat {display:none;}
@media(max-width:767.98px){
 .ec-server-repeat:not([hidden]){display:block;margin:20px 0 8px;}
 .ec-server-repeat header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;min-height:42px;padding:0 20px 8px;}
 .ec-server-repeat h2{display:flex;align-items:center;min-height:32px;margin:0;font-size:22px;font-weight:800;line-height:1.2;letter-spacing:-.02em;}
 .ec-server-repeat header button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;border:0;background:transparent;color:var(--primary-color);font:700 14px/20px EcommerceManrope,system-ui,sans-serif;}
 .ec-server-repeat__rail{display:flex;gap:12px;overflow-x:auto;padding:4px 20px 24px;scrollbar-width:none;}
}

.ec-server-repeat .source-mobile-dish__title { font-weight:700; line-height:1.4; }

.ec-server-repeat header button{gap:4px;padding:6px 0;line-height:1.5;flex:0 0 auto;}
@media(max-width:420px){.ec-server-repeat header button{min-width:0;font-size:clamp(10px,3vw,12px);white-space:nowrap;}.ec-server-repeat header button svg{width:16px;height:16px;flex:none;}}
