/* ============================================================
   Tela de Venda — mobile-first (estilo TikTok Shop)
   Layout base: grandesofertas.vercel.app
   ============================================================ */
:root {
  --red: #fe2c55;
  --black: #161823;
  --gray: #8a8b91;
  --gray-2: #b0b0b4;
  --gray-bg: #f1f1f2;
  --border: #ececec;
  --teal: #26bfa6;
  --teal-bg: #eefaf8;
  --green-frete: #00a085;
  --green-frete-bg: #dff5ee;
  --star: #f5b301;
  --pink-bg: #fef0f3;
  --gold: #c99a3d;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  font-size: 15px;
  line-height: 1.4;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

img { max-width: 100%; }
b { font-weight: 600; }
.muted { color: var(--gray); font-weight: 400; }
.chev { flex-shrink: 0; }
.chev.right-end { margin-left: auto; }

/* ============ SHELL DO APP ============ */
.app {
  position: relative;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.16);
}

/* qualquer aparelho com toque: o app ocupa 100% da tela */
@media (hover: none), (pointer: coarse) {
  .app { max-width: none; width: 100%; box-shadow: none; }
}
@media (max-width: 520px) {
  .app { max-width: none; width: 100%; box-shadow: none; }
}

/* ---------- placeholder simbólico (fotos reais entram depois) ---------- */
.ph-box {
  background: linear-gradient(135deg, #e9e9ec, #dcdce1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9c9ca3;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  padding: 4px;
}

/* ============ TOPBAR ============ */
.topbar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 52px;
  padding: 0 6px;
  flex-shrink: 0;
  background: #fff;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  flex-shrink: 0;
}
.cart-icon-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}
.cart-badge[hidden] { display: none !important; }

.search-bar {
  flex: 1;
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px 0 10px;
  border-radius: 18px;
  background: var(--gray-bg);
}
.search-ico { color: #9a9aa0; flex-shrink: 0; }
.search-text {
  color: #9a9aa0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ ABAS ============ */
.tabs {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.tab {
  flex: 1;
  position: relative;
  padding: 11px 0 13px;
  font-size: 15px;
  color: var(--gray);
  text-align: center;
  white-space: nowrap;
}
.tab.active { color: var(--black); font-weight: 700; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;
  width: 56px;
  height: 3.5px;
  border-radius: 2px;
  background: var(--black);
}

/* ============ SCROLL PRINCIPAL ============ */
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main::-webkit-scrollbar { display: none; }
section { background: #fff; }

.shipping-block, .options-row, .protection-block,
.reviews-preview, .store-block, .about-block {
  border-top: 1px solid var(--border);
}

/* ============ FOTO DO PRODUTO (hero) ============ */
.hero { position: relative; background: #fff; }
.hero-img {
  width: 100%;
  height: min(100vw, 42vh);
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============ SELETOR DE VARIANTES ============ */
.variants-grid { display: flex; gap: 8px; }
.variant-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.variant-card.active { border-color: var(--red); background: rgba(254, 44, 85, 0.06); }
.variant-thumb { width: 34px; height: 34px; object-fit: contain; border-radius: 5px; background: #fff; flex-shrink: 0; }
.variant-label { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.variant-card.active .variant-label { color: var(--red); }
.variant-price { display: none; }

/* ============ OFERTA RELÂMPAGO ============ */
.flash-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #ffd9e0;
}
.flash-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.flash-price-line { display: flex; align-items: center; gap: 5px; color: var(--red); }
.flash-off {
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 6px;
  border-radius: 6px;
}
.flash-price {
  display: flex;
  align-items: baseline;
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.flash-price .price-int { font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.flash-price .price-cents { font-size: 15px; font-weight: 700; }
.flash-coupon { flex-shrink: 0; margin-left: 2px; }
.flash-old { color: #8a8b91; font-size: 13px; text-decoration: line-through; line-height: 1; }
.flash-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; }
.flash-headline { display: inline-flex; align-items: center; gap: 3px; font-size: 13.5px; font-weight: 700; color: var(--black); line-height: 1.2; }
.flash-bolt { flex-shrink: 0; }
.flash-ends { font-size: 12.5px; color: var(--black); white-space: nowrap; }
.flash-ends b { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.3px; }
@media (max-width: 374px) {
  .flash-block { padding: 10px 10px; }
  .flash-price .price-int { font-size: 24px; }
  .flash-off { font-size: 12.5px; padding: 4px 5px; }
  .flash-coupon { width: 18px; }
  .flash-headline { font-size: 12px; }
  .flash-ends { font-size: 11.5px; }
}

/* ============ PREÇO / CUPONS ============ */
.price-block { padding: 2px 14px 10px; }
.promo-tags {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.promo-tags::-webkit-scrollbar { display: none; }
.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--pink-bg);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.coupon-glyph { flex-shrink: 0; }

/* ============ TÍTULO ============ */
.title-block { padding: 10px 14px 4px; }
.title-row { display: flex; align-items: flex-start; gap: 10px; }
.product-title { flex: 1; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.bookmark-btn { padding: 2px; margin-top: 3px; flex-shrink: 0; }
.rating-row { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 14px; }
.rating-row b { font-weight: 700; }
.star-glyph { color: var(--star); font-size: 15px; line-height: 1; }
.star-glyph.big { font-size: 17px; }
.count-link { color: #3b6db2; }
.dot-sep { width: 1px; height: 12px; background: #ddd; margin: 0 3px; }

/* ============ FRETE ============ */
.shipping-block { padding: 11px 14px 12px; }
.shipping-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.frete-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-frete-bg);
  color: var(--green-frete);
  font-size: 13px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.price-old { color: var(--gray-2); font-size: 14px; text-decoration: line-through; }
.price-old.sm { font-size: 13px; }
.shipping-eta { margin-top: 8px; font-size: 14.5px; color: var(--black); }

/* ============ VARIANTE SELECIONADA ============ */
.variant-row-block { padding: 0 14px; }
.variant-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  text-align: left;
}
.variant-row-thumb { width: 38px; height: 38px; flex-shrink: 0; border-radius: 4px; object-fit: cover; background: #f7f7f8; }
.variant-row-text { flex: 1; min-width: 0; font-size: 14.5px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.variant-row-text b { color: var(--black); font-weight: 500; }

/* ============ PROTEÇÃO ============ */
.protection-block { padding: 12px 14px 14px; cursor: pointer; }
.protection-head { display: flex; align-items: center; gap: 9px; width: 100%; }
.prot-title { flex: 1; text-align: left; font-size: 14.5px; font-weight: 600; color: #b0761e; }
.protection-grid { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; margin: 11px 0 0 28px; }
.prot-item { display: flex; align-items: baseline; gap: 5px; font-size: 13px; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check-o { color: #e8a33d; font-weight: 700; font-size: 12px; }

/* ============ AVALIAÇÕES (prévia) ============ */
.reviews-preview { padding: 4px 14px 10px; border-top: 8px solid #f7f7f8; }
.reviews-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 0; }
.rh-title { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-i { color: var(--gray-2); font-size: 13px; }
.ver-mais { margin-left: auto; color: var(--gray); font-size: 13.5px; white-space: nowrap; }
.review-mini { display: flex; gap: 10px; padding: 9px 0; cursor: pointer; }
.rm-left { flex: 1; min-width: 0; }
.rm-userline { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.avatar { width: 30px; height: 30px; }
.avatar.lg { width: 34px; height: 34px; }
img.avatar { border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; background: #e2e2e4; }
.avatar.ph-box { border-radius: 50%; }
.stars { color: var(--star); font-size: 13px; letter-spacing: 0.5px; line-height: 1; white-space: nowrap; }
.stars.md { font-size: 14px; }
.star-off { color: #e0e0e2; font-style: normal; }
.variant { color: var(--gray); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-line { font-size: 14.5px; line-height: 1.45; }
.rk { color: var(--gray); }
.rm-media { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.rm-thumb { position: relative; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #f2f0ea; display: block; }
.rm-thumb img, .rm-thumb.ph-box { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-badge { position: absolute; right: 4px; bottom: 4px; z-index: 2; padding: 0 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 11px; font-style: normal; }

/* ============ AVALIAÇÕES DA LOJA ============ */
.store-reviews { padding: 10px 14px 14px; border-top: 8px solid #f7f7f8; }
.sr-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 0 10px; font-size: 15.5px; font-weight: 700; }
.sr-head .chev { margin-left: auto; }
.sr-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sr-chips::-webkit-scrollbar { display: none; }
.sr-chip { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; background: #fbf4dd; color: #8a6d1f; font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 6px; white-space: nowrap; }
.sr-chip .star-glyph { font-size: 13px; }

/* ============ LOJA ============ */
.store-block { padding: 16px 14px; border-top: 8px solid #f7f7f8; }
.store-top { display: flex; align-items: center; gap: 12px; }
.store-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; }
.store-logo.ph-box { border-radius: 50%; font-size: 9px; }
.store-info { flex: 1; min-width: 0; }
.store-info h3 { font-size: 16.5px; font-weight: 700; }
.store-info .muted { font-size: 13px; margin-top: 3px; }
.btn-visitar { flex-shrink: 0; background: var(--gray-bg); font-size: 14.5px; font-weight: 600; padding: 9px 22px; border-radius: 6px; }
.store-stats { margin-top: 13px; font-size: 13px; }
.store-stats b { font-weight: 700; }

/* ============ SOBRE / DESCRIÇÃO ============ */
.about-block { padding: 18px 14px 10px; border-top: 8px solid #f7f7f8; }
.section-title { font-size: 17px; font-weight: 700; padding: 0 14px 12px; }
.section-title.big { font-size: 18px; padding: 0 0 14px; }
.sub-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

.desc-content p { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.desc-h { font-size: 15px; font-weight: 700; margin: 16px 0 10px; }
.desc-list { list-style: none; margin-bottom: 12px; }
.desc-list li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.5; margin-bottom: 11px; }
.desc-list li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--gray-2); }
.ver-menos { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px 0 6px; font-size: 15px; font-weight: 700; }
.ver-menos svg { transition: transform 0.2s; }
.ver-menos.is-collapsed svg { transform: rotate(180deg); }
.desc-content.is-collapsed .desc-collapsible { display: none; }

.bottom-spacer { height: 90px; }

/* ============ VOLTAR AO TOPO ============ */
.scroll-top {
  position: absolute;
  right: 16px;
  bottom: 96px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top.rv { z-index: 66; }

/* ============ BARRA INFERIOR ============ */
.bottom-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px calc(9px + var(--safe-b));
  background: #fff;
  border-top: 1px solid var(--border);
}
.reviews-page .bottom-bar { z-index: 65; }
.bb-ico { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10.5px; min-width: 34px; flex-shrink: 0; }
.btn-cart, .btn-buy { flex: 1; min-width: 0; border-radius: 24px; font-weight: 700; line-height: 1.2; padding: 8px 6px; }
.btn-cart { background: var(--gray-bg); color: var(--black); font-size: 14.5px; }
.btn-buy { background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; font-size: 15px; }
.btn-buy small { font-size: 10.5px; font-weight: 500; opacity: 0.95; }

/* ============ PÁGINA DE AVALIAÇÕES ============ */
.reviews-page { position: absolute; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; }
.reviews-page[hidden] { display: none !important; }
.reviews-header { display: flex; align-items: center; height: 52px; padding: 0 6px; flex-shrink: 0; }
.rph-title { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 16.5px; }
.rph-title b { font-weight: 700; }
.reviews-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.reviews-body::-webkit-scrollbar { display: none; }
.reviews-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 6px; font-size: 12.5px; color: var(--gray); }
.sort-btn { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--black); white-space: nowrap; }
.filter-chips { display: flex; gap: 8px; padding: 8px 14px 12px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; background: var(--gray-bg); border-radius: 6px; padding: 7px 12px; font-size: 13.5px; white-space: nowrap; }
.chip.dark { background: #161823; color: #fff; }

.full-review { padding: 14px 14px 12px; }
.full-review + .full-review { border-top: 1px solid var(--border); }
.fr-user { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.fr-user b { font-size: 15px; font-weight: 700; }
.fr-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.fr-text p { font-size: 15px; line-height: 1.45; margin-bottom: 3px; }
.show-more { font-weight: 700; }
.fr-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 11px; }
.fr-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: #f2f0ea; display: block; }
.fr-thumb img, .fr-thumb video, .fr-thumb.ph-box { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; font-size: 13px; color: var(--gray); }
.fr-actions { display: flex; align-items: center; gap: 18px; }
.fr-actions button { display: flex; align-items: center; gap: 4px; color: var(--gray); font-size: 15px; }

/* ============ SHEET DE VARIANTES ============ */
.overlay { position: absolute; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.5); }
.overlay[hidden], .sku-sheet[hidden], .exit-modal[hidden], .promo-tag[hidden] { display: none !important; }

/* ============ POP-UP DE SAÍDA ============ */
.exit-modal {
  position: absolute;
  left: 14px; right: 14px; top: 50%;
  z-index: 80;
  max-height: 94%;
  overflow-y: auto;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  animation: exit-pop 0.22s ease;
}
@keyframes exit-pop { from { opacity: 0; transform: translateY(-46%) scale(0.96); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.exit-head { padding: 18px 48px 6px 16px; }
.exit-kicker { display: block; font-size: 13px; font-weight: 600; color: var(--gray); }
.exit-title { margin-top: 2px; font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--black); }
.exit-title span { color: var(--red); }
.exit-img { display: block; width: 100%; height: min(30vh, 220px); object-fit: contain; background: #fff; }
.exit-variants { padding: 8px 14px 10px; }
.exit-flash { border-radius: 0; }
.exit-name { padding: 10px 16px 0; font-size: 16px; font-weight: 700; }
.exit-actions { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.exit-accept {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(254, 44, 85, 0.3);
}
.exit-decline { padding: 10px; font-size: 14px; color: var(--gray); }
.promo-tag-strong { background: var(--red); color: #fff; }
.sku-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  max-height: 86%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding-bottom: var(--safe-b);
  animation: sheet-up 0.24s ease;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 30px; height: 30px; border-radius: 50%; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; }
.sku-top { display: flex; gap: 12px; padding: 16px 14px 14px; flex-shrink: 0; }
.sku-thumb { width: 82px; height: 82px; border-radius: 8px; flex-shrink: 0; object-fit: cover; display: block; background: #f2f0ea; }
.sku-thumb.ph-box { font-size: 9px; }
.sku-price-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sku-price-info .price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.discount-badge { background: var(--red); color: #fff; font-size: 14px; font-weight: 700; padding: 2px 6px; border-radius: 3px; line-height: 1.25; }
.price-current { display: flex; align-items: baseline; color: var(--red); font-size: 16px; font-weight: 600; white-space: nowrap; }
.price-int { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.price-int.sm { font-size: 26px; }
.price-cents { font-size: 17px; font-weight: 800; }
.sku-badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sku-scroll { flex: 1; overflow-y: auto; padding: 0 14px; scrollbar-width: none; -ms-overflow-style: none; }
.sku-scroll::-webkit-scrollbar { display: none; }

.sku-variants { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.variant-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.variant-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 0 10px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
}
.variant-btn img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #f7f7f8; display: block; }
.variant-btn.selected { border-color: var(--red); }
.sku-flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 14px 4px;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff6a3d, #ff9a3c);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}
.sku-flash > b { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; }
.sku-flash span b { font-weight: 700; }
.sku-off { font-size: 12.5px; padding: 1px 5px; }
.sku-old { font-size: 13px; color: var(--gray-2); }

.qty-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; }
.qty-label { font-size: 15px; font-weight: 700; }
.qty-ctrl { display: flex; align-items: center; gap: 0; border-radius: 6px; overflow: hidden; background: var(--gray-bg); }
.qty-ctrl button { width: 38px; height: 34px; font-size: 19px; color: var(--gray-2); }
.qty-ctrl b { min-width: 42px; text-align: center; font-size: 15px; background: #fff; border: 1px solid var(--gray-bg); line-height: 32px; }

.sku-actions { display: flex; gap: 10px; padding: 10px 14px 12px; flex-shrink: 0; }

/* ============ AVISO (toast) ============ */
.toast {
  position: absolute;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  z-index: 98;
  max-width: 88%;
  background: rgba(22, 24, 35, 0.92);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
  padding: 12px 18px;
  border-radius: 10px;
  animation: toast-in 0.25s ease;
  pointer-events: none;
}
.toast[hidden] { display: none !important; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============ CHECKOUT (dados de entrega) ============ */
.checkout-page {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: #f1f1f2;
  display: flex;
  flex-direction: column;
}
.checkout-page[hidden] { display: none !important; }
.co-header-spacer { width: 40px; flex-shrink: 0; }

.co-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.co-body::-webkit-scrollbar { display: none; }

/* ---------- cabeçalho ---------- */
.tc-header {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 2px 6px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tc-header-title { flex: 1; text-align: center; font-size: 15.5px; font-weight: 500; }
.tc-star { color: var(--star); }

/* ---------- endereço ---------- */
.tc-address { background: #fff; }
.tc-address-saved {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 16px 14px 18px;
  text-align: left;
}
.tc-address-saved[hidden] { display: none !important; }
.tc-pin { flex-shrink: 0; margin-top: 1px; }
.tc-address-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tc-address-text b { font-size: 16px; font-weight: 700; }
.tc-address-text span { font-size: 14.5px; line-height: 1.4; color: var(--black); }
.tc-chev { flex-shrink: 0; margin-top: 3px; }
.tc-address-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 18px 14px;
  text-align: left;
}
.tc-address-empty[hidden] { display: none !important; }
.tc-address-empty b { flex: 1; font-size: 16px; font-weight: 700; }
.tc-address-add { color: var(--red); font-size: 15px; font-weight: 500; white-space: nowrap; }
.tc-dashes {
  height: 3px;
  background: repeating-linear-gradient(90deg, #fe2c55 0 26px, transparent 26px 34px, #25d0e4 34px 60px, transparent 60px 68px);
}

/* ---------- página "Adicionar o novo endereço" ---------- */
.ad-page {
  position: absolute;
  inset: 0;
  z-index: 92;
  display: flex;
  flex-direction: column;
  background: #f1f1f2;
}
.ad-page[hidden] { display: none !important; }
.ad-header {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 2px 6px;
  background: #fff;
  flex-shrink: 0;
}
.ad-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.ad-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ad-body::-webkit-scrollbar { display: none; }
.ad-group { padding: 14px 14px 8px; font-size: 13.5px; color: #54555b; }
.ad-fields { background: #fff; }
.ad-input {
  display: block;
  width: 100%;
  padding: 15px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 15.5px;
  color: var(--black);
  outline: none;
}
.ad-fields > .ad-input:last-child { border-bottom: 0; }
.ad-input::placeholder { color: #9a9aa0; }
.ad-input.sc-invalid { background: var(--pink-bg); }
.ad-input.sc-invalid::placeholder { color: var(--red); }
.ad-input.loading { opacity: 0.6; }
.ad-phone { display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.ad-phone-prefix { flex-shrink: 0; padding: 0 10px 0 14px; border-right: 1px solid var(--border); font-size: 15.5px; line-height: 1.2; }
.ad-phone .ad-input { border-bottom: 0; padding-left: 10px; }
.ad-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.ad-row .ad-input { border-bottom: 0; }
.ad-row .ad-input + .ad-input { border-left: 1px solid var(--border); }
.ad-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238a8b91' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.ad-select:invalid { color: #9a9aa0; }
.ad-select option { color: var(--black); }
.ad-select.sc-invalid { background-color: var(--pink-bg); color: var(--red); }
.ad-note { padding: 0 14px 14px; font-size: 13px; color: var(--gray); }
.ad-fields > .ad-input + .ad-note { margin-top: -1px; }
#sc-cpf { border-bottom: 0; padding-bottom: 8px; }
.ad-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px; font-size: 15.5px; cursor: pointer; }
.ad-toggle {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #e3e3e6;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ad-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.ad-toggle:checked { background: var(--red); }
.ad-toggle:checked::after { transform: translateX(20px); }
.ad-footer { padding: 12px 14px calc(12px + var(--safe-b)); background: #fff; flex-shrink: 0; }
.ad-privacy { margin-bottom: 12px; text-align: center; font-size: 13px; line-height: 1.45; color: #54555b; }
.ad-privacy b { color: var(--black); font-weight: 600; }
.ad-save-btn {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  background: #fbb6c4;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.ad-save-btn.ready { background: var(--red); }

/* ---------- blocos ---------- */
.tc-card { background: #fff; padding: 16px 14px; margin-top: 10px; }
.tc-section-title { font-size: 17px; font-weight: 700; }

/* ---------- loja + produto ---------- */
.tc-shop-row { display: flex; align-items: center; justify-content: space-between; }
.tc-shop-name { font-size: 17px; font-weight: 600; }
.tc-note-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; color: var(--gray); }
.tc-note {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
}
.tc-note[hidden] { display: none !important; }
.tc-item { display: flex; gap: 12px; margin-top: 16px; }
.tc-item-img { width: 90px; height: 90px; flex-shrink: 0; object-fit: contain; border-radius: 6px; background: #f7f7f8; }
.tc-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tc-item-title { font-size: 15px; color: #6b6c72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f5f5f6;
  font-size: 12.5px;
  color: #3e3f45;
}
.tc-item-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.tc-item-prices { display: flex; flex-direction: column; gap: 3px; }
.tc-item-price { display: inline-flex; align-items: center; gap: 1px; color: var(--red); font-size: 19px; font-weight: 600; line-height: 1; }
.tc-item-price small { font-size: 12.5px; font-weight: 600; }
.tc-item-price svg { margin-left: 5px; }
.tc-item-old-row { display: inline-flex; align-items: center; gap: 5px; }
.tc-item-old-row s { font-size: 13px; color: var(--gray-2); }
.tc-item-off { padding: 0 4px; border-radius: 3px; background: var(--pink-bg); color: var(--red); font-size: 12.5px; }
.tc-qty { display: inline-flex; align-items: center; flex-shrink: 0; background: #f1f1f2; border-radius: 4px; }
.tc-qty button { width: 32px; height: 30px; font-size: 20px; line-height: 1; color: #5c5d63; }
.tc-qty b { min-width: 34px; height: 30px; line-height: 30px; text-align: center; font-size: 16px; font-weight: 500; border-left: 1.5px solid #fff; border-right: 1.5px solid #fff; }
.tc-delivery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef9fb;
  font-size: 14px;
}
#tc-delivery-eta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-delivery-price { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tc-delivery-price s { font-size: 13px; color: var(--gray); }

/* ---------- desconto ---------- */
.tc-discount { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tc-discount-title { display: inline-flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 600; }
.tc-discount-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tc-pill { padding: 4px 10px; border-radius: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tc-pill[hidden] { display: none !important; }
.tc-pill-teal { background: #e6f9fb; color: #1fb5c4; }
.tc-pill-pink { background: var(--pink-bg); color: var(--red); }

/* ---------- resumo ---------- */
.tc-summary .tc-section-title { margin-bottom: 14px; }
.tc-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 7px 0; font-size: 15.5px; }
.tc-sum-row[hidden] { display: none !important; }
.tc-sum-row b { font-weight: 700; font-size: 16px; }
.tc-sum-toggle { text-align: left; font-weight: 700; font-size: 15.5px; }
.tc-sum-toggle > span { display: inline-flex; align-items: center; gap: 4px; }
.tc-sum-toggle svg { transition: transform 0.2s ease; }
.tc-sum-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
.tc-sum-details[hidden] { display: none !important; }
.tc-sub { padding-left: 16px; font-size: 14px; color: #3e3f45; }
.tc-neg { color: var(--red); }
.tc-sum-total { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.tc-sum-total > b { font-size: 18px; font-weight: 600; }
.tc-sum-total span { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tc-sum-total span b { font-size: 18px; font-weight: 600; }
.tc-sum-total small { font-size: 14px; color: var(--gray); }

/* ---------- pagamento ---------- */
.tc-pay-sub { margin-top: 3px; font-size: 14.5px; color: #3e3f45; }
.tc-pay-opt { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.tc-pay-opt img { flex-shrink: 0; object-fit: contain; }
.tc-pay-name { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tc-pay-name b { font-size: 16px; font-weight: 500; }
.tc-pay-name small { font-size: 13px; color: var(--green-frete); }
.tc-radio { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid #c4c4c8; }
.tc-radio.checked { border: 6px solid var(--red); }
.tc-terms { padding: 16px 14px 20px; font-size: 14px; line-height: 1.45; color: #3e3f45; }
.tc-terms b { color: var(--black); font-weight: 600; }

/* ---------- rodapé ---------- */
.tc-savings {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff0f3;
  color: var(--red);
  font-size: 14px;
  flex-shrink: 0;
}
.tc-savings b { font-weight: 500; }
.tc-footer { padding: 10px 14px calc(12px + var(--safe-b)); background: #fff; flex-shrink: 0; }
.tc-footer-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tc-footer-total > b:first-child { font-size: 18px; font-weight: 600; }
.tc-footer-price { color: var(--red); font-size: 22px; font-weight: 600; }
.tc-pay-btn {
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

/* ============ CÓDIGO PIX (branco + glow cyan/rosa) ============ */
.pix-page {
  position: absolute;
  inset: 0;
  z-index: 95;
  background: #ffffff;
  color: #161823;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pix-page[hidden] { display: none !important; }
.pix-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 70% at -8% -5%, rgba(37, 244, 238, 0.55) 0%, rgba(37, 244, 238, 0.18) 35%, transparent 62%),
    radial-gradient(ellipse 110% 65% at 108% -8%, rgba(254, 44, 85, 0.48) 0%, rgba(254, 44, 85, 0.16) 38%, transparent 64%);
}
.pix-header, .pix-body, .pix-footer, .pix-loading { position: relative; z-index: 1; }
.pix-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #8a8a8e;
  font-size: 14px;
}
.pix-loading[hidden] { display: none !important; }
.pix-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #ececec;
  border-top-color: #fe2c55;
  animation: pix-spin 0.75s linear infinite;
}
@keyframes pix-spin { to { transform: rotate(360deg); } }
.pix-header {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 6px 4px 0;
  background: transparent;
  flex-shrink: 0;
}
.pix-header-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; color: #161823; }
.pix-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 24px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}
.pix-status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 6px; }
.pix-status-text { flex: 1; min-width: 0; padding-top: 2px; }
.pix-status-text h2 { margin: 0; font-size: 22px; font-weight: 700; color: #161823; line-height: 1.2; letter-spacing: -0.25px; }
.pix-amount { display: block; margin-top: 10px; font-size: 26px; font-weight: 800; color: #161823; letter-spacing: -0.35px; }
.pix-clock-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ff7a00;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}
.pix-expire { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.pix-expire-label { font-size: 14px; color: #8a8a8e; }
.pix-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #e21836;
  color: #fff;
  font-size: 13.5px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(226, 24, 54, 0.25);
}
.pix-timer b { font-weight: 700; letter-spacing: 0.35px; font-variant-numeric: tabular-nums; }
.pix-deadline { margin: 10px 0 0; font-size: 13.5px; color: #8a8a8e; }
.pix-code-box {
  margin-top: 24px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: rgba(245, 245, 246, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(6px);
}
.pix-qrcode-container {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.pix-code-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pix-code-brand img { width: 22px; height: 22px; object-fit: contain; display: block; }
.pix-code-brand span { font-size: 14px; font-weight: 800; letter-spacing: 0.6px; color: #161823; }
.pix-code { margin: 0 0 16px; font-size: 17.5px; font-weight: 700; color: #161823; word-break: break-all; line-height: 1.35; min-height: 2.7em; }
.pix-copy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 999px;
  background: #fe2c55;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.28);
}
.pix-copy-btn:active { transform: scale(0.985); }
.pix-hint { margin: 18px 2px 0; font-size: 12.5px; line-height: 1.5; color: #8a8a8e; }
.pix-hint b { color: #55575f; font-weight: 600; }
.pix-bank-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 4px;
  padding: 14px 14px 14px 12px;
  background: #fff9ed;
  border-left: 4px solid #f5a623;
  border-radius: 10px;
}
.pix-bank-alert-ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5a623;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}
.pix-bank-alert p { font-size: 13px; line-height: 1.5; color: #3a3a3e; }
.pix-bank-alert b { font-weight: 800; color: #161823; }
.pix-how-title { margin: 28px 2px 10px; font-size: 17.5px; font-weight: 700; color: #161823; }
.pix-how-text { margin: 0 2px; font-size: 14px; line-height: 1.55; color: #8a8a8e; }
.pix-footer { padding: 10px 16px calc(14px + var(--safe-b)); background: transparent; flex-shrink: 0; }
.pix-order-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: #2f2f33;
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
}
.pix-order-btn:active { background: #222226; }

/* ============ OBRIGADO (pagamento confirmado) ============ */
.suc-check-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 30px;
  gap: 16px;
}
.suc-check-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-frete);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 160, 133, 0.35);
}
.suc-check-wrap h2 { margin: 0; font-size: 22px; font-weight: 700; color: #161823; letter-spacing: -0.25px; }
.suc-thanks { margin-top: 18px; text-align: center; font-size: 15px; line-height: 1.55; color: #3a3a3e; }
.suc-tracking-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(245, 245, 246, 0.92);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.suc-tracking-ico { font-size: 20px; flex-shrink: 0; }
.suc-tracking-box p { font-size: 13.5px; line-height: 1.55; color: #3a3a3e; }
.suc-tracking-box b { color: #161823; font-weight: 700; }

/* ============ MODAL PROTEÇÃO DO CLIENTE ============ */
.protection-modal { position: absolute; inset: 0; z-index: 95; overflow: hidden; }
.protection-modal[hidden] { display: none !important; }
.protection-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: protection-fade 0.25s ease;
}
.protection-modal-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 88%;
  padding-bottom: var(--safe-b);
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  animation: sheet-up 0.28s ease;
}
@keyframes protection-fade { from { opacity: 0; } to { opacity: 1; } }
.protection-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 48px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.protection-modal-header h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--black); }
.protection-close {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.protection-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.protection-modal-body::-webkit-scrollbar { display: none; }
.protection-section + .protection-section { margin-top: 22px; }
.protection-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #9c6b1f;
}
.protection-section h3 svg { flex-shrink: 0; }
.protection-section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
}

/* ============ VÍDEOS DE CRIADORES ============ */
.creators-block { padding: 14px 0 16px; border-top: 8px solid #f7f7f8; }
.creators-title { padding: 0 14px 12px; font-size: 17px; font-weight: 700; }
.creators-scroll { display: flex; gap: 8px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; cursor: grab; }
.creators-scroll::-webkit-scrollbar { display: none; }
.creators-scroll.dragging { cursor: grabbing; }
.creator-card {
  position: relative;
  flex: 0 0 118px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}
.creator-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.creator-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}

/* ============ CARRINHO ============ */
.cart-page {
  position: absolute;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  background: #f1f1f2;
}
.cart-page[hidden] { display: none !important; }
.cart-body { flex: 1; overflow-y: auto; scrollbar-width: none; padding-top: 8px; }
.cart-body::-webkit-scrollbar { display: none; }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 80px 20px; color: var(--gray); text-align: center; }
.cart-empty[hidden], .cart-card[hidden], .cart-footer[hidden] { display: none !important; }
.cart-empty b { color: var(--black); font-size: 16px; }
.cart-empty-btn { margin-top: 6px; padding: 11px 26px; border-radius: 999px; background: var(--red); color: #fff; font-size: 15px; font-weight: 600; }
.cart-card { background: #fff; padding: 14px; }
.cart-line { position: relative; }
.cart-line + .cart-line { border-top: 1px solid var(--border); }
.cart-line .tc-item { margin-top: 14px; padding-bottom: 14px; }
.cart-remove {
  position: absolute;
  top: 12px;
  right: -6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-line .tc-item-title { padding-right: 28px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-free-ship { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--green-frete); }
.cart-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: #fff;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-footer-total { flex: 1; display: flex; flex-direction: column; }
.cart-footer-total span { font-size: 13px; color: var(--gray); }
.cart-footer-total b { font-size: 20px; font-weight: 700; color: var(--red); }
.cart-checkout-btn { padding: 13px 22px; border-radius: 999px; background: var(--red); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; }
#tc-items .tc-item + .tc-item { padding-top: 16px; border-top: 1px solid var(--border); }

/* ============ LIGHTBOX DE MÍDIA ============ */
.media-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.media-lightbox[hidden] { display: none !important; }
.ml-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.92); }
.ml-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); border-radius: 50%; }
.ml-content { position: relative; z-index: 1; width: 100%; max-width: 440px; max-height: 90vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ml-img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.ml-img[hidden] { display: none; }
.ml-video { max-width: 100%; max-height: 85vh; border-radius: 8px; background: #000; }
.ml-video[hidden] { display: none; }
.fr-thumb, .rm-thumb { cursor: pointer; }
