/* HYDRA Multi-Product TikTok-style — CSS mobile-first
   Inspirado em v8.lojadoachadinhos.shop:
   - Vermelho TikTok #FF2D55 como accent (preços + CTAs + badges)
   - Verde #00b894 pra frete grátis
   - Fundo branco puro
   - Card produto: foto + nome (2 linhas) + preço atual + preço riscado + % OFF + frete + vendidos
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --tt-red: #FF2D55;
  --tt-red-dark: #d40034;
  --tt-green: #00b894;
  --tt-text: #161823;
  --tt-text-light: #57585d;
  --tt-text-mute: #909094;
  --tt-bg: #ffffff;
  --tt-bg-soft: #f8f8f9;
  --tt-border: #ebebec;
  --tt-radius: 10px;
}

html, body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--tt-bg); color: var(--tt-text); }
body { max-width: 480px; margin: 0 auto; padding-bottom: 80px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== HEADER (Onda 75 — paridade v4) ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--tt-bg);
  border-bottom: 1px solid var(--tt-border);
}
.header__back {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 0; cursor: pointer;
  color: var(--tt-text); padding: 0;
}
.header__back:hover { background: var(--tt-bg-soft); }
.header__search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: #f3f4f6; border-radius: 999px;
  padding: 9px 14px; color: #6b7280;
  border: 0;
}
.header__search svg { flex-shrink: 0; }
.header__search input {
  flex: 1; border: 0; background: transparent; outline: 0;
  font-size: 14px; color: var(--tt-text);
  font-family: inherit; min-width: 0;
}
.header__search input::placeholder { color: #9ca3af; }
.header__icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; color: var(--tt-text);
  text-decoration: none; flex-shrink: 0; position: relative;
}
.header__icon-btn:hover { background: var(--tt-bg-soft); }
.header__cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--tt-red); color: white;
  font-size: 10px; font-weight: 700;
  border-radius: 999px; padding: 1px 5px; min-width: 16px; text-align: center;
  line-height: 1.2;
}

/* ===== LOJA HERO (Onda 75 — perfil estilo v4) ===== */
.store-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; border-bottom: 1px solid var(--tt-border);
}
.store-hero__logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #FF2D55, #ff8a3d);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 24px; font-weight: bold;
  flex-shrink: 0;
}
.store-hero__info { flex: 1; min-width: 0; }
.store-hero__name {
  font-weight: 700; font-size: 16px; color: var(--tt-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store-hero__sales {
  font-size: 12px; color: var(--tt-text-mute); margin-top: 2px;
}
.store-hero__sub { font-size: 11px; color: var(--tt-text-mute); margin-top: 2px; }
.store-hero__actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.store-hero__follow,
.store-hero__msg {
  background: white; color: var(--tt-text); border: 1px solid var(--tt-border);
  padding: 5px 16px; border-radius: 6px; font-weight: 600; font-size: 12px;
  cursor: pointer; min-width: 92px; line-height: 1.4;
  transition: all .15s;
}
.store-hero__follow:hover,
.store-hero__msg:hover { background: var(--tt-bg-soft); }
.store-hero__follow.is-on {
  background: var(--tt-bg-soft); color: var(--tt-text-mute);
  border-color: var(--tt-border);
}

/* ===== MODAL MENSAGEM (bot) ===== */
.msg-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 9999; display: flex; align-items: flex-end; justify-content: center;
  animation: msg-fade .2s ease;
}
@keyframes msg-fade { from { opacity: 0 } to { opacity: 1 } }
.msg-modal__sheet {
  background: white; width: 100%; max-width: 480px;
  border-radius: 16px 16px 0 0; max-height: 85vh;
  display: flex; flex-direction: column;
  animation: msg-slide .25s ease;
}
@keyframes msg-slide { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.msg-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--tt-border);
}
.msg-modal__store { display: flex; align-items: center; gap: 10px; }
.msg-modal__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #FF2D55, #ff8a3d);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: bold; font-size: 18px;
}
.msg-modal__name { font-weight: 700; font-size: 14px; }
.msg-modal__status {
  font-size: 11px; color: #16a34a;
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
}
.msg-modal__dot {
  width: 6px; height: 6px; border-radius: 50%; background: #16a34a;
  display: inline-block;
}
.msg-modal__close {
  background: none; border: 0; font-size: 24px; cursor: pointer;
  color: var(--tt-text-mute); padding: 0 4px; line-height: 1;
}
.msg-modal__body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: #f9fafb;
  min-height: 200px;
}
.msg-bubble {
  max-width: 80%; padding: 9px 13px;
  border-radius: 14px; font-size: 13px; line-height: 1.4;
  word-wrap: break-word;
}
.msg-bubble--bot {
  background: white; color: var(--tt-text);
  border: 1px solid var(--tt-border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-bubble--me {
  background: var(--tt-red); color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-modal__chips {
  display: flex; gap: 6px; padding: 10px 12px;
  overflow-x: auto; border-top: 1px solid var(--tt-border);
  background: white;
}
.msg-modal__chips button {
  flex-shrink: 0; padding: 7px 14px;
  background: #f3f4f6; border: 1px solid var(--tt-border);
  border-radius: 999px; font-size: 12px; color: var(--tt-text);
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.msg-modal__chips button:hover { background: #e5e7eb; }

/* ===== BANNERS DE CUPOM ===== */
.coupon-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.coupon-strip::-webkit-scrollbar { display: none; }
.coupon {
  flex-shrink: 0; min-width: 240px;
  background: linear-gradient(135deg, #fff3f5, #ffe0e8);
  border-radius: var(--tt-radius); padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.coupon__icon { font-size: 22px; }
.coupon__txt { flex: 1; font-size: 12px; }
.coupon__title { font-weight: 700; color: var(--tt-red); }
.coupon__sub { color: var(--tt-text-light); font-size: 11px; }
.coupon__btn {
  background: var(--tt-red); color: white; border: none;
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
}

/* ===== TABS (Início / Produtos / Categorias) ===== */
.tabs {
  display: flex; border-bottom: 1px solid var(--tt-border);
  background: var(--tt-bg); position: sticky; top: 56px; z-index: 90;
}
.tab {
  flex: 1; text-align: center; padding: 12px;
  font-size: 14px; color: var(--tt-text-light); font-weight: 500;
  border-bottom: 2px solid transparent;
}
.tab.active { color: var(--tt-text); border-bottom-color: var(--tt-red); font-weight: 700; }

/* ===== SEÇÕES ===== */
.section { padding: 16px 12px; }
.section__title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; font-weight: 700; font-size: 15px;
}
.section__more { font-size: 12px; color: var(--tt-text-mute); }

/* ===== CARROSSEL HORIZONTAL (Principais produtos) ===== */
.h-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 4px;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .product-card { flex-shrink: 0; width: 140px; }

/* ===== GRID DE PRODUTOS (2 colunas) ===== */
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* ===== CARD DE PRODUTO ===== */
.product-card {
  background: var(--tt-bg); border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 80ms;
}
.product-card:active { transform: scale(0.98); }
.product-card__img-wrap {
  aspect-ratio: 1; background: var(--tt-bg-soft); position: relative; overflow: hidden;
}
.product-card__img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card__discount-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--tt-red); color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  z-index: 2;
}

/* Onda 84: badge TOP 1/2/3 (estilo v4) — Onda 84 fix: tirei clip-path que quebrava CSS parser de algum CDN */
.product-card__top-badge {
  position: absolute;
  top: 0;
  left: 6px;
  width: 30px;
  padding: 4px 2px 12px;
  color: white;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
  text-align: center;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.product-card__top-badge--1 { background: linear-gradient(180deg, #ff6b35, #ff2d55); }
.product-card__top-badge--2 { background: linear-gradient(180deg, #b8b8b8, #8a8a8a); }
.product-card__top-badge--3 { background: linear-gradient(180deg, #d4a574, #a67843); }
.product-card__top-label { font-size: 8px; letter-spacing: 0.5px; display: block; }
.product-card__top-num { font-size: 16px; margin-top: 1px; display: block; font-weight: 800; }
/* Onda 77: cards compactos igual v4 */
.product-card__info { padding: 6px 8px 8px; }
.product-card__name {
  font-size: 12px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 30px; margin: 0;
  color: var(--tt-text);
}
.product-card__prices { margin-top: 4px; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.product-card__price {
  color: var(--tt-red); font-weight: 700; font-size: 15px;
}
.product-card__compare {
  color: var(--tt-text-mute); font-size: 11px; text-decoration: line-through;
}
.product-card__meta {
  display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap;
  font-size: 10px; color: var(--tt-text-light); align-items: center;
}
.badge-free-shipping {
  color: var(--tt-green); font-weight: 600; font-size: 10px;
}
.product-card__sold { color: var(--tt-text-mute); margin-top: 2px; font-size: 10px; }

/* ===== CATEGORIES CHIPS ===== */
.cat-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; background: var(--tt-bg-soft);
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 500;
  white-space: nowrap; border: 1px solid transparent;
}
.cat-chip.active { background: var(--tt-red); color: white; }

/* ===== PDP (Página de Produto) ===== */
.pdp__gallery {
  position: relative; aspect-ratio: 1; background: var(--tt-bg-soft);
}
.pdp__gallery img {
  width: 100%; height: 100%; object-fit: cover;
}
.pdp__price-bar {
  background: linear-gradient(90deg, var(--tt-red), #ff5577); color: white;
  padding: 14px 16px;
}
.pdp__price-current { font-size: 28px; font-weight: 700; }
.pdp__price-compare { text-decoration: line-through; opacity: 0.7; font-size: 14px; margin-left: 8px; }
.pdp__discount { background: white; color: var(--tt-red); padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-left: 8px; }
.pdp__title { padding: 14px 16px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.pdp__meta { display: flex; gap: 12px; padding: 0 16px 14px; font-size: 13px; color: var(--tt-text-light); }
.pdp__description { padding: 16px; font-size: 14px; line-height: 1.6; color: var(--tt-text-light); white-space: pre-wrap; }

/* ===== CART (carrinho) ===== */
.cart-list { padding: 12px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tt-border); }
.cart-item__img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13px; line-height: 1.3; }
.cart-item__price { color: var(--tt-red); font-weight: 700; margin-top: 6px; }
.cart-item__remove { color: var(--tt-text-mute); font-size: 11px; margin-top: 4px; cursor: pointer; }
.cart-total {
  position: sticky; bottom: 60px; background: white; border-top: 1px solid var(--tt-border);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.cart-total__label { flex: 1; font-size: 13px; color: var(--tt-text-light); }
.cart-total__value { color: var(--tt-red); font-weight: 700; font-size: 20px; }

/* ===== STICKY BUY BAR (PDP) ===== */
.buy-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: white; border-top: 1px solid var(--tt-border);
  padding: 10px 12px; display: flex; gap: 8px; z-index: 200;
}
.buy-bar__icon-btn {
  background: var(--tt-bg-soft); border: none; border-radius: 8px;
  width: 48px; height: 48px; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.buy-bar__buy {
  flex: 1; background: linear-gradient(90deg, var(--tt-red), #ff5577); color: white;
  border: none; border-radius: 8px; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
}

/* ===== EMPTY STATE ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--tt-text-mute); }
.empty__icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ===== LOADING SKELETONS ===== */
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.skeleton { background: var(--tt-bg-soft); animation: pulse 1.5s ease-in-out infinite; border-radius: 8px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%);
  background: rgba(22, 24, 35, 0.92); color: white;
  padding: 10px 18px; border-radius: 999px; font-size: 13px;
  z-index: 1000; animation: toast-in 200ms ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============================================================
   ONDA 38.A — Features novas (replicando v5.lojadoachadinhos.shop)
   ============================================================ */

/* OFERTA RELAMPAGO BANNER (Onda 76: gradient v4 + raio decorativo) */
.flash-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to right, #fb5434, #fb384a);
  color: #fff; padding: 12px 14px; margin: 0;
}
/* Raio ⚡ decorativo no fundo direito do banner */
.flash-banner::before {
  content: "";
  position: absolute; right: -10px; top: -20px; bottom: -20px;
  width: 180px; opacity: 0.15; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' fill='white'><path d='M55 0 L20 60 L45 60 L35 120 L80 50 L55 50 Z'/></svg>");
  background-repeat: no-repeat; background-position: right center;
  background-size: contain;
}
.flash-banner > * { position: relative; z-index: 1; }
.flash-banner__left { display:flex; align-items:center; gap:10px; }
.flash-banner__discount {
  background: rgba(255,255,255,0.22); padding: 4px 8px;
  border-radius: 4px; font-weight: 700; font-size: 13px;
}
.flash-banner__prices { display:flex; flex-direction:column; line-height: 1.1; }
.flash-banner__price { font-size: 22px; font-weight: 800; }
.flash-banner__compare { font-size: 12px; text-decoration: line-through; opacity: 0.7; }
.flash-banner__right { text-align: right; }
.flash-banner__label { font-size: 11px; font-weight: 700; opacity: 0.95; letter-spacing: 0.3px; display:flex; align-items:center; justify-content:flex-end; gap:4px; }
.flash-banner__countdown {
  font-size: 13px; font-weight: 700; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* PDP BODY */
.pdp__body { padding: 14px; background: #fff; }
/* Onda 76: badge "% OFF" estilo v4 — rosa claro + texto vermelho */
.pdp__discount-badge {
  display: inline-block; background: #ffe3ea; color: #ff2b56;
  padding: 0 6px; border-radius: 4px; font-size: 13px; font-weight: 600;
  margin-bottom: 10px; line-height: 1.6;
}
.pdp__title {
  font-size: 16px; font-weight: 600; line-height: 1.35;
  color: var(--tt-text); margin: 0 0 8px;
}
.pdp__meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--tt-text-light); flex-wrap: wrap;
}
.pdp__rating { color: var(--tt-text); font-weight: 600; }
.pdp__sep { color: var(--tt-text-mute); }

/* Variantes (Onda 73.4) - pills inline */
.pdp__variants { margin-top: 14px; }
.pdp__variant-group { margin-bottom: 10px; }
.pdp__variant-label {
  font-size: 12px; color: var(--tt-text-mute); margin-bottom: 6px;
}
.pdp__variant-value {
  color: var(--tt-text); font-weight: 600; margin-left: 4px;
}
.pdp__variant-options {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pdp__variant-pill {
  border: 1px solid #ddd; background: #fff; color: var(--tt-text);
  padding: 7px 12px; border-radius: 4px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.pdp__variant-pill:hover { border-color: var(--tt-red); }
.pdp__variant-pill--selected {
  border-color: var(--tt-red); background: #fff5f5; color: var(--tt-red);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.pdp__delivery {
  display: flex; gap: 10px; align-items: flex-start;
  background: #f6fff9; border: 1px solid #d1f4e2;
  padding: 10px 12px; border-radius: 8px; margin-top: 12px;
  font-size: 13px; color: var(--tt-text);
}
.pdp__delivery-icon { font-size: 22px; line-height: 1; }
.pdp__delivery-badge {
  display: inline-block; background: var(--tt-green); color: #fff;
  padding: 2px 6px; border-radius: 3px; font-size: 11px; font-weight: 700;
}
.pdp__delivery-meta { font-size: 11px; color: var(--tt-text-mute); margin-top: 2px; }

.pdp__social-proof {
  display: flex; align-items: center; gap: 8px;
  background: #fff7f8; border: 1px solid #ffd9df;
  padding: 8px 12px; border-radius: 8px; margin-top: 10px;
  font-size: 12px; color: var(--tt-text);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tt-red); flex: none;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,45,85,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255,45,85,0); }
}

.pdp__protection {
  background: #fffaf3; border: 1px solid #f5e1c4;
  padding: 12px; border-radius: 8px; margin-top: 12px;
}
.pdp__protection-title {
  font-size: 13px; color: #92633c; margin-bottom: 8px;
}
.pdp__protection-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  font-size: 12px; color: var(--tt-text-light);
}

.pdp__section {
  background: #fff; padding: 14px;
  border-top: 8px solid var(--tt-bg-soft);
}
.pdp__section-title {
  font-size: 14px; font-weight: 700; color: var(--tt-text);
  margin: 0 0 12px;
}
.pdp__description {
  font-size: 13px; line-height: 1.7; color: var(--tt-text-light);
  white-space: pre-wrap;
}

.pdp__reviews-summary { display: flex; align-items: baseline; gap: 4px; }
.pdp__reviews-score { font-size: 32px; font-weight: 800; color: var(--tt-red); }
.pdp__reviews-of { font-size: 14px; color: var(--tt-text-mute); }
.pdp__reviews-note { font-size: 11px; color: var(--tt-text-mute); margin-top: 4px; font-style: italic; }

.rec-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rec-card {
  display: grid; grid-template-columns: 90px 1fr; gap: 10px;
  padding: 10px; border: 1px solid var(--tt-border); border-radius: 8px;
  background: #fff;
}
.rec-card img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; }
.rec-card__body { display: flex; flex-direction: column; gap: 4px; }
.rec-card__name { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--tt-text); }
.rec-card__discount {
  display: inline-block; background: var(--tt-red); color: #fff;
  padding: 2px 5px; border-radius: 3px; font-size: 10px; font-weight: 700;
  width: fit-content;
}
.rec-card__free { font-size: 10px; color: var(--tt-green); font-weight: 600; }
.rec-card__sold { font-size: 10px; color: var(--tt-text-mute); }
.rec-card__price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.rec-card__price { color: var(--tt-red); font-weight: 800; font-size: 14px; }
.rec-card__buy {
  background: var(--tt-red); color: #fff; border: none;
  padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 600;
  cursor: pointer;
}

/* BOTTOM BAR atualizado */
.buy-bar__icon-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 4px 8px; min-width: 48px;
  background: none; border: none; color: var(--tt-text-light);
  cursor: pointer; position: relative;
  text-decoration: none;
}
/* Onda 76: carrinho destacado igual v4 — fundo rosa claro + cor rosa */
.buy-bar__cart-icon {
  position: relative; background: #ffe3ea; color: var(--tt-red);
  border-radius: 12px; min-width: 52px; min-height: 44px;
  padding: 4px;
}
.buy-bar__cart-badge {
  position: absolute; top: 0; right: 4px;
  background: var(--tt-red); color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
}
.buy-bar__buy {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--tt-red); color: #fff; border: none;
  padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  line-height: 1.1;
}
.buy-bar__buy-price { font-size: 16px; }
.buy-bar__buy-cta { font-size: 11px; font-weight: 500; opacity: 0.95; margin-top: 1px; }

/* HEADER CUPONS */
.coupons-bar {
  display: flex; gap: 8px; padding: 10px 12px; background: #fff;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.coupon-chip {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 8px;
  background: #fff5f7; border: 1px dashed #ffb3c3;
  min-width: 240px;
}
.coupon-chip:nth-child(2) { background: #fffaf0; border-color: #f5d9a1; }
.coupon-chip__text { flex: 1; font-size: 12px; line-height: 1.3; }
.coupon-chip__title { font-weight: 700; color: var(--tt-text); display: block; }
.coupon-chip__sub { color: var(--tt-text-mute); font-size: 11px; }
.coupon-chip__btn {
  background: var(--tt-red); color: #fff; border: none;
  padding: 5px 12px; border-radius: 99px; font-weight: 700; font-size: 11px;
  cursor: pointer;
}
.coupon-chip:nth-child(2) .coupon-chip__btn { background: #ff8f1f; }

/* CARRINHO */
.cart-frete-bonus {
  display: flex; align-items: center; gap: 8px;
  background: #e6f7fc; padding: 10px 14px; border-radius: 8px;
  margin: 10px 14px 0; font-size: 13px; color: #007a99; font-weight: 600;
}

/* CHECKOUT */
.checkout-shipping {
  background: #fff; padding: 12px 14px; border-radius: 8px; margin: 12px 0;
}
.checkout-shipping h3 { font-size: 13px; margin-bottom: 10px; }
.shipping-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--tt-border);
  cursor: pointer;
}
.shipping-option:last-child { border-bottom: none; }
.shipping-option__radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--tt-border); flex: none;
  position: relative;
}
.shipping-option input { display: none; }
.shipping-option input:checked ~ .shipping-option__radio {
  border-color: var(--tt-red);
}
.shipping-option input:checked ~ .shipping-option__radio::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--tt-red); border-radius: 50%;
}
.shipping-option__label { flex: 1; font-size: 13px; }
.shipping-option__label small { display: block; color: var(--tt-text-mute); font-size: 11px; margin-top: 2px; }
.shipping-option__price { font-weight: 700; font-size: 13px; }
.shipping-option__free { color: var(--tt-green); }
.checkout-trust {
  display: flex; justify-content: space-around;
  padding: 12px; background: var(--tt-bg-soft);
  border-radius: 8px; margin: 12px 0;
}
.checkout-trust__item {
  text-align: center; font-size: 10px; color: var(--tt-text-light);
}
.checkout-trust__item span { display: block; font-size: 18px; margin-bottom: 2px; }
.checkout-banner-economize {
  display: flex; align-items: center; gap: 6px;
  background: #e6f9ed; padding: 10px 14px;
  font-size: 12px; color: #047857; font-weight: 600;
  border-radius: 8px; margin: 12px 0;
}
.checkout-banner-social-proof {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 12px; color: var(--tt-text-light);
}
.checkout-coupon-expires {
  text-align: center; font-size: 11px; color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

/* ============ ONDA 38.C — Coupon color variants ============ */
.coupon-chip--pink   { background:#FFE8EE; border:1px dashed #FF5C7C; }
.coupon-chip--yellow { background:#FFF7D6; border:1px dashed #F0B000; }
.coupon-chip--green  { background:#E5F8EC; border:1px dashed #00AA55; }
.coupon-chip--blue   { background:#E5F2FF; border:1px dashed #1B7BFF; }
.coupon-chip--orange { background:#FFEEDB; border:1px dashed #FF8800; }
.coupon-chip--yellow .coupon-chip__btn { background:#F0B000; color:#fff; }
.coupon-chip--green  .coupon-chip__btn { background:#00AA55; color:#fff; }
.coupon-chip--blue   .coupon-chip__btn { background:#1B7BFF; color:#fff; }
.coupon-chip--orange .coupon-chip__btn { background:#FF8800; color:#fff; }

/* Onda 80: pagina chat.php (substitui modal Mensagem) */
.chat-page { background: #f5f5f7; min-height: 100vh; }
.chat-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; padding: 10px 12px;
  border-bottom: 1px solid #eee;
}
.chat-header__back, .chat-header__cart { display: flex; align-items: center; text-decoration: none; }
.chat-header__title { font-size: 16px; font-weight: 600; color: #111; }
.chat-store {
  display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 12px;
  border-bottom: 1px solid #eee;
}
.chat-store__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--tt-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.chat-store__name { font-size: 14px; font-weight: 600; color: #111; }
.chat-store__status {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #4caf50;
}
.chat-store__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4caf50; display: inline-block;
}
.chat-body {
  padding: 16px 12px 100px; min-height: calc(100vh - 60px - 60px - 70px);
  display: flex; flex-direction: column; gap: 10px;
}
.chat-bubble {
  max-width: 80%; padding: 10px 12px;
  border-radius: 12px; font-size: 14px; line-height: 1.4;
  position: relative;
}
.chat-bubble--bot {
  align-self: flex-start;
  background: #fff; color: #111;
  border: 1px solid #eee;
}
.chat-bubble--me {
  align-self: flex-end;
  background: var(--tt-red); color: #fff;
}
.chat-bubble__time {
  font-size: 10px; opacity: 0.6; text-align: right; margin-top: 4px;
}
.chat-faq-label { font-size: 13px; color: #666; margin-top: 4px; }
.chat-chips { display: flex; flex-direction: column; gap: 8px; }
.chat-chip {
  width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--tt-red);
  color: var(--tt-red); border-radius: 8px;
  padding: 10px 14px; font-size: 13px; cursor: pointer;
}
.chat-chip:hover { background: #fff1ed; }
.chat-input {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; gap: 8px; padding: 10px 12px;
  background: #fff; border-top: 1px solid #eee;
}
.chat-input input {
  flex: 1; border: 1px solid #ddd; border-radius: 999px;
  padding: 10px 14px; font-size: 14px; outline: none;
}
.chat-input input:focus { border-color: var(--tt-red); }
.chat-input button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tt-red); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Onda 86: fallback pra produtos sem imagem (via.placeholder.com saiu do ar) */
.product-card__img-placeholder,
.product-card__img-wrap--empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #fafafa;
}
.product-card__img-wrap--empty::after {
  content: ""; width: 40px; height: 40px;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'><rect width='60' height='60' rx='8' fill='%23f5f5f7'/><path d='M15 40h30L33 27l-8 9-4-4-6 8Z' fill='%23d4d4d8'/><circle cx='22' cy='22' r='3' fill='%23d4d4d8'/></svg>") no-repeat center / contain;
}
