/* SIC 24/11/2026 — topo da PDP no estilo Prohall (faixa + estrelas + H1 + selo).
   Só em body.template-product. NÃO mexe no fundo da PDP, nem na galeria
   (.product-images, .js-swiper-product, setas, zoom, selos sobre a foto).
   Ultron cuida da galeria (sic-pdp-galeria-v1). */

/* Variáveis só para o nosso bloco. Sem background em body/.container/.product-info. */
html body.template-product{
  --sic-pdp-faixa-bg:#0B0B0B;
  --sic-pdp-faixa-fg:#F2F2F2;
  --sic-pdp-faixa-apagado:#8A8A8A;
  --sic-pdp-ink:#202020;
  --sic-pdp-mute:#8a8a8a;
  --sic-pdp-star:#ffb400;
  --sic-pdp-selo-bg:#e8f7ef;
  --sic-pdp-selo-fg:#1f7a4d;
}

/* 1) Faixa de benefícios ABAIXO da linha do logo (como a Prohall). */
html body.template-product header.js-head-main{
  display:flex;
  flex-direction:column;
  overflow:visible;
}
html body.template-product header.js-head-main .js-head-row,
html body.template-product header.js-head-main .head-row{
  order:0;
  flex:none;
  width:100%;
  position:relative;
  z-index:1;
  overflow:visible;
}
html body.template-product header.js-head-main .sic-pdp-faixa{
  order:1;
  flex:none;
  width:100%;
  overflow:hidden;
  background:var(--sic-pdp-faixa-bg);
  color:var(--sic-pdp-faixa-fg);
  border-bottom:1px solid #262626;
  z-index:0;
}
html body.template-product header.js-head-main .sic-pdp-faixa__trilho{
  display:flex;
  width:max-content;
  animation:sic-pdp-faixa 32s linear infinite;
}
html body.template-product header.js-head-main .sic-pdp-faixa:hover .sic-pdp-faixa__trilho{
  animation-play-state:paused;
}
html body.template-product header.js-head-main .sic-pdp-faixa__lista{
  display:flex;
  margin:0;
  padding:0;
  list-style:none;
}
html body.template-product header.js-head-main .sic-pdp-faixa__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 0;
  font-size:12px;
  font-weight:500;
  letter-spacing:0;
  white-space:nowrap;
  color:var(--sic-pdp-faixa-fg);
  line-height:1;
}
html body.template-product header.js-head-main .sic-pdp-faixa__item:after{
  content:"";
  width:5px;
  height:5px;
  margin:0 22px;
  border-radius:50%;
  background:var(--sic-pdp-faixa-apagado);
  flex:none;
}
html body.template-product header.js-head-main .sic-pdp-faixa__ico{
  flex:none;
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
}
html body.template-product header.js-head-main .sic-pdp-faixa__pagamentos{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
html body.template-product header.js-head-main .sic-pdp-faixa__pagamentos img{
  display:block;
  height:18px;
  width:auto;
  background:#fff;
  border-radius:2px;
  padding:1px 2px;
}
@media (min-width:768px){
  html body.template-product header.js-head-main .sic-pdp-faixa__item{
    font-size:13px;
  }
  html body.template-product header.js-head-main .sic-pdp-faixa__item:after{
    margin:0 26px;
  }
  html body.template-product header.js-head-main .sic-pdp-faixa__pagamentos img{
    height:20px;
  }
}
@keyframes sic-pdp-faixa{
  to{transform:translate(-50%)}
}
@media (prefers-reduced-motion:reduce){
  html body.template-product header.js-head-main .sic-pdp-faixa__trilho{animation:none}
}

/* Faixa está abaixo do logo. No scroll, NÃO deslocar o header para cima
   (isso esconderia o logo). O tema já põe .compress com top da adbar nativa (0).
   Recolhemos só a faixa, e o logo/busca/carrinho ficam no topo. */
html body.template-product header.js-head-main.compress{
  top:0 !important;
}
html body.template-product header.js-head-main.compress .sic-pdp-faixa{
  height:0 !important;
  min-height:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  border:0 !important;
  overflow:hidden !important;
  pointer-events:none;
}

/* 1b) Cabeçalho mobile no recorte da Prohall (só < 768px, só PDP).
   Logo à esquerda, busca em pílula, sem barra larga nem linha de categorias.
   Menu hamburger permanece (a loja precisa dele; a Prohall não mostra).
   Sem selo de clube/PH — não existe clube na SIC. Não mexe no desktop. */
@media (max-width:767px){
  html body.template-product header.js-head-main .js-main-categories-container,
  html body.template-product header.js-head-main .main-categories-container,
  html body.template-product header.js-head-main .nav-categories-mobile{
    display:none !important;
  }
  html body.template-product header.js-head-main .js-head-row.head-row,
  html body.template-product header.js-head-main .head-row.logo-center{
    display:flex !important;
    flex-wrap:nowrap;
    align-items:center;
    gap:8px;
    width:100%;
    max-width:none;
    padding:10px 14px 10px 12px;
    overflow:visible;
    grid-template-columns:none;
    grid-template-rows:none;
  }
  html body.template-product header.js-head-main .menu-container{
    order:1;
    flex:none;
    margin:0;
    grid-column:auto !important;
    grid-row:auto !important;
  }
  html body.template-product header.js-head-main .js-logo-container.logo-container,
  html body.template-product header.js-head-main .logo-center .logo-container{
    order:2;
    flex:none;
    width:auto !important;
    max-width:58%;
    margin:0 !important;
    text-align:left !important;
    justify-self:start;
    grid-column:auto !important;
    grid-row:auto !important;
  }
  html body.template-product header.js-head-main .logo-img-container{
    width:auto;
    max-width:none;
    display:block;
  }
  html body.template-product header.js-head-main .logo-img,
  html body.template-product header.js-head-main .logo-img.logo-big,
  html body.template-product header.js-head-main .logo-center .logo-img.logo-big{
    max-height:42px !important;
    max-width:170px !important;
    width:auto !important;
    height:auto !important;
  }
  html body.template-product header.js-head-main .search-container{
    order:3;
    flex:1 1 auto;
    min-width:0;
    max-width:148px;
    margin:0 0 0 auto !important;
    grid-column:auto !important;
    grid-row:auto !important;
  }
  html body.template-product header.js-head-main .search-container .form-group{
    display:flex;
    align-items:center;
    margin:0 !important;
    height:40px;
    padding:0 10px 0 10px;
    background:#1C1C1C;
    border-radius:999px;
  }
  html body.template-product header.js-head-main .search-btn,
  html body.template-product header.js-head-main .search-btn.search-submit-btn,
  html body.template-product header.js-head-main .head-colors .search-submit-btn{
    position:static;
    order:0;
    flex:none;
    width:18px;
    height:18px;
    padding:0;
    margin:0;
    top:auto;
    right:auto;
    background:transparent !important;
    border:0 !important;
    border-radius:0;
  }
  html body.template-product header.js-head-main .search-submit-btn:before,
  html body.template-product header.js-head-main .head-colors .search-submit-btn:before{
    width:16px;
    height:16px;
    color:#F2F2F2;
  }
  html body.template-product header.js-head-main .search-input,
  html body.template-product header.js-head-main .head-main .form-control,
  html body.template-product header.js-head-main .js-search-input.form-control{
    order:1;
    flex:1 1 auto;
    min-width:0;
    width:100%;
    height:40px;
    padding:0 0 0 6px !important;
    border:0 !important;
    box-shadow:none !important;
    background:transparent !important;
    color:#F2F2F2;
    font-size:13px;
    font-weight:500;
  }
  html body.template-product header.js-head-main .js-search-input.form-control::placeholder{
    color:#8A8A8A;
    opacity:1;
  }
  html body.template-product header.js-head-main .js-empty-search{
    display:none !important;
  }
  html body.template-product header.js-head-main .utilities-container{
    order:4;
    flex:none;
    display:flex;
    align-items:center;
    gap:8px;
    overflow:visible;
    position:relative;
    grid-column:auto !important;
    grid-row:auto !important;
    grid-auto-flow:unset;
  }
  /* Login fica no menu hamburger; some da barra para chegar mais perto da Prohall. */
  html body.template-product header.js-head-main .utilities-container > .js-header-utility-icon-only{
    display:none !important;
  }
  html body.template-product header.js-head-main #ajax-cart{
    position:relative;
    overflow:visible;
    flex:none;
  }
  html body.template-product header.js-head-main #ajax-cart a.header-utility{
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    overflow:visible;
    width:40px;
    height:40px;
    border-radius:999px;
    background:#1C1C1C;
  }
  html body.template-product header.js-head-main #ajax-cart .js-header-utility-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    position:relative;
  }
  html body.template-product header.js-head-main #ajax-cart .utility-icon{
    width:20px;
    height:20px;
  }
  html body.template-product header.js-head-main #ajax-cart .js-cart-widget-amount.badge,
  html body.template-product header.js-head-main .head-main .js-cart-widget-amount.badge,
  html body.template-product header.js-head-main .js-cart-widget-amount.badge{
    position:absolute !important;
    top:2px !important;
    right:2px !important;
    left:auto !important;
    bottom:auto !important;
    transform:none !important;
    min-width:16px;
    height:16px;
    line-height:16px;
    padding:0 4px;
    font-size:10px;
    box-sizing:border-box;
    z-index:2;
  }
}

/* Carrinho Prohall (z-index 20000) deve ficar acima do header (1000). Reforço. */
html body.template-product #modal-cart,
html body.template-product #modal-cart.modal,
html body.template-product #modal-cart.modal-show,
html body.template-product #modal-cart.modal-visible,
html body.template-product .modal-overlay{
  z-index:20000;
}

/* 2–4) Bloco do título, só em .product-info — fora da galeria. */
html body.template-product .product-info > .pt-md-3 > .sic-pdp-reviews,,
html body.template-product .sic-pdp-topo-bloco > .pt-md-3 > .sic-pdp-reviews,
html body.template-product .product-info .sic-pdp-reviews,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  /* Depois da pílula. Vão pílula→estrelas vem da margem inferior do selo (9px).
     Sem margem inferior para não somar com o padding-top:14px da galeria. */
  margin:0;
  padding-top:9px; /* vão pílula → estrelas, sem collapse */
  min-height:0;
}

/* Widget de estrelas só quando está no nosso slot (não a lista #auto-bk-review-section). */
html body.template-product .product-info .sic-pdp-reviews #auto-bk-star-section,,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews #auto-bk-star-section,
html body.template-product .product-info .sic-pdp-reviews .bk-reviews,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .bk-reviews{
  margin:0 !important;
  padding:0 !important;
  width:auto;
  max-width:100%;
}
html body.template-product .product-info .sic-pdp-reviews #auto-bk-star-section .tw-my-\[1rem\],,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews #auto-bk-star-section .tw-my-\[1rem\],
html body.template-product .product-info .sic-pdp-reviews #auto-bk-star-section .tw-my-\[0\.75rem\],
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews #auto-bk-star-section .tw-my-\[0\.75rem\]{
  margin:0 !important;
}
html body.template-product .product-info .sic-pdp-reviews #auto-bk-star-section .tw-w-full,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews #auto-bk-star-section .tw-w-full{
  width:auto !important;
}
html body.template-product .product-info .sic-pdp-reviews #auto-bk-star-section .tw-justify-center,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews #auto-bk-star-section .tw-justify-center{
  justify-content:flex-start !important;
}
html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  line-height:1.2;
  font-size:13px;
}
html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__row,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__row{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
}
html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__svgs,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__svgs{
  display:inline-flex;
  align-items:center;
  gap:1px;
  line-height:0;
  flex:none;
}
html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__svgs svg,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__svgs svg{
  width:19px;
  height:19px;
  display:block;
}
html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__nota,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__nota{
  font-weight:500;
  font-size:14px;
  color:#232323;
  line-height:1;
}
html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__sep,,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__sep,
html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__qtd,,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__qtd,
html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__qtd a,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__qtd a{
  color:#8a8a8a;
  font-size:13px;
  font-weight:400;
  text-decoration:none;
}
html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__qtd a:hover,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__qtd a:hover{
  text-decoration:underline;
}
@media (min-width:768px){
  html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__svgs svg,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__svgs svg{
    width:23px;
    height:23px;
  }
  html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__nota,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__nota{
    font-size:16px;
  }
  html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__qtd,,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__qtd,
  html body.template-product .product-info .sic-pdp-reviews .sic-pdp-stars__sep,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars__sep{
    font-size:14px;
  }
}

/* Título v3 (compensação pedida 24/11/2026 17:01): mobile 22px/600/lh 1.3; desktop 38px/600.
   Ajuste visual no fundo cream (pedido explícito do Samuel: fonte maior e mais pesada). */
html body.template-product .product-info h1.js-product-name.sic-pdp-h1-visual,
html body.template-product .sic-pdp-topo-bloco h1.js-product-name.sic-pdp-h1-visual{
  font-weight:600;
  font-size:22px;
  line-height:1.3;
  letter-spacing:-0.01em;
  color:#202020;
  margin:6px 0 8px;
  background:transparent;
}
@media (min-width:768px){
  html body.template-product .product-info h1.js-product-name.sic-pdp-h1-visual,
html body.template-product .sic-pdp-topo-bloco h1.js-product-name.sic-pdp-h1-visual{
    font-size:38px;
    font-weight:600;
    line-height:1.2;
    letter-spacing:-0.02em;
    margin:12px 0;
  }
}

/* Selo verde ABAIXO do título, cores/raio da Prohall (.ph-vendas-no-mes). */
html body.template-product .product-info .sic-pdp-selo-vendas,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-selo-vendas{
  display:block;
  width:fit-content;
  max-width:100%;
  margin:0;
  padding:4px 10px;
  border-radius:999px;
  background:#e8f7ef;
  color:#1f7a4d;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
  white-space:nowrap;
}
html body.template-product .product-info .sic-pdp-vendidos-origem.is-moved,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-vendidos-origem.is-moved{
  display:none !important;
}


/* ===== v3: mesmo bloco acima da galeria; tipografia medida da Prohall; pílula 'no último mês' ===== */
html body.template-product .sic-pdp-topo-bloco{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  width:100%;
  box-sizing:border-box;
}
html body.template-product .sic-pdp-topo-bloco > h1.js-product-name,
html body.template-product .sic-pdp-topo-bloco > .sic-pdp-selo-vendas,
html body.template-product .sic-pdp-topo-bloco > .sic-pdp-reviews{
  max-width:100%;
}
html body.template-product .sic-pdp-topo-bloco > .sic-pdp-selo-vendas{
  margin:0 0 9px !important; /* vão pílula → estrelas ~9px; flex não colapsa */
}
html body.template-product .sic-pdp-topo-bloco > .sic-pdp-reviews{
  padding-top:0 !important;
  margin:0 !important;
}
@media (max-width: 767px){
  html body.template-product #single-product .product-columns > .sic-pdp-topo-bloco{
    width:100%;
    max-width:100%;
    flex:0 0 auto;
    /* margin 0 embaixo: evita vão duplo com o padding-top:14px do .product-images do Ultron. */
    margin:0;
    /* Respiro de segurança (Samuel 24/11/2026 18:50): ~16px entre a faixa/cabeçalho e o H1. */
    padding:16px 4px 0;
    order:0;
  }
  html body.template-product #single-product .product-columns > .sic-pdp-topo-bloco h1.js-product-name.sic-pdp-h1-visual{
    margin-top:0;
  }
}


/* Compacta o wrapper do BK no slot (evita ~16px de line-box acima/abaixo das estrelas). */
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews #auto-bk-star-section,
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews #bk-product-star{
  display:flex !important;
  align-items:center;
  margin:0 !important;
  padding:0 !important;
  min-height:0 !important;
  line-height:0 !important;
  font-size:0;
  height:auto !important;
}
html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars{
  font-size:13px;
  line-height:1.2;
}
@media (min-width:768px){
  html body.template-product .sic-pdp-topo-bloco .sic-pdp-reviews .sic-pdp-stars{
    font-size:14px;
  }
}

html body.template-product .sic-pdp-topo-bloco #auto-bk-star-section > div{
  margin-top:0 !important;
  margin-bottom:0 !important;
}


/* Respiro de segurança no desktop (Samuel 24/11/2026 18:50): o H1 não pode encostar no cabeçalho/faixa. */
@media (min-width:768px){
  html body.template-product .product-info .sic-pdp-topo-bloco{
    padding-top:4px;
  }
  html body.template-product .product-info .sic-pdp-topo-bloco > h1.js-product-name.sic-pdp-h1-visual,
  html body.template-product .sic-pdp-topo-bloco > h1.js-product-name.sic-pdp-h1-visual{
    margin-top:16px;
  }
}
