/*
 Theme Name:   Neve CriaVisual Child
 Theme URI:    https://criavisual.pt
 Description:  Tema-filho do Neve com compatibilidade total para o CriaVisual Editor.
 Author:       CriaVisual
 Template:     neve
 Version:      1.1.0
 Text Domain:  neve-criavisual-child
*/

/* -----------------------
   Variáveis de design
------------------------ */
:root{
  --cv-bg: #0b0f14;           /* fundo geral escuro elegante (hero/painéis) */
  --cv-surface: #ffffff;      /* cartões/áreas claras */
  --cv-text: #0f172a;         /* texto principal */
  --cv-muted: #6b7280;        /* texto secundário */
  --cv-primary: #0ea5e9;      /* azul criativo */
  --cv-primary-strong: #0284c7;
  --cv-accent: #22c55e;       /* verde de ação/ok */
  --cv-danger: #ef4444;       /* erros */
  --cv-radius: 12px;          /* cantos arredondados padrão */
  --cv-shadow: 0 8px 24px rgba(2,8,23,.08);
  --cv-header-h: 64px;        /* altura visual do header custom */
}

/* -----------------------
   Base tipográfica
------------------------ */
html{ scroll-behavior: smooth; }
body{
  color: var(--cv-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{ color: var(--cv-primary); text-decoration: none; }
a:hover{ color: var(--cv-primary-strong); text-decoration: underline; }

h1,h2,h3,h4{ letter-spacing: -0.02em; }
h1{ font-weight: 800; }
h2{ font-weight: 700; }
h3,h4{ font-weight: 600; }

/* Foco visível (a11y) — compatível com browsers/otimizadores antigos */
:root{
  /* fallback (sempre suportado) */
  --cv-focus-outline: rgba(14, 165, 233, .45);
}
/* Foco base (funciona em tudo) */
a:focus,
button:focus,
[role="button"]:focus,
input:focus,
select:focus,
textarea:focus{
  outline: 3px solid var(--cv-focus-outline);
  outline-offset: 2px;
}
/* Se o browser suportar color-mix, melhora a cor do foco dinamicamente */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  :root{
    --cv-focus-outline: color-mix(in srgb, var(--cv-primary) 45%, transparent);
  }
}
/* Evita outline em cliques de rato, mantendo em teclado (LiteSpeed-safe) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible){
  outline: none;
}
/* -----------------------
   Layout geral
------------------------ */
.container{ max-width: 1200px; }
@media (min-width: 1280px){ .container{ max-width: 1240px; } }

/* container utilitário usado nas secções custom */
.cv-container{ width:90%; max-width:1200px; margin:0 auto; }

/* Header “sticky” do Neve (para páginas sem .cv-header) */
.header,
.header-main{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(6px);
  background: color-mix(in srgb, #ffffff 75%, transparent);
  box-shadow: 0 1px 0 rgba(2,8,23,.05);
}
@media (min-width: 783px){
  .admin-bar .header,
  .admin-bar .header-main{ top: 32px; }
}

/* -----------------------
   Botões globais (escopados)
------------------------ */
/* Limitamos às zonas CriaVisual para não afetar checkout/conta, etc */
.cv-card .button, .cv-card .wp-block-button__link, .cv-card .nv-button,
.cv-area-fornecedor .button, .cv-area-fornecedor .wp-block-button__link, .cv-area-fornecedor .nv-button,
.cv-tabs-fornecedor .button, .cv-tabs-fornecedor .wp-block-button__link, .cv-tabs-fornecedor .nv-button,
.cv-card .btn, .cv-area-fornecedor .btn, .cv-tabs-fornecedor .btn{
  background: var(--cv-primary);
  color: #fff !important;
  border-radius: 10px;
  border: 1px solid var(--cv-primary-strong);
  box-shadow: var(--cv-shadow);
  transition: transform .06s ease, filter .12s ease;
}
.cv-card .button:hover, .cv-card .wp-block-button__link:hover, .cv-card .nv-button:hover,
.cv-area-fornecedor .button:hover, .cv-area-fornecedor .wp-block-button__link:hover, .cv-area-fornecedor .nv-button:hover,
.cv-tabs-fornecedor .button:hover, .cv-tabs-fornecedor .wp-block-button__link:hover, .cv-tabs-fornecedor .nv-button:hover,
.cv-card .btn:hover, .cv-area-fornecedor .btn:hover, .cv-tabs-fornecedor .btn:hover{
  filter: brightness(1.06); transform: translateY(-1px);
}
.cv-card .button.is-style-outline,
.cv-area-fornecedor .button.is-style-outline,
.cv-tabs-fornecedor .button.is-style-outline,
.wp-block-button.is-style-outline .wp-block-button__link{
  background: transparent;
  color: var(--cv-primary) !important;
  border-color: var(--cv-primary);
}

/* -------- Fix específico: secções da Home com botões “pretos” -------- */
.home .wp-block-button__link.has-black-background-color,
.home .wp-block-button__link.has-foreground-background-color,
.home .wp-block-button__link.has-dark-gray-background-color{
  background-color: var(--cv-primary) !important;
  border-color: var(--cv-primary-strong) !important;
  color: #fff !important;
}
.home .wp-block-button.is-style-outline .wp-block-button__link.has-black-background-color,
.home .wp-block-button.is-style-outline .wp-block-button__link.has-foreground-background-color,
.home .wp-block-button.is-style-outline .wp-block-button__link.has-dark-gray-background-color{
  background: transparent !important;
  color: var(--cv-primary) !important;
  border-color: var(--cv-primary) !important;
}

/* -----------------------
   Cards/“surfaces” (global)
------------------------ */
.cv-card{
  background: var(--cv-surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--cv-radius);
  box-shadow: var(--cv-shadow);
  padding: 18px;
}

/* -----------------------
   Página do editor
------------------------ */
.criavisual-fullwidth .nv-page-title-wrap{ display:none; }
.criavisual-fullwidth .site-content{ padding-top: 8px; }

.cv-wrap{ margin: 0 auto; max-width: 1200px; gap: 16px; align-items: flex-start; }
.cv-stage{ min-height: 420px; }
.cv-panel{ width: 320px; max-width: 100%; }

@media (max-width: 992px){
  .cv-wrap{ flex-direction: column; }
  .cv-panel{ width: 100%; }
}

.cv-panel .btn{ border-radius: 8px; font-weight: 600; }
#canvas{ background: transparent; }

/* -----------------------
   WooCommerce “polish”
------------------------ */
.woocommerce ul.products li.product{
  border: 1px solid #e5e7eb;
  border-radius: var(--cv-radius);
  overflow: hidden;
  box-shadow: var(--cv-shadow);
  transition: transform .08s ease, box-shadow .12s ease;
}
.woocommerce ul.products li.product:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2,8,23,.10);
}
.woocommerce ul.products li.product .price{
  color: var(--cv-primary-strong);
  font-weight: 700;
}
.woocommerce div.product .product_title{ letter-spacing: -0.01em; }
.woocommerce .single_add_to_cart_button{
  background: var(--cv-accent);
  border-color: color-mix(in srgb, var(--cv-accent) 70%, #0a0a0a 30%);
}
.woocommerce .single_add_to_cart_button:hover{ filter: brightness(1.05); }

/* badges úteis (global, leve) */
.cv-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;border-radius:999px;font-size:12px;
  background:#f1f5f9;color:#0f172a;border:1px solid #e5e7eb;
}
.cv-badge--free{ background:#ecfeff; color:#0e7490; border-color:#a5f3fc; }
.cv-badge--paid{ background:#fef3c7; color:#92400e; border-color:#fde68a; }

/* -----------------------
   Hero genérico (podes usar na Home)
------------------------ */
.hero-criavisual{
  background: linear-gradient(135deg, #eaf6ff 0%, #fff 45%, #f0fff4 100%);
  padding: clamp(48px, 7vw, 96px) 20px;
  border-bottom: 1px solid #eef2f7;
}
.hero-inner{
  max-width: 1200px; margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap: 40px;
}
.hero-text h1{ font-size: clamp(34px, 4.6vw, 56px); margin:0 0 14px; }
.hero-text p{ font-size: clamp(16px, 2.2vw, 20px); color: var(--cv-muted); margin: 0 0 22px; }

/* Botão do herói (paleta azul) */
.btn-hero{
  display:inline-block;
  background: var(--cv-primary);
  color:#fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--cv-primary-strong);
  box-shadow: var(--cv-shadow);
  transition: filter .12s ease, transform .06s ease;
}
.btn-hero:hover{ filter: brightness(1.06); transform: translateY(-1px); }

.hero-image img{
  max-width:100%; height:auto; border-radius: 16px;
  box-shadow: 0 14px 40px rgba(2,8,23,.18);
}
@media (max-width: 960px){
  .hero-inner{ flex-direction: column; text-align: center; }
}

/* -----------------------
   Rodapé leve
------------------------ */
.site-footer{ border-top: 1px solid #eef2f7; }

/* -----------------------
   Peças utilitárias
------------------------ */
.text-muted{ color: var(--cv-muted); }
.rounded-2xl{ border-radius: 16px; }
.shadow-cv{ box-shadow: var(--cv-shadow); }
img{ height:auto; max-width:100%; }
img, #canvas{ -webkit-user-drag: none; user-select: none; }

/* ====== AJUSTES EXTRAS DE BOTÕES NA HOME (classes Gutenberg escuras) ====== */
.home .wp-block-button__link.has-black-background-color,
.home .wp-block-button__link.has-foreground-background-color,
.home .wp-block-button__link.has-dark-gray-background-color{
  background-color: var(--cv-primary) !important;
  border-color: var(--cv-primary-strong) !important;
  color:#fff !important;
}
.home .wp-block-button.is-style-outline .wp-block-button__link.has-black-background-color,
.home .wp-block-button.is-style-outline .wp-block-button__link.has-foreground-background-color,
.home .wp-block-button.is-style-outline .wp-block-button__link.has-dark-gray-background-color{
  background:transparent !important;
  color: var(--cv-primary) !important;
  border-color: var(--cv-primary) !important;
}

/* ====== HOTFIX: Responsividade do Painel (tabs fornecedor) ====== */
.cv-tabs-fornecedor, .cv-tabs-fornecedor *{ box-sizing:border-box; }
.cv-tab-panels, .cv-tab-panel, .cv-card{ width:100%; max-width:100%; }
.cv-card .button, .cv-card .btn, .cv-card .nv-button,
.cv-card input[type="text"], .cv-card input[type="url"], .cv-card input[type="file"],
.cv-card input[type="email"], .cv-card input[type="number"], .cv-card select, .cv-card textarea{
  max-width:100%; width:100%;
}
.cv-card img, .cv-card iframe, .cv-card video{ max-width:100%; height:auto; }
.cv-card table{ width:100%; border-collapse:collapse; }
.cv-card .table-responsive, .cv-card .wc-table-wrap, .cv-card .cv-table-wrap{
  width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;
}
.cv-card .table-responsive>table, .cv-card .wc-table-wrap>table, .cv-card .cv-table-wrap>table{ min-width:640px; }
@media (max-width:768px){
  .cv-card table{ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; white-space:nowrap; }
  .cv-card .row, .cv-card .columns, .cv-card .grid, .cv-card .flex{ display:flex; flex-wrap:wrap; gap:10px; }
  .cv-card .col, .cv-card [class*="col-"]{ flex:1 1 100%; max-width:100%; }
}
@media (max-width:480px){ .cv-card [style*="min-width:"]{ min-width:auto !important; } }
@media (max-width:680px){
  .cv-card .actions, .cv-card .button-group{ display:flex; flex-wrap:wrap; gap:8px; }
  .cv-card .actions>* , .cv-card .button-group>*{ flex:1 1 100%; }
}

/* --- CriaVisual Fornecedor — Tabs (Underline Azul) + Créditos --- */
.cv-tabs-fornecedor { width:100%; }
.cv-tabs-fornecedor .cv-tab-input { position:absolute; opacity:0; pointer-events:none; }

.cv-tabs-fornecedor .cv-tab-header {
  display:flex; align-items:flex-end; gap:12px; position:relative;
  border-bottom:1px solid #e5e7eb;
}
.cv-tabs-fornecedor .cv-tab { padding:10px 14px; cursor:pointer; font-weight:600; color:#475569; position:relative; user-select:none; }
.cv-tabs-fornecedor .cv-tab:hover { color:#0f172a; }

/* Underline animada */
.cv-tabs-fornecedor .cv-tab-underline {
  position:absolute; bottom:-1px; height:2px; width:36px; background:var(--cv-primary);
  border-radius:2px; left:0; transform: translateX(0);
  transition: transform .25s ease, width .25s ease;
}

/* Painéis */
.cv-tabs-fornecedor .cv-tab-panels { padding-top:16px; }
.cv-tabs-fornecedor .cv-tab-panel { display:none; }
#cv-tab-perfil:checked ~ .cv-tab-panels #cv-panel-perfil,
#cv-tab-painel:checked ~ .cv-tab-panels #cv-panel-painel,
#cv-tab-creditos:checked ~ .cv-tab-panels #cv-panel-creditos { display:block; }

/* Tab ativa */
#cv-tab-perfil:checked ~ .cv-tab-header label[for="cv-tab-perfil"],
#cv-tab-painel:checked ~ .cv-tab-header label[for="cv-tab-painel"],
#cv-tab-creditos:checked ~ .cv-tab-header label[for="cv-tab-creditos"] { color:#0f172a; }

/* Underline — posições estimadas (ajusta se mudares textos/tipografia) */
#cv-tab-perfil:checked ~ .cv-tab-header .cv-tab-underline { width:72px;  transform: translateX(0); }
#cv-tab-painel:checked ~ .cv-tab-header .cv-tab-underline { width:68px;  transform: translateX(96px); }
#cv-tab-creditos:checked ~ .cv-tab-header .cv-tab-underline { width:78px; transform: translateX(184px); }

/* Cartão e grelha de créditos (escopado às tabs) */
.cv-tabs-fornecedor .cv-card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; }
.cv-tabs-fornecedor .cv-creditos-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.cv-tabs-fornecedor .cv-creditos-bloco h3 { margin:0 0 8px; font-size:1rem; }
@media (max-width:720px){ .cv-tabs-fornecedor .cv-creditos-grid { grid-template-columns:1fr; } }

/* === FIX HOME adicional: forçar paleta azul nos botões da página inicial === */
body.home .wp-block-button .wp-block-button__link,
body.front-page .wp-block-button .wp-block-button__link,
body.page-template-frontpage .wp-block-button .wp-block-button__link,
body.page-template-template-frontpage .wp-block-button .wp-block-button__link,
body.home .nv-button, body.front-page .nv-button,
body.home .button, body.front-page .button,
body.home .nv-btn, body.front-page .nv-btn {
  background-color: var(--cv-primary) !important;
  border-color: var(--cv-primary-strong) !important;
  color: #fff !important;
}
body.home .wp-block-button.is-style-outline .wp-block-button__link,
body.front-page .wp-block-button.is-style-outline .wp-block-button__link,
body.page-template-frontpage .wp-block-button.is-style-outline .wp-block-button__link,
body.page-template-template-frontpage .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--cv-primary) !important;
  border-color: var(--cv-primary) !important;
}
body.home .wp-block-button__link.has-black-background-color,
body.home .wp-block-button__link.has-foreground-background-color,
body.home .wp-block-button__link.has-dark-gray-background-color,
body.front-page .wp-block-button__link.has-black-background-color,
body.front-page .wp-block-button__link.has-foreground-background-color,
body.front-page .wp-block-button__link.has-dark-gray-background-color {
  background-color: var(--cv-primary) !important;
  border-color: var(--cv-primary-strong) !important;
  color: #fff !important;
}
body.home .wp-block-button__link.has-black-color,
body.front-page .wp-block-button__link.has-black-color { color: #fff !important; }
body.home .wp-block-button .wp-block-button__link:hover,
body.front-page .wp-block-button .wp-block-button__link:hover,
body.home .nv-button:hover, body.front-page .nv-button:hover,
body.home .button:hover, body.front-page .button:hover,
body.home .nv-btn:hover, body.front-page .nv-btn:hover {
  filter: brightness(1.06); transform: translateY(-1px);
}

/* FIX: 4 botões da Home devem seguir paleta azul (não preto) */
body.home .cv-hero-ctas .cv-btn,
body.home .cv-artists-cta .cv-btn {
  background: var(--cv-primary) !important;
  border: 1px solid var(--cv-primary-strong) !important;
  color: #fff !important;
}
body.home .cv-hero-ctas .cv-btn-light,
body.home .cv-artists-cta .cv-btn-light {
  background: #fff !important;
  border: 1px solid #dbeafe !important;
  color: var(--cv-primary-strong) !important;
}
body.home .cv-hero-ctas .cv-btn:hover,
body.home .cv-artists-cta .cv-btn:hover,
body.home .cv-hero-ctas .cv-btn-light:hover,
body.home .cv-artists-cta .cv-btn-light:hover {
  filter: brightness(1.06); transform: translateY(-1px);
}

/* ============================================================
   BLOCO NOVO — Fornecedor destaque (escopado e estável)
============================================================ */
.cv-supplier-preview{ flex:1 1 360px; min-width:300px; max-width:640px; display:flex; flex-direction:column; }
.cv-supplier-card{ position:relative; width:100%; background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; box-shadow:0 4px 18px rgba(15,23,42,.08); }
.cv-supplier-media{ aspect-ratio: 16 / 10; width:100%; background:#f3f4f6; display:block; }
.cv-supplier-img{ width:100%; height:100%; object-fit:cover; display:block; }
.cv-supplier-tag{ position:absolute; top:12px; left:12px; z-index:2; background:#0ea5e9; color:#fff; font-weight:600; font-size:13px; padding:6px 10px; border-radius:999px; box-shadow:0 2px 10px rgba(2,132,199,.25); }

/* badges desta secção — escopados para evitar colisões globais */
.cv-artists .cv-badge{ background:#f8fafc; border:1px solid #e5e7eb; border-radius:999px; padding:8px 12px; text-align:center; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cv-artists .cv-badge--paid{ background:#ecfdf5; border-color:#a7f3d0; }
.cv-artists .cv-highlights .cv-grid-3{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin-top:8px; }
@media (max-width:980px){ .cv-supplier-preview{ max-width:100%; } .cv-artists .cv-highlights .cv-grid-3{ grid-template-columns:1fr; } }

/* ===== Blog CriaVisual ===== */
.cv-blog-hero { margin: 24px 0 8px; text-align: left; }
.cv-blog-hero h1 { font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 6px; }
.cv-blog-hero p { color: var(--cv-muted); margin: 0; }

.cv-blog-layout{ display:grid; grid-template-columns:1fr 320px; gap:24px; margin:16px 0 40px; }
@media (max-width:980px){ .cv-blog-layout{ grid-template-columns:1fr; } }

.cv-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
@media (max-width:1100px){ .cv-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:680px){ .cv-grid{ grid-template-columns:1fr; } }

/* Evita padding duplo nos cartões do blog */
.cv-grid .cv-card { padding: 0; }

/* Cartão de blog — escopado à secção de blog para não afetar cartões globais */
.cv-home-blog .cv-card{
  background: var(--cv-surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--cv-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cv-thumb img, .cv-thumb-placeholder{ display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#f3f4f6; }
.cv-card-body{ padding:14px; display:flex; flex-direction:column; gap:8px; }
.cv-card-meta{ display:flex; gap:10px; align-items:center; font-size:.9rem; color:var(--cv-muted); }
.cv-chip{ background:#eef6ff; color:#0369a1; padding:2px 8px; border-radius:999px; font-size:.8rem; }
.cv-card-title{ font-size: 1.1rem; margin: 0; }
.cv-card-title a{ text-decoration:none; color: var(--cv-text); }
.cv-card-excerpt{ color: var(--cv-muted); margin: 0; }
.cv-card-readmore{ margin-top: auto; font-weight: 600; text-decoration: none; }

.cv-blog-sidebar .cv-blog-search{ display:flex; gap:8px; margin-bottom:18px; }
.cv-blog-sidebar input[type="search"]{ width:100%; border:1px solid #e5e7eb; border-radius:8px; padding:10px; }
.cv-blog-sidebar button{ border:1px solid #e5e7eb; background:#fff; border-radius:8px; padding:10px 14px; cursor:pointer; }
.cv-blog-sidebar button:hover{ filter: brightness(1.04); }
.cv-blog-cats ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.cv-blog-cats li a{ text-decoration:none; color: var(--cv-text); }
.cv-blog-cats li a:hover{ text-decoration: underline; }
.cv-cta{ border:1px dashed #dbeafe; padding:14px; border-radius:12px; margin-top:18px; }
.cv-btn{ display:inline-block; background:var(--cv-primary); color:#fff; padding:10px 14px; border-radius:10px; text-decoration:none; }

.cv-pagination ul{ list-style:none; display:flex; gap:8px; padding:0; margin:20px 0 0; flex-wrap:wrap; }
.cv-pagination a, .cv-pagination span{ display:inline-block; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; text-decoration:none; }
.cv-pagination .current{ background:var(--cv-primary); color:#fff; border-color:transparent; }

.cv-single-wrap{ margin: 20px 0 40px; }
.cv-single-header{ margin-bottom: 16px; }
.cv-single-title{ font-size: clamp(28px, 3.2vw, 44px); margin: 0 0 6px; }
.cv-single-meta{ color:var(--cv-muted); display:flex; gap:8px; align-items:center; }
.cv-dot::before{ content:"•"; margin: 0 6px; color:var(--cv-muted); }

.cv-single-hero img{ width:100%; height:auto; border-radius: var(--cv-radius); margin-top:12px; }
.cv-single-content{ margin-top:16px; }
.cv-single-content p{ line-height:1.75; }
.cv-tags{ margin-top:24px; }
.cv-cta-wide{
  margin-top:20px; display:flex; justify-content:space-between; align-items:center; gap:16px;
  border:1px solid #e5e7eb; border-radius:12px; padding:14px;
}
.cv-post-nav{ display:flex; justify-content:space-between; margin-top:18px; }

/* -----------------------
   Acessibilidade: reduzir movimento
------------------------ */
@media (prefers-reduced-motion: reduce){
  .cv-card,
  .woocommerce ul.products li.product,
  .btn-hero,
  .cv-card .button, .cv-card .wp-block-button__link, .cv-card .nv-button,
  .cv-area-fornecedor .button, .cv-area-fornecedor .wp-block-button__link, .cv-area-fornecedor .nv-button,
  .cv-tabs-fornecedor .button, .cv-tabs-fornecedor .wp-block-button__link, .cv-tabs-fornecedor .nv-button,
  .cv-card .btn, .cv-area-fornecedor .btn, .cv-tabs-fornecedor .btn,
  body.home .cv-hero-ctas .cv-btn,
  body.home .cv-hero-ctas .cv-btn-light,
  body.home .cv-artists-cta .cv-btn,
  body.home .cv-artists-cta .cv-btn-light {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* =========================================================
   CV Header Override — usa o .cv-header (custom)
   Neutraliza o header do Neve quando o .cv-header está presente
============================================================ */
.cv-has-cvheader .header,
.cv-has-cvheader .header-main{
  position: static !important;
  backdrop-filter: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ===== HEADER custom (único) ===== */
.cv-header{
  position: fixed; top:0; left:0; width:100%; z-index:999;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
  padding: 15px 0; line-height:1;
}
.cv-header .cv-container{
  width: 90%; max-width: 1200px; margin: auto;
  display:flex; justify-content:space-between; align-items:center;
  min-height: var(--cv-header-h);
}
.cv-logo{ font-size:1.6rem; font-weight:700; text-decoration:none; color:#fff; }
.cv-nav{ display:flex; align-items:center; flex-wrap:wrap; }
.cv-nav a{
  margin-left:20px; text-decoration:none; color:#fff; font-weight:500; padding:8px 2px; outline:none;
}
.cv-nav a:hover, .cv-nav a:focus-visible{ opacity:.9; text-decoration:underline; text-underline-offset:3px; }
.cv-btn{
  background:#ff3c00; padding:8px 15px; border-radius:6px; margin-left:20px;
  font-weight:600; color:#fff !important; box-shadow:0 2px 8px rgba(0,0,0,.15);
}

/* Estado transparente (home) com legibilidade reforçada */
.cv-header-transparent{ background:transparent; text-shadow:0 1px 2px rgba(0,0,0,.35); backdrop-filter:saturate(115%) contrast(105%); }

/* Estado sólido (internas) */
.cv-header-solid{ background:#111; box-shadow:0 2px 6px rgba(0,0,0,.2); }
/* Compensa o conteúdo nas internas (evita que fique escondido) */
.cv-header-solid + *{ margin-top: var(--cv-header-h); }

/* Admin bar (WordPress) */
body.admin-bar .cv-header{ top:32px; }
@media (max-width:782px){ body.admin-bar .cv-header{ top:46px; } }

/* ===== HERO (único e robusto em mobile) ===== */
.cv-hero{
  min-height:100vh; /* melhor que height em mobile */
  background: linear-gradient(135deg, #ff3c00, #ff7700);
  display:flex; align-items:center; justify-content:center; text-align:center; color:#fff;
  padding:0 20px; box-sizing:border-box;
}
.cv-hero-inner h1{ font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom:15px; line-height:1.1; }
.cv-hero-inner p{ font-size: clamp(1rem, 1.5vw, 1.2rem); margin-bottom:25px; }
.cv-btn-big{
  background:#fff; color:#ff3c00; padding:15px 30px; border-radius:8px; font-size:1.1rem; font-weight:bold; text-decoration:none;
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.cv-btn-big:hover, .cv-btn-big:focus-visible{ background:#111; color:#fff; transform: translateY(-1px); }

/* Acessibilidade: reduzir movimento (complemento) */
@media (prefers-reduced-motion: reduce){
  .cv-header, .cv-btn, .cv-nav a, .cv-hero .cv-btn-big { transition: none !important; }
}

/* ===== Grelha de produtos da home ===== */
.cv-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:10px 0 8px; }
.cv-link{ font-weight:600; text-decoration:none; }
.cv-link:hover{ text-decoration:underline; }

.cv-prod-grid{
  list-style:none; padding:0; margin: 8px 0 0;
  display:grid; gap:16px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width:1100px){ .cv-prod-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width:780px){ .cv-prod-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:520px){ .cv-prod-grid{ grid-template-columns: 1fr; } }

.cv-prod-card{
  position:relative; background:#fff; border:1px solid #e5e7eb; border-radius:12px;
  overflow:hidden; box-shadow: var(--cv-shadow);
  display:flex; flex-direction:column; transition: transform .08s ease, box-shadow .12s ease;
}
.cv-prod-card:hover{ transform: translateY(-2px); box-shadow: 0 12px 30px rgba(2,8,23,.10); }

.cv-prod-badge{
  position:absolute; top:10px; left:10px; z-index:2;
  background:#fef3c7; color:#92400e; border:1px solid #fde68a;
  padding:4px 10px; border-radius:999px; font-size:12px; font-weight:700;
}
.cv-prod-badge--new{ background:#ecfeff; color:#0e7490; border-color:#a5f3fc; }

.cv-prod-thumb{ display:block; aspect-ratio: 1/1; background:#f3f4f6; }
.cv-prod-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.cv-prod-title{ font-size:1rem; margin: 10px 12px 0; }
.cv-prod-title a{ text-decoration:none; color: var(--cv-text); }
.cv-prod-title a:hover{ text-decoration: underline; }

.cv-prod-price{ margin: 6px 12px 0; color: var(--cv-primary-strong); font-weight: 700; }
.cv-prod-actions{ margin: 10px 12px 12px; }
.cv-prod-actions .button{ width:100%; border-radius:10px; }

/* ====== CriaVisual — barra de filtros (sem plugins) ====== */
.cv-filters-bar{
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; margin: 0 0 16px;
}
.cv-filters-bar .cv-filter{ display: block; }
.cv-filter--search form{ display: flex; gap: 8px; }
.cv-filter--search input[type="search"]{
  width: 260px; max-width: 100%;
  border:1px solid var(--cvw-border,#e5e7eb); border-radius:8px; padding:10px 12px;
}
.cv-filter--search button{
  border:1px solid var(--cvw-border,#e5e7eb); border-radius:8px; padding:10px 14px; cursor:pointer;
}
.cv-filter--cats .cv-select{
  min-width: 220px;
  border:1px solid var(--cvw-border,#e5e7eb); border-radius:8px; padding:10px 12px; background:#fff;
}

/* Widgets core que renderizamos via the_widget() */
.cv-filter-widget--price .price_slider_wrapper{ padding: 4px 2px; }
.cv-filter-widget--price .price_slider_amount .button{
  border-radius: 8px; padding: 8px 12px;
}
.cv-filter-widget--active ul{ margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cv-filter-widget--active ul li a{
  display:inline-block; padding:6px 10px; border:1px solid var(--cvw-border,#e5e7eb);
  border-radius: 999px; text-decoration:none; font-size: 13px;
}

/* Garantir que NENHUMA barra entra no grid de produtos */
.cv-filters-bar{ width: 100%; }

/* Filtros responsivos: ocupa a linha toda quando faltar espaço */
@media (max-width: 720px){
  .cv-filters-bar { flex-direction: column; align-items: stretch; }
  .cv-filter--search form { width: 100%; }
  .cv-filter--search input[type="search"] { width: 100%; }
  .cv-filter--cats .cv-select { width: 100%; }
}

/* Garante que widgets do Woo não ficam colapsados por CSS do tema */
.woocommerce .widget, .woocommerce .widget-area { display:block; visibility:visible; }

/* =========================================================
   CriaVisual — WooCommerce (grid sólida + cartões + single)
   Seguro para filtros (não tocamos em .woocommerce .products)
   ========================================================= */

/* ---------- Paletas ---------- */
:root{
  --cvw-primary: var(--cv-primary, #0ea5e9);
  --cvw-primary-strong: var(--cv-primary-strong, #0284c7);
  --cvw-accent: var(--cv-accent, #22c55e);
  --cvw-ink: var(--cv-text, #0f172a);
  --cvw-muted: var(--cv-muted, #6b7280);
  --cvw-card: var(--cv-surface, #ffffff);
  --cvw-border: #e5e7eb;
  --cvw-shadow: var(--cv-shadow, 0 8px 24px rgba(2,8,23,.08));
}
body.cv-shop-skin{
  --cvw-primary:#7c3aed; --cvw-primary-strong:#6d28d9; --cvw-accent:#06b6d4;
  --cvw-ink:#0f172a; --cvw-muted:#6b7280; --cvw-card:#fff; --cvw-border:#e5e7eb;
  --cvw-shadow:0 6px 22px rgba(2,6,23,.06);
}

/* LISTAGENS — GRID (clássico + blocks) */
.woocommerce ul.products{
  display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px; list-style:none; padding:0; margin:0; align-items:stretch;
}
@media (max-width:1200px){ .woocommerce ul.products{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:960px){  .woocommerce ul.products{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){  .woocommerce ul.products{ grid-template-columns:1fr; } }

.wc-block-grid__products{
  display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px; list-style:none; padding:0; margin:0; align-items:stretch;
}
@media (max-width:1200px){ .wc-block-grid__products{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:960px){  .wc-block-grid__products{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){  .wc-block-grid__products{ grid-template-columns:1fr; } }

/* Remover floats/larguras herdadas */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wc-block-grid__products .wc-block-grid__product{
  float:none !important; width:auto !important; margin:0 !important; box-sizing:border-box;
}

/* CARTÕES (clássico + blocks) */
.woocommerce ul.products li.product,
.wc-block-grid__products .wc-block-grid__product{
  background:var(--cvw-card); border:1px solid var(--cvw-border); border-radius:12px;
  overflow:hidden; box-shadow:var(--cvw-shadow);
  transition:transform .12s ease, box-shadow .12s ease;
  display:flex !important; flex-direction:column; padding:0 !important;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__products .wc-block-grid__product:hover{
  transform:translateY(-2px); box-shadow:0 12px 30px rgba(2,8,23,.10);
}

/* Thumb 1:1 consistente */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img,
.wc-block-grid__products .wc-block-grid__product img{
  width:100% !important; max-width:100% !important; height:auto; display:block;
  aspect-ratio:1/1; object-fit:cover; background:#f3f4f6;
}

/* Espaçamento interno */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .button{ margin-left:12px; margin-right:12px; }

.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title,
.wc-block-grid__products .wc-block-grid__product .wp-block-button,
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-price{
  margin-left:12px; margin-right:12px;
}

/* Título */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title{
  margin:10px 0 4px; font-size:16px; font-weight:700; line-height:1.25; color:var(--cvw-ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:40px;
}

/* Preço */
.woocommerce ul.products li.product .price,
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-price{
  color:var(--cvw-primary-strong); font-weight:800; margin-top:6px;
}

/* Botão */
.woocommerce ul.products li.product .button{
  width:100%; border-radius:10px; background:var(--cvw-primary); border-color:var(--cvw-primary);
  color:#fff; padding:10px 14px; margin:10px 0 12px; font-weight:700;
}
.woocommerce ul.products li.product .button:hover{
  background:var(--cvw-primary-strong); border-color:var(--cvw-primary-strong);
}
.wc-block-grid__products .wc-block-grid__product .wp-block-button .wp-block-button__link{
  display:block; width:100%; border-radius:10px; background:var(--cvw-primary) !important;
  border:1px solid var(--cvw-primary) !important; color:#fff !important; padding:10px 14px; font-weight:700; text-align:center;
}
.wc-block-grid__products .wc-block-grid__product .wp-block-button .wp-block-button__link:hover{
  background:var(--cvw-primary-strong) !important; border-color:var(--cvw-primary-strong) !important;
}

/* Badge Woo (promo) */
.woocommerce span.onsale{
  position:absolute; left:10px; top:10px; background:#fef3c7; color:#92400e; border:1px solid #fde68a;
  border-radius:999px; padding:6px 10px; line-height:1; font-weight:700;
  box-shadow:0 8px 16px rgba(253,230,138,.35); z-index:2;
}

/* SINGLE PRODUCT — ativado com .cv-shop-skin no <body> */
.cv-shop-skin.single-product .product{ display:grid; grid-template-columns:1.1fr .9fr; gap:34px; }
@media (max-width:992px){ .cv-shop-skin.single-product .product{ display:block; } }

.cv-shop-skin.single-product .woocommerce-product-gallery{
  background:#fff; border:1px solid var(--cvw-border); border-radius:14px; padding:12px; box-shadow:var(--cvw-shadow);
}
.cv-shop-skin.single-product .summary.entry-summary{
  background:#fff; border:1px solid var(--cvw-border); border-radius:14px; padding:16px 18px; box-shadow:var(--cvw-shadow);
}
.cv-shop-skin.single-product .product_title{ font-size:28px; font-weight:800; color:var(--cvw-ink); }
.cv-shop-skin.single-product .summary .price{ font-size:22px; font-weight:800; color:var(--cvw-ink); }
.cv-shop-skin.single-product .single_add_to_cart_button{
  background:var(--cvw-primary); border-color:var(--cvw-primary); border-radius:10px; font-weight:700;
}
.cv-shop-skin.single-product .single_add_to_cart_button:hover{
  background:var(--cvw-primary-strong); border-color:var(--cvw-primary-strong);
}
.cv-shop-skin.single-product .woocommerce-Tabs-panel{
  background:#fff; border:1px solid var(--cvw-border); border-radius:0 14px 14px 14px; padding:16px; box-shadow:var(--cvw-shadow);
}

/* Compat extra */
.woocommerce ul.products.columns-1 li.product,
.woocommerce ul.products.columns-2 li.product,
.woocommerce ul.products.columns-3 li.product,
.woocommerce ul.products.columns-4 li.product{ width:auto !important; }
.wc-block-grid__products .wc-block-grid__product{ margin:0 !important; }
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail{ width:100% !important; }

.woocommerce-breadcrumb{ color:var(--cvw-muted); margin:0 0 12px; }
.woocommerce nav.woocommerce-pagination ul{ border:none; }
.woocommerce nav.woocommerce-pagination ul li{ border:none; margin:0 4px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  border:1px solid var(--cvw-border); border-radius:8px; padding:8px 12px;
}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background:var(--cvw-primary); color:#fff; border-color:var(--cvw-primary);
}

/* Filtros sempre visíveis (blocks + widgets) */
.wc-block-product-filters, .wc-block-woocommerce-product-categories, .wc-block-product-categories,
.wc-block-product-search, .wc-block-price-filter, .wc-block-attribute-filter, .wc-block-active-filters,
.wc-block-checkbox-list, .wc-block-dropdown-selector,
.woocommerce .widget, .woocommerce .widget-area{ display:block !important; visibility:visible !important; }

.woocommerce .widget, .wc-block-product-filters{ margin:0 0 16px; }
.woocommerce-product-search, .wc-block-product-search{ max-width:100%; }
.woocommerce-product-search input[type="search"], .wc-block-product-search input[type="search"]{
  width:100%; border:1px solid var(--cvw-border); border-radius:8px; padding:10px 12px;
}
.woocommerce-product-search button, .wc-block-product-search button{ border-radius:8px; }

.widget_product_categories ul, .wc-block-product-categories ul{ list-style:none; margin:8px 0 0; padding:0; }
.widget_product_categories li, .wc-block-product-categories li{ margin:0; padding:6px 0; border-bottom:1px solid rgba(15,23,42,.06); }
.widget_product_categories a, .wc-block-product-categories a{ text-decoration:none; color:var(--cvw-ink); }
.widget_product_categories a:hover, .wc-block-product-categories a:hover{ text-decoration:underline; }

.wc-block-product-filters, .widget-area, #secondary, .shop-sidebar, .nv-sidebar, .nv-sidebar-wrap{ display:block; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering{ display:block; margin:0 0 12px; }
.woocommerce .products:not(ul){ display:block !important; }
.woocommerce .nv-content-wrap .nv-content, .woocommerce .nv-content-wrap .nv-sidebar-wrap{ display:block; }
@media (max-width:960px){ .nv-sidebar, .nv-sidebar-wrap, #secondary{ display:block !important; } }
.wc-block-product-filters, .wc-block-product-search, .wc-block-price-filter, .wc-block-attribute-filter,
.widget-area .widget, #secondary .widget{ margin-bottom:16px; }

/* Variante — Loja do Parceiro */
.cv-partner-shop ul.products{
  display:grid; grid-template-columns:repeat(var(--cv-cols,3),minmax(0,1fr));
  gap:18px; list-style:none; margin:0; padding:0;
}
.cv-partner-shop ul.products[class*="columns-"]{ display:grid; gap:18px; }
.cv-partner-shop ul.products.columns-2{ grid-template-columns:repeat(2,1fr); }
.cv-partner-shop ul.products.columns-3{ grid-template-columns:repeat(3,1fr); }
.cv-partner-shop ul.products.columns-4{ grid-template-columns:repeat(4,1fr); }

.cv-partner-shop ul.products li.product{
  background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden;
  box-shadow:0 8px 24px rgba(2,8,23,.08); padding:0 !important;
  transition:transform .12s ease, box-shadow .12s ease;
}
.cv-partner-shop ul.products li.product:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(2,8,23,.10); }
.cv-partner-shop ul.products li.product img{
  width:100% !important; height:auto; display:block; aspect-ratio:1/1; object-fit:cover; background:#f3f4f6;
}
.cv-partner-shop .woocommerce-loop-product__title,
.cv-partner-shop .price, .cv-partner-shop .star-rating, .cv-partner-shop .button{
  margin-left:12px; margin-right:12px;
}