@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --green: #3d7a45;
  --green-dark: #2c6032;
  --black: #111; /* cor do texto — sobrescrita pelo tema do tenant */
  --white: #fff; /* cor de fundo — sobrescrita pelo tema do tenant */
  --title: var(--black); /* cor dos títulos — sobrescrita pelo tema do tenant */

  /* Neutros derivados do texto sobre o fundo (color-mix): harmonizam
     automaticamente em fundo claro OU escuro, sem tema separado. */
  --gray-pill: color-mix(in srgb, var(--black) 6%, var(--white));
  --gray-mid: color-mix(in srgb, var(--black) 42%, var(--white));
  --gray-text: color-mix(in srgb, var(--black) 62%, var(--white));
  --border: color-mix(in srgb, var(--black) 12%, var(--white));

  --font: 'Nunito', sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

html,
body {
  margin: 0;
  background: #f8f8f8;
  font-family: var(--font);
  /* Evita inflar texto no iOS sem virar scroll-container (que prendia o wheel). */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Wrapper da loja — cap responsivo.
   overflow-x: clip (não 'hidden') clipa o horizontal SEM virar scroll-container,
   senão o .store prende o wheel e a página só rola pela barra de scroll. */
.store {
  max-width: 1200px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--white);
  position: relative;
  overflow-x: clip;
  padding-bottom: 40px;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3vw, 22px) clamp(16px, 4vw, 32px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo .brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.02em;
}

.store-logo {
  height: var(--logo-h, clamp(34px, 8vw, 48px));
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.cart-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.cart-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ===== CATEGORIES RAIL ===== */
.cats-outer {
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats-outer::-webkit-scrollbar {
  display: none;
}

.cats-rail {
  display: flex;
  gap: 8px;
  padding: 4px clamp(16px, 4vw, 32px) 8px;
  width: max-content;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 84px;
  text-decoration: none;
}

.cat-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #d8ead9;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 28px;
}

.cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.1px;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 900;
  color: var(--title);
  letter-spacing: -0.55px;
  padding: 24px clamp(16px, 4vw, 32px) 8px;
}

/* Hero SEO da home: h1 (título) + descrição na MESMA linha, centralizado.
   Discreto, mas dá o h1 semântico que os buscadores esperam. */
.store-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 14px clamp(16px, 4vw, 32px) 2px;
  text-align: center;
}

.store-hero h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--title);
  letter-spacing: -0.2px;
}


/* Nomes de itens e títulos de seção agora são headings (h2/h3): zera a margem
   padrão do navegador para não deslocar os layouts de grid/carousel/lista. */
.section-title,
.cat-page-title,
.prod-name,
.grid-name,
.carousel-name {
  margin: 0;
}

/* ===== LAYOUT: LISTA ===== */
.product-list {
  display: flex;
  flex-direction: column;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  min-height: 108px;
  transition: background 0.12s;
  text-align: left;
  width: 100%;
}

.product-row:hover {
  background: var(--gray-pill);
}

.prod-img {
  height: 88px;
  width: auto;
  aspect-ratio: var(--ar, 1);
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gray-pill);
  overflow: hidden;
}

.prod-img img,
.grid-img img,
.carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.prod-name {
  font-size: clamp(14px, 2.4vw, 16px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.25px;
  line-height: 1.3;
}

.prod-prices {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Modo catálogo sem preços: esconde os valores em todos os cards. */
.store.hide-prices .prod-prices {
  display: none;
}

.price-tag {
  background: var(--gray-pill);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 22px;
  letter-spacing: -0.25px;
  white-space: nowrap;
}

.price-tag.promo {
  background: #e7f3e8;
  color: var(--green-dark);
}

.price-was {
  font-size: 13px;
  color: var(--gray-mid);
  text-decoration: line-through;
  font-weight: 500;
}

/* ===== LAYOUT: GRID ===== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(var(--cm, 2), minmax(0, 1fr));
  gap: 1px;
  background: transparent;
}

.grid-card {
  background: var(--white);
  padding: clamp(12px, 2vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: background 0.12s;
  text-align: left;
}

.grid-card:hover {
  background: var(--gray-pill);
}

.grid-img {
  width: 100%;
  aspect-ratio: var(--ar, 1);
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
}

.grid-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  letter-spacing: -0.15px;
}

/* ===== LAYOUT: CAROUSEL ===== */
.prod-carousel-outer {
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.prod-carousel-outer::-webkit-scrollbar {
  display: none;
}

.prod-carousel-rail {
  display: flex;
  gap: 12px;
  padding: 4px clamp(16px, 4vw, 32px);
  width: max-content;
}

.carousel-card {
  width: calc((min(100vw, 1200px) - 44px) / var(--pm, 2.5));
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  text-align: left;
}

.carousel-img {
  width: 100%;
  aspect-ratio: var(--ar, 1);
  border-radius: 14px;
  background: var(--gray-pill);
  overflow: hidden;
}

.carousel-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  letter-spacing: -0.15px;
}

/* ===== EMPTY ===== */
.store-empty {
  text-align: center;
  color: var(--gray-text);
  padding: 80px 24px;
}

.store-empty b {
  display: block;
  font-size: 18px;
  color: var(--black);
  margin-bottom: 6px;
}

/* Desktop: mais colunas no grid + cards de carrossel maiores */
@media (min-width: 760px) {
  .prod-grid {
    grid-template-columns: repeat(var(--cd, 4), minmax(0, 1fr));
  }

  .carousel-card {
    width: calc((min(100vw, 1200px) - 64px) / var(--pd, 4.5));
  }

  .cat-circle {
    width: 76px;
    height: 76px;
  }
}

/* ===== PRODUCT SHEET (popover) ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.28s ease;
}

.overlay.on {
  background: rgba(0, 0, 0, 0.52);
  pointer-events: auto;
}

.sheet {
  width: 100%;
  max-width: 520px;
  height: 98dvh;
  background: var(--white);
  border-radius: 22px 22px 0 0;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.overlay.on .sheet {
  transform: translateY(0);
}

.sheet-img-zone {
  width: 100%;
  aspect-ratio: var(--img-ar, 1);
  max-height: 56dvh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
}

.sheet-handle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-mid);
  z-index: 10;
}

.sheet-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
  z-index: 10;
}

.sht-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.sht-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--black);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-img-carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Setas discretas do carrossel — fundo bem transparente (mais que os botões de
   voltar/compartilhar), chevron no mesmo estilo do resto do app. */
.sht-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.28);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}

.sht-nav:active {
  background: rgba(20, 20, 20, 0.44);
}

.sht-nav.prev {
  left: 12px;
}

.sht-nav.next {
  right: 12px;
}

.sht-nav svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Imagem da variável selecionada, cobrindo a principal do carrossel. */
.sheet-img-variant {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: var(--white);
}

.sheet-img-variant img {
  width: 100%;
  height: 100%;
  object-fit: var(--img-fit, cover);
  display: block;
}

.sheet-img-rail {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
}

.sheet-img-slide {
  flex: 0 0 100%;
  height: 100%;
  background: transparent;
  display: grid;
  place-items: center;
}

.sheet-img-slide img {
  width: 100%;
  height: 100%;
  object-fit: var(--img-fit, cover);
  display: block;
}

.sheet-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px 0 12px;
  flex-shrink: 0;
}

.dot {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.dot.act {
  width: 26px;
  background: var(--black);
}

.sheet-content {
  flex: 1;
  overflow: visible;
  scrollbar-width: none;
  padding: 0 20px 8px;
}

/* Barra de ação fixa no rodapé do popover enquanto a sheet rola. */
.sheet .sheet-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.sheet-content::-webkit-scrollbar {
  display: none;
}

.sh-prod-name {
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.55px;
  line-height: 1.2;
  margin-bottom: 8px;
}

/* No popover, o título leva à página do produto (herda o estilo do h1). */
.sh-prod-link {
  color: inherit;
  text-decoration: none;
}
.sh-prod-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.sh-desc {
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.65;
  margin-bottom: 22px;
  white-space: pre-wrap;
}

.sh-options-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-mid);
  margin: 0 0 10px;
  letter-spacing: 0.1px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: var(--gray-pill);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.option-row:hover {
  background: #eaeaea;
}

.option-row.sel {
  border-color: var(--black);
  background: var(--white);
}

.opt-check {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid #ccc;
  background: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.18s, background 0.18s;
}

.option-row.sel .opt-check {
  background: var(--black);
  border-color: var(--black);
}

.option-row.sel .opt-check::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--white);
}

.opt-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.2px;
}

.opt-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-text);
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.color-swatch {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--gray-pill);
  overflow: hidden;
  transition: box-shadow 0.18s;
}

.color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-item.sel .color-swatch {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--black);
}

.color-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-text);
  letter-spacing: -0.1px;
}

.color-item.sel .color-name {
  color: var(--black);
}

.opt-opcional {
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-mid);
  text-transform: none;
}

.opt-block {
  margin-bottom: 22px;
}

.sheet-bar {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 14px 20px max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
}

.qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--gray-pill);
  border-radius: 14px;
  height: 52px;
  padding: 0 4px;
  flex-shrink: 0;
}

.qty-b {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 300;
  color: var(--black);
  display: grid;
  place-items: center;
  transition: background 0.1s;
}

.qty-b:hover {
  background: rgba(0, 0, 0, 0.06);
}

.qty-n {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  min-width: 26px;
  text-align: center;
}

.add-b {
  flex: 1;
  height: 52px;
  background: var(--green);
  color: #fff;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.13s;
}

.add-b:active {
  opacity: 0.86;
}

/* Item com variações alternativas: só libera depois da escolha. */
.add-b:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.add-b .ap {
  font-weight: 500;
  font-size: 15.5px;
  opacity: 0.88;
}

/* Desktop: sheet vira painel lateral (100vh) entrando da direita */
@media (min-width: 760px) {
  .overlay {
    align-items: stretch;
    justify-content: flex-end;
  }

  .sheet {
    width: 100%;
    max-width: 440px;
    height: 100dvh;
    border-radius: 0;
    transform: translateX(100%);
  }

  .overlay.on .sheet {
    transform: translateX(0);
  }

  .sheet-img-zone {
    border-radius: 0;
  }

  .sheet-handle {
    display: none;
  }
}

/* Cards são links (fallback sem JS) — sem sublinhado/cor de link */
.product-row,
.grid-card,
.carousel-card {
  text-decoration: none;
  color: inherit;
}

/* ===== PÁGINA DE CATEGORIA ===== */
.cat-subheader {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px clamp(16px, 4vw, 32px) 12px;
}

.cat-back-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cat-back-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--black);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-page-title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 900;
  color: var(--title);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.cat-filter-bar {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 clamp(16px, 4vw, 32px) 12px;
  border-bottom: 1px solid var(--border);
}

.cat-filter-bar::-webkit-scrollbar {
  display: none;
}

.cat-filter-rail {
  display: flex;
  gap: 8px;
  width: max-content;
}

.cat-pill {
  height: 34px;
  padding: 0 16px;
  border-radius: 100px;
  background: var(--gray-pill);
  color: var(--gray-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.15px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.cat-pill.act {
  background: var(--black);
  color: var(--white);
}

/* ===== PÁGINA DO ITEM ===== */
.store-item {
  padding-bottom: 0;
}

/* Wrappers transparentes por padrão (popover + mobile = fluxo vertical) */
.pd-media,
.pd-main {
  display: contents;
}

.pd-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 2px 0 18px;
}

.pd-price-now {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.4px;
}

.item-page {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.item-page .sheet-content {
  overflow: visible;
}

.item-page .sheet-bar {
  position: sticky;
  bottom: 0;
}

/* Mobile: mantém como está — sem header da loja, detalhe em tela cheia */
@media (max-width: 759px) {
  .store-item .header {
    display: none;
  }

  .item-page {
    min-height: 100dvh;
  }

  .item-page .sheet-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 560px;
    bottom: 0;
    z-index: 20;
  }

  .item-page .sheet-content {
    padding-bottom: 94px;
  }
}

/* Desktop: duas colunas (imagem | infos) — como o mockup */
@media (min-width: 760px) {
  .item-page {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    padding: 24px clamp(16px, 4vw, 32px) 40px;
  }

  .item-page .pd-media,
  .item-page .pd-main {
    display: block;
  }

  .item-page .sheet-img-zone {
    border-radius: 18px;
    max-height: 72dvh;
  }

  .item-page .sheet-topbar {
    display: none;
  }

  .item-page .sheet-content {
    padding: 0;
  }

  .item-page .sh-prod-name {
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 14px;
  }

  .item-page .sh-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .item-page .pd-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
  }

  .item-page .pd-price-now {
    font-size: 30px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.5px;
  }

  .item-page .sheet-bar {
    position: static;
    border-top: none;
    padding: 0;
  }

  .item-page .qty-ctrl {
    display: none;
  }

  .item-page .add-b {
    background: var(--green);
    height: 58px;
    font-size: 17px;
    border-radius: 14px;
  }

  .item-page .add-b .ap {
    display: none;
  }
}

/* ===== CARRINHO ===== */
.cart-sheet {
  overflow: hidden;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(16px, 4vw, 24px) 20px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.cart-header .sht-btn {
  background: var(--gray-pill);
  box-shadow: none;
  backdrop-filter: none;
}

.flow-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.3px;
}

.cart-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.cart-scroll::-webkit-scrollbar {
  display: none;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #e8e8e8;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Vira botão: toca e reabre o produto para trocar as variáveis desta linha. */
.cart-item-opt {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-mid);
  letter-spacing: -0.1px;
}

.cart-item-edit {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gray-pill);
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  display: grid;
  place-items: center;
  line-height: 1;
}

.cart-qty > span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
}

.cart-line-total {
  margin-left: auto;
  font-weight: 800;
  font-size: 14px;
  color: var(--black);
}

.cart-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e53935;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.13s, opacity 0.13s;
}

.cart-remove:active {
  transform: scale(0.88);
  opacity: 0.8;
}

.cart-remove svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.cart-add-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 20px 8px;
  height: 52px;
  border-radius: 16px;
  border: 1.5px dashed #ccc;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-text);
  letter-spacing: -0.2px;
  transition: border-color 0.15s, color 0.15s;
  width: calc(100% - 40px);
}

.cart-add-more:hover {
  border-color: #aaa;
  color: var(--black);
}

.cart-add-more svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.cart-empty {
  text-align: center;
  color: var(--gray-text);
  padding: 72px 24px;
}

.cart-empty b {
  display: block;
  font-size: 17px;
  color: var(--black);
  margin-bottom: 6px;
}

.cart-footer-bar {
  flex-shrink: 0;
  padding: 12px 20px max(20px, env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--border);
}

.cart-checkout-btn {
  width: 100%;
  height: 58px;
  background: var(--green);
  color: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: opacity 0.13s;
}

.cart-checkout-btn:active {
  opacity: 0.86;
}

.cart-total-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.cart-total-lbl {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.cart-total-val {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1;
}

.cart-continue {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

/* "a partir de" nos cards */
.prod-prices.from {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.price-from {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-mid);
  letter-spacing: 0.1px;
}

.pd-price .price-from {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-text);
}

/* descrição + preço (promo) da opção no detalhe */
.opt-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.opt-desc {
  font-size: 12px;
  color: var(--gray-text);
  line-height: 1.35;
}

.opt-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.opt-was {
  font-size: 11px;
  color: var(--gray-mid);
  text-decoration: line-through;
  font-weight: 500;
}

.cart-item-note {
  font-size: 11.5px;
  color: var(--gray-text);
  line-height: 1.35;
}

/* ===== CHECKOUT (fluxo no carrinho) ===== */
.cart-checkout-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.flow-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 10px 20px 16px;
}

.flow-body::-webkit-scrollbar {
  display: none;
}

.flow-body .field {
  margin-bottom: 14px;
}

.flow-input-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-mid);
  letter-spacing: 0.15px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cart-sheet .input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  background: var(--gray-pill);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.cart-sheet .input:focus {
  border-color: var(--black);
  background: var(--white);
}

.flow-input-row {
  display: flex;
  gap: 12px;
}

.flow-input-row .field {
  flex: 1;
  min-width: 0;
}

.flow-tabs {
  display: flex;
  background: var(--gray-pill);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.flow-tab {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-mid);
  background: transparent;
  letter-spacing: -0.2px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.flow-tab.act {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.flow-hint {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
  padding: 6px 2px;
}

.flow-err {
  color: #e53935;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

.flow-fee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gray-pill);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
}

/* Detalhamento do cupom por item (cupom de categoria). */
.coupon-breakdown {
  margin-top: 12px;
}

.coupon-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  font-size: 13px;
  /* Neutro derivado do texto/fundo do tema — adapta a fundo claro ou escuro. */
  color: var(--gray-text);
}

.coupon-line span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-line span:last-child {
  flex-shrink: 0;
  font-weight: 600;
}

/* Quando há detalhamento, a linha de total encosta na lista (sem gap duplo). */
.coupon-breakdown .coupon-line + .coupon-total {
  margin-top: 6px;
}

/* ===== ESGOTADO / AVISE-ME ===== */
.sold-badge {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffe3e3;
  color: #c92a2a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Selo no card da vitrine */
.grid-img, .prod-img, .carousel-img { position: relative; }
.card-sold {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.notify-b {
  width: 100%;
  background: var(--green, #1e9e57);
}

.notify-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 15, 20, 0.55);
  backdrop-filter: blur(3px);
  animation: notify-fade 0.2s ease;
}

.notify-sheet {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white, #fff);
  border-radius: 26px 26px 0 0;
  padding: 22px 22px max(24px, env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px -18px rgba(0, 0, 0, 0.35);
  animation: notify-up 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@media (min-width: 560px) {
  .notify-overlay { align-items: center; padding: 20px; }
  .notify-sheet {
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.5);
    animation: notify-pop 0.24s cubic-bezier(0.2, 0.9, 0.25, 1);
  }
  .notify-handle { display: none; }
}

@keyframes notify-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes notify-up {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes notify-pop {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.notify-handle {
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--border, #e6e6e6);
  margin: 0 auto 16px;
}

.notify-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--gray-pill, #f1f1f1);
  color: var(--gray-text, #666);
  cursor: pointer;
  transition: background 0.15s;
}
.notify-close:hover { background: var(--border, #e6e6e6); }
.notify-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.notify-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-right: 30px;
}

.notify-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--green, #1e9e57) 14%, transparent);
  color: var(--green, #1e9e57);
}
.notify-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notify-icon.success {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.notify-icon.success svg { width: 30px; height: 30px; stroke-width: 2.6; }

.notify-head-txt { min-width: 0; }
.notify-title {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--title);
}
.notify-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--gray-text, #666);
  line-height: 1.45;
}
.notify-sub b { color: var(--black, #111); }

.notify-form { display: grid; gap: 14px; }
.notify-sheet .field { margin: 0; }
.notify-sheet .flow-input-label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--gray-mid, #999);
}

/* Inputs (o .input só era estilizado dentro de .cart-sheet). */
.notify-sheet .input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--border, #e6e6e6);
  border-radius: 13px;
  padding: 0 14px;
  font-family: var(--font, inherit);
  font-size: 15px;
  font-weight: 600;
  color: var(--black, #111);
  background: var(--gray-pill, #f6f6f6);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.notify-sheet .input:focus {
  border-color: var(--green, #1e9e57);
  background: var(--white, #fff);
}
.notify-sheet .input::placeholder { color: var(--gray-mid, #b0b0b0); font-weight: 500; }

.notify-submit { width: 100%; margin-top: 20px; }
.notify-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--gray-mid, #999);
  line-height: 1.4;
}

.notify-done {
  text-align: center;
  padding: 8px 4px 2px;
}
.notify-done b { display: block; font-size: 20px; font-weight: 800; margin: 0 0 8px; color: var(--title); }
.notify-done p { margin: 0 0 20px; color: var(--gray-text, #666); font-size: 14.5px; line-height: 1.5; }
.notify-done p b { color: var(--black, #111); font-weight: 700; }
.notify-done .add-b { width: 100%; }

/* ===== CUPOM ===== */
.coupon-row {
  display: flex;
  gap: 8px;
}

.coupon-row .input {
  flex: 1;
  text-transform: uppercase;
}

.coupon-apply {
  flex-shrink: 0;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: var(--green, #1e9e57);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.coupon-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px dashed var(--green, #1e9e57);
  background: rgba(30, 158, 87, 0.08);
}

.coupon-applied-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coupon-applied-info b {
  font-size: 14px;
  letter-spacing: 0.03em;
}

.coupon-applied-info span {
  font-size: 12.5px;
  color: var(--gray-text, #666);
}

.coupon-remove {
  flex-shrink: 0;
  border: none;
  background: none;
  color: #e53935;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ===== SUCESSO ===== */
.success-wrap {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px max(24px, env(safe-area-inset-bottom));
}

.success-wrap::-webkit-scrollbar {
  display: none;
}

.success-emoji {
  font-size: 60px;
  line-height: 1;
  margin-bottom: 16px;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes success-pop {
  from {
    transform: scale(0) rotate(-15deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.success-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.qr-code-box {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.qr-code-box svg {
  width: 190px;
  height: 190px;
  display: block;
}

.qr-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--gray-pill);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 20px;
}

.qr-copy-label {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--gray-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.qr-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.success-order-box {
  width: 100%;
  background: var(--gray-pill);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.success-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.success-order-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-mid);
}

.success-order-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.2px;
}

/* Spinner do CEP (loja) */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--black);
  animation: spin 0.7s linear infinite;
}
.cep-wrap { position: relative; }
.cep-spinner {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.flow-welcome {
  background: #e7f3e8;
  color: var(--green-dark);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== BUSCA DA LOJA ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-search-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-search-btn svg {
  width: 21px;
  height: 21px;
}

.store-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--white);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.store-search-overlay.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.store-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 20px) clamp(16px, 4vw, 32px);
}

.store-search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--gray-pill);
  border: 1.5px solid var(--border);
}

.store-search-pill svg {
  width: 20px;
  height: 20px;
  color: var(--gray-text);
  flex-shrink: 0;
}

.store-search-pill input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.store-search-pill input::placeholder { color: var(--gray-mid); }

.store-search-clear {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: none;
  color: var(--gray-text);
  flex-shrink: 0;
}

.store-search-clear svg { width: 16px; height: 16px; }

.store-search-cancel {
  background: none;
  color: var(--green);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.store-search-results {
  flex: 1;
  overflow-y: auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px) 40px;
}

.store-search-hint {
  text-align: center;
  color: var(--gray-text);
  font-size: 14px;
  padding: 40px 20px;
}

.store-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
}

.store-search-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gray-pill);
  overflow: hidden;
  flex-shrink: 0;
}

.store-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-search-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.2px;
}


/* ===== BOTÃO ADICIONAR MAIS (carrinho) ===== */
.cart-add-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 14px 0 4px;
  padding: 14px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  background: none;
  color: var(--green);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cart-add-more svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== BANNERS DA LOJA ===== */
.store-banners {
  margin-top: 10px;
}

/* Contexto de posicionamento das setas — cobre só a área do rail (no desktop
   o banner lateral fica fora daqui). */
.store-banners-main {
  position: relative;
}

/* No mobile o banner tem swipe + autoplay; as setas só entram no desktop. */
.store-banners-main .sht-nav {
  display: none;
}

.store-banners-rail {
  display: flex;
  gap: 12px;
  padding: 4px clamp(16px, 4vw, 32px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(16px, 4vw, 32px);
}

.store-banners-rail::-webkit-scrollbar {
  display: none;
}

.store-banner {
  flex: 0 0 auto;
  /* Alinhado à margem das seções (padding do rail) e deixando um pedaço
     do próximo banner aparecendo à direita. */
  width: calc(100vw - clamp(16px, 4vw, 32px) - 46px);
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-pill);
  scroll-snap-align: start;
  display: block;
}

.store-banner img,
.store-banner-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Coluna lateral: só no desktop. */
.store-banner-side-col {
  display: none;
}

/* Desktop: principal (carrossel) à esquerda + lateral à direita, sem peek. */
@media (min-width: 760px) {
  .store-banners {
    display: flex;
    gap: 12px;
    align-items: stretch;
    max-width: 1200px;
    margin: 10px auto 0;
    padding: 0 clamp(16px, 4vw, 32px);
  }

  .store-banners-main {
    flex: 1;
    min-width: 0;
  }

  .store-banners-main .sht-nav {
    display: grid;
  }

  .store-banners-rail {
    padding: 0;
    overflow: hidden;
    scroll-snap-type: none;
    scroll-padding-left: 0;
  }

  .store-banner {
    width: 100%;
    aspect-ratio: 3 / 1;
  }

  /* laterais não aparecem no carrossel do desktop */
  .side-in-rail {
    display: none;
  }

  .store-banner-side-col {
    display: flex;
    flex: 0 0 30%;
    max-width: 360px;
  }

  .store-banner-side {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-pill);
  }
}

@media (min-width: 920px) {
  .store-banners.has-side {
    height: clamp(240px, 25vw, 300px);
  }

  .store-banners.has-side .store-banners-main,
  .store-banners.has-side .store-banners-rail {
    height: 100%;
  }

  .store-banners.has-side .store-banner {
    height: 100%;
    aspect-ratio: auto;
  }

  .store-banners.has-side .store-banner-side-col {
    flex-basis: 33%;
    max-width: none;
  }
}

/* ===== FOOTER DA LOJA ===== */
.store-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px 40px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.store-footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.store-footer-wa svg { width: 20px; height: 20px; fill: currentColor; }
.store-footer-social { display: flex; gap: 12px; }
.store-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gray-pill);
  color: var(--black);
}
.store-social svg { width: 22px; height: 22px; fill: currentColor; }
.store-footer-name {
  font-size: 12.5px;
  color: var(--gray-text);
  font-weight: 600;
}

/* ===== FABs da loja (painel + WhatsApp) ===== */
.store-fab {
  position: fixed;
  bottom: 18px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.store-fab svg { width: 26px; height: 26px; }
.store-fab-wa {
  right: 18px;
  background: var(--green);
  color: #fff;
}
.store-fab-wa svg { fill: currentColor; }
.store-fab-admin {
  left: 18px;
  background: var(--black);
  color: #fff;
}
.store-fab-admin svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ===== Editar variáveis de uma linha do carrinho =====
   Popover próprio: a página do produto fica só para adicionar, e daqui o
   cliente só reconfigura e salva. Segue o visual do sheet de "avise-me". */
.cart-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 15, 20, 0.55);
  backdrop-filter: blur(3px);
  animation: notify-fade 0.2s ease;
}

.cart-edit-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  max-height: 88dvh;
  background: var(--white, #fff);
  border-radius: 26px 26px 0 0;
  padding: 20px 20px max(20px, env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px -18px rgba(0, 0, 0, 0.35);
  animation: notify-up 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.cart-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.cart-edit-head b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
}

.cart-edit-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--gray-bg, #f4f4f6);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-edit-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--gray-mid);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.cart-edit-body {
  flex: 1;
  overflow-y: auto;
  margin-top: 4px;
}

.cart-edit-loading {
  padding: 28px 0;
  text-align: center;
  font-weight: 600;
  color: var(--gray-mid);
}

.cart-edit-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #eee);
}

@media (min-width: 560px) {
  .cart-edit-overlay {
    align-items: center;
    padding: 20px;
  }
  .cart-edit-sheet {
    border-radius: 26px;
  }
}
