/*
 * Zestia customer journey
 * -----------------------
 * Carries the five approved storefront directions through the complete
 * purchase and account flow. The business identity is intentionally outside
 * this layer: the header keeps using brand_logo_url from the tenant.
 */

body.app-body.storefront-shell {
  --journey-max: 1380px;
  --journey-gutter: clamp(14px, 3vw, 44px);
  --journey-touch: 48px;
  --journey-radius: 18px;
  --journey-radius-small: 12px;
  --journey-shadow: 0 22px 58px rgba(0, 0, 0, 0.16);
}

body.app-body:is(
  .storefront-template-editorial,
  .storefront-template-mercado,
  .storefront-template-directo,
  .storefront-template-carta,
  .storefront-template-galeria
) {
  /* Structure and corporate colour are independent editor choices. */
  --journey-canvas: var(--bg, #0b0b0b);
  --journey-surface: var(--surface, #111111);
  --journey-surface-strong: var(--bg-deep, var(--surface, #080808));
  --journey-text: var(--text, #f7f4ef);
  --journey-text-on-dark: var(--text, #f7f4ef);
  --journey-muted: var(--muted, #b8b2aa);
  --journey-muted-on-dark: var(--muted, #c9c3bb);
  --journey-line: var(--border, #2e2e2e);
  --journey-line-on-dark: var(--border, #353535);
  --journey-action: var(--brand, #c94833);
  --journey-action-hover: var(--brand-dark, var(--brand, #aa3525));
  --journey-action-text: var(--brand-contrast, #fff);
  --journey-action-hover-text: var(--brand-dark-contrast, var(--brand-contrast, #fff));
  --journey-accent: var(--accent, var(--brand, #caa35e));
}

body.app-body.storefront-template-mercado {
  --journey-radius: 14px;
  --journey-radius-small: 9px;
}

body.app-body.storefront-template-directo {
  --journey-radius: 10px;
  --journey-radius-small: 8px;
}

body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) {
  width: min(100%, calc(var(--journey-max) + (var(--journey-gutter) * 2)));
  min-height: 68svh;
  padding: clamp(18px, 3vw, 42px) var(--journey-gutter) clamp(82px, 8vw, 130px);
  background: var(--journey-canvas);
  color: var(--journey-text);
}

body.app-body.storefront-template-directo .storefront-surface:not(.storefront-surface--index) {
  border: 1px solid var(--journey-line);
}

body.app-body.storefront-shell .customer-mobile-dock {
  border-color: var(--journey-line);
  background: var(--journey-surface);
}

body.app-body.storefront-shell .customer-mobile-dock a {
  color: var(--journey-text);
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-shell .customer-mobile-dock a[aria-current="page"] {
  background: var(--journey-action);
  color: var(--journey-action-text);
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) :where(
  .muted,
  .product-desc,
  .promo-description
) {
  color: var(--journey-muted);
}

body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) :where(
  .button,
  button:not(.ghost-button):not(.toggle-button):not(.customer-nav-toggle):not(.subnav__link):not(.stepper-btn):not(.mini-cart__close):not(.filter-chip):not(.category-chip):not(.solas-choice)
) {
  min-height: var(--journey-touch);
  border: 1px solid var(--journey-action);
  border-radius: var(--journey-radius-small);
  background: var(--journey-action);
  color: var(--journey-action-text);
  -webkit-text-fill-color: currentColor;
  box-shadow: none;
}

body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) :where(
  .button,
  button:not(.ghost-button):not(.toggle-button):not(.customer-nav-toggle):not(.subnav__link):not(.stepper-btn):not(.mini-cart__close):not(.filter-chip):not(.category-chip):not(.solas-choice)
):hover {
  border-color: var(--journey-action-hover);
  background: var(--journey-action-hover);
  color: var(--journey-action-hover-text);
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) .ghost-button {
  min-height: var(--journey-touch);
  border: 1px solid currentColor;
  border-radius: var(--journey-radius-small);
  background: transparent;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
) {
  min-height: var(--journey-touch);
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius-small);
  background: var(--journey-surface);
  color: var(--journey-text);
}

body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) label {
  color: var(--journey-text);
  font-weight: 800;
}

body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) :where(
  .card,
  .cart-panel,
  .checkout-panel,
  .auth-card,
  .order-card,
  .address-card,
  .account-section
) {
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius);
  background: var(--journey-surface);
  color: var(--journey-text);
  box-shadow: var(--journey-shadow);
}

body.app-body.storefront-shell :where(
  .menu-header,
  .storefront-checkout-head,
  .product-page--featured,
  .account-header--visual
)::before {
  content: none;
}

body.app-body.storefront-template-directo .storefront-surface:not(.storefront-surface--index) :where(
  .card,
  .cart-panel,
  .checkout-panel,
  .auth-card,
  .order-card,
  .address-card,
  .account-section
) {
  background: var(--journey-surface);
  color: var(--journey-text);
}

body.app-body.storefront-shell .auth-kicker,
body.app-body.storefront-shell .product-page__eyebrow {
  color: var(--journey-action);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Full menu --------------------------------------------------------------- */

body.app-body.storefront-shell .menu-shell,
body.app-body.storefront-shell .menu-main {
  width: 100%;
  min-width: 0;
}

body.app-body.storefront-shell .menu-shell {
  display: block;
}

body.app-body.storefront-shell .menu-side {
  display: none;
}

body.app-body.storefront-shell .menu-header {
  min-height: 430px;
  margin: 0 0 clamp(18px, 3vw, 34px);
  padding: clamp(24px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "copy media"
    "shift media"
    "fulfillment media";
  align-items: end;
  gap: 18px clamp(24px, 4vw, 56px);
  overflow: hidden;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius);
  background: var(--journey-surface-strong);
  color: var(--journey-text-on-dark);
  box-shadow: var(--journey-shadow);
}

body.app-body.storefront-shell .menu-header__copy {
  z-index: 1;
  grid-area: copy;
  align-self: end;
  display: grid;
  gap: 12px;
}

body.app-body.storefront-shell .menu-header__copy .hero-eyebrow {
  color: var(--journey-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

body.app-body.storefront-shell .menu-header__copy h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--journey-text-on-dark);
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: 0.82;
}

body.app-body.storefront-shell .menu-header__copy .muted {
  max-width: 50ch;
  margin: 0;
  color: var(--journey-muted-on-dark);
  font-size: clamp(0.94rem, 1.4vw, 1.12rem);
}

body.app-body.storefront-shell .menu-header__media {
  position: relative;
  grid-area: media;
  align-self: stretch;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--journey-line-on-dark);
  border-radius: calc(var(--journey-radius) - 3px);
  background: #090909;
}

body.app-body.storefront-shell .menu-header__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.app-body.storefront-shell .menu-header:hover .menu-header__media img {
  transform: scale(1.045);
}

body.app-body.storefront-shell .menu-header .shift-switcher {
  z-index: 1;
  grid-area: shift;
  align-self: end;
}

body.app-body.storefront-shell .menu-header .fulfillment-inline {
  z-index: 1;
  grid-area: fulfillment;
  max-width: 540px;
  padding: 12px;
  border: 1px solid var(--journey-line-on-dark);
  border-radius: var(--journey-radius-small);
  background: #0d0d0c;
  color: var(--journey-text-on-dark);
  box-shadow: none;
}

body.app-body.storefront-shell .menu-header :where(.fulfillment-header, .shift-switcher) {
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .menu-header .toggle-button {
  min-height: 44px;
  border: 1px solid var(--journey-line-on-dark);
  background: transparent;
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .menu-header .toggle-button.is-active {
  border-color: var(--journey-action);
  background: var(--journey-action);
  color: var(--journey-action-text);
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-shell .storefront-catalog-tools {
  margin: 0 0 18px;
  padding: clamp(16px, 2.4vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius);
  background: var(--journey-surface);
  box-shadow: none;
}

body.app-body.storefront-shell .storefront-catalog-search {
  display: grid;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.app-body.storefront-shell .storefront-catalog-search input {
  min-height: 56px;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

body.app-body.storefront-shell .storefront-catalog-result {
  margin: 0 0 14px;
  color: var(--journey-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

body.app-body.storefront-shell .menu-category-showcase {
  margin: 0 0 18px;
  padding: clamp(16px, 2.4vw, 24px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  overflow-x: auto;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius);
  background: var(--journey-surface);
  box-shadow: none;
  scrollbar-width: thin;
}

body.app-body.storefront-shell .menu-category-showcase__item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--journey-text);
  text-decoration: none;
}

body.app-body.storefront-shell .menu-category-showcase__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  border-radius: var(--journey-radius-small);
  background: var(--journey-surface-strong);
}

body.app-body.storefront-template-editorial .menu-category-showcase__media {
  aspect-ratio: 1;
  border-radius: 50%;
}

body.app-body.storefront-shell .menu-category-showcase__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

body.app-body.storefront-shell .menu-category-showcase__item:hover img {
  transform: scale(1.055);
}

body.app-body.storefront-shell .menu-category-showcase__item strong {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.05;
}

body.app-body.storefront-shell .menu-category-showcase__item > span:last-child {
  color: var(--journey-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

body.app-body.storefront-shell .main-menu {
  position: sticky;
  z-index: 22;
  top: 132px;
  margin: 0 0 26px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius-small);
  background: var(--journey-surface-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

body.app-body.storefront-shell .main-menu__list {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.app-body.storefront-shell .main-menu__list::-webkit-scrollbar {
  display: none;
}

body.app-body.storefront-shell .main-menu__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--journey-line-on-dark);
  border-radius: var(--journey-radius-small);
  background: transparent;
  color: var(--journey-text-on-dark);
  white-space: nowrap;
}

body.app-body.storefront-shell .main-menu__link:hover,
body.app-body.storefront-shell .main-menu__link.is-active {
  border-color: var(--journey-action);
  background: var(--journey-action);
  color: var(--journey-action-text);
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-shell .menu-section {
  margin-top: clamp(34px, 5vw, 74px);
}

body.app-body.storefront-shell .menu-section .section-header {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--journey-text);
}

body.app-body.storefront-shell .menu-section .section-header h2 {
  color: var(--journey-text);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

body.app-body.storefront-shell .menu-section .product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.app-body.storefront-shell .product-card--compact {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius);
  background: var(--journey-surface);
  color: var(--journey-text);
  box-shadow: none;
}

body.app-body.storefront-shell .product-card--compact .product-card__media-link,
body.app-body.storefront-shell .product-card--compact .product-media {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
}

body.app-body.storefront-shell .product-card--compact .product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 550ms ease;
}

body.app-body.storefront-shell .product-card--compact:hover .product-image {
  transform: scale(1.045);
}

body.app-body.storefront-shell .product-body--compact {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 26px);
  display: grid;
  align-content: start;
  gap: 10px;
}

body.app-body.storefront-shell .product-card--compact .product-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

body.app-body.storefront-shell .product-card--compact .product-title h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

body.app-body.storefront-shell .product-card--compact .product-title h3 a {
  color: var(--journey-text);
}

body.app-body.storefront-shell .product-card--compact .price {
  color: var(--journey-action);
  white-space: nowrap;
}

body.app-body.storefront-shell .product-card--compact .product-desc--compact {
  margin: 0;
  color: var(--journey-muted);
  font-size: 0.88rem;
}

body.app-body.storefront-shell .product-card--compact .product-card__actions {
  margin-top: auto;
}

body.app-body.storefront-template-mercado .menu-header {
  border-width: 4px;
  border-color: var(--journey-action);
}

body.app-body.storefront-template-mercado .menu-header .fulfillment-inline {
  border-color: var(--journey-line);
  background: #fff9ed;
  color: var(--journey-text);
}

body.app-body.storefront-template-mercado .menu-header :where(
  .fulfillment-header,
  .shift-switcher
) {
  color: var(--journey-text);
}

body.app-body.storefront-template-mercado .menu-header .toggle-button {
  border-color: var(--journey-line);
  color: var(--journey-text);
}

body.app-body.storefront-template-mercado .main-menu__link {
  color: var(--journey-text);
}

body.app-body.storefront-template-mercado .menu-header__copy h1,
body.app-body.storefront-template-mercado .menu-section .section-header h2 {
  text-transform: uppercase;
}

body.app-body.storefront-template-mercado .menu-category-showcase {
  border-width: 2px;
}

body.app-body.storefront-template-mercado .product-card--compact {
  border-width: 2px;
}

body.app-body.storefront-template-directo .menu-header {
  min-height: 380px;
  border-left: 6px solid var(--journey-action);
}

body.app-body.storefront-template-directo .menu-category-showcase {
  background: #131517;
}

body.app-body.storefront-template-directo .menu-section .section-header {
  border-color: var(--journey-action);
}

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

body.app-body.storefront-shell .product-page--featured {
  max-width: 1260px;
  margin-inline: auto;
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
  background: var(--journey-surface-strong);
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .product-page__top {
  margin-bottom: 4px;
}

body.app-body.storefront-shell .product-page__top .pill {
  border-color: var(--journey-line-on-dark);
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .product-page__hero {
  grid-template-columns: minmax(360px, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: center;
  overflow: hidden;
  border-radius: calc(var(--journey-radius) - 3px);
  background: var(--journey-surface-strong);
}

body.app-body.storefront-shell .product-page__media {
  width: 100%;
  min-width: 0;
  min-height: 560px;
  aspect-ratio: auto;
  border: 0;
  border-radius: calc(var(--journey-radius) - 3px);
  background: #090909;
}

body.app-body.storefront-shell .product-page__image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
}

body.app-body.storefront-shell .product-page__summary {
  min-width: 0;
  padding: clamp(8px, 2vw, 26px) clamp(8px, 2vw, 20px);
  gap: 15px;
}

body.app-body.storefront-shell .product-page__summary h1 {
  margin: 0;
  color: var(--journey-text-on-dark);
  font-size: clamp(3rem, 5.5vw, 6.4rem);
  line-height: 0.83;
}

body.app-body.storefront-shell .product-page__price {
  color: var(--journey-action);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

body.app-body.storefront-shell .product-page__summary .product-desc {
  color: var(--journey-muted-on-dark);
  font-size: 1rem;
  line-height: 1.65;
}

body.app-body.storefront-shell .product-page__highlights span,
body.app-body.storefront-shell .product-page__summary .meta-pill {
  border-color: var(--journey-line-on-dark);
  background: transparent;
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .product-page__cta-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
}

body.app-body.storefront-shell #configurar-pedido {
  width: min(100%, 1080px);
  margin: clamp(18px, 3vw, 34px) auto 0;
}

body.app-body.storefront-shell #configurar-pedido > .card,
body.app-body.storefront-shell .product-page__gallery,
body.app-body.storefront-shell .storefront-surface--product-detail > .card:not(.product-page) {
  padding: clamp(20px, 3vw, 38px);
}

body.app-body.storefront-shell .product-configurator {
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius-small);
  background: var(--journey-canvas);
  color: var(--journey-text);
}

body.app-body.storefront-shell .product-configurator summary {
  min-height: 54px;
  padding: 15px 18px;
  color: var(--journey-text);
}

body.app-body.storefront-shell .product-configurator[open] summary {
  border-bottom: 1px solid var(--journey-line);
  background: var(--journey-surface);
}

body.app-body.storefront-template-mercado .product-page--featured {
  border: 4px solid var(--journey-action);
}

body.app-body.storefront-template-mercado .product-page__top .pill {
  border-color: var(--journey-action);
  background: var(--journey-action);
  color: var(--journey-action-text);
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-template-mercado .product-page__summary h1 {
  text-transform: uppercase;
}

body.app-body.storefront-template-directo .product-page--featured {
  border-left: 6px solid var(--journey-action);
}

/* Authentication --------------------------------------------------------- */

body.app-body.storefront-shell .auth-shell.auth-shell--immersive {
  width: min(100%, 1180px);
  min-height: 700px;
  margin: clamp(4px, 3vw, 34px) auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius);
  background: var(--journey-surface-strong);
  box-shadow: var(--journey-shadow);
}

body.app-body.storefront-shell .auth-visual {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: var(--journey-surface-strong);
}

body.app-body.storefront-shell .auth-visual > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

body.app-body.storefront-shell .auth-visual__copy {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 3vw, 30px);
  display: grid;
  gap: 10px;
  border: 1px solid var(--journey-line-on-dark);
  border-radius: var(--journey-radius-small);
  background: rgba(8, 8, 8, 0.88);
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .auth-visual__copy strong {
  max-width: 11ch;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.9;
}

body.app-body.storefront-shell .auth-visual__copy p {
  max-width: 52ch;
  margin: 0;
  color: var(--journey-muted-on-dark);
}

body.app-body.storefront-shell .auth-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(30px, 5vw, 68px);
  align-content: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.app-body.storefront-shell .auth-card__head {
  display: grid;
  gap: 12px;
}

body.app-body.storefront-shell .auth-card__head h1 {
  margin: 0;
  color: var(--journey-text);
  font-size: clamp(2.4rem, 4.6vw, 4.9rem);
  line-height: 0.88;
}

body.app-body.storefront-shell .auth-card__head p,
body.app-body.storefront-shell .auth-card__switch {
  color: var(--journey-muted);
}

body.app-body.storefront-shell .auth-card form {
  gap: 16px;
}

body.app-body.storefront-shell .auth-card label {
  display: grid;
  gap: 7px;
}

body.app-body.storefront-shell .auth-card input {
  min-height: 54px;
}

body.app-body.storefront-shell .auth-card form .button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--journey-action);
  background: var(--journey-action);
  color: var(--journey-action-text);
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-shell .auth-card__switch a {
  color: var(--journey-action);
  font-weight: 900;
}

body.app-body.storefront-template-mercado .auth-shell.auth-shell--immersive {
  border-width: 4px;
  border-color: var(--journey-action);
}

body.app-body.storefront-template-mercado .auth-visual__copy {
  color: #fff9ed;
}

body.app-body.storefront-template-mercado .auth-visual__copy p {
  color: #e5d9c8;
}

body.app-body.storefront-template-mercado .auth-card__head h1 {
  text-transform: uppercase;
}

body.app-body.storefront-template-directo .auth-shell.auth-shell--immersive {
  border-left: 6px solid var(--journey-action);
}

/* Basket and checkout ----------------------------------------------------- */

body.app-body.storefront-shell .storefront-checkout-head {
  min-height: 350px;
  margin: 0 0 clamp(18px, 3vw, 30px);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  grid-template-areas:
    "copy media"
    "steps media";
  align-items: end;
  gap: 24px clamp(24px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius);
  background: var(--journey-surface-strong);
  color: var(--journey-text-on-dark);
  box-shadow: var(--journey-shadow);
}

body.app-body.storefront-shell .storefront-checkout-head__copy {
  grid-area: copy;
  display: grid;
  gap: 12px;
}

body.app-body.storefront-shell .storefront-checkout-head__copy .hero-eyebrow {
  color: var(--journey-accent);
}

body.app-body.storefront-shell .storefront-checkout-head__copy h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--journey-text-on-dark);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.84;
}

body.app-body.storefront-shell .storefront-checkout-head__copy p {
  max-width: 52ch;
  margin: 0;
  color: var(--journey-muted-on-dark);
}

body.app-body.storefront-shell .storefront-checkout-head__media {
  grid-area: media;
  align-self: stretch;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--journey-line-on-dark);
  border-radius: calc(var(--journey-radius) - 3px);
  background: #090909;
}

body.app-body.storefront-shell .storefront-checkout-head__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.app-body.storefront-shell .storefront-checkout-steps {
  grid-area: steps;
  margin: 0;
}

body.app-body.storefront-shell .storefront-checkout-steps li {
  color: var(--journey-muted-on-dark);
}

body.app-body.storefront-shell .storefront-checkout-steps li span {
  border-color: var(--journey-line-on-dark);
  background: transparent;
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .storefront-checkout-steps li.is-active {
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .storefront-checkout-steps li.is-active span {
  border-color: var(--journey-action);
  background: var(--journey-action);
  color: var(--journey-action-text);
}

body.app-body.storefront-shell .storefront-surface--cart-view > .empty-state {
  min-height: 340px;
  padding: clamp(28px, 5vw, 64px);
  align-content: center;
}

body.app-body.storefront-shell .empty-state__eyebrow {
  color: var(--journey-action);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.app-body.storefront-shell .storefront-surface--cart-view > .empty-state h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

body.app-body.storefront-shell .cart-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  gap: clamp(16px, 2.5vw, 30px);
  align-items: start;
}

body.app-body.storefront-shell :where(.cart-panel, .checkout-panel) {
  padding: clamp(20px, 3vw, 36px);
}

body.app-body.storefront-shell .cart-panel > h2,
body.app-body.storefront-shell .checkout-panel > h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

body.app-body.storefront-shell .cart-item {
  padding: 14px;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius-small);
  background: var(--journey-canvas);
}

body.app-body.storefront-shell .cart-item__media {
  overflow: hidden;
  border-radius: calc(var(--journey-radius-small) - 2px);
}

body.app-body.storefront-shell .cart-item__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.app-body.storefront-shell .checkout-panel .card {
  padding: 18px;
  border-radius: var(--journey-radius-small);
  background: var(--journey-canvas);
  box-shadow: none;
}

body.app-body.storefront-shell .checkout-totals-row {
  color: var(--journey-text);
}

body.app-body.storefront-shell .checkout-totals-row.is-total {
  border-top-color: var(--journey-line);
}

body.app-body.storefront-shell .payment-method-group {
  border-color: var(--journey-line);
  background: var(--journey-canvas);
  color: var(--journey-text);
}

body.app-body.storefront-shell .payment-method-group legend {
  color: var(--journey-text);
}

body.app-body.storefront-shell .payment-method-option,
body.app-body.storefront-shell .address-choice-copy,
body.app-body.storefront-shell .pickup-location-card {
  border-color: var(--journey-line);
  background: var(--journey-surface);
  color: var(--journey-text);
}

body.app-body.storefront-shell .pickup-status.is-open {
  border-color: #9bcfad;
  background: #e4f5e9;
  color: #176b36;
}

body.app-body.storefront-shell .pickup-status.is-closed {
  border-color: #e0a3a3;
  background: #fde9e9;
  color: #922323;
}

body.app-body.storefront-shell .address-choice-status {
  color: var(--journey-muted);
}

body.app-body.storefront-shell .address-choice-status.is-error {
  color: #922323;
}

body.app-body.storefront-shell .checkout-panel > form.stack {
  gap: 16px;
}

body.app-body.storefront-shell .checkout-panel > form.stack > label,
body.app-body.storefront-shell .checkout-panel .delivery-fields > label {
  display: grid;
  gap: 7px;
}

body.app-body.storefront-shell .fulfillment-row,
body.app-body.storefront-shell .payment-method-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.app-body.storefront-shell .fulfillment-row label,
body.app-body.storefront-shell .payment-method-option {
  min-height: 54px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius-small);
  background: var(--journey-canvas);
}

body.app-body.storefront-shell
  .fulfillment-row label:has(input[type="radio"]:checked) {
  border-color: var(--journey-action);
  background: var(--journey-action);
  color: var(--journey-action-text);
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-template-mercado .storefront-checkout-head {
  border-width: 4px;
  border-color: var(--journey-action);
}

body.app-body.storefront-template-directo .storefront-checkout-head {
  border-left: 6px solid var(--journey-action);
}

/* Customer account -------------------------------------------------------- */

body.app-body.storefront-shell .account-shell {
  width: min(100%, 1260px);
  margin-inline: auto;
  gap: clamp(18px, 3vw, 30px);
}

body.app-body.storefront-shell .account-header--visual {
  position: relative;
  min-height: 420px;
  padding: clamp(24px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius);
  background: var(--journey-surface-strong);
  color: var(--journey-text-on-dark);
  box-shadow: var(--journey-shadow);
}

body.app-body.storefront-shell .account-header__media {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.app-body.storefront-shell .account-header__copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: grid;
  gap: 12px;
}

body.app-body.storefront-shell .account-header__copy h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--journey-text-on-dark);
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.84;
}

body.app-body.storefront-shell .account-header__copy .muted {
  max-width: 48ch;
  margin: 0;
  color: var(--journey-muted-on-dark);
}

body.app-body.storefront-shell .account-header--visual > .ghost-button.small {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .account-quick-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.app-body.storefront-shell .account-quick-links .ghost-button {
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-shell .account-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}

body.app-body.storefront-shell .account-workspace > .account-section {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
}

body.app-body.storefront-shell .account-section__head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--journey-line);
}

body.app-body.storefront-shell .account-section__head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

body.app-body.storefront-shell .account-section__counter,
body.app-body.storefront-shell .address-card__type {
  color: var(--journey-action);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.app-body.storefront-shell .orders-grid,
body.app-body.storefront-shell .address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

body.app-body.storefront-shell .order-card,
body.app-body.storefront-shell .address-card {
  padding: 18px;
  box-shadow: none;
}

body.app-body.storefront-shell .address-card__identity {
  padding-left: 12px;
  border-left: 4px solid var(--journey-action);
}

body.app-body.storefront-shell .address-card strong,
body.app-body.storefront-shell .address-card__line {
  color: var(--journey-text);
}

body.app-body.storefront-shell .address-card__type {
  border-color: var(--journey-action);
  background: var(--journey-action);
  color: var(--journey-action-text);
  -webkit-text-fill-color: currentColor;
}

body.app-body.storefront-shell .address-card__icon {
  border-color: var(--journey-line);
  background: color-mix(in srgb, var(--journey-action) 12%, var(--journey-surface));
  color: var(--journey-action);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

body.app-body.storefront-shell .account-address-form {
  gap: 14px;
}

body.app-body.storefront-shell .account-address-form label {
  display: grid;
  gap: 7px;
}

body.app-body.storefront-template-mercado .account-header--visual {
  border-width: 4px;
  border-color: var(--journey-action);
}

body.app-body.storefront-template-directo .account-header--visual {
  border-left: 6px solid var(--journey-action);
}

/* Order history and confirmation surfaces -------------------------------- */

body.app-body.storefront-shell :where(.order-head-card, .orders-head, .order-detail-layout) {
  color: var(--journey-text);
}

body.app-body.storefront-shell .order-head-card {
  padding: clamp(24px, 4vw, 48px);
  border-left: 5px solid var(--journey-action);
}

body.app-body.storefront-shell .order-head-card h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.9;
}

body.app-body.storefront-shell .order-head-card__eyebrow,
body.app-body.storefront-shell .order-head-card .detail-label,
body.app-body.storefront-shell .order-head-card .muted,
body.app-body.storefront-shell .order-tracker__live,
body.app-body.storefront-shell .order-location-card__line span,
body.app-body.storefront-shell .order-location-card__meta,
body.app-body.storefront-shell .order-ticket__item-note {
  color: var(--journey-muted);
}

body.app-body.storefront-shell .order-kpi {
  border-color: var(--journey-line);
  background: color-mix(in srgb, var(--journey-surface) 88%, var(--journey-canvas));
}

body.app-body.storefront-shell .order-kpi strong,
body.app-body.storefront-shell .order-head-card__meta-item strong,
body.app-body.storefront-shell .order-location-card__line strong,
body.app-body.storefront-shell .order-ticket h2 {
  color: var(--journey-text);
}

body.app-body.storefront-shell .order-status-hint {
  border-color: var(--journey-line);
  background: color-mix(in srgb, var(--journey-surface) 82%, var(--journey-canvas));
  color: var(--journey-text);
}

body.app-body.storefront-shell .order-detail-layout > .card {
  padding: clamp(20px, 3vw, 34px);
}

/* Responsive -------------------------------------------------------------- */

@media (min-width: 1800px) {
  body.app-body.storefront-shell {
    --journey-max: min(82vw, 2100px);
  }

  body.app-body.storefront-shell .menu-header,
  body.app-body.storefront-shell .account-header--visual {
    min-height: 520px;
  }

  body.app-body.storefront-shell .menu-section .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.app-body.storefront-shell .menu-category-showcase {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  body.app-body.storefront-shell .menu-header,
  body.app-body.storefront-shell .storefront-checkout-head {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  }

  body.app-body.storefront-shell .menu-section .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell .account-workspace,
  body.app-body.storefront-shell .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  body.app-body.storefront-shell {
    --journey-gutter: 12px;
    --journey-radius: 16px;
    --journey-radius-small: 11px;
  }

  body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) {
    width: 100%;
    margin-top: 18px;
    padding: 0 12px calc(112px + env(safe-area-inset-bottom)) !important;
    border-radius: 0;
  }

  body.app-body.storefront-shell .menu-header {
    min-height: 0;
    padding: 14px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "copy"
      "shift"
      "fulfillment";
    gap: 16px;
  }

  body.app-body.storefront-shell .menu-header__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  body.app-body.storefront-shell .menu-header__copy {
    padding: 8px 4px 0;
  }

  body.app-body.storefront-shell .menu-header__copy h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  body.app-body.storefront-shell .menu-header .fulfillment-inline {
    max-width: none;
  }

  body.app-body.storefront-shell .storefront-catalog-tools {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  body.app-body.storefront-shell .storefront-catalog-result {
    margin: 0;
  }

  body.app-body.storefront-shell .menu-category-showcase {
    margin-inline: 0;
    padding: 12px;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(112px, 36vw);
    gap: 12px;
    scroll-snap-type: x proximity;
  }

  body.app-body.storefront-shell .menu-category-showcase__item {
    scroll-snap-align: start;
  }

  body.app-body.storefront-shell .main-menu {
    top: 126px;
  }

  body.app-body.storefront-shell .menu-section .section-header {
    align-items: flex-end;
    flex-direction: row;
  }

  body.app-body.storefront-shell .menu-section .section-header h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  body.app-body.storefront-shell .menu-section .product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.app-body.storefront-shell .product-card--compact {
    min-height: 228px;
    grid-template-columns: clamp(112px, 32vw, 160px) minmax(0, 1fr) !important;
  }

  body.app-body.storefront-shell .product-card--compact .product-card__media-link,
  body.app-body.storefront-shell .product-card--compact .product-media {
    min-height: 228px;
  }

  body.app-body.storefront-shell .product-card--compact .product-meta,
  body.app-body.storefront-shell .product-card--compact .product-card__allergens {
    display: none;
  }

  body.app-body.storefront-shell .product-card--compact .product-title {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  body.app-body.storefront-shell .product-card--compact .product-title h3 {
    font-size: 1.08rem;
  }

  body.app-body.storefront-shell .product-page--featured {
    padding: 12px;
  }

  body.app-body.storefront-shell .product-page__hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body.app-body.storefront-shell .product-page__media,
  body.app-body.storefront-shell .product-page__image {
    min-height: 0;
  }

  body.app-body.storefront-shell .product-page__media {
    aspect-ratio: 4 / 3;
  }

  body.app-body.storefront-shell .product-page__image {
    height: 100%;
  }

  body.app-body.storefront-shell .product-page__summary {
    padding: 6px 4px 12px;
  }

  body.app-body.storefront-shell .product-page__summary h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  body.app-body.storefront-shell .product-page__cta-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell .product-page__cta-row > * {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  body.app-body.storefront-shell .auth-shell.auth-shell--immersive {
    min-height: 0;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  body.app-body.storefront-shell .auth-visual {
    min-height: 280px;
    max-height: 360px;
  }

  body.app-body.storefront-shell .auth-visual__copy {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px;
  }

  body.app-body.storefront-shell .auth-visual__copy strong {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  body.app-body.storefront-shell .auth-visual__copy p {
    display: none;
  }

  body.app-body.storefront-shell .auth-card {
    padding: 24px 18px 28px;
  }

  body.app-body.storefront-shell .auth-card__head h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  body.app-body.storefront-shell .storefront-checkout-head {
    min-height: 0;
    padding: 14px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "copy"
      "steps";
    gap: 18px;
  }

  body.app-body.storefront-shell .storefront-checkout-head__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  body.app-body.storefront-shell .storefront-checkout-head__copy {
    padding: 8px 4px 0;
  }

  body.app-body.storefront-shell .storefront-checkout-head__copy h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  body.app-body.storefront-shell .storefront-checkout-steps {
    width: 100%;
    overflow-x: auto;
  }

  body.app-body.storefront-shell .storefront-checkout-steps li {
    min-width: max-content;
  }

  body.app-body.storefront-shell .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell :where(.cart-panel, .checkout-panel) {
    padding: 18px 14px;
  }

  body.app-body.storefront-shell .fulfillment-row,
  body.app-body.storefront-shell .payment-method-options {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell .account-header--visual {
    min-height: 560px;
    padding: 14px;
    align-content: end;
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell .account-header__media {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 48%;
  }

  body.app-body.storefront-shell .account-header__copy {
    padding: 22px 4px 4px;
  }

  body.app-body.storefront-shell .account-header__copy h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  body.app-body.storefront-shell .account-quick-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell .account-quick-links > * {
    width: 100%;
    justify-content: center;
  }

  body.app-body.storefront-shell .account-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell .account-workspace > .account-section {
    padding: 18px 14px;
  }
}

@media (max-width: 520px) {
  body.app-body.storefront-shell .storefront-surface:not(.storefront-surface--index) {
    padding-inline: 12px !important;
  }

  body.app-body.storefront-shell .menu-header,
  body.app-body.storefront-shell .storefront-checkout-head,
  body.app-body.storefront-shell .auth-shell.auth-shell--immersive,
  body.app-body.storefront-shell .account-header--visual,
  body.app-body.storefront-shell :where(.cart-panel, .checkout-panel, .account-section) {
    border-radius: 14px;
  }

  body.app-body.storefront-shell .product-card--compact {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }

  body.app-body.storefront-shell .product-body--compact {
    padding: 12px;
  }

  body.app-body.storefront-shell .product-card--compact .product-desc--compact {
    -webkit-line-clamp: 2;
  }

  body.app-body.storefront-shell .product-card--compact .product-card__status {
    font-size: 0.68rem;
  }

  body.app-body.storefront-shell .product-card--compact .product-card__details-link {
    display: none;
  }

  body.app-body.storefront-shell .product-card--compact .product-card__primary-action {
    min-height: 42px;
    padding: 8px;
    font-size: 0.76rem;
  }

  body.app-body.storefront-shell .auth-visual {
    min-height: 250px;
  }

  body.app-body.storefront-shell .auth-card {
    padding: 22px 14px 26px;
  }

  body.app-body.storefront-shell .auth-card input {
    min-height: 52px;
  }

  body.app-body.storefront-shell .storefront-checkout-head__media {
    aspect-ratio: 4 / 3;
  }

  body.app-body.storefront-shell .cart-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  body.app-body.storefront-shell .cart-item__controls {
    flex-wrap: wrap;
  }

  body.app-body.storefront-shell .account-header--visual {
    min-height: 600px;
  }

  body.app-body.storefront-shell .account-header__media {
    height: 43%;
  }
}

@media (max-width: 360px) {
  body.app-body.storefront-shell .product-card--compact {
    grid-template-columns: 104px minmax(0, 1fr) !important;
  }

  body.app-body.storefront-shell .product-card--compact .product-card__primary-action {
    font-size: 0.7rem;
  }

  body.app-body.storefront-shell .menu-category-showcase {
    grid-auto-columns: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-body.storefront-shell .menu-header__media img,
  body.app-body.storefront-shell .menu-category-showcase__media img,
  body.app-body.storefront-shell .product-card--compact .product-image {
    transition: none;
  }
}

/* Glotón canonical direction -------------------------------------------------
   Editorial is the primary storefront. It keeps the published black, white
   and roast-red language instead of introducing a second page background.
   Mercado and Directo remain independently scoped alternatives. */

body.app-body.storefront-template-editorial .storefront-surface:not(.storefront-surface--index) {
  background: var(--journey-canvas);
  color: var(--journey-text);
}

body.app-body.storefront-template-editorial .menu-header {
  min-height: 190px;
  margin: 0 0 18px;
  padding: clamp(20px, 2.4vw, 30px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  grid-template-areas:
    "copy fulfillment"
    "shift fulfillment";
  align-items: end;
  gap: 14px 24px;
  border-color: var(--journey-line);
  border-radius: 22px;
  background: var(--journey-surface-strong);
  color: var(--journey-text-on-dark);
}

body.app-body.storefront-template-editorial .menu-header--category::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--category-bg-image);
  background-position: center 36%;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 220ms ease;
}

body.app-body.storefront-template-editorial .menu-header--category.has-category-bg::before {
  opacity: 0.58;
}

body.app-body.storefront-template-editorial .menu-header--category::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 5, 0.78);
}

body.app-body.storefront-template-editorial .menu-header__copy {
  max-width: 54ch;
}

body.app-body.storefront-template-editorial .menu-header__copy h1 {
  max-width: 14ch;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.6vw, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

body.app-body.storefront-template-editorial .menu-header .fulfillment-inline {
  width: min(100%, 330px);
  justify-self: end;
  align-self: end;
  border-color: var(--journey-line-on-dark);
  background: rgba(8, 8, 8, 0.92);
}

body.app-body.storefront-template-editorial .storefront-catalog-tools {
  border-color: var(--journey-line);
  background: var(--journey-surface);
  color: var(--journey-text);
}

body.app-body.storefront-template-editorial .menu-section .section-header {
  border-color: var(--journey-line);
}

body.app-body.storefront-template-editorial .menu-section .section-header h2,
body.app-body.storefront-template-editorial .product-card--compact .product-title h3 a {
  color: var(--journey-text);
}

body.app-body.storefront-template-editorial .menu-section .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
}

body.app-body.storefront-template-editorial .product-card--compact {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  border-color: var(--journey-line);
  background: var(--journey-surface);
  color: var(--journey-text);
}

body.app-body.storefront-template-editorial .product-card--compact .product-card__media-link,
body.app-body.storefront-template-editorial .product-card--compact .product-media {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
}

body.app-body.storefront-template-editorial .product-card--compact .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.app-body.storefront-template-editorial .product-body--compact {
  min-height: 250px;
  padding: clamp(14px, 1.7vw, 20px);
}

body.app-body.storefront-template-editorial .product-card--compact .product-title {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.app-body.storefront-template-editorial .product-card--compact .price {
  color: var(--journey-text);
}

body.app-body.storefront-template-editorial .product-card__status--available {
  color: #7ed29d;
}

/* Fast product customisation stays on the menu without replacing the full
   product page. */

html.has-quick-product-dialog,
html.has-quick-product-dialog body {
  overflow: hidden;
}

body.app-body.storefront-shell .quick-product-dialog {
  width: min(940px, calc(100vw - 32px));
  max-width: 940px;
  max-height: min(88dvh, 940px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--journey-line);
  border-radius: var(--journey-radius);
  background: var(--journey-surface);
  color: var(--journey-text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

body.app-body.storefront-shell .quick-product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

body.app-body.storefront-shell .quick-product-dialog__shell {
  max-height: min(88dvh, 940px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

body.app-body.storefront-shell .quick-product-dialog__header {
  z-index: 3;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--journey-line);
  background: var(--journey-surface-strong);
}

body.app-body.storefront-shell .quick-product-dialog__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

body.app-body.storefront-shell .quick-product-dialog__identity img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border: 1px solid var(--journey-line);
  border-radius: 12px;
  object-fit: cover;
}

body.app-body.storefront-shell .quick-product-dialog__identity h2 {
  margin: 2px 0 3px;
  color: var(--journey-text);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1;
}

body.app-body.storefront-shell .quick-product-dialog__identity p {
  margin: 0;
  color: var(--journey-muted);
  font-size: 0.86rem;
}

body.app-body.storefront-shell .quick-product-dialog__eyebrow {
  color: var(--journey-action);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.app-body.storefront-shell .quick-product-dialog__close {
  flex: 0 0 auto;
  color: var(--journey-text);
}

body.app-body.storefront-shell .quick-product-dialog__body {
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.app-body.storefront-shell .quick-product-dialog .product-purchase-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.app-body.storefront-shell .quick-product-dialog .product-purchase-card > h2 {
  margin: 0 0 12px;
  color: var(--journey-text);
  font-size: 1.3rem;
}

body.app-body.storefront-shell .quick-product-dialog .product-details {
  margin-bottom: 12px;
}

body.app-body.storefront-shell .quick-product-dialog .product-configurator {
  border-color: var(--journey-line);
  background: var(--journey-surface-strong);
}

body.app-body.storefront-shell .quick-product-dialog .product-form .product-actions {
  bottom: 0;
}

body.app-body.storefront-shell .quick-product-dialog__detail-link {
  min-height: 44px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  color: var(--journey-text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1120px) and (min-width: 821px) {
  body.app-body.storefront-template-editorial .menu-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.app-body.storefront-template-editorial .menu-header {
    min-height: 0;
    padding: 16px 14px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "shift"
      "fulfillment";
    gap: 16px;
  }

  body.app-body.storefront-template-editorial .menu-header__copy h1 {
    font-size: clamp(2.35rem, 14vw, 3.6rem);
  }

  body.app-body.storefront-template-editorial .menu-header .fulfillment-inline {
    width: 100%;
    justify-self: stretch;
  }

  body.app-body.storefront-shell .quick-product-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 58px);
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  body.app-body.storefront-shell .quick-product-dialog__shell {
    max-height: calc(100dvh - 58px);
  }

  body.app-body.storefront-shell .quick-product-dialog__header {
    padding: 11px 12px;
  }

  body.app-body.storefront-shell .quick-product-dialog__identity img {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  body.app-body.storefront-shell .quick-product-dialog__identity p {
    display: none;
  }

  body.app-body.storefront-shell .quick-product-dialog__body {
    padding: 12px;
  }

  body.app-body.storefront-shell .quick-product-dialog .product-form .product-actions {
    bottom: 0;
  }
}
