/* RZ Importados
   Estrutura e medidas replicadas do layout de referência (OlaClick), com paleta própria:
   fundo cinza escuro, texto branco, destaque no cinza claro da logo. */

:root {
  /* ---- Paleta RZ ---- */
  --background-color: #1c1c1e;
  --background-color-96: #1c1c1ef5;
  --background-color-84: #1c1c1ed6;
  --surface: #232326;
  --primary-color: #d9d9d5;          /* cinza claro da logo */
  --primary-color-80: #d9d9d5cc;
  --primary-color-32: #d9d9d552;
  --primary-color-12: #d9d9d51f;
  --primary-color-8: #d9d9d514;
  --product-button-font-color: #141416; /* texto sobre o destaque */
  --product-chip-discount-text-color: #1c1c1e;
  --font-color: #ffffff;
  --font-color-80: #ffffffcc;
  --font-color-70: #ffffffb3;
  --font-color-50: #ffffff80;
  --font-color-40: #ffffff66;
  --font-color-36: #ffffff5c;
  --font-color-30: #ffffff4d;
  --font-color-20: #ffffff33;
  --font-color-12: #ffffff1f;
  --font-color-8: #ffffff14;
  --font-color-4: #ffffff0a;
  --footer-bg: #101011;
  --ok: #58d68d;
  --danger: #ff7b7b;
  --product-title-font: 'Poppins', sans-serif;
  --container: 1096px;
  --tabbar-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--sticky-h, 130px); }
body {
  background-color: var(--background-color); color: var(--font-color);
  font-family: 'Poppins', sans-serif; font-size: 16px; line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: var(--font-color); }
ul { list-style: none; padding: 0; margin: 0; }
/* `hidden` sempre esconde — senão regras como `.form label { display: grid }` passam por cima
   (ex.: "Troco para quanto?" e o endereço aparecendo na retirada) */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
::selection { background-color: var(--primary-color); color: var(--product-button-font-color); }
html { scrollbar-color: var(--font-color-20) var(--background-color); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; display: block; }
.icon--24 { width: 24px; height: 24px; }
.text-truncate-1-line, .text-truncate-2-line, .text-truncate-3-line, .text-truncate-4-line {
  display: -webkit-box; width: 100%; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}
.text-truncate-1-line { -webkit-line-clamp: 1; }
.text-truncate-2-line { -webkit-line-clamp: 2; }
.text-truncate-3-line { -webkit-line-clamp: 3; }
.text-truncate-4-line { -webkit-line-clamp: 4; }

/* ---------------- Botões base ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background-color: var(--primary-color); color: var(--product-button-font-color);
  transition: filter .15s, opacity .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--outlined { background: transparent; color: var(--font-color); border: 1px solid var(--font-color-20); }
.btn--outlined:hover { background-color: var(--font-color-8); filter: none; }
.btn--rounded { border-radius: 24px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; min-width: 36px;
  border-radius: 50%; border: 1px solid var(--font-color-20); color: var(--font-color-80);
}
.icon-btn:hover { background-color: var(--font-color-8); }

/* Chip de desconto: etiqueta arredondada de um lado só */
.discount-chip {
  display: inline-flex; align-items: center; padding: 2px 6px 2px 4px;
  border-radius: 4px 24px 24px 4px; box-shadow: 0 1px 4px #0000001f;
  background-color: #fff; flex: none;
}
.discount-label { font-weight: 600; font-size: 14px; line-height: 16px; color: var(--product-chip-discount-text-color); }
/* Chips de status: brancos, como na referência */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 26px; padding: 0 6px;
  border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 16px; color: #000;
  background-color: #fff; border: 1px solid #d0d7e2; white-space: nowrap;
}
.chip--dot::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--ok); background: radial-gradient(circle, var(--ok) 0 32%, transparent 36%);
}
.chip--closed::before { border-color: var(--danger); background: radial-gradient(circle, var(--danger) 0 32%, transparent 36%); }
.chip--rating { background-color: #fffdf5; border-color: #fffbe5; }
.chip--rating .icon { width: 14px; height: 14px; fill: #f5b400; }

/* ---------------- Bloco fixo do topo ---------------- */
/* Fora da rolagem: faixa, capa e identidade ficam dentro dos 1096px.
   Fixado: passa a ocupar a largura toda, como na referência. */
.sticky-section { width: 100%; z-index: 12; background-color: var(--background-color); }
.sticky-section__inner { max-width: var(--container); margin-inline: auto; }
.sticky-section--is-pinned { position: fixed; top: 0; left: 0; }
.sticky-section--is-pinned .sticky-section__inner,
.sticky-section--is-pinned .container { max-width: none; }
.sticky-section--is-pinned { padding-bottom: 4px; box-shadow: 0 1px 0 var(--font-color-8); }
.sticky-section--is-pinned .product-header-background,
.sticky-section--is-pinned .company-info__logo-wrap,
.sticky-section--is-pinned .company-info__primary--delivery-time,
.sticky-section--is-pinned .company-info__primary--buttons,
.sticky-section--is-pinned .company-info__primary--name-options__buttons,
.sticky-section--is-pinned .company-info__buttons--options { display: none; }
/* 52 (faixa) + 16 + 32 (nome) + 12 + 68 (categorias) + 4 = 184px, igual à referência */
.sticky-section--is-pinned .company-info { flex-direction: row; align-items: center; gap: 0; margin-top: 0; padding: 16px 16px 0; }
.sticky-section--is-pinned .company-info__primary { align-items: flex-start; padding: 0 16px; flex: 1; min-width: 0; gap: 0; }
.sticky-section--is-pinned .company-info__primary--name-options__name--title { text-align: left; }
.sticky-section--is-pinned .company-info__buttons { display: flex; width: auto; }
.sticky-section--is-pinned .social-network-button { width: 32px; height: 32px; }
.sticky-section--is-pinned .category-slider { margin-top: 12px; padding: 24px 0 8px; }

/* ---------------- Faixa de destaque ---------------- */
.loyalty-banner {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px; height: 52px;
  background-color: var(--primary-color); color: var(--product-button-font-color);
  padding-left: 16px; padding-right: 16px;
}
.loyalty-banner__cta { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.loyalty-banner__cta .icon { width: 18px; height: 18px; }
.loyalty-banner__cta:hover .loyalty-banner__info { text-decoration: underline; text-underline-offset: 3px; }
.loyalty-banner__info { font-size: 14px; font-weight: 400; line-height: 16px; text-align: right; }
.loyalty-banner__avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background-color: var(--background-color); color: var(--font-color); cursor: pointer;
}
.field__hint { display: block; font-size: 11px; color: var(--font-color-40); margin-top: 4px; }

/* ---------------- Capa + identidade da loja ---------------- */
.product-header-background {
  position: relative; width: 100%; height: 109px; border-radius: 0 0 16px 16px; overflow: hidden;
  background:
    radial-gradient(circle at 18% 28%, rgba(217, 217, 213, .18), transparent 46%),
    radial-gradient(circle at 84% 72%, rgba(217, 217, 213, .13), transparent 42%),
    linear-gradient(135deg, #313134, #151516);
}
.product-header-background__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Capa com imagem própria (3:1): a logo quadrada fica metade sobre a capa, metade abaixo. */
/* a capa ganha uma faixa extra na mesma cor da borda da arte: a logo pousa ali, metade dentro e metade fora,
   sem cobrir o texto da imagem */
.product-header-background--image { height: auto; padding-bottom: 40px; background: #0e0e0d; }
.product-header-background--image .product-header-background__img { position: static; display: block; }
.product-header-background--image + .company-info .company-info__logo { margin-top: -40px; }

/* Arte da capa (usada quando não há imagem em STORE.cover): monograma · slogan · 3 selos */
.cover-art { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 10px 16px 0; }
.cover-art__swirls { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .42; }
.cover-art__mark, .cover-art__points { display: none; }
.cover-art__headline { position: relative; text-align: center; line-height: 1; }
.cover-art__kicker { display: none; font-size: 12px; font-weight: 700; letter-spacing: .38em; text-transform: uppercase; color: var(--primary-color); margin-bottom: 6px; padding-left: .38em; }
.cover-art__main {
  display: block; font-size: 26px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; transform: skewX(-8deg);
  background: linear-gradient(180deg, #fff 30%, #b9b9b4); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
}
.cover-art__tag {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 4px; transform: skewX(-8deg);
  background-color: var(--primary-color); color: var(--product-button-font-color);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.cover-art__icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--primary-color); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.company-info { display: flex; flex-direction: column; align-items: center; }
/* o invólucro em flex evita que a margem negativa da logo colapse para fora */
.company-info__logo-wrap { display: flex; justify-content: center; flex: none; }
.company-info__logo {
  position: relative; z-index: 1; /* fica acima da capa, que é posicionada */
  width: 80px; height: 80px; margin-top: -48px; border-radius: 8px; border: 2px solid #fff;
  overflow: hidden; background-color: #fff; flex: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 0 4px var(--background-color);
}
.company-info__logo img { width: 100%; height: 100%; object-fit: cover; }
.company-info__primary { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding-top: 8px; }
.company-info__primary--name-options { display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--font-color); }
.company-info__primary--name-options__name { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.company-info__primary--name-options__buttons { display: flex; gap: 8px; }
.company-info__primary--name-options__name--title {
  font-family: var(--product-title-font); font-size: 24px; line-height: 32px; font-weight: 700; text-align: center;
}

/* Sociais + Informação (coluna à direita no desktop; só sociais quando fixado) */
.company-info__buttons { display: none; flex-direction: column; gap: 20px; width: 160px; flex: none; }
.cont-social-links { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.social-network-button {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--font-color-20); color: var(--font-color-80); transition: background-color .15s;
}
.social-network-button:hover, .information-button:hover { background-color: var(--font-color-8); }
.company-info__buttons--options { display: flex; justify-content: flex-end; }
.information-button {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 160px; height: 36px; padding: 8px;
  border-radius: 8px; border: 1px solid var(--font-color-20); background-color: var(--font-color-4);
  font-size: 14px; font-weight: 500; color: var(--font-color);
}
.company-info__primary--delivery-time { display: flex; gap: 4px; align-items: center; color: var(--font-color-70); }
.company-info__primary--delivery-time .icon { width: 16px; height: 16px; }
.company-info__primary--delivery-time .label { font-size: 14px; line-height: 16px; font-weight: 400; }
.company-info__primary--delivery-time .value { font-size: 14px; line-height: 16px; font-weight: 700; }
.company-info__primary--buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.company-info__primary--buttons .btn { min-height: 36px; font-size: 13px; }

/* ---------------- Barra de categorias ---------------- */
.category-slider { width: 100%; padding-top: 32px; padding-bottom: 16px; background-color: var(--background-color); }
.category-slider__wrapper {
  display: flex; text-align: center; align-items: center; overflow-x: auto; width: 100%;
  scrollbar-width: none; -ms-overflow-style: none; position: relative; z-index: 2;
  background-color: var(--background-color); -webkit-overflow-scrolling: touch;
}
.category-slider__wrapper::-webkit-scrollbar { display: none; }
.category-slider__item {
  height: 36px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  cursor: pointer; position: relative; white-space: nowrap; flex: none;
}
.category-slider__item:nth-child(2) { border-right: 1px solid var(--font-color-8); }
/* Botões de busca e menu: quadrados de 36px com raio 8px, como na referência (busca 20px, menu 24px) */
.search-button, .category-slider__item--menu {
  display: grid; place-items: center; width: 36px; height: 36px; min-width: 36px; padding: 0;
  border: 1px solid var(--font-color-20); border-radius: 8px; background: transparent; color: var(--font-color-80);
  transition: background-color .15s, border-color .15s, color .15s;
}
.category-slider__item--menu { margin-left: 8px; }
.search-button:hover, .category-slider__item--menu:hover,
.category-slider__item--menu[aria-expanded="true"] { background-color: var(--font-color-8); border-color: var(--font-color-30); color: #fff; }
.category-slider__item--category { margin-left: 12px; font-size: 16px; line-height: 20px; font-weight: 700; color: var(--font-color); padding-inline: 4px; }
.category-slider__item--category:hover { color: var(--primary-color-80); }
.category-slider__item--active { color: var(--primary-color); }
.category-slider__item--category { transition: color .2s; }
.category-slider__ink {
  position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 2px; background-color: var(--primary-color); pointer-events: none;
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}
.category-slider__chip { max-width: 20ch; overflow: hidden; text-overflow: ellipsis; }

/* Busca: troca a barra de categorias por campo + "Fechar" (mesma altura de 40px da referência) */
.search-container { display: none; align-items: center; gap: 8px; width: 100%; height: 40px; }
.category-slider--searching .category-slider__wrapper { display: none; }
.category-slider--searching .search-container { display: flex; }
.search-container__input {
  display: flex; align-items: center; flex: 1; min-width: 0; height: 40px; border-radius: 4px;
  background-color: #f1f1ef; border: 1px solid #d0d7e2; color: #6b6f78; cursor: text;
}
.search-container__input:focus-within { border-color: #fff; box-shadow: 0 0 0 2px var(--primary-color-80); }
.search-container__input .icon { margin: 0 6px 0 12px; }
.search-container__input input {
  flex: 1; min-width: 0; height: 100%; padding: 8px 16px 8px 6px; border: 0; outline: none; background: transparent;
  font-size: 14px; line-height: 16px; font-weight: 400; color: #141416;
}
.search-container__input input::placeholder { color: #6b6f78; opacity: 1; }
.search-container__button {
  flex: none; height: 40px; padding: 0 16px; border-radius: 4px;
  background-color: var(--primary-color); color: var(--product-button-font-color); transition: filter .15s;
}
.search-container__button:hover { filter: brightness(1.06); }
.search-container__button-text { font-size: 16px; line-height: 20px; font-weight: 600; }

/* Menu de categorias: dropdown compacto, fixo ao lado do botão */
.cat-menu {
  position: fixed; z-index: 60; width: min(232px, calc(100vw - 16px)); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 12px; background-color: #2a2a2d; border: 1px solid var(--font-color-12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: opacity .14s ease, transform .14s ease;
  scrollbar-width: thin; scrollbar-color: var(--font-color-20) transparent;
}
.cat-menu.is-open { opacity: 1; transform: none; }
.cat-menu__title { padding: 8px 12px 6px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--font-color-50); }
.cat-menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 40px; padding: 0 12px;
  border-radius: 8px; text-align: left; font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--font-color-80);
}
.cat-menu__item:hover, .cat-menu__item:focus-visible { background-color: var(--font-color-8); color: #fff; outline: none; }
.cat-menu__item.is-active { background-color: var(--primary-color-12); color: var(--primary-color); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary-color); }
.cat-menu__count { flex: none; min-width: 20px; text-align: right; font-size: 11px; font-weight: 600; color: var(--font-color-50); }
.cat-menu__item.is-active .cat-menu__count { color: var(--primary-color-80); }

/* ---------------- Campos ---------------- */
.field {
  width: 100%; min-height: 48px; padding: 0 12px; border-radius: 4px;
  background-color: var(--font-color-8); border: 1px solid var(--font-color-20); color: var(--font-color);
}
.field:focus { outline: none; border-color: var(--primary-color); }
.field::placeholder { color: var(--font-color-36); }
textarea.field { min-height: 56px; padding: 12px; font-size: 12px; line-height: 16px; letter-spacing: .12px; resize: vertical; }

/* ---------------- Destaques (carrossel) ---------------- */
.favorite-products { padding-top: 0; }
.favorite-products__title { display: flex; align-items: center; gap: 12px; font-size: 20px; line-height: 24px; font-weight: 700; color: var(--font-color); font-family: var(--product-title-font); text-transform: uppercase; }
.favorite-products__title::after, .category-view-handler::after {
  content: ''; flex: 1; align-self: center; min-width: 24px; height: 1px; background: linear-gradient(90deg, var(--font-color-12), transparent);
}
.favorite-products__wrapper { position: relative; }
.favorite-products__list {
  display: flex; gap: 16px; padding: 20px 0 24px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  --fade-l: 0px; --fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.can-prev > .favorite-products__list { --fade-l: 28px; }
.can-next > .favorite-products__list { --fade-r: 28px; }
.favorite-products__list::-webkit-scrollbar { display: none; }
.favorite-products__button {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); right: -20px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; background-color: #fff; color: #141416;
  place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transition: transform .2s var(--ease-out);
}
.favorite-products__button:hover { transform: translateY(-50%) scale(1.08); }
.favorite-products__button--prev { right: auto; left: -20px; }
.favorite-products__wrapper:not(.can-prev) .favorite-products__button--prev,
.favorite-products__wrapper:not(.can-next) .favorite-products__button--next { display: none; }
.favorite-product-card { display: block; color: inherit; width: 136px; flex: none; cursor: pointer; }
.favorite-product-card__image-container { position: relative; width: 136px; height: 136px; }
.favorite-product-card__image { width: 136px; height: 136px; border-radius: 8px; object-fit: cover; }
.favorite-product-card__title { color: var(--font-color); font-size: 14px; line-height: 16px; font-weight: 400; margin-top: 4px; word-break: break-word; }
.button-add-product {
  position: absolute; top: 4px; right: 4px; z-index: 1; width: 32px; height: 32px; min-width: 32px;
  border-radius: 8px; background-color: var(--primary-color); color: var(--product-button-font-color);
  display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.button-add-product:hover { filter: brightness(1.06); }

/* Preços: empilhados no card do carrossel */
.product__prices { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.product__price { color: var(--font-color); font-weight: 600; font-size: 16px; line-height: 16px; }
.product__original-price { color: var(--font-color-50); font-weight: 400; font-size: 12px; line-height: 14px; text-decoration: line-through; margin-left: 8px; }
.product__prices-row { display: flex; align-items: center; }

/* ---------------- Lista por categoria ---------------- */
.infinite-products:not(:first-child) { margin-top: 20px; }
.category-view-handler { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.category-view-handler .category { width: auto; min-width: 0; font-size: 20px; line-height: 24px; font-weight: 700; font-family: var(--product-title-font); color: var(--font-color); text-transform: uppercase; }
.products { display: grid; grid-template-columns: 1fr; gap: 12px; padding-top: 16px; }
.product-view-handler { min-height: 158px; border-radius: 14px; content-visibility: auto; contain-intrinsic-size: auto 158px; }
.product-card {
  display: flex; gap: 16px; cursor: pointer; height: 100%; color: inherit;
  padding: 12px; border-radius: 14px; background-color: var(--font-color-4); border: 1px solid var(--font-color-8);
}
.product-card__content { display: flex; flex-direction: column; width: 100%; min-width: 0; container-type: inline-size; container-name: product-card-content; }
.product-card__title { font-size: 16px; line-height: 20px; font-weight: 500; color: var(--font-color); }
.product-card__description { font-size: 12px; line-height: 14px; font-weight: 400; color: var(--font-color-50); margin-top: 4px; }
.product-card__price { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.product-card__image-container { position: relative; width: 132px; min-width: 132px; height: 132px; overflow: hidden; }
.product-card__image { width: 132px; height: 132px; border-radius: 10px; object-fit: cover; }
/* no card da lista o botão fica no canto inferior direito */
.product-card__image-container .button-add-product { top: auto; bottom: 4px; right: 4px; }
/* Container query: card largo mostra o chip antes do preço, em linha;
   card muito estreito empilha e move o chip para junto do preço antigo. */
@container product-card-content (min-width: 200px) {
  .product-card__price .product__prices { align-items: center; flex-direction: row; gap: 0; }
  .product-card__price .discount-chip-with-short-width { display: none; }
}
@container product-card-content (max-width: 200px) {
  .product-card__price .discount-chip-with-long-width { display: none; }
}
.products-empty { padding: 48px 16px; text-align: center; color: var(--font-color-50); }

/* ---------------- Página de produto ---------------- */
.product-page__header { position: sticky; top: 0; z-index: 20; background-color: var(--background-color-96); backdrop-filter: blur(6px); }
.product-page__header-content { display: flex; align-items: center; gap: 8px; min-height: 64px; padding-inline: 16px; max-width: var(--container); margin-inline: auto; }
.product-page__header-name { display: none; font-size: 24px; line-height: 28px; font-weight: 700; text-align: center; }
.product-page__header-title { flex: 1; font-size: 16px; font-weight: 700; }
.product-page__header-button { box-shadow: 0 1px 2px #0000003d; background-color: var(--background-color); }
.product-page__container { display: flex; flex-direction: column; max-width: var(--container); margin-inline: auto; margin-bottom: 96px; }
.product-page__container .product-image { position: relative; }
.product-page__container .product-image img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.product-info { padding: 16px 16px 24px; word-break: break-word; height: 100%; display: flex; flex-direction: column; }
.product-info__title { text-align: left; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--font-color); font-family: var(--product-title-font); margin-bottom: 8px; }
.product-info__description { font-size: 12px; line-height: 16px; color: var(--font-color-50); }
.product-info__read-more { color: var(--primary-color); font-size: 12px; font-weight: 600; margin-top: 4px; }
.product-info__prices { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.product-info__price-main { font-size: 20px; font-weight: 600; }
.product-info__price-regular { font-size: 14px; color: var(--font-color-50); text-decoration: line-through; }
.product-info__divider { margin-top: 16px; margin-bottom: 16px; border: 0; border-top: 1px solid var(--font-color-12); }
.product-info__expansion-panels { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }

.product-expansion-panel { border: 0; }
.product-expansion-panel__title { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding-bottom: 12px; }
.product-expansion-panel__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.product-expansion-panel__name { font-size: 16px; line-height: 20px; font-weight: 700; color: var(--font-color); }
.product-expansion-panel__hint { font-size: 12px; line-height: 16px; color: var(--font-color-50); }
.product-expansion-panel__badge { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 500; border: 1px solid var(--font-color-20); color: var(--font-color-80); }
.product-expansion-panel__badge--required { border-color: var(--primary-color); color: var(--primary-color); }
.product-expansion-panel__badge--done { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--product-button-font-color); }
.modifiers { display: flex; flex-direction: column; gap: 8px; }
.modifier-input-checkbox {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--font-color-20); border-radius: 4px;
  color: var(--font-color); min-height: 52px; padding: 8px 16px 8px 12px; cursor: pointer;
}
.modifier-input-checkbox:hover { border-color: var(--font-color-40); }
.modifier-input-checkbox:has(input:checked) { border-color: var(--primary-color); background-color: var(--primary-color-8); }
.modifier-input-checkbox input {
  appearance: none; width: 20px; height: 20px; flex: none; margin: 0; border-radius: 4px;
  border: 2px solid var(--font-color-50); display: grid; place-items: center;
}
.modifier-input-checkbox input[type=radio] { border-radius: 50%; }
.modifier-input-checkbox input:checked { background-color: var(--primary-color); border-color: var(--primary-color); }
.modifier-input-checkbox input:checked::after { content: ''; width: 5px; height: 10px; border: solid var(--product-button-font-color); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.modifier-input-checkbox-label { font-size: 14px; line-height: 16px; color: var(--font-color); }
.modifier-input-checkbox.is-out { opacity: .45; cursor: not-allowed; }
.modifier-input-checkbox.is-out .modifier-input-checkbox-label { text-decoration: line-through; text-decoration-color: var(--font-color-40); }
.modifier-input-checkbox.is-out .price { text-decoration: none; display: inline-block; margin: 0 0 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: var(--font-color-10, rgba(255,255,255,.1)); }
.modifier-input-checkbox-label .price { font-size: 14px; font-weight: 600; line-height: 18px; margin-top: 4px; display: block; }

/* Rodapé fixo de ação */
.product-page-footer {
  position: fixed; width: 100%; bottom: 0; left: 0; z-index: 14;
  box-shadow: 0 -1px 4px 0 var(--font-color-12); padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background-color: var(--background-color-96); backdrop-filter: blur(6px); display: flex; justify-content: flex-end;
}
.product-page-footer__container { width: 100%; display: flex; padding: 0; position: relative; }
.product-add-to-cart { display: flex; width: 100%; gap: 16px; }
.product-add-to-cart__incrementable { width: calc(40% - 8px); }
.product-add-to-cart__btn { width: calc(60% - 8px); }
.product-add-to-cart__btn .btn { width: 100%; font-size: 16px; font-weight: 600; line-height: 20px; }
.incrementable-buttons { display: flex; align-items: center; }
.incrementable-buttons--boxed {
  height: 48px; width: 100%; background-color: var(--font-color-12); border-radius: 8px;
  box-shadow: 0 2px 4px #0000003d; display: grid; grid-auto-flow: column; justify-content: stretch;
}
.incrementable-buttons__btn { height: 48px; display: grid; place-items: center; color: var(--font-color); }
.incrementable-buttons__btn:disabled { opacity: .4; cursor: default; }
.incrementable-buttons__quantity {
  color: var(--font-color); display: flex; height: 48px; justify-content: center; align-items: center;
  padding: 0 12px; font-size: 16px; font-weight: 600; line-height: 20px;
}
.incrementable-buttons--sm, .incrementable-buttons--sm .incrementable-buttons__btn, .incrementable-buttons--sm .incrementable-buttons__quantity { height: 36px; }
.incrementable-buttons--sm { width: auto; flex: none; border-radius: 8px; background-color: var(--font-color-8); box-shadow: none; }
.incrementable-buttons--sm .incrementable-buttons__btn { width: 34px; }
.incrementable-buttons--sm .incrementable-buttons__quantity { font-size: 14px; padding: 0 4px; }

/* ---------------- Sacola / checkout ---------------- */
.summary-cart {
  position: sticky; top: 0; z-index: 20; width: 100%; display: flex; align-items: center;
  border-bottom: 1px solid var(--font-color-8); background-color: var(--background-color-96);
  backdrop-filter: blur(6px); padding: 12px 0;
}
.summary-cart__wrapper { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary-cart__back { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.summary-cart .cont-title { font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: .12px; color: var(--font-color-50); text-align: right; }
.summary-cart__price { font-size: 16px; font-weight: 700; line-height: 20px; letter-spacing: .16px; text-align: right; }
.cart-page { padding-bottom: 180px; }

.steps { display: flex; padding: 16px 0 4px; }
.steps__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; font-size: 11px; line-height: 14px; color: var(--font-color-40); }
.steps__item::before { content: ''; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background-color: var(--font-color-12); }
.steps__item:first-child::before { display: none; }
.steps__item--done::before, .steps__item--current::before { background-color: var(--primary-color); }
.steps__dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background-color: var(--background-color); border: 2px solid var(--font-color-12); }
.steps__item--done, .steps__item--current { color: var(--font-color); }
.steps__item--done .steps__dot { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--product-button-font-color); }
.steps__item--current .steps__dot { border-color: var(--primary-color); color: var(--primary-color); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 8px; }
.checkout-layout > * { min-width: 0; }
.order-product { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--font-color-12); }
.order-product__image { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.order-product__body { flex: 1; min-width: 0; }
.order-product__name { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--font-color); }
.product__modifiers { font-size: 10px; line-height: 12px; letter-spacing: .2px; color: var(--font-color-50); margin-top: 2px; }
.order-product__prices { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.order-product__prices--price { font-size: 14px; font-weight: 600; line-height: 18px; }
.order-product__prices--original-price { font-size: 14px; font-weight: 400; line-height: 18px; color: var(--font-color-50); text-decoration: line-through; }

.suggested-products { margin-top: 16px; }
.suggested-products__title { font-size: 16px; line-height: 20px; font-weight: 700; color: var(--font-color); }
.suggested-products__list { display: flex; gap: 16px; padding: 16px 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.suggested-products__list::-webkit-scrollbar { display: none; }

.panel { border: 1px solid var(--font-color-12); border-radius: 8px; background-color: var(--font-color-4); padding: 16px; }
.panel__title { font-size: 16px; font-weight: 600; line-height: 20px; margin-bottom: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; line-height: 18px; color: var(--font-color-70); }
.sum-row--total { border-top: 1px solid var(--font-color-12); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 700; color: var(--font-color); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.form-error { color: var(--danger); font-size: 12px; font-weight: 400; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px 8px 12px; border: 1px solid var(--font-color-20); border-radius: 4px; cursor: pointer; font-size: 14px; }
.choice:has(input:checked) { border-color: var(--primary-color); background-color: var(--primary-color-8); }
.choice input { accent-color: var(--primary-color); width: 20px; height: 20px; flex: none; }
/* dentro do formulário, `.form label` (grid) ganharia do `.choice`: rádio ficava em cima do texto */
.form .choice { display: flex; gap: 12px; font-weight: 500; }
.choice small { display: block; color: var(--font-color-50); font-weight: 400; margin-top: 2px; }

.order-buttons-container { position: fixed; left: 0; bottom: 0; width: 100%; z-index: 14; padding: 16px 16px calc(12px + env(safe-area-inset-bottom)); background-color: var(--background-color-96); backdrop-filter: blur(6px); box-shadow: 0 -1px 4px 0 var(--font-color-12); }
.order-buttons-container__inner { max-width: var(--container); margin-inline: auto; }
.order-buttons__info { color: var(--font-color); font-size: 12px; line-height: 16px; text-align: center; margin-bottom: 12px; }
.order-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); gap: 9px; }
.order-button { min-height: 48px; background-color: var(--primary-color); color: var(--product-button-font-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 600; }
.order-button:disabled { opacity: .45; cursor: default; }
.order-button-hint { margin-top: 8px; text-align: center; font-size: 12px; line-height: 1.2; font-style: italic; font-weight: 300; color: var(--font-color-70); }
.order-button-hint a { text-decoration: underline; }

/* Barra fixa da home: contagem/total à esquerda, botão a 56% à direita */
.bottom-section-fixed {
  position: fixed; left: 0; bottom: 0; width: 100%; z-index: 14;
  background-color: var(--background-color-96); box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, .24);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-section-fixed__inner { max-width: var(--container); margin-inline: auto; padding: 16px; }
.amount-summary { display: flex; gap: 12px; height: 44px; }
.amount-summary__price { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.summary-quantity { display: flex; gap: 4px; font-size: 12px; line-height: 16px; color: var(--font-color); }
.summary-price { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--font-color); }
.amount-summary__button { flex: 0 0 56%; display: flex; align-items: center; }
.amount-summary__button .btn-see-order {
  width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 4px; background-color: var(--primary-color); color: var(--product-button-font-color);
  font-size: 14px; font-weight: 500; padding: 0 16px; transition: filter .15s;
}
.amount-summary__button .btn-see-order:hover { filter: brightness(1.06); }
body:has(.bottom-section-fixed) .products-footer__legal { padding-bottom: 100px; }

.cart-empty { text-align: center; padding: 64px 16px; }
.cart-empty svg { width: 120px; height: 120px; margin: 0 auto 16px; stroke: var(--primary-color); fill: none; stroke-width: .8; }
.cart-empty__title { font-size: 20px; line-height: 24px; font-weight: 700; }
.cart-empty__text { color: var(--font-color-50); font-size: 14px; margin: 8px 0 24px; }
.order-success { text-align: center; padding: 64px 16px; }
.order-success__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background-color: var(--primary-color); color: var(--product-button-font-color); display: grid; place-items: center; }

/* ---------------- Footer ---------------- */
.products-footer {
  width: 100%; display: flex; flex-direction: column; flex-wrap: nowrap;
  border-top: 1px solid var(--font-color-12); margin-top: 48px;
  background-color: var(--footer-bg); color: #fff;
}
.products-footer__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding: 8px 16px; }
.products-footer__brand { display: flex; align-items: center; gap: 12px; padding: 16px 0 8px; }
.products-footer__brand img { width: 48px; height: 48px; border-radius: 8px; outline: 1px solid rgba(255, 255, 255, .14); outline-offset: -1px; }
.products-footer__brand strong { font-size: 16px; line-height: 20px; font-weight: 700; }
.products-footer__brand span { display: block; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .7); }
.products-footer__menu { display: flex; flex-direction: column; }
.footer-item {
  width: 100%; height: 48px; display: flex; justify-content: center; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 500;
}
.footer-item:hover { text-decoration: underline; }
.footer-item:last-child { border-bottom: none; }
.products-footer__legal { padding: 16px 0 24px; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px);
  background-color: var(--primary-color); color: var(--product-button-font-color);
  padding: 10px 18px; border-radius: 24px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 40; white-space: nowrap;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Movimento ---------------- */
@keyframes rz-fade { from { opacity: 0; } }
@keyframes rz-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes rz-push { from { opacity: 0; transform: translateX(32px); } }
@keyframes rz-slide-up { from { transform: translateY(100%); } }
@keyframes rz-logo { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@keyframes rz-bump { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes rz-tap { 0% { transform: scale(1); } 35% { transform: scale(.8); } 100% { transform: scale(1); } }
@keyframes rz-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes rz-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Troca de tela: a página toda aparece em fade e o conteúdo sobe um pouco.
   Só o opacity fica no #app (transform ali quebraria as barras fixas lá dentro). */
#app.view-in { animation: rz-fade .3s var(--ease-std) backwards; }
#app.view-in > main, #app.view-in > .container { animation: rz-rise .45s var(--ease-out) backwards; }
#app.view-push > main { animation-name: rz-push; }
#app.view-in .company-info__logo { animation: rz-logo .7s var(--ease-out) backwards .08s; }
#app.view-in .company-info__primary { animation: rz-rise .55s var(--ease-out) backwards .14s; }
#app.view-in .product-page-footer,
#app.view-in .order-buttons-container,
#app.view-in .bottom-section-fixed,
.bottom-section-fixed.is-new { animation: rz-slide-up .5s var(--ease-out) backwards .1s; }
.summary-price { transform-origin: left center; }
.summary-price.is-bump { animation: rz-bump .4s var(--ease-out); }

/* Cards entram conforme aparecem (classe .is-in vem do IntersectionObserver) */
.reveal { opacity: 0; translate: 0 14px; transition: opacity .55s var(--ease-out), translate .55s var(--ease-out); }
.reveal.is-in { opacity: 1; translate: none; }

/* Fotos: fundo neutro enquanto carregam, depois fade */
.favorite-product-card__image-container, .product-card__image-container { border-radius: 8px; background-color: var(--surface); }
.product-card__image-container { border-radius: 10px; }
/* filete fino na borda da foto: separa a imagem escura do fundo escuro */
.favorite-product-card__image-container::after, .product-card__image-container::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--font-color-8); pointer-events: none;
}
.favorite-product-card__image-container { overflow: hidden; }
.img-fade { opacity: 0; transition: opacity .45s var(--ease-std), transform .5s var(--ease-out); }
.img-fade.is-loaded { opacity: 1; }
.favorite-product-card:hover .favorite-product-card__image, .product-card:hover .product-card__image { transform: scale(1.05); }

/* Toque: botões e cards respondem ao dedo */
.product-card { transition: transform .2s var(--ease-out), border-color .2s, background-color .2s; }
.product-card:active { transform: scale(.985); }
.favorite-product-card { transition: transform .2s var(--ease-out); }
.favorite-product-card:active { transform: scale(.97); }
.button-add-product { transition: transform .2s var(--ease-out), filter .15s, background-color .2s; }
.button-add-product:active { transform: scale(.86); }
.button-add-product.is-added { background-color: #fff; }
.button-add-product.is-added .icon { animation: rz-pop .4s var(--ease-out); }
.btn, .order-button, .btn-see-order, .search-button, .category-slider__item--menu, .social-network-button, .information-button, .incrementable-buttons__btn {
  -webkit-tap-highlight-color: transparent;
}
.btn, .order-button { transition: filter .15s, opacity .15s, transform .15s var(--ease-out); }
.btn:active:not(:disabled), .order-button:active:not(:disabled), .amount-summary__button .btn-see-order:active { transform: scale(.98); }
.incrementable-buttons__btn:active:not(:disabled) .icon { animation: rz-tap .3s var(--ease-out); }
.modifier-input-checkbox { transition: border-color .2s, background-color .2s; }
.modifier-input-checkbox input { transition: background-color .15s, border-color .15s; }
.modifier-input-checkbox input:checked::after { animation: rz-pop .3s var(--ease-out); }
.choice { transition: border-color .2s, background-color .2s; }
.product-expansion-panel__badge { transition: background-color .25s, border-color .25s, color .25s; }
.steps__dot { transition: background-color .3s, border-color .3s, color .3s; }

/* Contagem ao lado do nome da categoria */
.category-count { flex: none; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--font-color-50); }

/* Bolinha que voa do "+" até a aba Sacola */
.fly-dot {
  position: fixed; z-index: 70; width: 14px; height: 14px; border-radius: 50%; pointer-events: none;
  background-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-color-32), 0 4px 12px rgba(0, 0, 0, .5);
}

/* ---------------- Barra de navegação inferior (mobile) ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--background-color-96); border-top: 1px solid var(--font-color-8);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: transform .4s var(--ease-out), visibility 0s;
}
.tabbar--off { transform: translateY(105%); visibility: hidden; transition: transform .25s var(--ease-std), visibility 0s .25s; }
.tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--font-color-50); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent; transition: color .2s;
}
.tabbar__icon { position: relative; display: grid; place-items: center; width: 60px; height: 30px; border-radius: 15px; }
.tabbar__icon::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background-color: var(--primary-color-12);
  transform: scaleX(.3); opacity: 0; transition: transform .45s var(--ease-out), opacity .2s;
}
.tabbar__icon .icon { position: relative; width: 22px; height: 22px; fill-rule: evenodd; }
.tabbar__icon .icon--on { display: none; }
.tabbar__item.is-active { color: var(--font-color); font-weight: 600; }
.tabbar__item.is-active .tabbar__icon::before { transform: none; opacity: 1; }
.tabbar__item.is-active .icon--on { display: block; }
.tabbar__item.is-active .icon--off { display: none; }
.tabbar__item.is-tapped .tabbar__icon .icon { animation: rz-tap .35s var(--ease-out); }
.tabbar__item:active .tabbar__icon::before { opacity: 1; }
.tabbar__badge {
  position: absolute; top: -1px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 1;
  background-color: var(--primary-color); color: var(--product-button-font-color);
  box-shadow: 0 0 0 2px var(--background-color);
}
.tabbar__badge[hidden] { display: none; }
.tabbar__badge.is-bump { animation: rz-bump .45s var(--ease-out); }

@media (max-width: 959px) {
  body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  /* barras de ação sobem e ficam logo acima da barra inferior */
  body.has-tabbar .bottom-section-fixed,
  body.has-tabbar .order-buttons-container { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--font-color-8); }
  body.has-tabbar .bottom-section-fixed { padding-bottom: 0; }
  body.has-tabbar .order-buttons-container { padding-bottom: 12px; }
  body.has-tabbar .toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
  body.has-tabbar:has(#cartbar) .toast { bottom: calc(var(--tabbar-h) + 92px + env(safe-area-inset-bottom)); }
  body.has-tabbar:has(.order-buttons-container) .toast { bottom: calc(var(--tabbar-h) + 124px + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) { .tabbar { display: none; } }

/* ---------------- Esqueleto de carregamento ---------------- */
.sk {
  background: linear-gradient(90deg, var(--font-color-4) 25%, var(--font-color-12) 50%, var(--font-color-4) 75%);
  background-size: 240% 100%; animation: rz-shimmer 1.4s linear infinite;
}
.boot { display: flex; flex-direction: column; align-items: center; max-width: var(--container); margin-inline: auto; }
.boot__strip { width: 100%; height: 52px; background-color: var(--primary-color); opacity: .9; }
.boot__cover { width: 100%; height: calc(min(100vw, var(--container)) / 3 + 40px); border-radius: 0 0 16px 16px; }
.boot__logo { position: relative; width: 80px; height: 80px; margin-top: -40px; border-radius: 8px; box-shadow: 0 0 0 4px var(--background-color); background-color: var(--surface); }
.boot__line { width: 180px; height: 22px; margin-top: 14px; border-radius: 6px; }
.boot__line--sm { width: 120px; height: 14px; margin-top: 10px; }
.boot__row { display: flex; gap: 16px; margin-top: 40px; overflow: hidden; }
.boot__card { width: 136px; height: 136px; flex: none; border-radius: 8px; }
@media (min-width: 960px) {
  .boot__cover { height: 240px; }
  .boot__logo { width: 132px; height: 132px; margin-top: -66px; border-radius: 16px; }
}

.toast { transition: opacity .25s, transform .4s var(--ease-out); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }

/* ---------------- Ícones de traço ---------------- */
.sico { width: 20px; height: 20px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@keyframes rz-spin { to { transform: rotate(360deg); } }
@keyframes rz-float { 50% { transform: translateY(-5px); } }
@keyframes rz-progress { from { transform: translateX(-110%); } to { transform: translateX(240%); } }
@keyframes rz-ping { from { transform: scale(.7); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }
@keyframes rz-drop { from { translate: 0 -28px; opacity: 0; } }
@keyframes rz-blink { 50% { opacity: .25; } }
@keyframes rz-shrink { to { transform: scaleX(0); } }
@keyframes rz-bob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

.track__spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--font-color-20); border-top-color: var(--primary-color); animation: rz-spin .8s linear infinite; }

/* ---------------- Aviso flutuante: pedido em andamento ---------------- */
.order-pill {
  position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px;
  background-color: var(--primary-color); color: var(--product-button-font-color);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5); -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease-out), bottom .35s var(--ease-out);
}
.order-pill:active { transform: scale(.98); }
.order-pill.is-new { animation: rz-rise .5s var(--ease-out) backwards; }
.order-pill__icon {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background-color: var(--product-button-font-color); color: var(--primary-color);
}
.order-pill--moving .order-pill__icon .sico { animation: rz-bob 1s ease-in-out infinite; }
.order-pill__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-pill__text strong { font-size: 14px; line-height: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-pill__text small { font-size: 12px; line-height: 16px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-pill__cta { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; flex: none; }
.order-pill__cta .icon { width: 18px; height: 18px; }
@media (max-width: 419px) {
  .order-pill__cta-txt { display: none; }
  .order-pill__cta { width: 32px; height: 32px; justify-content: center; border-radius: 50%; background-color: rgba(20, 20, 22, .1); }
}

/* ---------------- Aviso único: entregue / cancelado ---------------- */
.notice {
  position: fixed; z-index: 80; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top));
  max-width: 420px; margin-inline: auto; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px 18px; border-radius: 14px; background-color: #2a2a2d; border: 1px solid var(--font-color-12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  transform: translateY(calc(-100% - 24px)); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s;
}
.notice.is-on { transform: none; opacity: 1; }
.notice::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 1px;
  background-color: var(--font-color-20); transform-origin: left center;
}
.notice.is-on::after { animation: rz-shrink 9s linear forwards; }
.notice__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.notice__icon .sico { width: 24px; height: 24px; }
.notice.is-on .notice__icon .sico { animation: rz-pop .5s var(--ease-out) .15s backwards; }
.notice--ok .notice__icon { background-color: rgba(88, 214, 141, .16); color: #6fe0a0; }
.notice--bad .notice__icon { background-color: rgba(255, 123, 123, .14); color: #ff8f8f; }
.notice__body { flex: 1; min-width: 0; }
.notice__body strong { display: block; font-size: 15px; line-height: 20px; }
.notice__body p { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--font-color-70); }
.notice__link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--primary-color); }
.notice__close { width: 32px; height: 32px; flex: none; margin: -4px -4px 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--font-color-50); }
.notice__close:hover { background-color: var(--font-color-8); color: #fff; }
.notice__close .sico { width: 18px; height: 18px; }

/* ---------------- Acompanhar pedido ---------------- */
.track { min-height: 100vh; }
.track__map { position: relative; height: clamp(260px, 46vh, 460px); background-color: #151516; overflow: hidden; }
.track__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease-std); }
.track__map.is-ready .track__canvas { opacity: 1; }
.track__map-msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px 24px 44px; text-align: center; font-size: 13px; color: var(--font-color-50);
  background: radial-gradient(circle at 50% 45%, rgba(217, 217, 213, .08), transparent 60%);
}
.track__map.is-ready .track__map-msg { display: none; }
.track__map-msg .sico { width: 34px; height: 34px; color: var(--primary-color); animation: rz-float 1.6s ease-in-out infinite; }
.track__fab {
  position: absolute; z-index: 500; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background-color: var(--background-color-96); color: #fff; border: 1px solid var(--font-color-12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45); transition: transform .15s var(--ease-out);
}
.track__fab:active { transform: scale(.92); }
.track__fab--back { left: 12px; }
.track__fab--center { right: 12px; }
.track__map:not(.is-ready) .track__fab--center { display: none; }

/* mapa claro do OpenStreetMap, escurecido pra combinar com a loja */
.rz-tiles { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.35); }
.track .leaflet-container { background-color: #151516; font-family: inherit; }
.track .leaflet-control-attribution { background-color: rgba(28, 28, 30, .8); color: var(--font-color-50); font-size: 10px; padding: 0 6px; border-radius: 6px 0 0 0; }
.track .leaflet-control-attribution a { color: var(--font-color-70); }
.track .leaflet-bottom.leaflet-right { bottom: 18px; }

.map-pin, .map-courier, .map-store { background: none; border: 0; }
.map-pin__body {
  position: absolute; left: 50%; top: 2px; width: 38px; height: 38px; margin-left: -19px; display: grid; place-items: center;
  border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .55), 0 0 0 3px #1c1c1e; animation: rz-drop .7s var(--ease-out) backwards;
}
.map-pin__body .sico { transform: rotate(45deg); width: 20px; height: 20px; color: #141416; stroke-width: 2; }
.map-courier__pulse { position: absolute; inset: 0; border-radius: 50%; background-color: var(--primary-color); animation: rz-ping 1.8s var(--ease-out) infinite; }
.map-courier__body {
  position: absolute; inset: 5px; border-radius: 50%; display: grid; place-items: center;
  background-color: var(--primary-color); color: #141416; box-shadow: 0 0 0 3px #1c1c1e, 0 6px 16px rgba(0, 0, 0, .5);
}
.map-courier__body .sico { width: 22px; height: 22px; stroke-width: 2; }
.map-store__body {
  position: absolute; inset: 0; border-radius: 10px; display: grid; place-items: center;
  background-color: #fff; color: #141416; font-size: 12px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 0 0 3px #1c1c1e, 0 6px 16px rgba(0, 0, 0, .5);
}

.track__sheet {
  position: relative; z-index: 2; max-width: var(--container); margin: -20px auto 0; padding: 10px 16px 32px;
  border-radius: 20px 20px 0 0; background-color: var(--background-color); box-shadow: 0 -10px 24px rgba(0, 0, 0, .35);
}
.track--nomap .track__sheet { margin-top: 0; border-radius: 0; box-shadow: none; padding-top: 20px; max-width: 640px; }
.track__grab { width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background-color: var(--font-color-20); }
.track--nomap .track__grab { display: none; }
.track__code { font-size: 12px; line-height: 16px; color: var(--font-color-50); }
.track__title { margin-top: 4px; font-size: 22px; line-height: 28px; font-weight: 700; }
.track__title--cancelled { color: var(--danger); }
.track__title--delivered { color: #6fe0a0; }
.track__eta { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--font-color-70); }
.track__eta strong { color: #fff; }
.track-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.track-bar__seg { position: relative; height: 4px; border-radius: 2px; overflow: hidden; background-color: var(--font-color-12); transition: background-color .5s; }
.track-bar__seg.is-done { background-color: var(--primary-color); }
.track-bar__seg.is-current { background-color: var(--primary-color-32); }
.track-bar__seg.is-current::after { content: ''; position: absolute; inset: 0; width: 45%; border-radius: inherit; background-color: var(--primary-color); animation: rz-progress 1.6s var(--ease-std) infinite; }
.track__hint { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--font-color-70); }
.track__hint--late { color: #f5c542; }

.track-card { margin-top: 16px; padding: 16px; border-radius: 14px; background-color: var(--font-color-4); border: 1px solid var(--font-color-8); }
.track-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--font-color-70); }
.track-card__head .sico, .track-card__head .icon { width: 18px; height: 18px; color: var(--primary-color); }
.track-card__text { font-size: 15px; line-height: 21px; }
.track-card__text small { font-size: 12px; line-height: 18px; color: var(--font-color-50); }
.track-card__note { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--font-color-50); }
.track-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }

.track-courier { display: flex; align-items: center; gap: 12px; }
.track-courier__avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background-color: var(--primary-color); color: var(--product-button-font-color); }
.track-courier__avatar .sico { width: 26px; height: 26px; }
.track-courier--searching .track-courier__avatar { background-color: var(--font-color-8); }
.track-courier__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.track-courier__info strong { font-size: 15px; line-height: 20px; }
.track-courier__info span { font-size: 12px; line-height: 16px; color: var(--font-color-50); }
.track-courier__info small { font-size: 11px; line-height: 14px; color: var(--font-color-40); }
.track-courier__actions { display: flex; gap: 8px; }
.track-courier__actions .icon-btn { width: 40px; height: 40px; }
.track-courier .track-link { margin-top: 0; flex: none; }

.track-items { margin-bottom: 8px; }
.track-items li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--font-color-8); font-size: 14px; line-height: 18px; }
.track-items__qty { min-width: 24px; font-weight: 600; color: var(--font-color-50); }
.track-items__name { flex: 1; min-width: 0; }
.track-items__name small { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--font-color-50); }
.track-items__price { font-weight: 600; white-space: nowrap; }

.track-timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 18px; color: var(--font-color-40); }
.track-timeline li + li::before {
  content: ''; position: absolute; left: 5px; top: calc(-50% + 7px); height: calc(100% - 14px); width: 2px; border-radius: 1px;
  background-color: var(--font-color-12);
}
.track-timeline li.is-done::before, .track-timeline li.is-current::before { background-color: var(--primary-color); }
.track-timeline__dot { position: relative; z-index: 1; width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--font-color-20); background-color: var(--background-color); }
.track-timeline li.is-done { color: var(--font-color-80); }
.track-timeline li.is-done .track-timeline__dot { background-color: var(--primary-color); border-color: var(--primary-color); }
.track-timeline li.is-current { color: #fff; font-weight: 600; }
.track-timeline li.is-current .track-timeline__dot { border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-color-12); }
.track-timeline li.is-cancelled { color: var(--danger); font-weight: 600; }
.track-timeline li.is-cancelled .track-timeline__dot { background-color: var(--danger); border-color: var(--danger); }
.track-timeline__label { flex: 1; }
.track-timeline__time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--font-color-50); font-weight: 400; }

.track__actions { display: grid; gap: 10px; margin-top: 20px; }
.track__actions .btn { width: 100%; }
.track__actions .btn .sico { width: 18px; height: 18px; }

.track__sk-line { width: 150px; height: 12px; border-radius: 6px; }
.track__sk-title { width: 220px; height: 26px; margin-top: 10px; border-radius: 8px; }
.track__sk-bar { height: 4px; margin-top: 20px; border-radius: 2px; }
.track__sk-card { height: 120px; margin-top: 20px; border-radius: 14px; }

/* ---------------- Perfil ---------------- */
.page-head { position: sticky; top: 0; z-index: 20; background-color: var(--background-color-96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--font-color-8); }
.page-head__inner { display: flex; align-items: center; min-height: 56px; }
.page-head__title { font-size: 20px; line-height: 24px; font-weight: 700; }
.profile { max-width: 720px; padding-top: 20px; padding-bottom: 32px; }
.profile-card {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, var(--font-color-8), var(--font-color-4)); border: 1px solid var(--font-color-8);
}
#app.view-in .profile-card { animation: rz-rise .5s var(--ease-out) backwards .05s; }
.profile-card__avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background-color: var(--primary-color); color: var(--product-button-font-color); font-size: 20px; font-weight: 700; }
.profile-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.profile-card__info strong { font-size: 17px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card__info span { font-size: 13px; line-height: 18px; color: var(--font-color-60, rgba(255, 255, 255, .6)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card .icon-btn { width: 40px; height: 40px; }
.profile-card .icon-btn .sico { width: 18px; height: 18px; }
.profile-section { margin-top: 28px; }
.profile-section__title { margin-bottom: 12px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--font-color-50); }
.profile-empty { padding: 16px 0; font-size: 14px; color: var(--font-color-50); }

.order-list { display: grid; gap: 12px; }
.order-card { overflow: hidden; border-radius: 14px; border: 1px solid var(--font-color-12); background-color: var(--font-color-4); }
.order-card--active { border-color: var(--primary-color-32); background-color: var(--primary-color-8); }
.order-card__main { display: block; padding: 14px 16px 12px; transition: background-color .15s; }
.order-card__main:hover { background-color: var(--font-color-4); }
.order-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-card__date { font-size: 12px; color: var(--font-color-50); white-space: nowrap; }
.order-card__items { margin-top: 10px; font-size: 14px; line-height: 19px; color: var(--font-color-80); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-card__bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--font-color-50); }
.order-card__bottom strong { font-size: 15px; color: var(--font-color); }
.order-card__actions { display: flex; border-top: 1px solid var(--font-color-8); }
.order-card__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; font-size: 13px; font-weight: 600; color: var(--font-color-80); transition: background-color .15s; }
.order-card__btn + .order-card__btn { border-left: 1px solid var(--font-color-8); }
.order-card__btn:hover { background-color: var(--font-color-4); }
.order-card__btn .sico { width: 18px; height: 18px; }
.order-card__btn--primary { color: var(--primary-color); }
.order-card-sk { height: 132px; border-radius: 14px; }

.status-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background-color: currentColor; }
.status-chip--pending { background-color: rgba(245, 180, 0, .14); color: #f5c542; }
.status-chip--confirmed, .status-chip--preparing { background-color: rgba(127, 178, 255, .14); color: #9cc3ff; }
.status-chip--out_for_delivery { background-color: rgba(88, 214, 141, .16); color: #6fe0a0; }
.status-chip--out_for_delivery::before { animation: rz-blink 1.2s ease-in-out infinite; }
.status-chip--delivered { background-color: var(--font-color-8); color: var(--font-color-70); }
.status-chip--cancelled { background-color: rgba(255, 123, 123, .14); color: #ff8f8f; }

.menu-list { overflow: hidden; border-radius: 14px; border: 1px solid var(--font-color-12); }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; font-size: 15px; text-align: left; color: var(--font-color); transition: background-color .15s; }
.menu-row + .menu-row { border-top: 1px solid var(--font-color-8); }
.menu-row:hover { background-color: var(--font-color-4); }
.menu-row span { flex: 1; }
.menu-row > .sico, .menu-row > .icon:first-child { color: var(--font-color-70); }
.menu-row > .icon:last-child { color: var(--font-color-40); }
.menu-row--danger, .menu-row--danger > .sico { color: var(--danger); }

.form-page { max-width: 480px; margin-inline: auto; padding-top: 20px; }
.field__opt { font-size: 12px; font-weight: 400; color: var(--font-color-40); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 12px; background-color: var(--font-color-8); }
.seg__btn { height: 40px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--font-color-70); transition: background-color .2s, color .2s; }
.seg__btn.is-on { background-color: var(--primary-color); color: var(--product-button-font-color); }
.order-success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* pilha de barras no celular: barra inferior → barra da sacola → aviso de pedido */
@media (max-width: 959px) {
  body.has-tabbar .order-pill { bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); }
  body.has-tabbar:has(#cartbar) .order-pill { bottom: calc(var(--tabbar-h) + 86px + env(safe-area-inset-bottom)); }
  body.has-tabbar.has-pill .toast { bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom)); }
  body.has-tabbar.has-pill:has(#cartbar) .toast { bottom: calc(var(--tabbar-h) + 160px + env(safe-area-inset-bottom)); }
}
body.has-pill .products-footer__legal { padding-bottom: 170px; }
@media (min-width: 960px) {
  .order-pill { left: auto; right: 24px; width: 380px; bottom: 24px; }
  body:has(#cartbar) .order-pill { bottom: 100px; }
  body.has-pill .toast { bottom: 110px; }
  .track { display: grid; grid-template-columns: minmax(0, 1fr) 440px; }
  .track__map { position: sticky; top: 0; height: 100vh; }
  .track__sheet { margin: 0; max-width: none; padding: 28px 28px 48px; border-radius: 0; box-shadow: -1px 0 0 var(--font-color-8); }
  .track__grab { display: none; }
  .track--nomap { display: block; }
  .track--nomap .track__sheet { max-width: 640px; margin: 0 auto; box-shadow: none; }
}

/* ---------------- Pagamento online (Mercado Pago) ---------------- */
.choice--online { position: relative; border-color: var(--primary-color-32); background-color: var(--primary-color-8); }
.choice--online span small { display: block; }
.choice__badge {
  margin-left: auto; flex: none; padding: 3px 8px; border-radius: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  background-color: var(--primary-color); color: var(--product-button-font-color);
}
.choices__label { margin: 6px 0 -2px; font-size: 12px; color: var(--font-color-50); }
.order-button .icon { width: 18px; height: 18px; }

.track-pay {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 12px;
  background-color: var(--font-color-4); border: 1px solid var(--font-color-12);
}
.track-pay__icon { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background-color: var(--font-color-8); color: var(--font-color-80); }
.track-pay__icon .icon, .track-pay__icon .sico { width: 20px; height: 20px; }
.track-pay__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.track-pay__text strong { font-size: 14px; }
.track-pay__text small { font-size: 12px; color: var(--font-color-50); }
.track-pay__btn { min-height: 40px; flex: none; }
.track-pay--approved { border-color: rgba(88, 214, 141, .35); background-color: rgba(88, 214, 141, .08); }
.track-pay--approved .track-pay__icon { background-color: rgba(88, 214, 141, .16); color: #6fe0a0; }
.track-pay--rejected, .track-pay--cancelled { border-color: rgba(255, 123, 123, .35); }
.track-pay--rejected .track-pay__icon { color: #ff8f8f; }

/* ---------------- Produto esgotado ---------------- */
.soldout-tag {
  position: absolute; left: 6px; bottom: 6px; z-index: 1; padding: 3px 8px; border-radius: 6px;
  background-color: rgba(20, 20, 22, .85); border: 1px solid var(--font-color-20); color: #fff;
  font-size: 10.5px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.soldout-tag--inline { position: static; margin-left: 4px; }
.is-soldout .product-card__image, .is-soldout .favorite-product-card__image, .product-image.is-soldout img { filter: grayscale(1) brightness(.6); }
.is-soldout .product__price, .is-soldout .product-card__title { color: var(--font-color-50); }

/* ---------------- Formas de pagamento (rodapé e painel de informações) ---------------- */
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chips li {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px;
  font-size: 12px; font-weight: 500; color: var(--font-color-80); background-color: var(--font-color-8); border: 1px solid var(--font-color-8);
}
.pay-chips li.pay-chips__online { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--product-button-font-color); font-weight: 600; }
.pay-chips .icon { width: 13px; height: 13px; }
.products-footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.products-footer__label { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.products-footer__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .7); }
.products-footer__secure .icon { width: 14px; height: 14px; }

/* ---------------- Selos de confiança (página do produto) ---------------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.trust li {
  display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px;
  background-color: var(--font-color-4); border: 1px solid var(--font-color-8);
  font-size: 11.5px; line-height: 14px; font-weight: 500; color: var(--font-color-80);
}
.trust__icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--primary-color); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479px) {
  .trust li { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; text-align: center; font-size: 11px; }
}

/* ---------------- Painel "Informação" ---------------- */
@keyframes rz-sheet { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.info-sheet {
  width: min(440px, calc(100vw - 32px)); max-width: none; max-height: min(680px, calc(100dvh - 48px));
  margin: auto; padding: 0; border: 1px solid var(--font-color-12); border-radius: 20px; overflow: hidden;
  background-color: #232326; color: var(--font-color); box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
}
.info-sheet[open] { display: flex; flex-direction: column; animation: rz-sheet .35s var(--ease-out); }
.info-sheet::backdrop { background-color: rgba(0, 0, 0, .62); animation: rz-fade .25s var(--ease-std); }
.info-sheet__head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 14px 16px; border-bottom: 1px solid var(--font-color-8); }
.info-sheet__logo { width: 44px; height: 44px; flex: none; border-radius: 10px; }
.info-sheet__title { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.info-sheet__title h2 { font-size: 18px; line-height: 24px; font-weight: 700; }
.info-sheet__close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--font-color-70); transition: background-color .15s, color .15s; }
.info-sheet__close:hover { background-color: var(--font-color-8); color: #fff; }
.info-sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px 20px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; }
.info-list li + li { border-top: 1px solid var(--font-color-8); }
.info-list .icon, .info-list .sico { width: 20px; height: 20px; margin-top: 1px; color: var(--primary-color); fill: currentColor; }
.info-list .sico { fill: none; }
.info-list strong { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
.info-list span { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--font-color-70); }
.info-sheet__sec { margin-top: 18px; }
.info-sheet__sec h3 { margin-bottom: 10px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--font-color-50); }
.info-sheet__note { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--font-color-50); }
.info-sheet__actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--font-color-8);
}
.info-sheet__actions .btn { min-height: 44px; }
/* no celular vira uma folha que sobe do rodapé */
@media (max-width: 599px) {
  .info-sheet { width: 100%; max-height: 88dvh; margin: auto 0 0; border-width: 1px 0 0; border-radius: 20px 20px 0 0; }
  .info-sheet[open] { animation: rz-slide-up .4s var(--ease-out); }
  html:has(.info-sheet[open]) { overflow: hidden; }
}

/* ================= Breakpoints (iguais aos da referência) ================= */
@media (min-width: 600px) {
  .product-header-background { height: 148px; }
  .product-header-background--image { height: auto; }
  .cover-art { align-items: center; justify-content: space-between; padding: 0 32px; gap: 24px; }
  .cover-art__mark, .cover-art__points { display: block; flex: 1 1 0; min-width: 0; }
  .cover-art__mark {
    position: relative; padding-left: 12%; font-size: 76px; font-weight: 800; line-height: .9; letter-spacing: -.04em; color: #fff;
    text-shadow: 4px 0 0 rgba(217, 217, 213, .32), -3px 0 0 rgba(0, 0, 0, .4);
  }
  .cover-art__mark small { display: block; margin-top: 8px; padding-left: 4px; font-size: 11px; font-weight: 700; letter-spacing: .6em; color: var(--font-color-70); text-shadow: none; }
  .cover-art__headline { flex: none; }
  .cover-art__kicker { display: block; }
  .cover-art__main { font-size: 46px; }
  .cover-art__tag { font-size: 13px; padding: 3px 12px; }
  .cover-art__points { display: flex; flex-direction: column; gap: 8px; max-width: 300px; margin-left: auto; padding: 0; }
  .cover-art__points li {
    display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 12px;
    border: 1.5px solid rgba(217, 217, 213, .5); background: linear-gradient(90deg, rgba(217, 217, 213, .13), rgba(217, 217, 213, .03));
    font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #fff; white-space: nowrap;
  }
  .cover-art__points li span { color: var(--primary-color-80); }
}
@media (min-width: 800px) {
  .products { grid-template-columns: 1fr 1fr; padding-top: 20px; }
}
@media (min-width: 960px) {
  .loyalty-banner { padding-left: 32px; padding-right: 32px; }
  /* linha de 3 partes: logo · nome/chips/entrega · botões à direita (alturas iguais às da referência) */
  .company-info { flex-direction: row; align-items: center; gap: 16px; margin-top: 20px; }
  .company-info__logo { width: 132px; height: 132px; border-radius: 16px; }
  .product-header-background--image { height: 240px; padding-bottom: 0; }
  .product-header-background--image .product-header-background__img { object-position: 50% 40%; }
  .product-header-background--image + .company-info { margin-top: 0; align-items: flex-start; }
  .product-header-background--image + .company-info .company-info__logo { margin-top: -66px; }
  .product-header-background--image + .company-info .company-info__primary,
  .product-header-background--image + .company-info .company-info__buttons { padding-top: 16px; }
  .company-info__primary { align-items: flex-start; flex: 1; min-width: 0; padding-top: 0; }
  .company-info__primary--name-options { flex-direction: row; align-items: center; gap: 16px; }
  .company-info__primary--name-options__name { justify-content: flex-start; gap: 16px; flex-wrap: nowrap; }
  .company-info__primary--name-options__name--title { text-align: left; }
  .company-info__primary--buttons { display: none; }
  .company-info__buttons { display: flex; }
  .favorite-products__wrapper { margin: 0 -10px; }
  .favorite-products__list { padding: 20px 10px 24px; }
  .favorite-products__button { display: grid; }
  .product-card { min-width: 320px; max-width: 540px; }
  .products { gap: 16px; }
  .product-card:hover { border-color: var(--font-color-20); background-color: var(--font-color-8); }
  .product-page__header { border-bottom: 1px solid var(--font-color-12); }
  .product-page__header-content { padding-left: 96px; padding-right: 96px; display: grid; grid-template-columns: 36px auto 36px; }
  .product-page__header-name { display: block; }
  .product-page__header-title { display: none; }
  .product-page__container { flex-direction: row; gap: 58px; padding: 20px 16px 0; margin-bottom: 72px; }
  .product-page__container .product-image { width: calc(40% - 29px); }
  .product-page__container .product-image img { border-radius: 8px; position: sticky; top: 96px; }
  .product-info { padding-top: 12px; padding-inline: 0; width: calc(60% - 29px); }
  .product-info__divider { margin-top: 12px; margin-bottom: 12px; }
  .product-page-footer { padding-top: 16px; justify-content: center; }
  .product-page-footer__container { max-width: var(--container); padding: 0 16px; justify-content: flex-end; }
  .product-add-to-cart { width: 480px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .checkout-layout__side { position: sticky; top: 96px; }
  .order-buttons-container { padding-top: 24px; }
  .order-buttons__info { margin-bottom: 24px; }
}
@media (min-width: 1100px) {
  .products-footer { margin-top: 80px; }
  .products-footer__inner { padding: 24px 16px; }
  .products-footer__menu { flex-direction: row; justify-content: flex-end; }
  .footer-item { width: auto; height: 32px; border-bottom: none; padding-left: 12px; padding-right: 12px; border-left: 1px solid rgba(255, 255, 255, .12); }
  .footer-item:first-child { border-left: none; }
  .products-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .products-footer__brand { padding: 0; }
  .products-footer__pay { margin-top: 20px; }
  .products-footer__secure { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .img-fade { opacity: 1 !important; translate: none !important; }
}
