/* ============================================
   NOVA VAREJO - UPGRADE VISUAL PREMIUM
   2026-05-13 - Polish sem mexer na estrutura
   ============================================ */

:root {
  --nv-blue: #2157d6;
  --nv-blue-deep: #0b2545;
  --nv-blue-light: #4f87f5;
  --nv-blue-gradient: linear-gradient(135deg, #2157d6 0%, #0b2545 100%);
  --nv-shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.08);
  --nv-shadow-md: 0 8px 24px rgba(11, 37, 69, 0.12);
  --nv-shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.16);
  --nv-shadow-hover: 0 12px 32px rgba(33, 87, 214, 0.25);
  --nv-radius: 14px;
  --nv-radius-lg: 20px;
  --nv-transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

/* === SUAVIZAR FONTES === */
body, html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === CARDS DE CATEGORIA - elevação + hover === */
article.card, .card {
  border-radius: var(--nv-radius) !important;
  box-shadow: var(--nv-shadow-sm) !important;
  transition: var(--nv-transition) !important;
  border: 1px solid rgba(33, 87, 214, 0.06) !important;
  overflow: hidden;
}
article.card:hover, .card:hover {
  box-shadow: var(--nv-shadow-hover) !important;
  transform: translateY(-4px);
  border-color: rgba(33, 87, 214, 0.25) !important;
}
article.card .body, .card .body {
  padding: 18px 16px !important;
}
article.card h3.title, .card h3.title {
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
article.card .meta, .card .meta {
  color: #6b7280 !important;
  font-size: 12px;
  margin-bottom: 12px;
}
article.card .tag, .card .tag {
  background: rgba(33, 87, 214, 0.08) !important;
  color: var(--nv-blue) !important;
  font-size: 10px !important;
  letter-spacing: 1.5px !important;
  font-weight: 700 !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  text-transform: uppercase;
}

/* === CARDS DE PREÇO (categoria) === */
.price-label, .preco-card .label {
  font-size: 10px !important;
  letter-spacing: 1.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}
.price-value, .preco-card .valor {
  font-weight: 800 !important;
}

/* === CARDS DE PREÇO (página de produto) === */
.preco-card {
  border-radius: var(--nv-radius) !important;
  box-shadow: var(--nv-shadow-sm) !important;
  transition: var(--nv-transition);
  background: linear-gradient(135deg, #0b2545 0%, #1a3a6e 100%) !important;
  border: none !important;
  padding: 18px 14px !important;
}
.preco-card:hover {
  box-shadow: var(--nv-shadow-md) !important;
  transform: translateY(-2px);
}
.preco-card .valor {
  font-size: 26px !important;
  background: linear-gradient(90deg, #4f87f5 0%, #2157d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BOTÕES - profundidade + hover === */
.btn, a.btn, button.btn {
  border-radius: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  transition: var(--nv-transition) !important;
  box-shadow: var(--nv-shadow-sm);
}
.btn:hover, a.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--nv-shadow-md);
}
.btn.btn-orange, a.btn.btn-orange {
  background: var(--nv-blue-gradient) !important;
}
.btn.btn-black, a.btn.btn-black {
  background: linear-gradient(135deg, #1a1a1a 0%, #0b0b0b 100%) !important;
}
.btn.whats, .btn.btn-whatsapp, .cta-wa {
  background: linear-gradient(135deg, #25d366 0%, #1aab50 100%) !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3) !important;
}
.btn.whats:hover {
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45) !important;
}
.cta-mp {
  background: linear-gradient(135deg, #009ee3 0%, #007bb3 100%) !important;
  box-shadow: 0 6px 20px rgba(0, 158, 227, 0.25) !important;
}

/* === BLOCO ENTREGA - azul Nova Varejo (não mais laranja) === */
[class*="entrega"], .delivery-box, div:has(> h3:contains("Entrega")) {
  background: var(--nv-blue-gradient) !important;
}

/* === SWATCHES DE COR - mais bonito === */
.swatch, .swatches > * {
  border-width: 2px !important;
  transition: var(--nv-transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.swatch:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.swatch.active {
  border-color: var(--nv-blue) !important;
  border-width: 3px !important;
  box-shadow: 0 0 0 3px rgba(33, 87, 214, 0.18), 0 4px 12px rgba(33, 87, 214, 0.25);
}

/* === HEADER - sombra sutil === */
header, .header, .top {
  box-shadow: 0 2px 12px rgba(11, 37, 69, 0.06);
}

/* === H1, H2, H3 - mais hierarquia === */
h1, .info h1 {
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
}
h2 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}
h3 {
  font-weight: 700 !important;
}

/* === SECTION ESPAÇAMENTOS === */
section, .section {
  scroll-margin-top: 80px;
}

/* === BREADCRUMB === */
.breadcrumb, [class*="breadcrumb"] {
  font-size: 12px !important;
  color: #6b7280 !important;
  padding: 14px 0 !important;
}
.breadcrumb a:hover {
  color: var(--nv-blue) !important;
}

/* === BADGE DESTAQUE === */
.badge, [class*="badge"] {
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase;
  font-size: 10px !important;
}

/* === SELOS DE CONFIANÇA (Fábrica/Garantia/Pagamento) === */
.selo-info, .selos-info > * {
  border-radius: 10px !important;
  transition: var(--nv-transition);
  border: 1px solid rgba(33, 87, 214, 0.1) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}
.selo-info:hover {
  transform: translateY(-2px);
  border-color: var(--nv-blue) !important;
  box-shadow: var(--nv-shadow-sm);
}

/* === FRETE / ECONOMIZE blocks === */
.frete-box, [class*="frete"] {
  border-radius: var(--nv-radius) !important;
}

/* === ANIMAÇÃO FADE IN === */
@keyframes nv-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
article.card, .card, section h2, .preco-card {
  animation: nv-fadeIn 0.5s ease-out;
}

/* === SCROLLBAR mais elegante === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f4f8;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4f87f5, #2157d6);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2157d6, #0b2545);
}

/* === SELEÇÃO de texto azul === */
::selection {
  background: rgba(33, 87, 214, 0.2);
  color: var(--nv-blue-deep);
}

/* === IMAGENS de produto - melhor render === */
.gallery img, .main-photo img, article.card img.photo {
  image-rendering: -webkit-optimize-contrast;
}

/* === LINKS internos === */
a:not(.btn):not(.brand):not(.logo) {
  transition: color 0.15s;
}

/* === MOBILE polish === */
@media (max-width: 768px) {
  article.card:hover, .card:hover {
    transform: none;
  }
  h1, .info h1 {
    font-size: 22px !important;
  }
  .preco-card .valor {
    font-size: 22px !important;
  }
}

/* === HERO da home === */
.hero, [class*="hero"] {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* === LISTAGEM mais arejada === */
.grid, [class*="grid"] {
  gap: 18px !important;
}

/* === FOOTER === */
footer, .footer {
  margin-top: 60px;
  border-top: 1px solid rgba(33, 87, 214, 0.1);
}

/* === Inputs e Search === */
.search-box input, input[type="text"], input[type="search"] {
  border-radius: 999px !important;
  transition: var(--nv-transition);
}
.search-box input:focus, input:focus {
  box-shadow: 0 0 0 4px rgba(33, 87, 214, 0.12);
  outline: none;
}
.search-box button, button[type="submit"] {
  border-radius: 999px !important;
  transition: var(--nv-transition);
}
.search-box button:hover {
  transform: scale(1.04);
}

/* === Topbar (CNPJ etc) === */
.topbar {
  background: linear-gradient(90deg, #0b2545 0%, #2157d6 50%, #0b2545 100%) !important;
  background-size: 200% 100%;
  animation: nv-shimmer 8s ease infinite;
}
@keyframes nv-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* === FIX HERO: 2 colunas com foto à direita === */
.hero {
  padding: 40px 0 60px !important;
}
.hero-inner {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr !important;
  gap: 40px !important;
  align-items: center !important;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px;
}
.hero-inner > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f4f8 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.08);
  min-height: 380px;
}
.hero-photo img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px) !important;
  margin-bottom: 16px;
}
.hero .lead {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero .badge {
  display: inline-block;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr !important;
  }
  .hero-photo {
    min-height: 280px;
    padding: 24px;
  }
}

/* === FIX FOTOS CARDS CATEGORIA: restaurar mix-blend === */
article.card img.photo, .card img.photo {
  background: #f1f4f8 !important;
  mix-blend-mode: multiply !important;
  object-fit: contain;
}


/* === RESTAURAR TÍTULOS DOS SELOS === */
.selo-info b, .selos-info b {
  display: block !important;
  color: var(--nv-blue-deep) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}
.selo-info, .selos-info > * {
  padding: 14px 10px !important;
  text-align: center !important;
}

/* === Bloco ENTREGA: azul Nova Varejo === */
.frete-banner, [class*="frete-banner"] {
  background: var(--nv-blue-gradient) !important;
  color: #fff !important;
  border-radius: var(--nv-radius) !important;
}
