/* ═══════════════════════════════════════════════════
   CUPOM ZAP — CSS Principal
   Tema dinâmico via variável CSS --brand por marca
═══════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tema Claro (padrão) ──────────────────────────── */
:root {
  --brand:    #3aaa10;
  --brand-dk: #2d8a0c;
  --brand-s:  #7B2FBE;
  --brand-t:  #FFFFFF;
  --bg:       #F4F6F4;
  --bg2:      #FFFFFF;
  --bg3:      #EEF1EE;
  --card:     #FFFFFF;
  --border:   #DDE3DD;
  --text:     #1a211a;
  --text2:    #6b7a6b;
  --radius:   12px;
  --radius-s: 8px;
  --shadow:   0 2px 12px rgba(0,0,0,.08);
  --trans:    .2s ease;
  --hd-bg:    linear-gradient(90deg, #e8f5e2 0%, #f0f7ec 50%, #ede8f5 100%);
  --hd-color: #1a211a;
  --hd-placeholder: rgba(30,40,30,.45);
  --hd-input-color: #1a211a;
  --hd-search-bg: rgba(0,0,0,.06);
  --hd-search-border: rgba(58,170,16,.3);
  font-size: 16px;
}

/* ── Tema Escuro ──────────────────────────────────── */
[data-theme="dark"] {
  --brand:    #52C41A;
  --brand-dk: #3a9912;
  --bg:       #0a0c0a;
  --bg2:      #111411;
  --bg3:      #1a1e1a;
  --card:     #141814;
  --border:   #252b25;
  --text:     #e8ece8;
  --text2:    #8a968a;
  --shadow:   0 2px 16px rgba(0,0,0,.5);
  --hd-bg:    linear-gradient(90deg, #0d120d 0%, #0f1a0a 50%, #150a28 100%);
  --hd-color: rgba(255,255,255,.85);
  --hd-placeholder: rgba(255,255,255,.45);
  --hd-input-color: #fff;
  --hd-search-bg: rgba(255,255,255,.07);
  --hd-search-border: rgba(82,196,26,.25);
}

html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; transition: background .3s, color .3s; }
a { color: var(--brand); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, button, textarea, select { font-family: inherit; }

/* ── Layout ────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ── HEADER ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--hd-bg);
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 2px 20px rgba(58,170,16,.15);
}
.hd-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 12px; height: 64px;
}
.hd-logo { display: flex; align-items: center; flex-shrink: 0; }
.hd-logo img { height: 48px; width: auto; }
.hd-logo-txt { font-size: 1.4rem; font-weight: 800; color: var(--brand); letter-spacing: -0.5px; }
.hd-search {
  flex: 1; display: flex; max-width: 560px; margin: 0 auto;
  background: var(--hd-search-bg); border: 1px solid var(--hd-search-border);
  border-radius: 24px; overflow: hidden;
}
.hd-search input {
  flex: 1; background: none; border: none; outline: none;
  padding: 8px 14px; color: var(--hd-input-color); font-size: .95rem;
}
.hd-search input::placeholder { color: var(--hd-placeholder); }
.hd-search button {
  background: var(--brand); border: none; cursor: pointer;
  padding: 0 16px; color: #fff; transition: background var(--trans);
}
.hd-search button:hover { background: var(--brand-dk); }
.hd-search svg { width: 18px; height: 18px; }
.hd-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hd-nav a {
  color: var(--hd-color); padding: 7px 14px; border-radius: 20px;
  font-size: .88rem; font-weight: 600; transition: all var(--trans); white-space: nowrap;
}
.hd-nav a:hover { background: rgba(82,196,26,.15); color: var(--brand); opacity: 1; }
/* ── CATEGORIAS DRAWER (desktop + mobile, abre da direita) ── */
.hd-cat-wrap { position: static; }
.hd-nav-cat {
  border: 1px solid rgba(82,196,26,.4); background: none;
  color: var(--brand); padding: 7px 14px; border-radius: 20px;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all var(--trans); white-space: nowrap; font-family: inherit;
}
.hd-nav-cat:hover, .hd-nav-cat.active { background: rgba(82,196,26,.15); }

/* Drawer lateral — mesmo estilo do mobile */
.hd-cat-drop {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 88vw;
  background: var(--card);
  box-shadow: -4px 0 24px rgba(0,0,0,.3);
  z-index: 200; display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  visibility: hidden; pointer-events: none;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s .3s;
}
.hd-cat-drop.open {
  visibility: visible; pointer-events: auto;
  transform: translateX(0);
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
}
/* Cabeçalho verde do drawer de categorias */
.cat-drop-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--brand); padding: 16px 18px; flex-shrink: 0;
}
.cat-drop-title { display: flex; flex-direction: column; }
.cat-drop-title span:first-child { font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .06em; }
.cat-drop-title span:last-child  { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1.2; }
.cat-drop-close {
  background: none; border: none; color: rgba(255,255,255,.85);
  font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 4px;
}
.cat-drop-close:hover { color: #fff; }
/* Links dentro do drawer de categorias */
.hd-cat-drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; color: var(--text); font-size: .93rem; font-weight: 500;
  transition: background var(--trans); border: none;
}
.hd-cat-drop a:hover { background: rgba(58,170,16,.08); color: var(--brand); opacity: 1; }
.hd-cat-drop a .cat-icon { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }
.cat-drop-section-title {
  padding: 10px 18px 6px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text2);
}
.mob-cat-label {
  padding: 10px 20px; color: var(--brand); font-weight: 700;
  font-size: .85rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 4px;
}
.btn-telegram {
  display: flex; align-items: center; gap: 6px;
  background: rgba(42,171,238,.15) !important; color: #2AABEE !important;
  border: 1px solid rgba(42,171,238,.3) !important;
}
.btn-telegram svg { width: 16px; height: 16px; }
.hd-theme-btn {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%; width: 34px; height: 34px; cursor: pointer; flex-shrink: 0;
  transition: background var(--trans);
}
.hd-theme-btn:hover { background: rgba(255,255,255,.2); }
.hd-theme-btn svg { width: 18px; height: 18px; stroke: var(--hd-color); }
.hd-theme-btn .icon-moon { display: none; }
[data-theme="dark"] .hd-theme-btn .icon-sun  { display: none; }
[data-theme="dark"] .hd-theme-btn .icon-moon { display: block; }
.hd-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; flex-shrink: 0;
}
.hd-menu-btn span { display: block; width: 22px; height: 2px; background: var(--hd-color); border-radius: 2px; transition: var(--trans); }

/* Overlay — fecha mega menu e drawer */
.hd-overlay {
  display: none; position: fixed; inset: 0; z-index: 198;
}
.hd-overlay.show-mega {
  display: block; background: rgba(0,0,0,.25); backdrop-filter: blur(1px);
}
.hd-overlay.show-drawer {
  display: block; background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
}


/* ── DRAWER MOBILE (estilo Amazon, abre da direita) ── */
.hd-mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 88vw;
  background: var(--card);
  box-shadow: -4px 0 24px rgba(0,0,0,.3);
  z-index: 199; display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
body.menu-open .hd-mobile-nav { transform: translateX(0); }

/* Cabeçalho verde do drawer */
.mob-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--brand); padding: 16px 18px; flex-shrink: 0;
}
.mob-title { display: flex; flex-direction: column; }
.mob-title-sub { font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .06em; }
.mob-title-main { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hd-mob-close {
  background: none; border: none; color: rgba(255,255,255,.85);
  font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 4px; flex-shrink: 0;
}
.hd-mob-close:hover { color: #fff; }

/* Seções */
.mob-section { padding: 8px 0; }
.mob-section-title {
  padding: 10px 18px 6px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text2);
}
.mob-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; color: var(--text); font-size: .93rem; font-weight: 500;
  transition: background var(--trans); border: none; text-decoration: none;
}
.mob-link:hover { background: rgba(58,170,16,.08); color: var(--brand); opacity: 1; }
.mob-link-icon { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }
.mob-divider { height: 1px; background: var(--border); margin: 4px 0; }

@media(max-width:768px) {
  .hd-nav { display: none; }
  .hd-menu-btn { display: flex; }
  .hd-search { max-width: none; flex: 1; margin: 0; }
}
@media(max-width:480px) {
  .hd-logo img { height: 38px; }
}

/* ── MAIN ──────────────────────────────────────────── */
.site-main { min-height: 80vh; }

/* ── HERO MARCA ────────────────────────────────────── */
.marca-hero {
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, black) 100%);
  padding: 40px 16px; text-align: center; color: #fff;
}
.marca-hero img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 12px; border-radius: 16px; background: #fff; padding: 8px; }
.marca-hero h1 { font-size: 2rem; font-weight: 800; }
.marca-hero p { opacity: .85; margin-top: 6px; }

/* ── FILTROS / TABS ─────────────────────────────────── */
.filtros {
  display: flex; gap: 8px; overflow-x: auto; padding: 16px;
  scrollbar-width: none; max-width: 1280px; margin: 0 auto;
}
.filtros::-webkit-scrollbar { display: none; }
.filtro-btn {
  flex-shrink: 0; padding: 6px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--bg2); color: var(--text2); cursor: pointer; font-size: .875rem;
  font-weight: 500; transition: all var(--trans); white-space: nowrap;
}
.filtro-btn:hover, .filtro-btn.ativo {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

/* ── SECTION TITLE ──────────────────────────────────── */
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 12px; max-width: 1280px; margin: 0 auto;
}
.sec-title h2 { font-size: 1.2rem; font-weight: 700; }
.sec-title h2 span { color: var(--brand); }
.sec-title a { font-size: .85rem; color: var(--text2); }
.sec-title a:hover { color: var(--brand); }

/* ── GRID DE CARDS ──────────────────────────────────── */
.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; padding: 0 16px 24px;
  max-width: 1280px; margin: 0 auto;
}
@media(max-width:480px) { .ofertas-grid { grid-template-columns: repeat(2,1fr); gap: 10px; } }

/* ── CARD OFERTA ─────────────────────────────────────── */
.card-oferta {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
  cursor: pointer; box-shadow: var(--shadow);
}
.card-oferta:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(58,170,16,.18); border-color: var(--brand); }
.card-thumb {
  aspect-ratio: 1; overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.card-thumb img { max-height: 100%; object-fit: contain; }
.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-marca {
  font-size: .75rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--brand);
}
.card-titulo { font-size: .875rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-precos { margin-top: auto; }
.card-preco-antigo { font-size: .75rem; color: var(--text2); text-decoration: line-through; }
.card-preco { font-size: 1.2rem; font-weight: 800; color: var(--brand); }
.card-desconto {
  display: inline-block; font-size: .7rem; font-weight: 700;
  background: #22c55e; color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 4px;
}
.card-footer {
  padding: 10px 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-tempo { font-size: .75rem; color: var(--text2); }
.card-btn {
  background: var(--brand); color: #fff; border: none; border-radius: 20px;
  padding: 6px 14px; font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: opacity var(--trans);
}
.card-btn:hover { opacity: .85; }
.card-frete { font-size: .72rem; color: #22c55e; font-weight: 600; }
.card-cupom {
  font-size: .72rem; background: var(--bg3); border-radius: 4px;
  padding: 2px 6px; color: var(--text2); font-family: monospace;
}

/* ── MARCAS GRID ─────────────────────────────────────── */
.marcas-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 12px; padding: 0 16px 24px; max-width: 1280px; margin: 0 auto;
}
.card-marca-logo {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; transition: all var(--trans); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.card-marca-logo:hover { border-color: var(--brand); transform: translateY(-2px); }
.card-marca-logo img { width: 60px; height: 60px; object-fit: contain; }
.card-marca-logo .mk-nome { font-size: .85rem; font-weight: 600; }
.card-marca-logo .mk-qtd { font-size: .75rem; color: var(--text2); }
.mk-cor-bar { width: 100%; height: 3px; border-radius: 2px; margin-bottom: 4px; }

/* ── PÁGINA OFERTA ───────────────────────────────────── */
.oferta-page { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.oferta-breadcrumb { font-size: .8rem; color: var(--text2); margin-bottom: 16px; }
.oferta-breadcrumb a { color: var(--text2); }
.oferta-breadcrumb a:hover { color: var(--brand); }
.oferta-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media(max-width:600px) { .oferta-layout { grid-template-columns: 1fr; } }
.oferta-img-wrap {
  background: #fff; border-radius: var(--radius); padding: 24px;
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1;
}
.oferta-img-wrap img { max-height: 100%; object-fit: contain; }
.oferta-info { display: flex; flex-direction: column; gap: 14px; }
.oferta-marca-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff; border-radius: 20px;
  padding: 4px 12px; font-size: .8rem; font-weight: 700; width: fit-content;
}
.oferta-titulo { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.oferta-precos { padding: 16px; background: var(--bg2); border-radius: var(--radius); border: 1px solid var(--border); }
.oferta-preco-de { font-size: .9rem; color: var(--text2); text-decoration: line-through; }
.oferta-preco { font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.oferta-desconto-badge {
  display: inline-block; background: #22c55e; color: #fff;
  border-radius: 6px; padding: 3px 10px; font-size: .85rem; font-weight: 700; margin-top: 4px;
}
.oferta-frete { color: #22c55e; font-weight: 600; font-size: .9rem; }
.oferta-cupom-box {
  background: var(--bg3); border: 1.5px dashed var(--border);
  border-radius: var(--radius-s); padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.oferta-cupom-box code { font-size: 1.1rem; font-weight: 700; letter-spacing: 2px; }
.btn-copiar { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: .8rem; color: var(--text2); transition: all var(--trans); }
.btn-copiar:hover { border-color: var(--brand); color: var(--brand); }
.btn-ir-oferta {
  display: block; text-align: center; background: var(--brand); color: #fff;
  border-radius: var(--radius); padding: 16px; font-size: 1.1rem; font-weight: 700;
  transition: opacity var(--trans); margin-top: 4px;
}
.btn-ir-oferta:hover { opacity: .88; color: #fff; }
.btn-ir-oferta svg { width: 20px; vertical-align: -4px; margin-right: 6px; }
.oferta-meta { font-size: .8rem; color: var(--text2); display: flex; flex-wrap: wrap; gap: 12px; }

/* ── BANNER AVISO ────────────────────────────────────── */
.aviso-afiliado {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 20px 16px; font-size: .8rem; color: var(--text2); text-align: center;
  max-width: 900px; margin: 0 auto; border-radius: var(--radius); margin-top: 32px;
}

/* ── PAGINAÇÃO ───────────────────────────────────────── */
.paginacao { display: flex; justify-content: center; gap: 6px; padding: 24px 16px; }
.paginacao a, .paginacao span {
  padding: 8px 14px; border-radius: var(--radius-s); font-size: .9rem;
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
}
.paginacao a:hover { border-color: var(--brand); color: var(--brand); opacity: 1; }
.paginacao .atual { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── BANNER TELEGRAM ─────────────────────────────────── */
.banner-tg {
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  border-radius: var(--radius); padding: 24px; text-align: center;
  margin: 8px 16px 0; max-width: 1280px; margin-left: auto; margin-right: auto;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.banner-tg .tg-txt h3 { color: #fff; font-size: 1.2rem; font-weight: 700; }
.banner-tg .tg-txt p { color: rgba(255,255,255,.85); font-size: .9rem; }
.btn-tg {
  background: #fff; color: #229ED9; border-radius: 24px; padding: 10px 24px;
  font-weight: 700; font-size: .95rem; white-space: nowrap; flex-shrink: 0;
  transition: opacity var(--trans);
}
.btn-tg:hover { opacity: .9; color: #229ED9; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer { background: var(--bg2); border-top: 2px solid var(--brand); margin-top: 16px; }
.ft-aviso {
  max-width: 1280px; margin: 0 auto; padding: 20px 16px;
  font-size: .78rem; color: var(--text2); line-height: 1.6; text-align: justify;
}
.ft-aviso strong { color: var(--text); }
.ft-bottom {
  border-top: 1px solid var(--border); padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--text2);
  max-width: 1280px; margin: 0 auto;
}
.ft-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ft-bottom-links a { color: var(--text2); font-size: .8rem; transition: color var(--trans); }
.ft-bottom-links a:hover { color: var(--brand); opacity: 1; }
@media(max-width:480px) { .ft-bottom { justify-content: center; text-align: center; } }

/* ── PÁGINAS INSTITUCIONAIS ──────────────────────────── */
.pg-content {
  max-width: 800px; margin: 40px auto; padding: 0 16px 60px;
}
.pg-content h1 {
  font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 8px;
}
.pg-content h2 {
  font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 28px 0 8px;
}
.pg-content p { color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.pg-content ul { margin: 8px 0 12px 20px; }
.pg-content ul li { color: var(--text2); line-height: 1.7; list-style: disc; }
.pg-content a { color: var(--brand); }
.pg-atualizado { font-size: .8rem; color: var(--text2); margin-bottom: 24px; }
.pg-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }
.pg-alert-ok  { background: rgba(34,197,94,.1);  color: #22c55e; border: 1px solid rgba(34,197,94,.2); }
.pg-alert-err { background: rgba(239,68,68,.1);  color: #f87171; border: 1px solid rgba(239,68,68,.2); }
.pg-form { display: flex; flex-direction: column; gap: 16px; }
.pg-field { display: flex; flex-direction: column; gap: 6px; }
.pg-field label { font-size: .875rem; font-weight: 600; color: var(--text); }
.pg-field input, .pg-field textarea {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--text); font-size: .95rem; font-family: inherit;
  transition: border-color var(--trans); outline: none;
}
.pg-field input:focus, .pg-field textarea:focus { border-color: var(--brand); }
.pg-btn {
  background: var(--brand); color: #fff; border: none; border-radius: 8px;
  padding: 12px 28px; font-size: 1rem; font-weight: 700; cursor: pointer;
  align-self: flex-start; transition: opacity var(--trans);
}
.pg-btn:hover { opacity: .88; }
.btn-sobre-tg {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2AABEE; color: #fff; border-radius: 8px;
  padding: 10px 20px; font-weight: 700; margin-top: 8px;
}
.btn-sobre-tg:hover { opacity: .88; }

/* ── HISTÓRICO DE PREÇOS ─────────────────────────────── */
.hist-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.hist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.hist-titulo { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.hist-meta { font-size: .8rem; color: var(--text2); }
.hist-min { color: #22c55e; }
.hist-max { color: #f87171; }
.hist-chart-wrap { position: relative; }
.hist-badge-min { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); border-radius: 8px; padding: 6px 12px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.hist-badge-bom { background: rgba(255,102,0,.15); color: var(--brand); border: 1px solid rgba(255,102,0,.3); border-radius: 8px; padding: 6px 12px; font-size: .8rem; font-weight: 700; white-space: nowrap; }

/* ── UTILS ───────────────────────────────────────────── */
.badge-frete { display: inline-block; background: rgba(34,197,94,.15); color: #22c55e; border-radius: 4px; padding: 2px 8px; font-size: .75rem; font-weight: 600; }
.badge-cupom { display: inline-block; background: rgba(255,102,0,.15); color: var(--brand); border-radius: 4px; padding: 2px 8px; font-size: .75rem; font-weight: 600; }
.text-muted { color: var(--text2); }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.empty-state { text-align: center; padding: 60px 16px; color: var(--text2); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: .4; }
