/* TikTok Sans (variable, self-hosted; baixada do Google Fonts, SIL Open Font License 1.1).
   Um unico arquivo por subset cobre os pesos 100-900 -- e' uma variable font.
   A familia nao tem italico real: o navegador sintetiza oblique quando preciso. */
@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/tiktok-sans/tiktok-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/tiktok-sans/tiktok-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
  --color-primary: #FF2B56;
  --color-primary-dark: #FB384A;
  --color-primary-light: #fff0f3;
  --color-secondary: #FB5434;
  --color-orange: #FB5434;
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #222222;
  --color-text-muted: #666666;
  --color-border: #e8e8e8;
  --color-price: #FF2B56;
  --color-discount-bg: #ff0024;
  --color-frete: #2E7D32;
  --color-offer-grad-start: #FF2B56;
  --color-offer-grad-end: #FB5434;
  --color-protection: #8B4D0B;
  --color-timer-bg: #FF2B56;
  --font-main: 'TikTok Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --header-height: 52px;
  --bottom-bar-height: 60px;
  --max-width: 480px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-text);
  background: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* ===== CONTAINER MOBILE ===== */
.app-container {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  height: 100%;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, .15);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--header-height);
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  z-index: 100;
  border-bottom: 1px solid #f2f2f2;
}

.header-back-btn,
.header-icon-btn,
.header-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s;
  color: #222;
  text-decoration: none;
  padding: 0;
  position: relative;
}

.header-back-btn:hover,
.header-icon-btn:hover,
.header-share-btn:hover {
  background: #f5f5f5;
}

.header-icon-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-search-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f2f2f2;
  border: none;
  border-radius: 8px;
  padding: 0 10px;
  height: 36px;
  gap: 6px;
}

.header-search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  padding: 0;
  display: flex;
  align-items: center;
}

.header-search {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: #222;
  cursor: pointer;
}

.header-search::placeholder {
  color: #888;
}

/* 36px, não 31: o share-arrow.png tem ~40% de padding transparente em volta da
   seta (conteúdo real = 60% x 59% do arquivo, medido com PIL). A 31px a seta
   VISÍVEL ficava com 18,5px, contra 22px cheios do carrinho SVG ao lado — daí
   ela parecer menor e desalinhada, mesmo o elemento sendo maior no DOM.
   A 36px a seta visível fica com ~21,6px, praticamente igual ao carrinho, e
   ainda sobra 1px de folga de cada lado dentro do botão de 38px (o corte que
   reprovou o ajuste de 20/jul). O PNG não foi tocado — ele é usado nas 88
   páginas e no index. */
.header-share-btn img {
  width: 36px !important;
  height: 36px !important;
  display: block;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 4px; /* item 18 (aula4 19/ago): era 8px — compartilhar "distante" do
               carrinho. -4px, mesmo delta usado no override do index.html
               (ver <style> do <head>, .header-icons ali é quem vale no home). */
  margin-left: -4px; /* aproxima do fim da barra de pesquisa (flex:1) — ela
                         cresce sozinha para preencher o espaço que sobra. */
}

/* Badge do carrinho */
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  border: 1.5px solid #fff;
}

@keyframes popBadge {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.cart-badge.pop {
  animation: popBadge .3s ease;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: var(--header-height);
  padding-bottom: var(--bottom-bar-height);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ===== IMAGE SLIDER ===== */
.image-slider {
  position: relative;
  overflow: hidden;
  background: #fff;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.image-slider:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform .3s ease-out;
  will-change: transform;
}

.slider-img {
  min-width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
}

.slider-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  pointer-events: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: #fff;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.slider-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ===== PRICE SECTION (decalque oficial) ===== */
/* ===== BARRA DE OFERTA — layout igual ao imperial-dos-atacados =====
   Antes era uma imagem (decalque-oferta.jpg) com elementos posicionados por
   cima em % absolutas. Agora é flexbox sobre o banner do imperio, como o
   componente OfferBar.tsx: badge-pílula à esquerda + Oferta Relâmpago à direita. */
.price-section {
  background-image: url('../images/banners/offerbar-banner-gradient.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
}

.price-section::before { display: none; }

.price-left { min-width: 0; }

/* linha do preço: badge + R$ + valor, alinhados pela base */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* Badge de desconto: pílula branca com texto vermelho (igual imperio) */
.discount-badge-white {
  align-self: center;
  background: #fff;
  color: #FE2C55;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* "R$" — menor que o número, alinhado ao topo do valor */
.price-label-apartir {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  align-self: flex-start;
  margin-top: 3px;
}

/* Valor principal — grande e extrabold, com centavos proporcionais */
.price-current {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.price-currency { display: none; }

/* Preço original riscado, logo abaixo */
.price-original {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1;
  margin-top: 6px;
}

/* Lado direito: Oferta Relâmpago + timer */
.price-right {
  text-align: right;
  flex-shrink: 0;
}

.oferta-relampago {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.oferta-relampago svg { flex-shrink: 0; }

.timer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
  line-height: 1;
}

.timer-label {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
}

.timer-value {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ===== PRODUCT INFO ===== */
.product-info {
  background: var(--color-white);
  padding: 14px;
}

/* Badge de desconto tipo cupom */
.discount-ticket {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.product-badge-discount {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  /* Sem pontilhados */
}

/* Força crachás de produtos (desconto e frete grátis) a ficarem lado a lado em linha */
.product-badges {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 6px !important;
  margin-top: 6px !important;
  margin-bottom: 6px !important;
  flex-wrap: wrap !important;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 10px;
}

/* Ratings row */
.ratings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.star-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-icon {
  color: #F5A623;
}

.rating-number {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.divider-v {
  width: 1px;
  height: 14px;
  background: var(--color-border);
}

.sold-count {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Frete */
.frete-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f7f7f7;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}

.frete-icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .8;
}

.product-badge {
  background: var(--color-frete);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.frete-detail {
  font-size: 12px;
  color: var(--color-text-muted);
}

.frete-taxa {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Urgência */
.urgency-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #444;
  background: #fff8f0;
  border: 1px solid #ffd7b0;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 12px;
}

.urgency-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.urgency-separator {
  color: #ccc;
  margin: 0 2px;
}

/* Proteção */
/* Estilos de linhas de informações no produto (Frete, Opções, Cashback, Proteção) */
.info-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid #f2f2f2;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.info-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-row-title {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.info-row-subtitle {
  font-size: 12px;
  color: #888;
}

.info-row-arrow {
  font-size: 18px;
  color: #ccc;
  font-weight: 300;
  line-height: 1;
}

/* Descrição */
.description-section {
  margin-bottom: 14px;
  border-top: 6px solid #f5f5f5;
  padding-top: 14px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.description-text {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  white-space: pre-line;
}

/* ===== AVALIAÇÕES ===== */
.reviews-section {
  border-top: 6px solid #f5f5f5;
  padding-top: 14px;
  margin-bottom: 14px;
}

.reviews-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.review-avg {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-text);
}

.review-avg-total {
  font-size: 16px;
  color: #999;
  margin-top: 4px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-star {
  color: #F5A623;
}

.review-star.empty {
  color: #ddd;
}

.review-card {
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
}

.review-card:first-of-type {
  border-top: none;
}

.review-header {
  margin-bottom: 8px;
}

.review-user {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-user-info {
  flex: 1;
}

.review-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.review-user-stars {
  font-size: 12px;
  line-height: 1.4;
}

.review-date {
  font-size: 11px;
  color: #999;
  margin-top: 1px;
}

.review-comment {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 8px;
}

.review-photos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.review-photo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .15s;
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
}

.review-photo:hover {
  opacity: .85;
}

/* Oculta imgs de mp4 que não carregam como imagem */
img.review-photo[src$=".mp4"] {
  display: none !important;
}

.ver-mais-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: #f7f7f7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}

.ver-mais-btn:hover {
  background: #eee;
}

.load-more-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: #f7f7f7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}

.load-more-btn:hover {
  background: #eee;
}

.review-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== BARRA DE ABAS (SHOPEE STYLE — FIXA E OCULTA ATÉ ROLAR) ===== */
.product-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid #e0e0e0;
  background: #fff;
  position: fixed;
  top: -60px;
  /* oculto acima da viewport */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 99;
  /* Fica logo abaixo do header que tem 100 */
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  transition: top 0.25s ease;
}

.product-tabs::-webkit-scrollbar {
  display: none;
}

/* Quando visível (adicionado via JS ao rolar) */
.product-tabs.tabs-visible {
  top: 52px;
  /* aparece logo abaixo do header (header = 52px) */
}

.product-tab {
  flex: 1;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: center;
}

.product-tab.active {
  color: #111;
  border-bottom-color: #111;
  font-weight: 700;
}

/* ===== PRODUTOS RELACIONADOS ===== */
.related-section {
  border-top: 6px solid #f5f5f5;
  padding-top: 14px;
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0 14px;
}

/*
 * Grid real de 2 colunas (item B5, 19/ago) — trocou o masonry (2 `<div>` flex
 * independentes, cada uma empilhando metade dos cards) porque masonry por
 * definição não alinha as bases: card mais alto numa coluna desalinha todas as
 * linhas seguintes entre as duas colunas. Com `display: grid`, os `.related-card`
 * entram DIRETO como itens da grade (ver `js/app.js`, `renderRelacionados`) — o
 * Grid iguala a altura de cada LINHA ao maior item dela, e `align-items: stretch`
 * (padrão do Grid, explícito aqui por clareza) estica os dois cards daquela linha
 * até essa altura. Não existe mais `.related-col`: os cards não têm coluna-wrapper.
 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 4px;
  padding: 0 4px;
}

.related-card {
  background: var(--color-white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ebebeb;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s;
  display: block;
  width: 100%;
}

.related-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.related-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* contain, não cover (item B5, 19/ago) — escolha dele: a imagem do produto
     aparece INTEIRA, sem borda decepada; o cinza abaixo preenche a sobra.
     19/ago (item 19, aula 18:08) — "não deixa cinza desse jeito não, fica
     muito feio". Branco fixo também erra numa foto composta (cenário próprio,
     ex.: produto 65 "Sofá 3 Lugares" — a própria descrição avisa "os objetos
     que ambientam as fotos não acompanham o produto"). js/app.js agora
     amostra o canto da imagem original no onload (amostrarCorCantoImagem) e
     pinta o fundo com essa cor: branco sai sozinho em foto recortada, tom do
     cenário sai sozinho em foto composta. O valor abaixo é só o ANTES da
     amostra rodar (primeiro paint / ainda carregando / amostra falhou). */
  object-fit: contain;
  background: #fff;
  display: block;
}

.related-info {
  padding: 8px;
}

.related-name {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.related-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.related-price-original {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.related-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.related-discount {
  background: #fde8ec;
  /* Fundo rosa suave igual ao da loja oficial */
  color: #c0394b;
  /* Vermelho menos aceso, idêntico ao -38% da loja */
  font-size: 10px;
  font-weight: 600;
  /* Menos grossa que 700, igual ao original */
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-frete {
  font-size: 10px;
  color: var(--color-frete);
  font-weight: 600;
}

.related-sold {
  font-size: 11px;
  color: #999;
}

/* ===== BOTTOM BAR (ESTILO SHOPEE/OFICIAL FIEL) ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 64px;
  background: var(--color-white);
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  z-index: 1000;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, .04);
}

/* Ícones de Loja e Chat (esquerda) */
.btn-icon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  /* Cor preta sólida idêntica à imagem */
  font-size: 11px;
  font-weight: 500;
  padding: 0;
  flex-shrink: 0;
}

.btn-icon-action svg {
  color: #000000;
  stroke-width: 2.2;
  /* Desenho mais encorpado */
}

/* Sem separador na imagem */
.bottom-bar-sep {
  display: none;
}

/* Botão "Adicionar ao carrinho" (Cinza claro, fonte preta, super arredondado) */
.btn-add-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1.45;
  /* Aumentado para estender mais */
  height: 44px;
  border: none;
  background: #f2f2f2;
  /* Cinza claro idêntico */
  color: #000000;
  /* Texto preto */
  border-radius: 24px;
  /* Totalmente arredondado como na imagem */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
  line-height: 1.25;
  margin-left: 2px;
  /* Aproxima do bloco de Loja/Chat */
  margin-right: 4px;
}

.btn-add-cart span.btn-line1 {
  font-size: 13.5px;
  font-weight: 600;
  color: #000000;
}

.btn-add-cart:hover {
  opacity: 0.9;
}

/* Botão "Comprar agora" (Vermelho vívido/rosa, super arredondado) */
.btn-buy {
  flex: 1.6;
  /* Aumentado proporcionalmente para manter a simetria */
  height: 44px;
  background: #ff2d55;
  /* Cor rosa/vermelho idêntico ao da imagem */
  color: #ffffff;
  border: none;
  border-radius: 24px;
  /* Totalmente arredondado */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.btn-buy span.btn-line1 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.btn-buy span.btn-line2 {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.95;
  color: #ffffff;
}

.btn-buy:hover {
  opacity: .9;
}

/* Bloco fatiado da loja e do chat usando a imagem oficial */
.store-chat-image-group {
  display: flex;
  align-items: center;
  position: relative;
  width: 78px;
  height: 36px;
  background: url('../images/image.png') no-repeat left center;
  background-size: auto 100%;
  flex-shrink: 0;
  margin-right: 0px;
  /* Encostado no botão para menor espaço possível */
  margin-left: 12px;
  /* Afastado um pouco da esquerda */
}

.store-chat-clickable-loja {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  cursor: pointer;
}

.store-chat-clickable-chat {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  cursor: pointer;
}


/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, .85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== PHOTO MODAL ===== */
.photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.photo-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
}

.photo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
}

/* ===== CARRINHO ===== */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 12px;
  text-align: center;
}

.cart-empty-icon {
  color: #ddd;
}

.cart-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.cart-empty-text {
  font-size: 14px;
  color: #999;
  max-width: 240px;
}

.btn-continue-shopping {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.cart-list {
  padding: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 30px;
  height: 28px;
  background: #f5f5f5;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.qty-btn:hover {
  background: #eee;
}

.qty-value {
  width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  flex-shrink: 0;
  transition: color .15s;
}

.cart-item-remove:hover {
  color: var(--color-primary);
}

/* Resumo do carrinho */
.cart-summary {
  background: var(--color-white);
  padding: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-summary-label {
  color: var(--color-text-muted);
}

.cart-summary-value {
  font-weight: 600;
  color: var(--color-text);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.cart-total-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.cart-total-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}

/* Bottom bar do carrinho */
.cart-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}

.btn-checkout {
  width: 100%;
  height: 48px;
  background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s;
}

.btn-checkout:hover {
  opacity: .9;
}

/* ===== CHECKOUT ===== */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--color-white);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.step.active .step-circle {
  background: var(--color-primary);
  color: #fff;
}

.step.done .step-circle {
  background: #2E7D32;
  color: #fff;
}

.step-label {
  font-size: 10px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.step.active .step-label,
.step.done .step-label {
  color: var(--color-text);
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 6px;
  margin-bottom: 14px;
  transition: background .3s;
}

.step-line.done {
  background: #2E7D32;
}

/* Seções do checkout */
.checkout-section {
  background: var(--color-white);
  padding: 16px;
  margin-bottom: 8px;
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Formulário */
.form-group {
  margin-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  background: var(--color-white);
  transition: border-color .15s;
  font-family: var(--font-main);
}

.form-input:focus {
  border-color: var(--color-primary);
}

.form-input.error {
  border-color: var(--color-primary);
  background: #fff5f5;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

/* Resumo do pedido no checkout */
.order-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-item-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-item-qty-price {
  font-size: 12px;
  color: var(--color-text-muted);
}

.order-divider {
  height: 1px;
  background: var(--color-border);
  margin: 10px 0;
}

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

.order-total-label {
  font-size: 14px;
  font-weight: 700;
}

.order-total-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}

/* Métodos de pagamento */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all .15s;
  background: var(--color-white);
}

.payment-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s;
}

.payment-option.selected .payment-radio {
  border-color: var(--color-primary);
}

.payment-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  transition: transform .15s;
}

.payment-option.selected .payment-radio-dot {
  transform: scale(1);
}

.payment-info {
  flex: 1;
}

.payment-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.payment-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.payment-icon {
  flex-shrink: 0;
}

/* PIX display */
.pix-display {
  background: #f0faf9;
  border: 1px solid #b2dfdb;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.pix-display-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a6b6b;
  margin-bottom: 12px;
}

.pix-qr {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 12px;
}

.pix-code-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.pix-code-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  font-size: 10px;
  color: #444;
  word-break: break-all;
  text-align: left;
  font-family: monospace;
  margin-bottom: 10px;
}

.btn-copy-pix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  background: #32bcad;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}

.btn-copy-pix:hover {
  opacity: .9;
}

/* ===== SUCESSO ===== */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: checkAnim .5s ease-out;
}

@keyframes checkAnim {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
}

.success-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 300px;
  margin-bottom: 24px;
}

.success-order-box {
  width: 100%;
  background: #f7f7f7;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.success-order-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

.success-order-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.btn-back-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: opacity .15s;
}

.btn-back-home:hover {
  opacity: .9;
}

/* ===== INDEX / HOME ===== */
.home-banner {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: 20px 16px 16px;
  position: relative;
  overflow: hidden;
}

.home-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.home-banner-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  position: relative;
}

.home-banner-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 12px;
  position: relative;
}

.home-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  position: relative;
}

.home-section-title {
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px 8px;
  color: var(--color-text);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
}

.product-card {
  background: var(--color-white);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity .15s;
}

.product-card:hover {
  opacity: .95;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f9f9f9;
}

.product-card-info {
  padding: 10px;
}

.product-card-name {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.product-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
}

.product-card-original {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.product-card-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.product-card-discount {
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.product-card-sold {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* ===== CONTA PAGE ===== */
.conta-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: 30px 16px 24px;
  text-align: center;
  color: #fff;
}

.conta-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 28px;
}

.conta-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.conta-email {
  font-size: 13px;
  opacity: .8;
}

.conta-menu {
  background: var(--color-white);
}

.conta-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  transition: background .15s;
}

.conta-menu-item:hover {
  background: #f9f9f9;
}

.conta-menu-item:last-child {
  border-bottom: none;
}

.conta-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.conta-menu-text {
  flex: 1;
}

.conta-menu-title {
  font-size: 14px;
  font-weight: 600;
}

.conta-menu-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.conta-menu-arrow {
  color: #ccc;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .15);
  border-radius: 2px;
}

/* ===== BOT�O VER MAIS AVALIA��ES ===== */
.ver-mais-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  margin-top: 12px;
  transition: all .15s;
}

.ver-mais-btn:hover {
  background: var(--color-primary);
  color: #fff;
}


/* Ajustes de Video e Carrossel */
.slider-video {
  pointer-events: auto !important;
  background: #000 !important;
}

.image-slider {
  background: #000 !important;
}

.slider-dots {
  display: none !important;
}

/* ===== SEÇÃO MAIS DESTA LOJA (WIDGET FAST STAR STORE) ===== */
.store-widget-section {
  background: #fff;
  padding: 16px;
  margin: 0;
  border-top: 8px solid #f5f5f5;
  border-bottom: 8px solid #f5f5f5;
}

.store-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.store-widget-logo-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid #eee;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-widget-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-widget-info {
  flex: 1;
}

.store-widget-name {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.store-widget-sales {
  font-size: 13px;
  color: #888;
}

.store-widget-btn-visitar {
  background: #f5f5f5;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.store-widget-btn-visitar:hover {
  background: #e5e5e5;
}

.store-widget-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #f2f2f2;
  padding-bottom: 16px;
}

.store-widget-stats strong {
  color: #111;
  font-weight: 700;
}

.store-widget-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  cursor: pointer;
}

.store-widget-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.2px;
}

.store-widget-arrow {
  color: #bbb;
  font-size: 18px;
}

.store-widget-products-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.store-widget-products-scroll::-webkit-scrollbar {
  display: none;
}

.store-widget-product-card {
  width: 110px;
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.store-widget-product-img {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
  margin-bottom: 8px;
}

.store-widget-product-price {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  margin-bottom: 3px;
}

.store-widget-product-discount {
  font-size: 10px;
  font-weight: 700;
  color: #ff2b56;
  background: #fff0f3;
  padding: 1px 4px;
  border-radius: 3px;
  width: fit-content;
}

para harmonia visual */ font-size: clamp(17px, 5.0vw, 30px);
font-weight: 500;
line-height: 1;
letter-spacing: -0.5px;
}

.price-currency {
  display: none;
}

/* 4. Preço Original Riscado (Fica abaixo do balão de desconto) */
.price-original {
  position: absolute;
  left: 4.2%;
  top: 56%;
  /* Subido "coisa leve" conforme solicitado */
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(11px, 2.7vw, 15px);
  text-decoration: line-through;
  font-weight: 400;
  line-height: 1;
}

/* 5. Container do Timer (Lado Direito) */
.price-right {
  display: block;
}

.oferta-relampago {
  display: none;
}

/* Timer alinhado mais para a direita abaixo de Oferta Relâmpago */
.timer-row {
  position: absolute;
  right: 5.5%;
  top: 62%;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.timer-label {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  /* Cor branca suave, idêntica ao cronômetro */
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 400;
  letter-spacing: -0.2px;
}

/* Valor do timer - Cor ajustada para combinar perfeitamente com o rótulo */
.timer-value {
  color: rgba(255, 255, 255, 0.85);
  /* Tom branco suave (puxado pro cinza leve) */
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
}

/* ===== PRODUCT INFO ===== */
.product-info {
  background: var(--color-white);
  padding: 14px;
}

/* Badge de desconto tipo cupom */
.discount-ticket {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.product-badge-discount {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1.5px dashed var(--color-primary);
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 10px;
}

/* Ratings row */
.ratings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.star-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-icon {
  color: #F5A623;
}

.rating-number {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.divider-v {
  width: 1px;
  height: 14px;
  background: var(--color-border);
}

.sold-count {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Frete */
.frete-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f7f7f7;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}

.frete-icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .8;
}

.product-badge {
  background: var(--color-frete);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.frete-detail {
  font-size: 12px;
  color: var(--color-text-muted);
}

.frete-taxa {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Urgência */
.urgency-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #444;
  background: #fff8f0;
  border: 1px solid #ffd7b0;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 12px;
}

.urgency-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.urgency-separator {
  color: #ccc;
  margin: 0 2px;
}

/* Proteção */
.protection-section {
  border: 1px solid #e8d0a9;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  background: #fff8e1;
}

.protection-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-protection);
  margin-bottom: 10px;
}

.protection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.protection-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #7a4000;
}

/* Descrição */
.description-section {
  margin-bottom: 14px;
  border-top: 6px solid #f5f5f5;
  padding-top: 14px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.description-text {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  white-space: pre-line;
}

/* ===== AVALIAÇÕES ===== */
.reviews-section {
  border-top: 6px solid #f5f5f5;
  padding-top: 14px;
  margin-bottom: 14px;
}

.reviews-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.review-avg {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-text);
}

.review-avg-total {
  font-size: 16px;
  color: #999;
  margin-top: 4px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-star {
  color: #F5A623;
}

.review-star.empty {
  color: #ddd;
}

.review-card {
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
}

.review-card:first-of-type {
  border-top: none;
}

.review-header {
  margin-bottom: 8px;
}

.review-user {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-user-info {
  flex: 1;
}

.review-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.review-user-stars {
  font-size: 12px;
  line-height: 1.4;
}

.review-date {
  font-size: 11px;
  color: #999;
  margin-top: 1px;
}

.review-comment {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 8px;
}

.review-photos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.review-photo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .15s;
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
}

.review-photo:hover {
  opacity: .85;
}

img.review-photo[src$=".mp4"] {
  display: none !important;
}

.ver-mais-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: #f7f7f7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}

.ver-mais-btn:hover {
  background: #eee;
}

/* ===== BARRA DE ABAS (SHOPEE STYLE — FIXA E OCULTA ATÉ ROLAR) ===== */
.product-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid #e0e0e0;
  background: #fff;
  position: fixed;
  top: -60px;
  /* oculto acima da viewport */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 99;
  /* Fica logo abaixo do header que tem 100 */
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  transition: top 0.25s ease;
}

.product-tabs::-webkit-scrollbar {
  display: none;
}

/* Quando visível (adicionado via JS ao rolar) */
.product-tabs.tabs-visible {
  top: 52px;
  /* aparece logo abaixo do header (header = 52px) */
}

.product-tab {
  flex: 1;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: center;
}

.product-tab.active {
  color: #111;
  border-bottom-color: #111;
  font-weight: 700;
}

/* ===== PRODUTOS RELACIONADOS ===== */
.related-section {
  border-top: 6px solid #f5f5f5;
  padding-top: 14px;
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0 14px;
}

/*
 * Grid real de 2 colunas (item B5, 19/ago) — trocou o masonry (2 `<div>` flex
 * independentes, cada uma empilhando metade dos cards) porque masonry por
 * definição não alinha as bases: card mais alto numa coluna desalinha todas as
 * linhas seguintes entre as duas colunas. Com `display: grid`, os `.related-card`
 * entram DIRETO como itens da grade (ver `js/app.js`, `renderRelacionados`) — o
 * Grid iguala a altura de cada LINHA ao maior item dela, e `align-items: stretch`
 * (padrão do Grid, explícito aqui por clareza) estica os dois cards daquela linha
 * até essa altura. Não existe mais `.related-col`: os cards não têm coluna-wrapper.
 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 4px;
  padding: 0 4px;
}

.related-card {
  background: var(--color-white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ebebeb;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s;
  display: block;
  width: 100%;
}

.related-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.related-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* contain, não cover (item B5, 19/ago) — escolha dele: a imagem do produto
     aparece INTEIRA, sem borda decepada; o cinza abaixo preenche a sobra.
     19/ago (item 19, aula 18:08) — "não deixa cinza desse jeito não, fica
     muito feio". Branco fixo também erra numa foto composta (cenário próprio,
     ex.: produto 65 "Sofá 3 Lugares" — a própria descrição avisa "os objetos
     que ambientam as fotos não acompanham o produto"). js/app.js agora
     amostra o canto da imagem original no onload (amostrarCorCantoImagem) e
     pinta o fundo com essa cor: branco sai sozinho em foto recortada, tom do
     cenário sai sozinho em foto composta. O valor abaixo é só o ANTES da
     amostra rodar (primeiro paint / ainda carregando / amostra falhou). */
  object-fit: contain;
  background: #fff;
  display: block;
}

.related-info {
  padding: 8px;
}

.related-name {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.related-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.related-price-original {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.related-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.related-discount {
  background: #fde8ec;
  /* Fundo rosa suave igual ao da loja oficial */
  color: #c0394b;
  /* Vermelho menos aceso, idêntico ao -38% da loja */
  font-size: 10px;
  font-weight: 600;
  /* Menos grossa que 700, igual ao original */
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-frete {
  font-size: 10px;
  color: var(--color-frete);
  font-weight: 600;
}

.related-sold {
  font-size: 11px;
  color: #999;
}

/* ===== BOTTOM BAR (ESTILO SHOPEE/OFICIAL FIEL) ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 64px;
  background: var(--color-white);
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  z-index: 1000;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, .04);
}

/* Ícones de Loja e Chat (esquerda) */
.btn-icon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  /* Cor preta sólida idêntica à imagem */
  font-size: 11px;
  font-weight: 500;
  padding: 0;
  flex-shrink: 0;
}

.btn-icon-action svg {
  color: #000000;
  stroke-width: 2.2;
  /* Desenho mais encorpado */
}

/* Sem separador na imagem */
.bottom-bar-sep {
  display: none;
}

/* Botão "Adicionar ao carrinho" (Cinza claro, fonte preta, super arredondado) */
.btn-add-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1.1;
  height: 44px;
  border: none;
  background: #f2f2f2;
  /* Cinza claro idêntico */
  color: #000000;
  /* Texto preto */
  border-radius: 24px;
  /* Totalmente arredondado como na imagem */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
  line-height: 1.25;
  margin-left: 6px;
  margin-right: 6px;
}

.btn-add-cart span.btn-line1 {
  font-size: 13.5px;
  font-weight: 600;
  color: #000000;
}

.btn-add-cart:hover {
  opacity: 0.9;
}

/* Botão "Comprar agora" (Vermelho vívido/rosa, super arredondado) */
.btn-buy {
  flex: 1.3;
  height: 44px;
  background: #ff2d55;
  /* Cor rosa/vermelho idêntico ao da imagem */
  color: #ffffff;
  border: none;
  border-radius: 24px;
  /* Totalmente arredondado */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.btn-buy span.btn-line1 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.btn-buy span.btn-line2 {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.95;
  color: #ffffff;
}

.btn-buy:hover {
  opacity: .9;
}


/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, .85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== PHOTO MODAL ===== */
.photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.photo-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
}

.photo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
}

/* ===== CARRINHO ===== */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 12px;
  text-align: center;
}

.cart-empty-icon {
  color: #ddd;
}

.cart-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.cart-empty-text {
  font-size: 14px;
  color: #999;
  max-width: 240px;
}

.btn-continue-shopping {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.cart-list {
  padding: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 30px;
  height: 28px;
  background: #f5f5f5;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.qty-btn:hover {
  background: #eee;
}

.qty-value {
  width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  flex-shrink: 0;
  transition: color .15s;
}

.cart-item-remove:hover {
  color: var(--color-primary);
}

/* Resumo do carrinho */
.cart-summary {
  background: var(--color-white);
  padding: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-summary-label {
  color: var(--color-text-muted);
}

.cart-summary-value {
  font-weight: 600;
  color: var(--color-text);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.cart-total-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.cart-total-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}

/* Bottom bar do carrinho */
.cart-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}

.btn-checkout {
  width: 100%;
  height: 48px;
  background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s;
}

.btn-checkout:hover {
  opacity: .9;
}

/* ===== CHECKOUT ===== */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--color-white);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.step.active .step-circle {
  background: var(--color-primary);
  color: #fff;
}

.step.done .step-circle {
  background: #2E7D32;
  color: #fff;
}

.step-label {
  font-size: 10px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.step.active .step-label,
.step.done .step-label {
  color: var(--color-text);
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 6px;
  margin-bottom: 14px;
  transition: background .3s;
}

.step-line.done {
  background: #2E7D32;
}

/* Seções do checkout */
.checkout-section {
  background: var(--color-white);
  padding: 16px;
  margin-bottom: 8px;
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Formulário */
.form-group {
  margin-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  background: var(--color-white);
  transition: border-color .15s;
  font-family: var(--font-main);
}

.form-input:focus {
  border-color: var(--color-primary);
}

.form-input.error {
  border-color: var(--color-primary);
  background: #fff5f5;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

/* Resumo do pedido no checkout */
.order-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-item-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-item-qty-price {
  font-size: 12px;
  color: var(--color-text-muted);
}

.order-divider {
  height: 1px;
  background: var(--color-border);
  margin: 10px 0;
}

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

.order-total-label {
  font-size: 14px;
  font-weight: 700;
}

.order-total-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}

/* Métodos de pagamento */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all .15s;
  background: var(--color-white);
}

.payment-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s;
}

.payment-option.selected .payment-radio {
  border-color: var(--color-primary);
}

.payment-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  transition: transform .15s;
}

.payment-option.selected .payment-radio-dot {
  transform: scale(1);
}

.payment-info {
  flex: 1;
}

.payment-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.payment-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.payment-icon {
  flex-shrink: 0;
}

/* PIX display */
.pix-display {
  background: #f0faf9;
  border: 1px solid #b2dfdb;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.pix-display-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a6b6b;
  margin-bottom: 12px;
}

.pix-qr {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 12px;
}

.pix-code-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.pix-code-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  font-size: 10px;
  color: #444;
  word-break: break-all;
  text-align: left;
  font-family: monospace;
  margin-bottom: 10px;
}

.btn-copy-pix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  background: #32bcad;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}

.btn-copy-pix:hover {
  opacity: .9;
}

/* ===== SUCESSO ===== */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: checkAnim .5s ease-out;
}

@keyframes checkAnim {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
}

.success-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 300px;
  margin-bottom: 24px;
}

.success-order-box {
  width: 100%;
  background: #f7f7f7;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.success-order-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

.success-order-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.btn-back-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: opacity .15s;
}

.btn-back-home:hover {
  opacity: .9;
}

/* ===== INDEX / HOME ===== */
.home-banner {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: 20px 16px 16px;
  position: relative;
  overflow: hidden;
}

.home-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.home-banner-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  position: relative;
}

.home-banner-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 12px;
  position: relative;
}

.home-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  position: relative;
}

.home-section-title {
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px 8px;
  color: var(--color-text);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
}

.product-card {
  background: var(--color-white);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity .15s;
}

.product-card:hover {
  opacity: .95;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f9f9f9;
}

.product-card-info {
  padding: 10px;
}

.product-card-name {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.product-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
}

.product-card-original {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.product-card-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.product-card-discount {
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.product-card-sold {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* ===== CONTA PAGE ===== */
.conta-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: 30px 16px 24px;
  text-align: center;
  color: #fff;
}

.conta-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 28px;
}

.conta-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.conta-email {
  font-size: 13px;
  opacity: .8;
}

.conta-menu {
  background: var(--color-white);
}

.conta-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  transition: background .15s;
}

.conta-menu-item:hover {
  background: #f9f9f9;
}

.conta-menu-item:last-child {
  border-bottom: none;
}

.conta-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.conta-menu-text {
  flex: 1;
}

.conta-menu-title {
  font-size: 14px;
  font-weight: 600;
}

.conta-menu-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.conta-menu-arrow {
  color: #ccc;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .15);
  border-radius: 2px;
}

/* ===== BOT�O VER MAIS AVALIA��ES ===== */
.ver-mais-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  margin-top: 12px;
  transition: all .15s;
}

.ver-mais-btn:hover {
  background: var(--color-primary);
  color: #fff;
}


/* Ajustes de Video e Carrossel */
.slider-video {
  pointer-events: auto !important;
  background: #000 !important;
}

.image-slider {
  background: #000 !important;
}

.slider-dots {
  display: none !important;
}

para harmonia visual */ font-size: clamp(17px, 5.0vw, 30px);
font-weight: 500;
line-height: 1;
letter-spacing: -0.5px;
}

/* 3. Preço Principal Grande (Ex: 69,90) - Subido ligeiramente para alinha com o "A partir de R$" */
.price-current {
  position: absolute;
  left: 36.2%;
  top: 18%;
  /* Movido um pouco para baixo */
  color: rgba(255, 255, 255, 0.85);

  /* Mesma cor do 'A partir de R

.price-currency {
  display: none;
}

/* 4. Preço Original Riscado (Fica abaixo do balão de desconto) */
  .price-original {
    position: absolute;
    left: 4.2%;
    top: 56%;
    /* Subido "coisa leve" conforme solicitado */
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(11px, 2.7vw, 15px);
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1;
  }

  /* 5. Container do Timer (Lado Direito) */
  .price-right {
    display: block;
  }

  .oferta-relampago {
    display: none;
  }

  /* Timer alinhado mais para a direita abaixo de Oferta Relâmpago */
  .timer-row {
    position: absolute;
    right: 5.5%;
    top: 62%;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
  }

  .timer-label {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    /* Cor branca suave, idêntica ao cronômetro */
    font-size: clamp(11px, 2.8vw, 15px);
    font-weight: 400;
    letter-spacing: -0.2px;
  }

  /* Valor do timer - Cor ajustada para combinar perfeitamente com o rótulo */
  .timer-value {
    color: rgba(255, 255, 255, 0.85);
    /* Tom branco suave (puxado pro cinza leve) */
    font-size: clamp(11px, 2.8vw, 15px);
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
  }

  /* ===== PRODUCT INFO ===== */
  .product-info {
    background: var(--color-white);
    padding: 14px;
  }

  /* Badge de desconto tipo cupom */
  .discount-ticket {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }

  .product-badge-discount {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1.5px dashed var(--color-primary);
  }

  .product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 10px;
  }

  /* Ratings row */
  .ratings-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .star-row {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .star-icon {
    color: #F5A623;
  }

  .rating-number {
    font-size: 13px;
    font-weight: 600;
    color: #444;
  }

  .divider-v {
    width: 1px;
    height: 14px;
    background: var(--color-border);
  }

  .sold-count {
    font-size: 13px;
    color: var(--color-text-muted);
  }

  /* Frete */
  .frete-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f7f7f7;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
  }

  .frete-icon {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: .8;
  }

  .product-badge {
    background: var(--color-frete);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
  }

  .frete-detail {
    font-size: 12px;
    color: var(--color-text-muted);
  }

  .frete-taxa {
    font-size: 12px;
    color: var(--color-text-muted);
  }

  /* Urgência */
  .urgency-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #444;
    background: #fff8f0;
    border: 1px solid #ffd7b0;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    margin-bottom: 12px;
  }

  .urgency-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: .3;
    }
  }

  .urgency-separator {
    color: #ccc;
    margin: 0 2px;
  }

  /* Proteção */
  .protection-section {
    border: 1px solid #e8d0a9;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 14px;
    background: #fff8e1;
  }

  .protection-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-protection);
    margin-bottom: 10px;
  }

  .protection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .protection-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #7a4000;
  }

  /* Descrição */
  .description-section {
    margin-bottom: 14px;
    border-top: 6px solid #f5f5f5;
    padding-top: 14px;
  }

  .section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
  }

  .description-text {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    white-space: pre-line;
  }

  /* ===== AVALIAÇÕES ===== */
  .reviews-section {
    border-top: 6px solid #f5f5f5;
    padding-top: 14px;
    margin-bottom: 14px;
  }

  .reviews-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
  }

  .reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
  }

  .review-avg {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-text);
  }

  .review-avg-total {
    font-size: 16px;
    color: #999;
    margin-top: 4px;
  }

  .review-stars {
    display: flex;
    gap: 2px;
  }

  .review-star {
    color: #F5A623;
  }

  .review-star.empty {
    color: #ddd;
  }

  .review-card {
    border-top: 1px solid var(--color-border);
    padding: 12px 0;
  }

  .review-card:first-of-type {
    border-top: none;
  }

  .review-header {
    margin-bottom: 8px;
  }

  .review-user {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }

  .review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .review-user-info {
    flex: 1;
  }

  .review-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
  }

  .review-user-stars {
    font-size: 12px;
    line-height: 1.4;
  }

  .review-date {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
  }

  .review-comment {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .review-photos {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .review-photo {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity .15s;
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: inline-block;
    flex-shrink: 0;
  }

  .review-photo:hover {
    opacity: .85;
  }

  img.review-photo[src$=".mp4"] {
    display: none !important;
  }

  .ver-mais-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #f7f7f7;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .15s;
  }

  .ver-mais-btn:hover {
    background: #eee;
  }

  /* ===== BARRA DE ABAS (SHOPEE STYLE — FIXA E OCULTA ATÉ ROLAR) ===== */
  .product-tabs {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #e0e0e0;
    background: #fff;
    position: fixed;
    top: -60px;
    /* oculto acima da viewport */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    z-index: 99;
    /* Fica logo abaixo do header que tem 100 */
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    transition: top 0.25s ease;
  }

  .product-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Quando visível (adicionado via JS ao rolar) */
  .product-tabs.tabs-visible {
    top: 52px;
    /* aparece logo abaixo do header (header = 52px) */
  }

  .product-tab {
    flex: 1;
    padding: 12px 4px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    text-align: center;
  }

  .product-tab.active {
    color: #111;
    border-bottom-color: #111;
    font-weight: 700;
  }

  /* ===== PRODUTOS RELACIONADOS ===== */
  .related-section {
    border-top: 6px solid #f5f5f5;
    padding-top: 14px;
  }

  .related-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 0 14px;
  }

  /* Grid real de 2 colunas (item B5, 19/ago) — ver o comentário completo na
     primeira ocorrência de `.related-grid` acima neste arquivo. Não existe mais
     `.related-col`: os cards entram direto como itens da grade. */
  .related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 4px;
    padding: 0 4px;
  }

  .related-card {
    background: var(--color-white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s;
    display: block;
    width: 100%;
  }

  .related-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  }

  .related-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* contain, não cover (item B5) — ver comentário na primeira ocorrência.
       19/ago (item 19) — branco é só o valor ANTES da amostra de cor rodar
       (ver comentário completo na primeira ocorrência). */
    object-fit: contain;
    background: #fff;
    display: block;
  }

  .related-info {
    padding: 8px;
  }

  .related-name {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .related-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 3px;
  }

  .related-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
  }

  .related-price-original {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
  }

  .related-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
  }

  .related-discount {
    background: #fde8ec;
    /* Fundo rosa suave igual ao da loja oficial */
    color: #c0394b;
    /* Vermelho menos aceso, idêntico ao -38% da loja */
    font-size: 10px;
    font-weight: 600;
    /* Menos grossa que 700, igual ao original */
    padding: 2px 6px;
    border-radius: 4px;
  }

  .badge-frete {
    font-size: 10px;
    color: var(--color-frete);
    font-weight: 600;
  }

  .related-sold {
    font-size: 11px;
    color: #999;
  }

  /* ===== BOTTOM BAR (ESTILO SHOPEE/OFICIAL FIEL) ===== */
  .bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: 64px;
    background: var(--color-white);
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, .04);
  }

  /* Ícones de Loja e Chat (esquerda) */
  .btn-icon-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 44px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    /* Cor preta sólida idêntica à imagem */
    font-size: 11px;
    font-weight: 500;
    padding: 0;
    flex-shrink: 0;
  }

  .btn-icon-action svg {
    color: #000000;
    stroke-width: 2.2;
    /* Desenho mais encorpado */
  }

  /* Sem separador na imagem */
  .bottom-bar-sep {
    display: none;
  }

  /* Botão "Adicionar ao carrinho" (Cinza claro, fonte preta, super arredondado) */
  .btn-add-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1.1;
    height: 44px;
    border: none;
    background: #f2f2f2;
    /* Cinza claro idêntico */
    color: #000000;
    /* Texto preto */
    border-radius: 24px;
    /* Totalmente arredondado como na imagem */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
    line-height: 1.25;
    margin-left: 6px;
    margin-right: 6px;
  }

  .btn-add-cart span.btn-line1 {
    font-size: 13.5px;
    font-weight: 600;
    color: #000000;
  }

  .btn-add-cart:hover {
    opacity: 0.9;
  }

  /* Botão "Comprar agora" (Vermelho vívido/rosa, super arredondado) */
  .btn-buy {
    flex: 1.3;
    height: 44px;
    background: #ff2d55;
    /* Cor rosa/vermelho idêntico ao da imagem */
    color: #ffffff;
    border: none;
    border-radius: 24px;
    /* Totalmente arredondado */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
  }

  .btn-buy span.btn-line1 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
  }

  .btn-buy span.btn-line2 {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.95;
    color: #ffffff;
  }

  .btn-buy:hover {
    opacity: .9;
  }


  /* ===== TOAST ===== */
  .toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, .85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    white-space: nowrap;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
  }

  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* ===== PHOTO MODAL ===== */
  .photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }

  .photo-modal.open {
    opacity: 1;
    pointer-events: auto;
  }

  .photo-modal img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
  }

  .photo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
  }

  /* ===== CARRINHO ===== */
  .cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    gap: 12px;
    text-align: center;
  }

  .cart-empty-icon {
    color: #ddd;
  }

  .cart-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
  }

  .cart-empty-text {
    font-size: 14px;
    color: #999;
    max-width: 240px;
  }

  .btn-continue-shopping {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
  }

  .cart-list {
    padding: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
  }

  .cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .cart-item:last-child {
    border-bottom: none;
  }

  .cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
  }

  .cart-item-info {
    flex: 1;
    min-width: 0;
  }

  .cart-item-name {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
  }

  .cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
  }

  .qty-btn {
    width: 30px;
    height: 28px;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
  }

  .qty-btn:hover {
    background: #eee;
  }

  .qty-value {
    width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
  }

  .cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    flex-shrink: 0;
    transition: color .15s;
  }

  .cart-item-remove:hover {
    color: var(--color-primary);
  }

  /* Resumo do carrinho */
  .cart-summary {
    background: var(--color-white);
    padding: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
  }

  .cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .cart-summary-label {
    color: var(--color-text-muted);
  }

  .cart-summary-value {
    font-weight: 600;
    color: var(--color-text);
  }

  .cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
  }

  .cart-total-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
  }

  .cart-total-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
  }

  /* Bottom bar do carrinho */
  .cart-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 10px 16px;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
  }

  .btn-checkout {
    width: 100%;
    height: 48px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .15s;
  }

  .btn-checkout:hover {
    opacity: .9;
  }

  /* ===== CHECKOUT ===== */
  .checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--color-white);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
  }

  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
  }

  .step.active .step-circle {
    background: var(--color-primary);
    color: #fff;
  }

  .step.done .step-circle {
    background: #2E7D32;
    color: #fff;
  }

  .step-label {
    font-size: 10px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
  }

  .step.active .step-label,
  .step.done .step-label {
    color: var(--color-text);
  }

  .step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 6px;
    margin-bottom: 14px;
    transition: background .3s;
  }

  .step-line.done {
    background: #2E7D32;
  }

  /* Seções do checkout */
  .checkout-section {
    background: var(--color-white);
    padding: 16px;
    margin-bottom: 8px;
  }

  .checkout-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
  }

  /* Formulário */
  .form-group {
    margin-bottom: 12px;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
  }

  .form-input {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    background: var(--color-white);
    transition: border-color .15s;
    font-family: var(--font-main);
  }

  .form-input:focus {
    border-color: var(--color-primary);
  }

  .form-input.error {
    border-color: var(--color-primary);
    background: #fff5f5;
  }

  select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 32px;
  }

  /* Resumo do pedido no checkout */
  .order-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .order-item-row:last-child {
    border-bottom: none;
  }

  .order-item-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
  }

  .order-item-info {
    flex: 1;
    min-width: 0;
  }

  .order-item-name {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .order-item-qty-price {
    font-size: 12px;
    color: var(--color-text-muted);
  }

  .order-divider {
    height: 1px;
    background: var(--color-border);
    margin: 10px 0;
  }

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

  .order-total-label {
    font-size: 14px;
    font-weight: 700;
  }

  .order-total-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
  }

  /* Métodos de pagamento */
  .payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: all .15s;
    background: var(--color-white);
  }

  .payment-option.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
  }

  .payment-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .15s;
  }

  .payment-option.selected .payment-radio {
    border-color: var(--color-primary);
  }

  .payment-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: scale(0);
    transition: transform .15s;
  }

  .payment-option.selected .payment-radio-dot {
    transform: scale(1);
  }

  .payment-info {
    flex: 1;
  }

  .payment-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
  }

  .payment-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 1px;
  }

  .payment-icon {
    flex-shrink: 0;
  }

  /* PIX display */
  .pix-display {
    background: #f0faf9;
    border: 1px solid #b2dfdb;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
  }

  .pix-display-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a6b6b;
    margin-bottom: 12px;
  }

  .pix-qr {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
  }

  .pix-code-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
  }

  .pix-code-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-size: 10px;
    color: #444;
    word-break: break-all;
    text-align: left;
    font-family: monospace;
    margin-bottom: 10px;
  }

  .btn-copy-pix {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 40px;
    background: #32bcad;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
  }

  .btn-copy-pix:hover {
    opacity: .9;
  }

  /* ===== SUCESSO ===== */
  .success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    text-align: center;
  }

  .success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    animation: checkAnim .5s ease-out;
  }

  @keyframes checkAnim {
    from {
      transform: scale(0);
      opacity: 0;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .success-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 10px;
  }

  .success-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 300px;
    margin-bottom: 24px;
  }

  .success-order-box {
    width: 100%;
    background: #f7f7f7;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: left;
    margin-bottom: 24px;
  }

  .success-order-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
  }

  .success-order-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
  }

  .btn-back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    transition: opacity .15s;
  }

  .btn-back-home:hover {
    opacity: .9;
  }

  /* ===== INDEX / HOME ===== */
  .home-banner {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    padding: 20px 16px 16px;
    position: relative;
    overflow: hidden;
  }

  .home-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
  }

  .home-banner-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
    position: relative;
  }

  .home-banner-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 12px;
    position: relative;
  }

  .home-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    position: relative;
  }

  .home-section-title {
    font-size: 16px;
    font-weight: 700;
    padding: 14px 16px 8px;
    color: var(--color-text);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
  }

  .products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-border);
  }

  .product-card {
    background: var(--color-white);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity .15s;
  }

  .product-card:hover {
    opacity: .95;
  }

  .product-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f9f9f9;
  }

  .product-card-info {
    padding: 10px;
  }

  .product-card-name {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 32px;
  }

  .product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 3px;
  }

  .product-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
  }

  .product-card-original {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
  }

  .product-card-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
  }

  .product-card-discount {
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
  }

  .product-card-sold {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
  }

  /* ===== CONTA PAGE ===== */
  .conta-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    padding: 30px 16px 24px;
    text-align: center;
    color: #fff;
  }

  .conta-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 28px;
  }

  .conta-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .conta-email {
    font-size: 13px;
    opacity: .8;
  }

  .conta-menu {
    background: var(--color-white);
  }

  .conta-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    transition: background .15s;
  }

  .conta-menu-item:hover {
    background: #f9f9f9;
  }

  .conta-menu-item:last-child {
    border-bottom: none;
  }

  .conta-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
  }

  .conta-menu-text {
    flex: 1;
  }

  .conta-menu-title {
    font-size: 14px;
    font-weight: 600;
  }

  .conta-menu-sub {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 1px;
  }

  .conta-menu-arrow {
    color: #ccc;
  }

  /* ===== SCROLLBAR ===== */
  ::-webkit-scrollbar {
    width: 3px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 2px;
  }

  /* ===== BOT�O VER MAIS AVALIA��ES ===== */
  .ver-mais-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-top: 12px;
    transition: all .15s;
  }

  .ver-mais-btn:hover {
    background: var(--color-primary);
    color: #fff;
  }


  /* Ajustes de Video e Carrossel */
  .slider-video {
    pointer-events: auto !important;
    background: #000 !important;
  }

  .image-slider {
    background: #000 !important;
  }

  .slider-dots {
    display: none !important;
  }

  para harmonia visual */ font-size: clamp(17px, 5.0vw, 30px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.5px;
}

.price-currency {
  display: none;
}

/* 4. Preço Original Riscado (Fica abaixo do balão de desconto) */
.price-original {
  position: absolute;
  left: 4.2%;
  top: 56%;
  /* Subido "coisa leve" conforme solicitado */
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(11px, 2.7vw, 15px);
  text-decoration: line-through;
  font-weight: 400;
  line-height: 1;
}

/* 5. Container do Timer (Lado Direito) */
.price-right {
  display: block;
}

.oferta-relampago {
  display: none;
}

/* Timer alinhado mais para a direita abaixo de Oferta Relâmpago */
.timer-row {
  position: absolute;
  right: 5.5%;
  top: 62%;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.timer-label {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  /* Cor branca suave, idêntica ao cronômetro */
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 400;
  letter-spacing: -0.2px;
}

/* Valor do timer - Cor ajustada para combinar perfeitamente com o rótulo */
.timer-value {
  color: rgba(255, 255, 255, 0.85);
  /* Tom branco suave (puxado pro cinza leve) */
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
}

/* ===== PRODUCT INFO ===== */
.product-info {
  background: var(--color-white);
  padding: 14px;
}

/* Badge de desconto tipo cupom */
.discount-ticket {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.product-badge-discount {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1.5px dashed var(--color-primary);
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 10px;
}

/* Ratings row */
.ratings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.star-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-icon {
  color: #F5A623;
}

.rating-number {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.divider-v {
  width: 1px;
  height: 14px;
  background: var(--color-border);
}

.sold-count {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Frete */
.frete-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f7f7f7;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}

.frete-icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .8;
}

.product-badge {
  background: var(--color-frete);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.frete-detail {
  font-size: 12px;
  color: var(--color-text-muted);
}

.frete-taxa {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Urgência */
.urgency-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #444;
  background: #fff8f0;
  border: 1px solid #ffd7b0;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 12px;
}

.urgency-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.urgency-separator {
  color: #ccc;
  margin: 0 2px;
}

/* Proteção */
.protection-section {
  border: 1px solid #e8d0a9;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  background: #fff8e1;
}

.protection-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-protection);
  margin-bottom: 10px;
}

.protection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.protection-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #7a4000;
}

/* Descrição */
.description-section {
  margin-bottom: 14px;
  border-top: 6px solid #f5f5f5;
  padding-top: 14px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.description-text {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  white-space: pre-line;
}

/* ===== AVALIAÇÕES ===== */
.reviews-section {
  border-top: 6px solid #f5f5f5;
  padding-top: 14px;
  margin-bottom: 14px;
}

.reviews-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.review-avg {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-text);
}

.review-avg-total {
  font-size: 16px;
  color: #999;
  margin-top: 4px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-star {
  color: #F5A623;
}

.review-star.empty {
  color: #ddd;
}

.review-card {
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
}

.review-card:first-of-type {
  border-top: none;
}

.review-header {
  margin-bottom: 8px;
}

.review-user {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-user-info {
  flex: 1;
}

.review-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.review-user-stars {
  font-size: 12px;
  line-height: 1.4;
}

.review-date {
  font-size: 11px;
  color: #999;
  margin-top: 1px;
}

.review-comment {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 8px;
}

.review-photos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.review-photo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .15s;
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
}

.review-photo:hover {
  opacity: .85;
}

img.review-photo[src$=".mp4"] {
  display: none !important;
}

.ver-mais-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: #f7f7f7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}

.ver-mais-btn:hover {
  background: #eee;
}

/* ===== BARRA DE ABAS (SHOPEE STYLE — FIXA E OCULTA ATÉ ROLAR) ===== */
.product-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid #e0e0e0;
  background: #fff;
  position: fixed;
  top: -60px;
  /* oculto acima da viewport */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 99;
  /* Fica logo abaixo do header que tem 100 */
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  transition: top 0.25s ease;
}

.product-tabs::-webkit-scrollbar {
  display: none;
}

/* Quando visível (adicionado via JS ao rolar) */
.product-tabs.tabs-visible {
  top: 52px;
  /* aparece logo abaixo do header (header = 52px) */
}

.product-tab {
  flex: 1;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: center;
}

.product-tab.active {
  color: #111;
  border-bottom-color: #111;
  font-weight: 700;
}

/* ===== PRODUTOS RELACIONADOS ===== */
.related-section {
  border-top: 6px solid #f5f5f5;
  padding-top: 14px;
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0 14px;
}

/*
 * Grid real de 2 colunas (item B5, 19/ago) — trocou o masonry (2 `<div>` flex
 * independentes, cada uma empilhando metade dos cards) porque masonry por
 * definição não alinha as bases: card mais alto numa coluna desalinha todas as
 * linhas seguintes entre as duas colunas. Com `display: grid`, os `.related-card`
 * entram DIRETO como itens da grade (ver `js/app.js`, `renderRelacionados`) — o
 * Grid iguala a altura de cada LINHA ao maior item dela, e `align-items: stretch`
 * (padrão do Grid, explícito aqui por clareza) estica os dois cards daquela linha
 * até essa altura. Não existe mais `.related-col`: os cards não têm coluna-wrapper.
 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 4px;
  padding: 0 4px;
}

.related-card {
  background: var(--color-white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ebebeb;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s;
  display: block;
  width: 100%;
}

.related-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.related-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* contain, não cover (item B5, 19/ago) — escolha dele: a imagem do produto
     aparece INTEIRA, sem borda decepada; o cinza abaixo preenche a sobra.
     19/ago (item 19, aula 18:08) — "não deixa cinza desse jeito não, fica
     muito feio". Branco fixo também erra numa foto composta (cenário próprio,
     ex.: produto 65 "Sofá 3 Lugares" — a própria descrição avisa "os objetos
     que ambientam as fotos não acompanham o produto"). js/app.js agora
     amostra o canto da imagem original no onload (amostrarCorCantoImagem) e
     pinta o fundo com essa cor: branco sai sozinho em foto recortada, tom do
     cenário sai sozinho em foto composta. O valor abaixo é só o ANTES da
     amostra rodar (primeiro paint / ainda carregando / amostra falhou). */
  object-fit: contain;
  background: #fff;
  display: block;
}

.related-info {
  padding: 8px;
}

.related-name {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.related-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.related-price-original {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.related-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.related-discount {
  background: #fde8ec;
  /* Fundo rosa suave igual ao da loja oficial */
  color: #c0394b;
  /* Vermelho menos aceso, idêntico ao -38% da loja */
  font-size: 10px;
  font-weight: 600;
  /* Menos grossa que 700, igual ao original */
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-frete {
  font-size: 10px;
  color: var(--color-frete);
  font-weight: 600;
}

.related-sold {
  font-size: 11px;
  color: #999;
}

/* ===== BOTTOM BAR (ESTILO SHOPEE/OFICIAL FIEL) ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 64px;
  background: var(--color-white);
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  z-index: 1000;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, .04);
}

/* Ícones de Loja e Chat (esquerda) */
.btn-icon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  /* Cor preta sólida idêntica à imagem */
  font-size: 11px;
  font-weight: 500;
  padding: 0;
  flex-shrink: 0;
}

.btn-icon-action svg {
  color: #000000;
  stroke-width: 2.2;
  /* Desenho mais encorpado */
}

/* Sem separador na imagem */
.bottom-bar-sep {
  display: none;
}

/* Botão "Adicionar ao carrinho" (Cinza claro, fonte preta, super arredondado) */
.btn-add-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1.1;
  height: 44px;
  border: none;
  background: #f2f2f2;
  /* Cinza claro idêntico */
  color: #000000;
  /* Texto preto */
  border-radius: 24px;
  /* Totalmente arredondado como na imagem */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
  line-height: 1.25;
  margin-left: 6px;
  margin-right: 6px;
}

.btn-add-cart span.btn-line1 {
  font-size: 13.5px;
  font-weight: 600;
  color: #000000;
}

.btn-add-cart:hover {
  opacity: 0.9;
}

/* Botão "Comprar agora" (Vermelho vívido/rosa, super arredondado) */
.btn-buy {
  flex: 1.3;
  height: 44px;
  background: #ff2d55;
  /* Cor rosa/vermelho idêntico ao da imagem */
  color: #ffffff;
  border: none;
  border-radius: 24px;
  /* Totalmente arredondado */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.btn-buy span.btn-line1 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.btn-buy span.btn-line2 {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.95;
  color: #ffffff;
}

.btn-buy:hover {
  opacity: .9;
}


/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, .85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== PHOTO MODAL ===== */
/* ⚠️ ESTA é a cópia que o navegador usa. `.photo-modal` aparece 4 vezes neste
   arquivo (≈1234, ≈3118, ≈4849 dentro de media query, e aqui) — com a mesma
   especificidade a cascata obedece a ÚLTIMA, e todas as outras estão antes
   desta linha. Editar qualquer uma delas não muda nada na tela.

   z-index 10002: a foto de avaliação em tela cheia tem de cobrir TUDO o que já
   se elevou nesta página. Os vizinhos, em ordem:
     .product-tabs   9999   (INLINE, escrito por js/app.js — vence qualquer CSS)
     .lb-overlay    10000
     .av-overlay    10000
     .bottom-bar    10001   (elevado por js/app.js enquanto o .av-overlay abre)
   Com 9998 a barra de abas ficava por cima da foto (reproduzido no Safari do
   simulador em 20/ago), e a foto aberta de DENTRO do overlay de avaliações
   nasceria por baixo dele. */
.photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.photo-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
}

.photo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
}

/* ===== CARRINHO ===== */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 12px;
  text-align: center;
}

.cart-empty-icon {
  color: #ddd;
}

.cart-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.cart-empty-text {
  font-size: 14px;
  color: #999;
  max-width: 240px;
}

.btn-continue-shopping {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.cart-list {
  padding: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 30px;
  height: 28px;
  background: #f5f5f5;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.qty-btn:hover {
  background: #eee;
}

.qty-value {
  width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  flex-shrink: 0;
  transition: color .15s;
}

.cart-item-remove:hover {
  color: var(--color-primary);
}

/* Resumo do carrinho */
.cart-summary {
  background: var(--color-white);
  padding: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-summary-label {
  color: var(--color-text-muted);
}

.cart-summary-value {
  font-weight: 600;
  color: var(--color-text);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.cart-total-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.cart-total-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}

/* Bottom bar do carrinho */
.cart-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}

.btn-checkout {
  width: 100%;
  height: 48px;
  background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s;
}

.btn-checkout:hover {
  opacity: .9;
}

/* ===== CHECKOUT ===== */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--color-white);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.step.active .step-circle {
  background: var(--color-primary);
  color: #fff;
}

.step.done .step-circle {
  background: #2E7D32;
  color: #fff;
}

.step-label {
  font-size: 10px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.step.active .step-label,
.step.done .step-label {
  color: var(--color-text);
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 6px;
  margin-bottom: 14px;
  transition: background .3s;
}

.step-line.done {
  background: #2E7D32;
}

/* Seções do checkout */
.checkout-section {
  background: var(--color-white);
  padding: 16px;
  margin-bottom: 8px;
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Formulário */
.form-group {
  margin-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  background: var(--color-white);
  transition: border-color .15s;
  font-family: var(--font-main);
}

.form-input:focus {
  border-color: var(--color-primary);
}

.form-input.error {
  border-color: var(--color-primary);
  background: #fff5f5;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

/* Resumo do pedido no checkout */
.order-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-item-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-item-qty-price {
  font-size: 12px;
  color: var(--color-text-muted);
}

.order-divider {
  height: 1px;
  background: var(--color-border);
  margin: 10px 0;
}

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

.order-total-label {
  font-size: 14px;
  font-weight: 700;
}

.order-total-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}

/* Métodos de pagamento */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all .15s;
  background: var(--color-white);
}

.payment-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s;
}

.payment-option.selected .payment-radio {
  border-color: var(--color-primary);
}

.payment-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  transition: transform .15s;
}

.payment-option.selected .payment-radio-dot {
  transform: scale(1);
}

.payment-info {
  flex: 1;
}

.payment-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.payment-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.payment-icon {
  flex-shrink: 0;
}

/* PIX display */
.pix-display {
  background: #f0faf9;
  border: 1px solid #b2dfdb;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.pix-display-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a6b6b;
  margin-bottom: 12px;
}

.pix-qr {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 12px;
}

.pix-code-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.pix-code-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  font-size: 10px;
  color: #444;
  word-break: break-all;
  text-align: left;
  font-family: monospace;
  margin-bottom: 10px;
}

.btn-copy-pix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  background: #32bcad;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}

.btn-copy-pix:hover {
  opacity: .9;
}

/* ===== SUCESSO ===== */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: checkAnim .5s ease-out;
}

@keyframes checkAnim {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
}

.success-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 300px;
  margin-bottom: 24px;
}

.success-order-box {
  width: 100%;
  background: #f7f7f7;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.success-order-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

.success-order-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.btn-back-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: opacity .15s;
}

.btn-back-home:hover {
  opacity: .9;
}

/* ===== INDEX / HOME ===== */
.home-banner {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: 20px 16px 16px;
  position: relative;
  overflow: hidden;
}

.home-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.home-banner-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  position: relative;
}

.home-banner-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 12px;
  position: relative;
}

.home-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  position: relative;
}

.home-section-title {
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px 8px;
  color: var(--color-text);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
}

.product-card {
  background: var(--color-white);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity .15s;
}

.product-card:hover {
  opacity: .95;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f9f9f9;
}

.product-card-info {
  padding: 10px;
}

.product-card-name {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.product-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
}

.product-card-original {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.product-card-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.product-card-discount {
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.product-card-sold {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* ===== CONTA PAGE ===== */
.conta-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: 30px 16px 24px;
  text-align: center;
  color: #fff;
}

.conta-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 28px;
}

.conta-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.conta-email {
  font-size: 13px;
  opacity: .8;
}

.conta-menu {
  background: var(--color-white);
}

.conta-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  transition: background .15s;
}

.conta-menu-item:hover {
  background: #f9f9f9;
}

.conta-menu-item:last-child {
  border-bottom: none;
}

.conta-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.conta-menu-text {
  flex: 1;
}

.conta-menu-title {
  font-size: 14px;
  font-weight: 600;
}

.conta-menu-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.conta-menu-arrow {
  color: #ccc;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .15);
  border-radius: 2px;
}

/* ===== BOT�O VER MAIS AVALIA��ES ===== */
.ver-mais-btn {
  display: block;
  width: 100%;
  padding: 4px 16px;
  background: none;
  border: none;
  border-radius: 0;
  color: #161823;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  margin-top: 6px;
  transition: opacity .15s;
}

/* background/color explícitos aqui: sem eles, a pseudo-classe cai de volta
   pras cópias antigas de .ver-mais-btn:hover mais acima no arquivo (mesma
   especificidade, versões diferentes por bloco) — e o botão voltaria a
   ganhar fundo rosa/cinza no hover, o que o item A6 removeu de propósito. */
.ver-mais-btn:hover {
  background: none;
  color: #161823;
  opacity: .65;
}


/* Ajustes de Video e Carrossel */
.slider-video {
  pointer-events: auto !important;
  background: #000 !important;
}

.image-slider {
  background: #000 !important;
}

.slider-dots {
  display: none !important;
}

/* Força a remoção de borda pontilhada das pílulas de desconto em todo o site (incluindo catálogo da loja) */
.product-badge-discount {
  border: none !important;
  background: #fff1f3 !important;
  color: #e02447 !important;
}
/* Form controls nao herdam font-family do body por padrao no navegador
   (o UA aplica Arial/system-ui neles). Sem isto, botoes e campos escapam da TikTok Sans.
   Os icones do Font Awesome usam seletor de classe (.fa*), que tem prioridade sobre estes
   seletores de elemento, entao continuam desenhando normalmente. */
button,
input,
select,
textarea {
  font-family: inherit;
}

/* ============================================================================
   BARRA DE OFERTA — override final (padrão imperial-dos-atacados)
   O style.css traz 3-4 cópias concatenadas do CSS antigo (posicionamento
   absoluto sobre a imagem decalque). Este bloco vem por último e vence todas
   elas por ordem de cascata, sem precisar caçar cada duplicata.
   ============================================================================ */
.price-section {
  background-image: url('../images/banners/offerbar-banner-gradient.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  aspect-ratio: auto;
  overflow: visible;
}
.price-section::before { display: none; }

.price-left { position: static; min-width: 0; }

.price-row {
  position: static;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.discount-badge-white {
  position: static;
  width: auto;
  height: auto;
  align-self: center;
  background: #fff;
  color: #FE2C55;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.price-label-apartir {
  position: static;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  align-self: center;
  margin-top: 0;
  white-space: nowrap;
}

.price-current {
  position: static;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.price-original {
  position: static;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1;
  margin-top: 6px;
}

.price-right {
  position: static;
  display: block;
  text-align: right;
  flex-shrink: 0;
}

.oferta-relampago {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.oferta-relampago svg { flex-shrink: 0; }

.timer-row {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
  line-height: 1;
}

.timer-label { color: #fff; font-size: 13px; font-weight: 400; }
.timer-value {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ===== IMAGENS E VÍDEO DENTRO DA DESCRIÇÃO ===== */
/*
 * Sem isto a imagem da descrição renderiza no tamanho natural do arquivo — as da
 * página 19 têm de 1165 a 1547px de largura, num container de 362px — e aparece
 * cortada na lateral. O editor do painel já insere `max-width:100%` no style, mas
 * imagem herdada do site de origem ou colada em modo código não tem estilo nenhum,
 * e é justamente essa que estoura.
 *
 * `height:auto` acompanha o `max-width` para a imagem não achatar; `display:block`
 * evita a folga que o alinhamento de linha coloca embaixo de imagem inline.
 */
.description-text img,
.description-text video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  border-radius: 8px;
}

/* A descrição usa `white-space: pre-line`, que transforma as quebras do texto em
   linha em branco. Entre imagens seguidas isso vira um vão grande à toa. */
.description-text img + br,
.description-text video + br {
  display: none;
}

/* ---------------------------------------------------------------------------
   Faixas de separação de ponta a ponta + alinhamento do bloco da loja
   (ajuste pedido pelo João em 10/ago/2026, 21:15)

   Duas queixas com a MESMA causa raiz, achada medindo no DOM:

   1. O card "Oficial / Famosinhos Shop" e o "Mais desta loja" começavam mais à
      direita que o resto da página. Não era largura do card: `.product-info` já
      recua todo mundo em 14px, e a `.store-widget-section` somava outros 16px
      de padding próprio — o conteúdo dela caía em 30px enquanto "Avaliações dos
      clientes" ficava em 14px.

   2. As faixas cinzas paravam antes da borda da tela. Elas são border-top /
      border-bottom das seções, e a borda acompanha a largura do elemento — que
      é 399px numa viewport de 430, justamente por causa do padding de 14px do
      `.product-info`.

   A correção puxa a seção para fora do padding do pai e devolve o respiro por
   dentro: a borda passa a ir de ponta a ponta e o conteúdo fica alinhado com o
   restante da página. Como o seletor é mais específico que `.store-widget-section`,
   ele também neutraliza o padding lateral de 16px que causava o desalinhamento.
--------------------------------------------------------------------------- */
.product-info > .description-section,
.product-info > .store-widget-section,
.product-info > .reviews-section,
.product-info > .related-section {
  margin-left: -14px;
  margin-right: -14px;
  padding-left: 14px;
  padding-right: 14px;
}

/* ---------------------------------------------------------------------------
   "Sobre este produto" + "Descrição" (item A4, lote de 18/ago)

   O `.section-title` (18/ago em diante = "Sobre este produto") ganhou +2px pra
   ler como título de seção, no nível do concorrente (17px/700 medido em
   `ferramenta-static.html`). O `.description-subtitle` é o "Descrição" novo,
   injetado por `initSobreEsteProduto()` em js/app.js — sem o bloco "Detalhes"
   do concorrente, por decisão do João.

   NOTA: revoga o mecanismo "Ver mais/Ver menos" da descrição (`desc-toggle` /
   `desc-recolhida`, port do Imperial de 12/ago, commit 17f049e) — reversão
   consciente pedida pelo João em 18/ago: a descrição nasce sempre aberta.
--------------------------------------------------------------------------- */
.description-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 14px 0 8px;
}

/* ---------------------------------------------------------------------------
   Título truncado em 3 linhas, expansível ao clique (item A1, lote de 18/ago)

   Só entra em jogo quando `initTituloTruncado()` (js/app.js) mede que o título
   natural passa de 3 linhas — títulos curtos (o João: "tem produtos que tem
   literalmente uma linha e meia, não precisa") nunca recebem a classe.
--------------------------------------------------------------------------- */
.product-title.title-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  cursor: pointer;
}

.product-title.title-expanded {
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Botão flutuante "voltar ao topo" (item A6, lote de 18/ago)

   Wrapper centralizado com a mesma técnica da `.bottom-bar` (left:50% +
   transform + max-width:var(--max-width)), pra alinhar com o conteúdo em
   qualquer largura de tela. `pointer-events:none` no wrapper inteiro: só o
   círculo do botão recebe clique, então nunca rouba toque de nada por trás —
   inclusive da própria `.bottom-bar`, que fica 16px abaixo dele.
--------------------------------------------------------------------------- */
.back-to-top-wrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  bottom: 80px;
  height: 0;
  z-index: 900;
  pointer-events: none;
}

.back-to-top-btn {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------------------------------------------------------------------------
   Lightbox da galeria (port do Imperial — item 1 do lote de 12/ago)

   Clicar na foto abre a imagem em tela cheia, com contador, X, e setas.
   Esc fecha; o scroll do fundo fica travado enquanto está aberto.
--------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.lb-contador {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.lb-fechar,
.lb-nav {
  position: absolute;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 44px: alvo de toque confortável — o mesmo mínimo já adotado no popup do
     back redirect. */
  width: 44px;
  height: 44px;
  font-family: inherit;
}

.lb-fechar {
  top: calc(8px + env(safe-area-inset-top));
  right: 12px;
  font-size: 22px;
  line-height: 1;
}

.lb-nav-ant { left: 10px; }
.lb-nav-prox { right: 10px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 24px; line-height: 1; }
.lb-nav[hidden] { display: none; }

/* A foto da galeria vira clicável — sinaliza isso ao cliente. */
.image-slider .slider-track img { cursor: zoom-in; }

/* ---------------------------------------------------------------------------
   Avaliações — formato compacto (port do Imperial, item 4a do lote de 12/ago)

   Alvo (print que o João mandou):

       (R) ★★★★★  8 ago 2026                 ┌────────┐
       A Braba tem nome.... JBL BOOMBOX 4    │ foto+4 │
       🔥 Postagem da Loja perfeita...       └────────┘

   Três coisas que definem esse layout e que a primeira versão errou:
   1. o NOME do usuário não aparece — só avatar, estrelas e data;
   2. avatar, estrelas e data ficam na MESMA linha;
   3. a foto fica no canto superior direito e abrange as duas linhas (cabeçalho
      + texto), em vez de ficar pendurada ao lado do texto — que era o que
      deixava a miniatura "caindo" abaixo da linha do texto em review curto.

   Tudo por CSS: a estrutura HTML dos reviews NÃO pode mudar — o painel depende
   de `.review-card`, `.review-photo`, `.review-user-name` e `.review-date` para
   ler e regravar as avaliações. Por isso o nome é escondido (não removido) e o
   reposicionamento usa grid-areas.
--------------------------------------------------------------------------- */
.reviews-section .review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "cabecalho fotos"
    "texto     fotos";
  column-gap: 12px;
  align-items: start;
  padding: 10px 0;
}

/* Sem divisória entre avaliações — pedido do João em 12/ago. A regra base
   (.review-card, ~linha 707) traz `border-top: 1px solid var(--color-border)`;
   aqui ela é neutralizada só dentro da seção de avaliações, para não afetar
   outros lugares que reaproveitem a classe. O respiro fica por conta do
   padding do card. */
.reviews-section .review-card { border-top: none; }

.reviews-section .review-card > .review-header { grid-area: cabecalho; }
.reviews-section .review-card > .review-comment { grid-area: texto; }
.reviews-section .review-card > .review-photos { grid-area: fotos; align-self: start; }

/* Cabeçalho numa linha só: avatar + estrelas + data. */
.reviews-section .review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

.reviews-section .review-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.reviews-section .review-avatar,
.reviews-section .review-avatar-placeholder {
  width: 26px;
  height: 26px;
  min-width: 26px;
  font-size: 12px;
  flex: none;
}

/* O nome fica no HTML (o painel lê dali) mas some da tela, como no template. */
.reviews-section .review-user-name { display: none; }

.reviews-section .review-user-info {
  display: flex;
  align-items: center;
  min-width: 0;
}

.reviews-section .review-user-stars { display: inline-flex; gap: 1px; }
.reviews-section .review-user-stars svg { width: 13px; height: 13px; }

.reviews-section .review-date {
  font-size: 12px;
  color: #8a8a8a;
  white-space: nowrap;
  margin: 0;
}

/* Texto em no máximo 2 linhas. */
.reviews-section .review-comment {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
}

/* Só a primeira foto aparece; as demais viram o "+N" do badge. */
.reviews-section .review-photos {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  flex: none;
  margin: 0;
  padding: 0;
}

.reviews-section .review-photos .review-photo { display: none; }
.reviews-section .review-photos .review-photo:first-child {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0;
}

.reviews-section .review-photos[data-extra]::after {
  content: '+' attr(data-extra);
  position: absolute;
  right: 5px;
  bottom: 5px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 10px;
  pointer-events: none;
}

/* Cabeçalho da seção: nota + título à esquerda, "Ver mais" à direita. */
.reviews-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.reviews-topo-esq {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: #161823;
  letter-spacing: -.2px;
}

.reviews-topo-nota { display: inline-flex; align-items: center; gap: 3px; }

.reviews-ver-mais {
  flex: none;
  background: none;
  border: none;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #8a8a8a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ---------------------------------------------------------------------------
   Overlay de avaliações em tela cheia (item 4b do port do Imperial)

   No Imperial isso é uma ROTA (/produto/:id/avaliacoes) porque lá é SPA. Aqui o
   site é estático e os reviews já estão no HTML da página — então é um overlay
   montado a partir deles. Zero rota nova, zero mudança no gerador do painel.
--------------------------------------------------------------------------- */
.av-overlay {
  position: fixed;
  inset: 0;
  /* 10000: a barra de abas da página é fixed com z-index 9999 e ficava POR CIMA
     do overlay (visto no Safari do simulador). */
  z-index: 10000;
  background: #fff;
  display: flex;
  flex-direction: column;
  max-width: var(--max-width, 480px);
  margin: 0 auto;
}

.av-topo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  border-bottom: 1px solid #f0f0f0;
  flex: none;
}

.av-voltar {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #161823;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.av-titulo {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #161823;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: -.2px;
}

.av-corpo {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 120px;
}

.av-subtitulo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 6px;
}

.av-subtitulo span:first-child { font-size: 13px; color: #8a8a8a; }
/* "Mais recentes" é rótulo, não filtro — no Imperial também não tem ação. */
.av-ordem { font-size: 13px; color: #161823; font-weight: 600; }

.av-item { padding: 14px 0; border-bottom: 1px solid #f4f4f4; }
.av-item:last-child { border-bottom: none; }

.av-cab { display: flex; align-items: center; gap: 10px; }

.av-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}

.av-avatar img { width: 100%; height: 100%; object-fit: cover; }

.av-info { flex: 1; min-width: 0; }
.av-nome { font-size: 13.5px; font-weight: 700; color: #161823; }
.av-linha2 { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #8a8a8a; margin-top: 2px; }
.av-estrelas { display: inline-flex; gap: 1px; }

.av-curtir {
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8a8a8a;
  font-size: 12px;
  font-family: inherit;
  padding: 6px;
}

.av-curtir[aria-pressed="true"] { color: #fe2c55; }

.av-texto {
  font-size: 13.5px;
  line-height: 1.5;
  color: #333;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.av-fotos { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
/* cursor: pointer — a foto do overlay abre em tela cheia (ouvinte delegado em
   `montaItem`, js/app.js). Única cópia de `.av-fotos` no arquivo. */
.av-fotos img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; cursor: pointer; }

/* ---------------------------------------------------------------------------
   VÍDEOS DE CRIADORES — B1 (faixa) + B2 (player em tela cheia)
   Lote de 18/ago, Agente 4.

   A faixa é a tradução das medidas do concorrente (Tailwind) para o CSS próprio
   desta loja. Medido no código dele, não estimado no frame:

     título   text-[15px] font-semibold
     faixa    flex gap-2 overflow-x-auto pb-3, sem scrollbar visível
     card     aspect-[9/13] w-[118px] rounded-lg bg-neutral-200
     overlay  pointer-events-none absolute inset-x-1.5 bottom-1.5
              flex items-center gap-1.5 text-[11px] font-medium text-white drop-shadow
     avatar   h-4 w-4 rounded-full ring-1 ring-white/70

   ⚠️ `aspect-ratio: 9/13`, NÃO 9/16. O briefing original dizia 9:16; o código
   dele diz `aspect-[9/13]` (≈0,69 — bem mais quadrado que 0,5625).

   ⚠️ O overlay do criador é `pointer-events:none` DE PROPÓSITO: o toque
   atravessa e chega ao card. Sem isso o nome do criador vira zona morta que
   engole justamente o toque que deveria abrir o vídeo.

   ## Por que a faixa não tem wrapper

   A seção do painel não pode conter `<div>` — `limitesDescricaoText` e
   `fimDaDiv` acham fim de bloco CONTANDO `<div>`, e a seção foi escrita só com
   `<section>/<article>/<figure>/<p>/<ul>/<li>/<span>` para ser inerte nessa
   contagem. Então a rolagem horizontal fica na PRÓPRIA `<section>`
   (`white-space:nowrap` + cards `inline-block`), e o `<h3>` do título ganha
   `position:sticky; left:0` para não escorrer junto com os cards. Injetar um
   wrapper por JS funcionaria no DOM, mas colocaria a marcação da loja em
   desacordo com a que o painel lê do arquivo — o tipo de divergência que este
   projeto já pagou caro.
--------------------------------------------------------------------------- */

.videos-criadores {
  display: block;
  background: var(--color-white);
  margin-top: 8px;
  padding: 12px 16px;
  /* pb-3 do alvo: 12px abaixo dos cards */
  padding-bottom: 12px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.videos-criadores::-webkit-scrollbar { display: none; }

.videos-criadores[hidden] { display: none; }

.vc-titulo {
  /* Fica preso na esquerda enquanto a faixa rola — sem ele o título escorre
     junto com os cards, já que quem rola é a seção inteira. */
  position: sticky;
  left: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
  letter-spacing: -.2px;
  white-space: normal;
}

.vc-item {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 118px;
  height: 170px; /* fallback: ~118 / (9/13) */
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e5e5e5;
  cursor: pointer;
}

@supports (aspect-ratio: 9 / 13) {
  .vc-item {
    height: auto;
    aspect-ratio: 9 / 13;
  }
}

.vc-item + .vc-item { margin-left: 8px; }

.vc-capa {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #e5e5e5;
}

.vc-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* O toque tem de chegar ao `<article>`, que é quem abre o player. Listener no
     próprio `<video>` seria pior: `.slider-img` deste site já mostrou que
     elemento de mídia com toque próprio confunde o gesto (ver 03-loja.md). */
  pointer-events: none;
}

.vc-indisponivel {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-size: 11px;
  line-height: 1.35;
  color: #6b6b6b;
  background: #ededed;
  white-space: normal;
}

.vc-indisponivel[hidden] { display: none; }

.vc-criador {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
  /* ⛔ Não troque para `auto`: o clique tem de atravessar até o card. */
  pointer-events: none;
}

.vc-criador-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7);
  background: #9a9a9a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

.vc-criador-nome {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Descrição, som, métricas e comentários existem na marcação porque são o
   fallback do player e o que sobra se o JS não rodar — mas na FAIXA o card
   mostra só capa + criador, como no alvo. */
.vc-descricao,
.vc-som,
.vc-metricas,
.vc-comentarios {
  display: none;
}

/* ---------------------------------------------------------------------------
   B2 — player em tela cheia, estilo app do TikTok

   ⛔ Não usa a Fullscreen API: no iPhone ela não existe para elemento
   arbitrário e, aplicada ao `<video>`, cai no player nativo da Apple — que
   apagaria este overlay inteiro (tag do produto, criador, descrição, som,
   curtidas, comentários). "Tela cheia" aqui é `position:fixed; inset:0` com
   z-index 10000, pela mesma razão do overlay de avaliações: a barra de abas
   deste site é `fixed` com z-index 9999, e o rodapé de compra com 1000.
--------------------------------------------------------------------------- */
.vcp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  max-width: var(--max-width, 480px);
  margin: 0 auto;
  overflow: hidden;
  font-family: var(--font-main);
}

.vcp-palco {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.vcp-palco::-webkit-scrollbar { display: none; }

.vcp-slide {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
}

.vcp-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* --- a tela rápida de loading ---------------------------------------------- */
.vcp-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000;
  pointer-events: none;
  z-index: 1;
}

.vcp-loading[hidden] { display: none; }

/* Mesma dupla de bolinhas do loader que a loja já usa ao abrir a página: o
   cliente já viu esse gesto na sessão, então o player não estreia uma
   linguagem visual nova só para carregar. */
.vcp-loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00f2fe;
  animation: vcp-pulse 1s infinite alternate;
}

.vcp-loading-dot:last-child {
  background: #fe2c55;
  animation-delay: .5s;
}

@keyframes vcp-pulse {
  0% { transform: scale(.8); opacity: .5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.vcp-erro {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin: 0;
  text-align: center;
  color: #ddd;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
}

.vcp-erro[hidden] { display: none; }

/* Indicador de pausa: sem ele, tocar na tela dá a impressão de o vídeo ter
   travado. */
.vcp-slide.vcp-pausado::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-40%, -50%);
  border-left: 26px solid rgba(255, 255, 255, .82);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
  pointer-events: none;
  z-index: 2;
}

/* --- topo: voltar e som ---------------------------------------------------- */
.vcp-topo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(6px + env(safe-area-inset-top)) 8px 6px;
  /* faixa inteira inerte; só os botões recebem toque, para não criar uma zona
     morta sobre o vídeo */
  pointer-events: none;
}

.vcp-voltar,
.vcp-som-toggle {
  pointer-events: auto;
  background: rgba(0, 0, 0, .3);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  cursor: pointer;
}

/* --- base: tag do produto, criador, descrição, som ------------------------- */
.vcp-base {
  position: absolute;
  left: 12px;
  right: 70px; /* deixa a coluna lateral livre */
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 3;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  /* toque atravessa para o vídeo (pausar/retomar); só os controles pegam */
  pointer-events: none;
}

.vcp-base button { pointer-events: auto; }

/* Quando há barra de comentários na base, tudo sobe para não ficar por baixo
   dela. Classe posta pelo JS — `:has()` cobriria o caso, mas só a partir do
   iOS 15.4, e este site atende iPhone antigo. */
.vcp-slide.vcp-tem-barra .vcp-base { bottom: calc(62px + env(safe-area-inset-bottom)); }
.vcp-slide.vcp-tem-barra .vcp-rail { bottom: calc(68px + env(safe-area-inset-bottom)); }

.vcp-tag-produto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 8px;
  padding: 5px 8px 5px 5px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.vcp-tag-icone {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--color-secondary, #FB5434);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
}

.vcp-tag-texto {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vcp-criador {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
}

.vcp-criador-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #9a9a9a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
}

.vcp-criador-nome {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* O corte de 2 linhas fica no `<span>` INTERNO, não no `<p>`.
   `-webkit-line-clamp` exige `overflow:hidden` no mesmo elemento, e isso
   recortaria o botão "… mais" junto com o texto — foi o que aconteceu na
   primeira versão: o botão existia no DOM e era invisível na tela. Com o corte
   um nível abaixo, o botão continua sendo filho do `<p>` e sobrepõe o fim da
   última linha, que é onde ele aparece no app. */
.vcp-descricao {
  position: relative;
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.4;
}

.vcp-descricao-texto {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vcp-base.vcp-descricao-aberta .vcp-descricao-texto {
  display: block;
  max-height: 40vh;
  overflow-y: auto;
  pointer-events: auto;
}

.vcp-mais {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 0 0 22px;
  border: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, .35) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  cursor: pointer;
}

.vcp-som {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- coluna lateral: curtir e comentários ---------------------------------- */
.vcp-rail {
  position: absolute;
  right: 8px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.vcp-acao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  fill: #fff;
  font-family: inherit;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.vcp-acao-num {
  font-size: 12px;
  font-weight: 600;
}

.vcp-curtir[aria-pressed="true"] { fill: #fe2c55; }

/* --- barra de comentários na base ------------------------------------------ */
/* Mesma posição da pílula "Adicionar comentário…" do app, com texto honesto:
   aqui não se posta comentário — os textos vêm do painel, e um campo de
   composição que só abre uma lista de leitura seria mentira de interface. */
.vcp-barra-comentarios {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 4;
  padding: 11px 16px;
  border: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .92);
  font-family: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}

/* --- folha de comentários --------------------------------------------------- */
.vcp-folha {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  max-height: 62%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 14px 14px 0 0;
}

.vcp-folha[hidden] { display: none; }

.vcp-folha-topo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 12px 44px;
  border-bottom: 1px solid #f0f0f0;
}

.vcp-folha-titulo {
  font-size: 14px;
  font-weight: 700;
  color: #161823;
}

.vcp-folha-fechar {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #161823;
  cursor: pointer;
}

.vcp-folha-lista {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 4px 16px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vcp-c-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
}

.vcp-c-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #bbb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.vcp-c-corpo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vcp-c-autor { font-size: 12.5px; font-weight: 600; color: #8a8a8a; }
.vcp-c-texto { font-size: 14px; line-height: 1.45; color: #161823; }
.vcp-c-curtidas { flex: none; padding-top: 3px; font-size: 12px; color: #8a8a8a; }
