/*
  polish-v2.css — melhorias de UX/design sobre o tema existente
  Não altera markup nem lógica. Só CSS.
*/

/* ══════════════════════════════════════════
   0. DESIGN TOKENS EXTRAS
══════════════════════════════════════════ */
:root {
  --red:       #da291c;
  --red-dark:  #b81e13;
  --red-glow:  #da291c22;
  --navy:      #092B58;
  --navy-dark: #061d3e;
  --gold:      #f59e0b;
  --surface:   #f8fafc;
  --border:    #e2e8f2;
  --shadow-sm: 0 2px 8px #0a1e3a0a, 0 1px 2px #0a1e3a06;
  --shadow-md: 0 8px 24px #0a1e3a10, 0 2px 6px #0a1e3a08;
  --shadow-lg: 0 20px 48px #0a1e3a14, 0 6px 16px #0a1e3a0a;
  --radius-card: 18px;
  --radius-btn:  10px;
  --ease:      cubic-bezier(.22,.68,0,1.2);
}

/* ══════════════════════════════════════════
   1. TOPBAR — gradiente e texto mais forte
══════════════════════════════════════════ */
.topbar {
  background: linear-gradient(90deg, #b81e13 0%, #da291c 50%, #b81e13 100%) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  padding: 9px 12px !important;
  border-bottom: 1px solid #9a1710;
}

/* ══════════════════════════════════════════
   2. HEADER — sombra suave e logo clara
══════════════════════════════════════════ */
header {
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm) !important;
}
.nav.wrap {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* ══════════════════════════════════════════
   3. HERO — fundo degradê mais rico
══════════════════════════════════════════ */
.cb-hero {
  background: linear-gradient(135deg, #07204a 0%, #0d3272 45%, #092B58 100%) !important;
  position: relative;
  overflow: hidden;
}
.cb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, #da291c18 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 20%, #ffffff08 0%, transparent 60%);
  pointer-events: none;
}
.cb-hero-copy h1 {
  font-size: clamp(30px, 4.5vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.045em !important;
}
.cb-hero-copy h1 strong {
  color: #fff !important;
  display: block;
}
.cb-hero-copy > p {
  font-size: 17px !important;
  opacity: .85;
}
.cb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  padding: 5px 12px !important;
  border-radius: 100px !important;
  margin-bottom: 16px !important;
}
.cb-kicker::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffcdd0;
  animation: kicker-pulse 1.6s ease-in-out infinite;
}
@keyframes kicker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* Hero CTA */
.cb-hero-button {
  background: #fff !important;
  color: var(--red) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: .04em !important;
  padding: 14px 28px !important;
  border-radius: var(--radius-btn) !important;
  box-shadow: 0 4px 16px #ffffff22 !important;
  transition: background .18s, box-shadow .18s, transform .18s !important;
}
.cb-hero-button:hover {
  background: #f0f4ff !important;
  box-shadow: 0 8px 24px #ffffff30 !important;
  transform: translateY(-2px) !important;
}

/* Benefits strip */
.cb-hero-benefit {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  backdrop-filter: blur(6px);
  transition: background .2s !important;
}
.cb-hero-benefit:hover {
  background: rgba(255,255,255,.17) !important;
}

/* ══════════════════════════════════════════
   4. SECTION HEADINGS
══════════════════════════════════════════ */
.cb-section-heading,
.cb-lots-heading > div {
  position: relative;
}
.cb-section-heading > span,
.cb-lots-heading > div > span {
  color: var(--red) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  background: #fff0f0;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 10px !important;
}
.cb-section-heading h2,
.cb-lots-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.04em;
  line-height: 1.15;
}

/* ══════════════════════════════════════════
   5. CARDS DE LOTE — renovação completa
══════════════════════════════════════════ */
.cb-lot-card {
  border-radius: var(--radius-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow .25s var(--ease), border-color .25s, transform .25s var(--ease) !important;
  overflow: hidden !important;
  background: #fff !important;
}
.cb-lot-card:hover {
  box-shadow: var(--shadow-lg) !important;
  border-color: #c5d5e8 !important;
  transform: translateY(-4px) !important;
}

/* Imagem do card — proporção fixa */
.cb-lot-image,
.cb-lot-card .product-img,
.cb-lot-card > a:first-child,
.cb-lot-card .lot-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden !important;
  background: #f4f7fb !important;
}
.cb-lot-image img,
.cb-lot-card .product-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: transform .4s var(--ease) !important;
  padding: 8px !important;
}
.cb-lot-card:hover .cb-lot-image img,
.cb-lot-card:hover .product-img img {
  transform: scale(1.06) !important;
}

/* Badge de desconto — mais proeminente */
.cb-lot-card .cb-discount,
.cb-lot-card .discount-badge,
.cb-discount {
  background: var(--red) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px var(--red-glow) !important;
}

/* Preço de venda */
.cb-buy-price {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -.045em !important;
  color: var(--navy) !important;
  line-height: 1.1 !important;
}
.cb-old-price {
  text-decoration: line-through !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
}

/* Timer — pill de urgência */
.timer.cb-card-timer,
.cb-card-timer {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #fff5f5 !important;
  color: #c0201a !important;
  border: 1px solid #fecaca !important;
  border-radius: 100px !important;
  padding: 3px 9px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: .03em !important;
}
.timer.cb-card-timer::before,
.cb-card-timer::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #da291c;
  flex-shrink: 0;
  animation: timer-blink 1s ease-in-out infinite;
}
@keyframes timer-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}

/* CTA do card */
.cb-lot-cta {
  border-radius: var(--radius-btn) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  padding: 12px 16px !important;
  background: var(--red) !important;
  border-color: var(--red) !important;
  box-shadow: 0 3px 10px var(--red-glow) !important;
  transition: background .18s, box-shadow .18s, transform .18s !important;
}
.cb-lot-cta:hover {
  background: var(--red-dark) !important;
  border-color: var(--red-dark) !important;
  box-shadow: 0 6px 18px #da291c30 !important;
  transform: translateY(-1px) !important;
}
.cb-lot-cta:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

/* Lance atual */
.cb-auction-data {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
}
.cb-auction-data b {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
}

/* ══════════════════════════════════════════
   6. COMO FUNCIONA — steps mais visuais
══════════════════════════════════════════ */
.cb-new-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s var(--ease);
}
.cb-new-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════
   7. CATEGORIAS — pills mais ricas
══════════════════════════════════════════ */
.catalog-categories {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 20px !important;
}
.category-option {
  border-radius: 10px !important;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .12s var(--ease) !important;
}
.category-option:hover {
  background: #f0f5fd !important;
  border-color: #a7bfdf !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px #0a1e3a0a !important;
}
.category-option[aria-pressed='true'] {
  background: var(--red) !important;
  border-color: var(--red) !important;
  box-shadow: 0 4px 12px var(--red-glow) !important;
}

/* ══════════════════════════════════════════
   8. FOOTER — tom mais escuro e clean
══════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, #07204a 0%, #061535 100%) !important;
}
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(0,0,0,.2) !important;
}
.footer-col-title {
  color: rgba(255,255,255,.5) !important;
  letter-spacing: .12em !important;
  font-size: 10px !important;
}
.footer-col-links a {
  color: rgba(255,255,255,.75) !important;
  font-size: 13px !important;
  transition: color .15s !important;
}
.footer-col-links a:hover {
  color: #fff !important;
}

/* ══════════════════════════════════════════
   9. MOBILE
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .cb-hero-copy h1 {
    font-size: clamp(27px, 7.5vw, 36px) !important;
  }
  .cb-lot-card:hover {
    transform: none !important;
  }
  .cb-new-step:hover {
    transform: none !important;
  }
  .category-option:hover {
    transform: none !important;
  }
  .cb-hero-button:hover {
    transform: none !important;
  }
}

/* ══════════════════════════════════════════
   10. MICRO-INTERAÇÕES GERAIS
══════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .cb-lot-card,
  .cb-new-step,
  .category-option,
  .cb-hero-button,
  .cb-lot-cta {
    will-change: transform;
  }
}

/* ══════════════════════════════════════════
   11. RECLAME AQUI — removido em todos os breakpoints
══════════════════════════════════════════ */
.reclame-aqui-section { display: none !important; }

/* ══════════════════════════════════════════
   12. HERO — imagem maior e melhor posicionada (DESKTOP)
══════════════════════════════════════════ */
@media (min-width: 769px) {
  /* Hero layout: texto à esquerda, imagem à direita maior */
  .cb-hero-inner {
    align-items: center !important;
  }
  .cb-hero-product {
    width: 50% !important;
    height: 360px !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .cb-hero-product img {
    width: 100% !important;
    height: 340px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 24px 32px rgba(0,0,0,.28)) drop-shadow(0 8px 10px rgba(0,0,0,.15)) !important;
    transform: scale(1.08) !important;
  }
  /* Benefits mantidos no desktop */
  .cb-hero-benefits { display: flex !important; }
}

/* Ícones PNG no hero: fundo branco pill para contrastar com o fundo escuro */
.cb-benefit-image--png {
  background: #fff !important;
  border-radius: 10px !important;
  padding: 5px !important;
  filter: none !important;
  width: 44px !important;
  height: 44px !important;
  flex-basis: 44px !important;
  object-fit: contain !important;
}
/* Ícone caminhão (fundo escuro) — no hero fica ótimo diretamente */
.cb-benefit-image--dark {
  background: transparent !important;
  border-radius: 10px !important;
  padding: 2px !important;
  filter: none !important;
  width: 44px !important;
  height: 44px !important;
  flex-basis: 44px !important;
  object-fit: contain !important;
}

/* ══════════════════════════════════════════
   13. HERO MOBILE — ocultar benefits, centralizar imagem
══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Ocultar os 3 cards de benefit no hero */
  .cb-hero-benefits { display: none !important; }

  /* Reorganizar hero-main: só a imagem, centralizada */
  .cb-hero-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 16px 0 !important;
  }
  .cb-hero-product {
    width: 100% !important;
    max-width: 320px !important;
    height: 240px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .cb-hero-product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 16px 20px rgba(0,0,0,.30)) drop-shadow(0 4px 8px rgba(0,0,0,.18)) !important;
    animation: hero-float-mobile 4s ease-in-out infinite !important;
  }
  @keyframes hero-float-mobile {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
  }
  @media (prefers-reduced-motion: no-preference) {
    .cb-hero-product img { animation-duration: 7s !important; }
  }
}

/* ══════════════════════════════════════════
   14. BENEFITS SCROLL STRIP — auto-scroll infinito, só mobile
══════════════════════════════════════════ */
.v2-benefits-strip {
  display: none;
}

@media (max-width: 768px) {
  .v2-benefits-strip {
    display: block;
    overflow: hidden;
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }

  /* Track anima infinitamente: -50% porque os itens estão duplicados */
  .v2-benefits-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: bss-scroll 14s linear infinite;
    padding-left: 10px; /* espaço antes do 1º card */
  }
  .v2-benefits-strip:hover .v2-benefits-track,
  .v2-benefits-strip:focus-within .v2-benefits-track {
    animation-play-state: paused;
  }

  @keyframes bss-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .v2-bss-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 200px;
    /* espaço direito entre cards */
    margin-right: 2px;
  }
  .v2-bss-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 7px;
    background: var(--red);
    border-radius: 8px;
    filter: brightness(0) invert(1) !important;
  }
  /* Ícones PNG coloridos — sem inversão, fundo branco */
  .v2-bss-icon--png {
    background: #fff !important;
    border: 1.5px solid #eee !important;
    filter: none !important;
    padding: 4px !important;
  }
  /* Ícone caminhão — fundo branco igual aos outros */
  .v2-bss-icon--dark {
    background: #fff !important;
    border: 1.5px solid #eee !important;
    filter: none !important;
    padding: 4px !important;
  }
  .v2-bss-item b {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
  }
  .v2-bss-item small {
    display: block;
    font-size: 11px;
    color: #667085;
    line-height: 1.4;
  }
}

/* ══════════════════════════════════════════
   15. TIMER "ÚLTIMOS MINUTOS" — evitar overflow no card
══════════════════════════════════════════ */
.cb-auction-data {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  gap: 10px !important;
  padding-bottom: 2px !important;
}
.cb-auction-data::-webkit-scrollbar { display: none; }
.cb-auction-data > div {
  flex-shrink: 0 !important;
  min-width: 0 !important;
}
/* Reduzir um pouco o timer pill para caber */
.timer.cb-card-timer,
.cb-card-timer {
  font-size: 10px !important;
  padding: 2px 7px !important;
  white-space: nowrap !important;
}

/* ══════════════════════════════════════════
   16. FOOTER — branco acinzentado leve
══════════════════════════════════════════ */
.site-footer {
  background: #f2f3f5 !important;
  color: #2d3748 !important;
}
.footer-main-area {
  background: transparent !important;
}
.footer-col-title {
  color: #8a9ab0 !important;
  letter-spacing: .12em !important;
  font-size: 10px !important;
}
.footer-col-links a,
.footer-col-links li {
  color: #4a5568 !important;
  font-size: 13px !important;
}
.footer-col-links a:hover {
  color: var(--red) !important;
}
/* CTA block mantém vermelho */
.footer-cta-block {
  background: var(--red) !important;
}
.footer-cta-block p {
  color: #fff !important;
}
/* Bottom bar: cinza levemente mais escuro */
.footer-bottom-bar {
  background: #e8eaed !important;
  border-top: 1px solid #d8dce2 !important;
  color: #6b7380 !important;
}
.footer-bottom-inner,
.footer-bottom-inner span {
  color: #6b7380 !important;
  font-size: 12px !important;
}
/* Logo no footer fica visível no fundo claro */
.footer-ctt-logo {
  filter: none !important;
}
