/*
 * Structural variants Carta and Galeria.
 *
 * This stylesheet is deliberately scoped to the variant adapters. It uses
 * the tenant palette tokens already provided by the storefront and never
 * owns prices, availability or transactional state.
 */

body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter) {
  --zst-structure-border: color-mix(in srgb, var(--border, currentColor) 82%, transparent);
  --zst-structure-muted: var(--muted, currentColor);
  --zst-structure-surface: var(--surface, transparent);
  --zst-structure-bg: var(--bg, transparent);
  --zst-structure-accent: var(--brand, currentColor);
  --zst-structure-focus: color-mix(in srgb, var(--zst-structure-accent) 72%, white);
  color: var(--text, inherit);
  min-width: 0;
}

body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter) *,
body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter) *::before,
body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter) *::after {
  box-sizing: border-box;
}

body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter) :where(img, video) {
  max-width: 100%;
}

body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter) :where(a, button, input, select, textarea) {
  min-width: 0;
}

body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter) :where(.button, .ghost-button, .toggle-button, button, input, select) {
  min-height: 44px;
}

body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter) :where(a, button):focus-visible {
  outline: 3px solid var(--zst-structure-focus);
  outline-offset: 3px;
}

body.app-body.storefront-shell :where(.zst-carta-adapter__workspace, .zst-galeria-adapter__workspace) {
  min-width: 0;
  width: 100%;
}

/* Carta: quiet typography, side index and compact order summary. */

body.app-body.storefront-shell .zst-carta-adapter {
  --zst-carta-serif: Georgia, "Times New Roman", serif;
  --zst-carta-reading: 78rem;
  font-variant-numeric: tabular-nums;
}

body.app-body.storefront-shell .zst-carta-adapter :where(h1, h2, h3, .price, .product-page__price) {
  font-family: var(--zst-carta-serif);
  letter-spacing: -0.025em;
}

body.app-body.storefront-shell .zst-carta-adapter :where(.button, .ghost-button, .toggle-button) {
  border-radius: min(var(--radius-button, 10px), 10px);
}

body.app-body.storefront-shell .zst-carta-adapter--home .carta-home {
  margin-inline: auto;
  max-width: min(100%, 96rem);
}

body.app-body.storefront-shell .zst-carta-adapter--home .carta-home__masthead {
  border-bottom: 1px solid var(--zst-structure-border);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.65fr);
  min-height: clamp(28rem, 62vh, 49rem);
}

body.app-body.storefront-shell .zst-carta-adapter--home .carta-home__intro {
  align-content: center;
  display: grid;
  padding: clamp(2rem, 6vw, 7rem);
}

body.app-body.storefront-shell .zst-carta-adapter--home .carta-home__intro h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.88;
  margin-block: 0.3em;
  max-width: 10ch;
}

body.app-body.storefront-shell .zst-carta-adapter--home .carta-home__figure {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body.app-body.storefront-shell .zst-carta-adapter--home .carta-home__figure img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.app-body.storefront-shell .zst-carta-adapter--home :where(.carta-index, .carta-list, .carta-notes) {
  margin-inline: auto;
  max-width: var(--zst-carta-reading);
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-shell {
  align-items: start;
  display: grid;
  gap: clamp(1.25rem, 3vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
  margin-inline: auto;
  max-width: 112rem;
  padding-inline: clamp(0.75rem, 2vw, 2.5rem);
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-main {
  align-items: start;
  display: grid;
  gap: 0 clamp(1.5rem, 3vw, 3.5rem);
  grid-template-columns: clamp(11.5rem, 16vw, 16rem) minmax(0, 1fr);
  min-width: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-main > :where(.menu-header, .lunch-banner, .empty-state) {
  grid-column: 1 / -1;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-main > .storefront-catalog-tools {
  grid-column: 2;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-header {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zst-structure-border);
  border-radius: 0;
  margin-bottom: clamp(1.25rem, 3vw, 3rem);
  min-height: 0;
  padding: clamp(1.5rem, 4vw, 4rem) 0 clamp(1.5rem, 3vw, 2.75rem);
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-header::before,
body.app-body.storefront-shell .zst-carta-adapter--menu .menu-header::after {
  display: none;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-header__copy {
  max-width: 48rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-header h1 {
  font-size: clamp(2.6rem, 5.8vw, 6.2rem);
  line-height: 0.95;
  margin-block: 0.15em 0.28em;
  text-wrap: balance;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-header .hero-eyebrow {
  color: var(--zst-structure-accent);
  font-family: var(--zst-carta-serif);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .storefront-catalog-tools {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zst-structure-border);
  border-radius: 0;
  margin-bottom: 1.5rem;
  padding-inline: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu {
  align-self: start;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--zst-structure-border);
  border-radius: 0;
  grid-column: 1;
  margin: 0;
  max-height: calc(100vh - 9rem);
  overflow: auto;
  padding: 0 1.25rem 1rem 0;
  position: sticky;
  top: 7rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu__list {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu__item {
  width: 100%;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu__link {
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  color: var(--zst-structure-muted);
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.045em;
  padding: 0.8rem 0.9rem;
  text-align: left;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu__link:is(.active, :hover, :focus-visible) {
  background: color-mix(in srgb, var(--zst-structure-accent) 14%, transparent);
  border-left-color: var(--zst-structure-accent);
  color: var(--text, inherit);
}

body.app-body.storefront-shell .zst-carta-adapter--menu .menu-section {
  grid-column: 2;
  margin: 0 0 3rem;
  min-width: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .section-header {
  align-items: baseline;
  border-bottom: 1px solid var(--zst-structure-border);
  margin-bottom: 0;
  padding: 0 0 1rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  margin: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .subnav {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zst-structure-border);
  border-radius: 0;
  justify-content: flex-start;
  margin: 0;
  padding: 0.75rem 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .subnav__link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--zst-structure-muted);
  padding-inline: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .subnav__link + .subnav__link {
  margin-left: 1.15rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .subnav__link.is-active {
  border-bottom-color: var(--zst-structure-accent);
  color: var(--text, inherit);
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-grid {
  display: block;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zst-structure-border);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: clamp(6.5rem, 12vw, 9rem) minmax(0, 1fr);
  min-height: 11rem;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-card__media-link {
  align-self: center;
  border: 0;
  border-radius: 0;
  display: block;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-media {
  aspect-ratio: 1 / 1;
  background: transparent;
  border-radius: 0;
  min-height: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-media .product-image {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-body {
  align-content: center;
  display: grid;
  gap: 0.55rem 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, auto);
  padding: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-title {
  align-items: baseline;
  display: grid;
  gap: 1rem;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-title h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-title .price {
  font-size: 1.15rem;
  white-space: nowrap;
}

body.app-body.storefront-shell .zst-carta-adapter--menu :where(.product-meta, .product-desc, .product-card__allergens, .product-card__availability) {
  grid-column: 1;
  margin: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-meta {
  gap: 0.35rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .meta-pill {
  background: transparent;
  border: 0;
  padding: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-card__actions {
  align-self: end;
  display: grid;
  gap: 0.55rem;
  grid-column: 2;
  grid-row: 2 / span 4;
  justify-items: end;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .product-card__actions :where(.button, .ghost-button) {
  min-height: 2.75rem;
  width: 100%;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .mini-cart {
  align-self: start;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--zst-structure-border);
  border-radius: 0;
  box-shadow: none;
  max-height: calc(100vh - 8rem);
  overflow: auto;
  padding: clamp(1.25rem, 2vw, 2.5rem);
  position: sticky;
  top: 7rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .mini-cart__header {
  border-bottom: 1px solid var(--zst-structure-border);
  padding-bottom: 1.25rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .mini-cart__header h3 {
  font-size: 1.8rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .mini-cart__item {
  border-bottom: 1px solid var(--zst-structure-border);
  grid-template-columns: 3rem minmax(0, 1fr);
  padding-block: 1rem;
}

body.app-body.storefront-shell .zst-carta-adapter--menu .mini-cart__footer .button {
  width: 100%;
}

body.app-body.storefront-shell .zst-carta-adapter--category .category-hero,
body.app-body.storefront-shell .zst-carta-adapter--category .home-section,
body.app-body.storefront-shell .zst-carta-adapter--product .product-page,
body.app-body.storefront-shell .zst-carta-adapter--product > .zst-carta-adapter__workspace > :where(#configurar-pedido, .card),
body.app-body.storefront-shell .zst-carta-adapter--cart > .zst-carta-adapter__workspace,
body.app-body.storefront-shell .zst-carta-adapter--role-auth > .zst-carta-adapter__workspace,
body.app-body.storefront-shell .zst-carta-adapter--role-account > .zst-carta-adapter__workspace,
body.app-body.storefront-shell .zst-carta-adapter--role-legal > .zst-carta-adapter__workspace,
body.app-body.storefront-shell .zst-carta-adapter--role-status > .zst-carta-adapter__workspace,
body.app-body.storefront-shell .zst-carta-adapter--role-system > .zst-carta-adapter__workspace {
  margin-inline: auto;
  max-width: var(--zst-carta-reading);
}

body.app-body.storefront-shell .zst-carta-adapter--category .category-hero {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zst-structure-border);
  border-radius: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--category .featured-grid--product-list {
  display: block;
}

body.app-body.storefront-shell .zst-carta-adapter--category .featured-card--product-list {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zst-structure-border);
  border-radius: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  padding-block: 1rem;
}

body.app-body.storefront-shell .zst-carta-adapter--category .featured-card--product-list .featured-image {
  aspect-ratio: 1;
  object-fit: contain;
}

body.app-body.storefront-shell .zst-carta-adapter--category .featured-card--product-list .button {
  grid-column: 3;
  grid-row: 1 / span 3;
}

body.app-body.storefront-shell .zst-carta-adapter--product .product-page {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zst-structure-border);
  border-radius: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--product .product-page__hero {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(13rem, 0.68fr) minmax(0, 1.32fr);
}

body.app-body.storefront-shell .zst-carta-adapter--product .product-page__media {
  aspect-ratio: 4 / 5;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--product .product-page__image {
  object-fit: contain;
}

body.app-body.storefront-shell .zst-carta-adapter--product .product-page__summary h1 {
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.95;
}

body.app-body.storefront-shell .zst-carta-adapter--product .product-page__facts {
  border-block: 1px solid var(--zst-structure-border);
}

body.app-body.storefront-shell .zst-carta-adapter--product #configurar-pedido {
  max-width: 58rem;
}

body.app-body.storefront-shell .zst-carta-adapter--cart .storefront-checkout-head {
  border-bottom: 1px solid var(--zst-structure-border);
  border-radius: 0;
}

body.app-body.storefront-shell .zst-carta-adapter--cart .cart-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
}

body.app-body.storefront-shell .zst-carta-adapter--cart :where(.cart-panel, .checkout-panel, .cart-item, .checkout-totals-card) {
  border-radius: min(var(--radius-card, 12px), 12px);
}

body.app-body.storefront-shell .zst-carta-adapter--role-auth .auth-shell {
  grid-template-columns: minmax(16rem, 0.7fr) minmax(20rem, 1fr);
  margin-inline: auto;
  max-width: 70rem;
}

body.app-body.storefront-shell .zst-carta-adapter--role-auth .auth-visual__copy strong,
body.app-body.storefront-shell .zst-carta-adapter--role-auth .auth-card h1 {
  font-family: var(--zst-carta-serif);
}

body.app-body.storefront-shell .zst-carta-adapter--role-legal :where(.legal-shell, .card) {
  line-height: 1.75;
}

/* Galeria: image-first mosaic and a persistent product/order panel. */

body.app-body.storefront-shell .zst-galeria-adapter {
  --zst-gallery-gap: clamp(0.65rem, 1.15vw, 1.25rem);
}

body.app-body.storefront-shell .zst-galeria-adapter :where(.button, .ghost-button, .toggle-button) {
  border-radius: min(var(--radius-button, 14px), 14px);
}

body.app-body.storefront-shell .zst-galeria-adapter--home .gallery-home {
  margin-inline: auto;
  max-width: 118rem;
}

body.app-body.storefront-shell .zst-galeria-adapter--home .gallery-hero,
body.app-body.storefront-shell .zst-galeria-adapter--home .gallery-tile,
body.app-body.storefront-shell .zst-galeria-adapter--home .gallery-product,
body.app-body.storefront-shell .zst-galeria-adapter--home .gallery-promotions article {
  border-radius: min(var(--radius-card, 18px), 18px);
  overflow: hidden;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .menu-shell {
  align-items: start;
  display: grid;
  gap: var(--zst-gallery-gap);
  grid-template-columns: minmax(0, 1fr) clamp(18rem, 25vw, 25rem);
  margin-inline: auto;
  max-width: 120rem;
  padding: var(--zst-gallery-gap);
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .menu-main {
  min-width: 0;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .menu-header {
  min-height: clamp(14rem, 24vw, 24rem);
  overflow: hidden;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .menu-header h1 {
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 0.95;
  max-width: 11ch;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .storefront-catalog-tools {
  margin-block: var(--zst-gallery-gap);
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .main-menu {
  margin-block: var(--zst-gallery-gap);
  overflow-x: auto;
  position: sticky;
  scrollbar-width: thin;
  top: 5.5rem;
  z-index: 12;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .main-menu__list {
  flex-wrap: nowrap;
  min-width: max-content;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .menu-section {
  margin-top: clamp(1.5rem, 3vw, 3.5rem);
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .section-header {
  align-items: end;
  margin-bottom: var(--zst-gallery-gap);
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .section-header h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .subnav {
  margin-bottom: var(--zst-gallery-gap);
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-grid {
  display: grid;
  gap: var(--zst-gallery-gap);
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card {
  background: var(--zst-structure-surface);
  border: 1px solid var(--zst-structure-border);
  border-radius: min(var(--radius-card, 18px), 18px);
  display: grid;
  grid-column: span 4;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card__media-link {
  width: 100%;
  height: auto;
  min-height: 0;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 1),
body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 5) {
  grid-column: span 6;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 1) .product-media,
body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 5) .product-media {
  aspect-ratio: 16 / 10;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-media {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-media--cutout .product-image {
  object-fit: contain;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-body {
  padding: clamp(0.9rem, 1.5vw, 1.35rem);
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-title {
  align-items: start;
  gap: 0.75rem;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-title h3 {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.12;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-title .price {
  white-space: nowrap;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card__actions {
  align-items: stretch;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card__actions .product-card__primary-action {
  width: 100%;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .mini-cart {
  align-self: start;
  border-radius: min(var(--radius-card, 18px), 18px);
  max-height: calc(100vh - 7rem);
  overflow: auto;
  position: sticky;
  top: 6rem;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .quick-product-dialog {
  align-items: stretch;
  background: color-mix(in srgb, black 72%, transparent);
  border: 0;
  height: 100dvh;
  inset: 0;
  justify-content: flex-end;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 0;
  width: 100vw;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .quick-product-dialog[open] {
  display: flex;
}

body.app-body.storefront-shell .zst-galeria-adapter--menu .quick-product-dialog__shell {
  border-radius: 0;
  height: 100%;
  margin-left: auto;
  max-height: none;
  overflow: auto;
  width: min(34rem, 100vw);
}

body.app-body.storefront-shell .zst-galeria-adapter--category .category-hero,
body.app-body.storefront-shell .zst-galeria-adapter--category .home-section,
body.app-body.storefront-shell .zst-galeria-adapter--product > .zst-galeria-adapter__workspace,
body.app-body.storefront-shell .zst-galeria-adapter--cart > .zst-galeria-adapter__workspace,
body.app-body.storefront-shell .zst-galeria-adapter--role-auth > .zst-galeria-adapter__workspace,
body.app-body.storefront-shell .zst-galeria-adapter--role-account > .zst-galeria-adapter__workspace,
body.app-body.storefront-shell .zst-galeria-adapter--role-legal > .zst-galeria-adapter__workspace,
body.app-body.storefront-shell .zst-galeria-adapter--role-status > .zst-galeria-adapter__workspace,
body.app-body.storefront-shell .zst-galeria-adapter--role-system > .zst-galeria-adapter__workspace {
  margin-inline: auto;
  max-width: 112rem;
}

body.app-body.storefront-shell .zst-galeria-adapter--category .category-hero {
  min-height: clamp(20rem, 42vw, 38rem);
  overflow: hidden;
}

body.app-body.storefront-shell .zst-galeria-adapter--category .category-hero__layout {
  align-items: stretch;
  min-height: inherit;
}

body.app-body.storefront-shell .zst-galeria-adapter--category .category-hero__media {
  min-height: inherit;
}

body.app-body.storefront-shell .zst-galeria-adapter--category .category-hero__image {
  height: 100%;
  object-fit: cover;
}

body.app-body.storefront-shell .zst-galeria-adapter--category .featured-grid--product-list {
  display: grid;
  gap: var(--zst-gallery-gap);
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body.app-body.storefront-shell .zst-galeria-adapter--category .featured-card--product-list {
  grid-column: span 4;
  overflow: hidden;
}

body.app-body.storefront-shell .zst-galeria-adapter--category .featured-card--product-list:nth-child(5n + 1) {
  grid-column: span 8;
}

body.app-body.storefront-shell .zst-galeria-adapter--category .featured-card--product-list .featured-image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

body.app-body.storefront-shell .zst-galeria-adapter--category .featured-card--product-list:nth-child(5n + 1) .featured-image {
  aspect-ratio: 16 / 9;
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page {
  background: transparent;
  border: 0;
  padding: var(--zst-gallery-gap);
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__top {
  margin-bottom: var(--zst-gallery-gap);
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__hero {
  align-items: start;
  display: grid;
  gap: var(--zst-gallery-gap);
  grid-template-columns: minmax(0, 1.7fr) minmax(20rem, 0.72fr);
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__media {
  aspect-ratio: 4 / 5;
  border-radius: min(var(--radius-card, 18px), 18px);
  min-height: min(72rem, calc(100vh - 8rem));
  overflow: hidden;
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__media--cutout .product-page__image {
  object-fit: contain;
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__summary {
  align-self: start;
  background: var(--zst-structure-surface);
  border: 1px solid var(--zst-structure-border);
  border-radius: min(var(--radius-card, 18px), 18px);
  max-height: calc(100vh - 8rem);
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  position: sticky;
  top: 6rem;
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__summary h1 {
  font-size: clamp(2rem, 3.6vw, 4.4rem);
  line-height: 0.98;
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__cta-row {
  display: grid;
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__primary-action {
  width: 100%;
}

body.app-body.storefront-shell .zst-galeria-adapter--product #configurar-pedido {
  margin-left: auto;
  margin-right: var(--zst-gallery-gap);
  margin-top: var(--zst-gallery-gap);
  max-width: min(42rem, calc(100% - var(--zst-gallery-gap)));
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__gallery {
  margin-right: calc(42rem + var(--zst-gallery-gap));
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__thumbs {
  display: grid;
  gap: var(--zst-gallery-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__thumbs img {
  aspect-ratio: 1;
  border-radius: min(var(--radius-card, 18px), 18px);
  object-fit: cover;
  width: 100%;
}

body.app-body.storefront-shell .zst-galeria-adapter--cart .storefront-checkout-head {
  min-height: clamp(16rem, 30vw, 30rem);
  overflow: hidden;
}

body.app-body.storefront-shell .zst-galeria-adapter--cart .cart-layout {
  align-items: start;
  display: grid;
  gap: var(--zst-gallery-gap);
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.7fr);
}

body.app-body.storefront-shell .zst-galeria-adapter--cart .checkout-panel {
  position: sticky;
  top: 6rem;
}

body.app-body.storefront-shell .zst-galeria-adapter--cart .cart-items {
  display: grid;
  gap: var(--zst-gallery-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-body.storefront-shell .zst-galeria-adapter--cart .cart-item {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(7rem, 0.6fr) minmax(0, 1fr);
  overflow: hidden;
}

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

body.app-body.storefront-shell .zst-galeria-adapter--role-auth .auth-shell {
  grid-template-columns: minmax(0, 1.25fr) minmax(21rem, 0.7fr);
  min-height: min(46rem, calc(100vh - 10rem));
}

body.app-body.storefront-shell .zst-galeria-adapter--role-auth .auth-visual {
  min-height: inherit;
}

body.app-body.storefront-shell .zst-galeria-adapter--role-auth .auth-visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.app-body.storefront-shell .zst-galeria-adapter--role-account .portal-shell,
body.app-body.storefront-shell .zst-galeria-adapter--role-status .card,
body.app-body.storefront-shell .zst-galeria-adapter--role-system .zestia-storefront-status {
  border-radius: min(var(--radius-card, 18px), 18px);
}

body.app-body.storefront-shell .zst-galeria-adapter--role-legal > .zst-galeria-adapter__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Shared responsive behavior. */

@media (min-width: 1680px) {
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card {
    grid-column: span 3;
  }

  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 1),
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 5) {
    grid-column: span 6;
  }
}

@media (max-width: 1180px) {
  body.app-body.storefront-shell .zst-carta-adapter--menu .menu-shell,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .menu-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .mini-cart,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .mini-cart {
    border: 1px solid var(--zst-structure-border);
    border-radius: min(var(--radius-card, 16px), 16px);
    max-height: none;
    position: static;
  }

  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card {
    grid-column: span 4;
  }

  body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__gallery {
    margin-right: 0;
  }
}

@media (max-width: 980px) {
  body.app-body.storefront-shell .zst-carta-adapter--home .carta-home__masthead {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.58fr);
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .menu-main {
    display: block;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu {
    border: 1px solid var(--zst-structure-border);
    border-radius: min(var(--radius-card, 12px), 12px);
    max-height: none;
    overflow-x: auto;
    padding: 0.45rem;
    position: sticky;
    top: 4.75rem;
    z-index: 12;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu__list {
    flex-direction: row;
    min-width: max-content;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu__item {
    width: auto;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu__link {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu__link:is(.active, :hover, :focus-visible) {
    border-color: var(--zst-structure-accent);
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .menu-section {
    margin-top: 1.5rem;
  }

  body.app-body.storefront-shell .zst-carta-adapter--product .product-page__hero,
  body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__hero,
  body.app-body.storefront-shell .zst-carta-adapter--cart .cart-layout,
  body.app-body.storefront-shell .zst-galeria-adapter--cart .cart-layout,
  body.app-body.storefront-shell .zst-carta-adapter--role-auth .auth-shell,
  body.app-body.storefront-shell .zst-galeria-adapter--role-auth .auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__media {
    min-height: 0;
  }

  body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__summary,
  body.app-body.storefront-shell .zst-galeria-adapter--cart .checkout-panel {
    max-height: none;
    position: static;
  }

  body.app-body.storefront-shell .zst-galeria-adapter--product #configurar-pedido {
    margin-inline: auto;
    max-width: calc(100% - (2 * var(--zst-gallery-gap)));
  }

  body.app-body.storefront-shell .zst-galeria-adapter--category .featured-card--product-list,
  body.app-body.storefront-shell .zst-galeria-adapter--category .featured-card--product-list:nth-child(5n + 1) {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  body.app-body.storefront-shell .zst-carta-adapter--home .carta-home__masthead {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }

  body.app-body.storefront-shell .zst-carta-adapter--home .carta-home__figure {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  body.app-body.storefront-shell .zst-carta-adapter--home .carta-home__intro {
    padding: 1.5rem 1rem 2.25rem;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .menu-shell,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .menu-shell {
    padding-inline: max(0.5rem, env(safe-area-inset-left));
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .menu-header {
    padding-top: 1.25rem;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-card {
    align-items: start;
    gap: 0.85rem;
    grid-template-columns: 6rem minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-grid {
    display: block !important;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-card__media-link,
  body.app-body.storefront-shell .zst-carta-adapter--menu .product-media {
    width: 100%;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 1 / 1 !important;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-body {
    display: block;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
    padding: 0.25rem 0;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-title {
    gap: 0.5rem;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-card__actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    margin-top: 0.8rem;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-card__actions :where(.button, .ghost-button) {
    width: auto;
  }

  body.app-body.storefront-shell .zst-carta-adapter--category .featured-card--product-list {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  body.app-body.storefront-shell .zst-carta-adapter--category .featured-card--product-list .button {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
  }

  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 1),
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 5) {
    grid-column: span 6;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

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

  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card__media-link,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-media,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 1) .product-media,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 5) .product-media {
    width: 100%;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 4 / 5 !important;
  }

  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 1) .product-media,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 5) .product-media {
    aspect-ratio: 4 / 5;
  }

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

  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card__details-link {
    justify-self: start;
  }

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

  body.app-body.storefront-shell .zst-galeria-adapter--role-auth .auth-visual {
    min-height: 16rem;
  }
}

@media (max-width: 480px) {
  body.app-body.storefront-shell .zst-carta-adapter--menu .product-card {
    grid-template-columns: 4.75rem minmax(0, 1fr) !important;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-title {
    align-items: start;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-title h3 {
    font-size: 1.15rem;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .product-meta,
  body.app-body.storefront-shell .zst-carta-adapter--menu .product-card__allergens {
    display: none;
  }

  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 1),
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-card:nth-child(7n + 5),
  body.app-body.storefront-shell .zst-galeria-adapter--category .featured-card--product-list,
  body.app-body.storefront-shell .zst-galeria-adapter--category .featured-card--product-list:nth-child(5n + 1) {
    grid-column: 1 / -1;
  }

  body.app-body.storefront-shell .zst-galeria-adapter--product .product-page__thumbs {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-body.storefront-shell .zst-galeria-adapter--cart .cart-item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter),
  body.app-body.storefront-shell :where(.zst-carta-adapter, .zst-galeria-adapter) * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body.app-body.storefront-shell .zst-carta-adapter--menu .main-menu,
  body.app-body.storefront-shell .zst-carta-adapter--menu .mini-cart,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .main-menu,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .mini-cart {
    display: none !important;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .menu-shell,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .menu-shell {
    display: block;
    max-width: none;
  }

  body.app-body.storefront-shell .zst-carta-adapter--menu .menu-main,
  body.app-body.storefront-shell .zst-galeria-adapter--menu .product-grid {
    display: block;
  }
}
