/* Food detail presentation. Native options, prices and purchase controls stay intact. */
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] {
  --product-tone: #9dafb8;
  --product-stage: color-mix(in srgb, var(--fudo-background) 46%, var(--product-tone));
  --product-panel: color-mix(in srgb, var(--fudo-photo) 86%, var(--product-tone));
  --product-secondary: color-mix(in srgb, var(--fudo-text) 80%, var(--product-stage));
  --product-rule: color-mix(in srgb, var(--fudo-text) 16%, transparent);
  background: var(--fudo-background);
  color: var(--fudo-text);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food][data-product-tone=pizza],
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food]:has(.modifier-pizza-diameter) { --product-tone: #9daf8b; }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food][data-product-tone=sushi] { --product-tone: #9aafa0; }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food][data-product-tone=cakes] { --product-tone: #c5a2b0; }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food][data-product-tone=drinks] { --product-tone: #9bafb9; }

html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-product {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-gallery {
  position: sticky;
  top: calc(var(--fudo-sticky-offset, 100px) + 16px);
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 34px;
  background: var(--product-stage);
  overflow: hidden;
}
/* Product art supplies a soft background while the foreground photo stays sharp. */
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-gallery::before { display: block; }
html[data-theme=light] body.reference-style.fudo-immersive-product[data-service=food] .product-gallery::before {
  filter: blur(40px) saturate(.8) brightness(1.18);
  opacity: .28;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-gallery > .image-wrap {
  width: 100%;
  height: 100%;
  background: transparent;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-gallery .product-detail-image {
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transform: scale(1.06);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food][data-product-tone=pizza] .product-gallery .product-detail-image,
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food]:has(.modifier-pizza-diameter) .product-gallery .product-detail-image {
  object-fit: cover;
  transform: scale(1.18);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food]:is([data-product-tone=cakes], [data-product-tone=drinks]) .product-gallery .product-detail-image { transform: none; }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-details {
  min-width: 0;
  padding-top: 10px;
  background: transparent;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] :is(.product-detail-title, .product-detail-price, .modifier-section-title, .product-extra h2, .product-description h2, .product-field) {
  color: var(--fudo-text);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-detail-title {
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] :is(.immersive-product-summary, .product-detail-meta, .product-detail-unit, .product-description, .product-reassurance, .product-field span, .product-extra p) {
  color: var(--fudo-muted);
  border-color: var(--fudo-border);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-product-summary {
  font-size: 16px;
  line-height: 1.55;
  margin: 12px 0 20px;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .stock-pill {
  background: var(--fudo-photo);
  color: var(--fudo-muted);
  border: 0;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] :is(.product-gallery .product-favorite, .immersive-product-close) {
  color: var(--fudo-text);
  background: color-mix(in srgb, var(--fudo-background) 64%, transparent);
  border: 0;
  box-shadow: none;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-gallery .product-favorite[aria-pressed=true] {
  background: var(--fudo-selected);
  color: var(--fudo-accent);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-configure {
  background: var(--fudo-selected);
  color: var(--fudo-selected-text);
  box-shadow: 0 3px 18px #0000000d;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 650;
}

html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .stock-pill.unavailable {
  background:var(--fudo-error-bg);
  color:var(--fudo-error);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .stock-pill.unavailable::before {
  background:var(--fudo-error);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=pills] .immersive-option-photo {
  width:42px;
  height:42px;
  flex:0 0 42px;
}

/* Pill selectors and image tiles remain the original native form controls. */
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set {
  margin: 26px 0 32px;
  scroll-margin-top: calc(var(--fudo-sticky-offset, 100px) + 18px);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-title {
  color: var(--fudo-text);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
  margin-bottom: 17px;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-required {
  color: var(--fudo-muted);
  font-size: 11px;
  line-height: 1.4;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-choice {
  background: var(--fudo-photo);
  color: var(--fudo-text);
  border: 1px solid transparent;
  box-shadow: none;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-copy {
  color: inherit;
  gap: 8px;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-copy small {
  color: var(--fudo-muted);
  font-size: 13px;
  font-weight: 650;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-choice:has(input:checked) {
  background: var(--fudo-selected);
  color: var(--fudo-selected-text);
  border-color: transparent;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-choice:has(input:checked) .option-copy small {
  color: inherit;
  opacity: .78;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-choice:has(input:checked)::after { border-color: currentColor; }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set.has-error .option-choice { border-color: #d35236; }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=pills] .option-values {
  gap: 4px;
  padding: 4px;
  background: var(--fudo-photo);
  border-radius: 999px;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=pills] .option-choice {
  min-height: 49px;
  padding: 10px 13px;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=pills] .option-choice:has(input:checked) {
  background: var(--fudo-selected);
  color: var(--fudo-selected-text);
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=tiles] .option-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=tiles] .option-choice {
  border-radius: 25px;
  min-height: 178px;
  padding: 16px 10px 18px;
  gap: 10px;
  font-size: 14px;
  line-height: 1.3;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .immersive-option-photo {
  width: 92px;
  height: 78px;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-options-expand {
  color: var(--fudo-text);
  margin: 13px auto 0;
  font-size: 14px;
}

/* The primary action is the focal point; the quantity remains independently usable. */
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar {
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar .quantity-control {
  background: var(--fudo-photo);
  color: var(--fudo-text);
  border: 0;
  border-radius: 999px;
  min-width: 100px;
  height: 48px;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar .quantity-control :is(button, input) { color: var(--fudo-text); }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar .quantity-control button:hover { background: var(--fudo-surface-hover); }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar .product-add-main {
  min-height: 58px;
  border-radius: 999px;
  background: var(--fudo-accent);
  color: #fff;
  box-shadow: 0 6px 20px #00000012;
}
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar .product-add-main:hover { background: var(--fudo-accent-hover); }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-add-price { color: #fff; font-size: 21px; }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-add-label { color: #fff; }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-product-bar-copy { color: var(--fudo-text); }
html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-product-bar-selected { color: var(--fudo-muted); }

@media (max-width: 800px) {
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] {
    background: var(--product-stage) !important;
    color: var(--fudo-text);
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] main.product-main {
    background: transparent;
    overflow-x: clip;
    padding-bottom: calc(118px + var(--sabsus-safe-bottom, env(safe-area-inset-bottom, 0px))) !important;
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-product { display: block; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-gallery {
    position: relative;
    inset: auto;
    height: min(64svh, 125vw);
    min-height: min(430px, 108vw);
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food][data-product-tone=pizza] .product-gallery .product-detail-image,
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food]:has(.modifier-pizza-diameter) .product-gallery .product-detail-image { transform: scale(1.2); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-details { padding: 7px 16px 0; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-detail-title {
    font-size: clamp(27px, 7vw, 36px) !important;
    line-height: 1.1 !important;
    text-align: center;
    margin: 0 auto 11px;
    max-width: 620px;
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] :is(.immersive-product-summary, .product-detail-meta, .product-detail-unit, .product-description, .product-reassurance, .product-field span, .product-extra p, .product-details > .eyebrow) { color: var(--product-secondary); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] #product-details > .product-description p { color:var(--product-secondary); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-product-summary {
    margin: 10px auto 18px;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-detail-meta {
    justify-content: center;
    text-align: center;
    margin: 10px 0 16px;
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-detail-prices { display: none; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .stock-pill {
    background: var(--product-panel);
    color: var(--product-secondary);
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-configure { right: 16px; bottom: 20px; max-width: calc(100% - 32px); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set { margin: 23px 0 30px; scroll-margin-top: 85px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-title {
    font-size: 21px;
    gap: 10px;
    margin-bottom: 16px;
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-required { color: var(--product-secondary); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=pills] .option-values {
    background: var(--product-panel);
    width: fit-content;
    min-width: min(100%, 220px);
    max-width: 100%;
    margin-inline: auto;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=pills] .option-choice { min-width: 78px; min-height: 48px; padding: 10px 13px; font-size: 13px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=tiles] .option-values { gap: 6px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=tiles] .option-choice { min-height: 166px; padding: 13px 8px 16px; font-size: 13px; border-radius: 24px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-choice { background: var(--product-panel); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=pills] .option-choice { background: transparent; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .option-choice:has(input:checked) { background: var(--fudo-selected); color: var(--fudo-selected-text); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set .immersive-option-photo { width: 88px; height: 75px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] :is(.product-reassurance, .product-description, .product-field) { border-color: var(--product-rule); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-product-bar.is-scrolled {
    background: color-mix(in srgb, var(--product-stage) 82%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-product-bar.has-title { background: color-mix(in srgb, var(--product-stage) 92%, var(--fudo-background)); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-product-bar-selected { color: var(--product-secondary); }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar {
    left: max(16px, var(--sabsus-safe-left, env(safe-area-inset-left, 0px)));
    right: max(16px, var(--sabsus-safe-right, env(safe-area-inset-right, 0px)));
    bottom: calc(16px + var(--sabsus-safe-bottom, env(safe-area-inset-bottom, 0px)));
    justify-content: space-between;
    gap: 12px;
    max-width: 600px;
    pointer-events: none;
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar > * { pointer-events: auto; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar .quantity-control {
    min-width: 98px;
    flex: 0 0 98px;
    background: var(--product-panel);
    box-shadow: var(--fudo-soft-shadow);
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar .product-add-main { max-width: 260px; min-height: 58px; margin-left: auto; gap: 10px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-add-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .related-products-section { margin: 34px 16px 0; }
}

@media (max-width: 360px) {
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .product-details { padding-inline: 12px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=pills] .option-choice { min-width: 0; padding-inline: 10px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-option-set[data-layout=tiles] .option-choice { padding-inline: 5px; font-size: 12px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar { left: 12px; right: 12px; gap: 8px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-buybar .quantity-control { min-width: 92px; flex-basis: 92px; }
  html[data-theme] body.reference-style.fudo-immersive-product[data-service=food] .immersive-add-price { font-size: 19px; }
}
