.ph {
  position: relative; overflow: hidden; border-radius: 12px; background: #f4f4f5;
}
.ph::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%); animation: ph-shimmer 1.2s infinite;
}
@keyframes ph-shimmer { to { transform: translateX(100%); } }

/* Proporções rápidas (ajusta consoante o módulo) */
.ph-16x9{ aspect-ratio: 16/9; }
.ph-4x3 { aspect-ratio: 4/3; }
.ph-1x1 { aspect-ratio: 1/1; }


.npf-archive__grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding:20px;}
.npf-archive__filters { position: sticky; top: 96px; align-self: start; }
@media (max-width: 1024px) {
  .npf-archive__grid { grid-template-columns: 1fr; }
  .npf-archive__filters { position: static; }
}

.brand-list-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  padding: 10px 0;
}

.brand-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px; /* ajusta conforme o necessário */
  width: 100%;
  text-align: center;
  background-color:white;
  padding:5px;
  border-radius:5px;
}

.brand-item img {
  max-width: 100%;
  max-height: 100px;
  height: auto;
  display: block;
  transition: transform 0.2s ease-in-out;
}

.brand-item img:hover {
  transform: scale(1.05);
}

.single-product-price .price{
  margin:0px!important;
}

.decimal-sup {
  vertical-align: super!important;
  font-size: 15px!important;

}

.price-line {
  line-height: 1.4;
  margin-top:15px;
}

.price-value {
  font-family: "Segoe UI", sans-serif;
}

.price-decimals {
  font-size: 60%;
  vertical-align: super;
  top: 1px;
  font-weight:700;
}

/* Preço com desconto */
.price-sale .price-value,
.price-single .price-value {
  font-size: 25px;
  color: #d60000!important;
  font-weight:700;
}

/* Preço riscado */
.price-regular .price-value {
  color: #777;
  font-size: 14px;
  text-decoration: line-through;
}

.to-white { filter: brightness(0) invert(1); }

.woocommerce-products-header__title{
  font-size: 28px;
  text-align:center;
  font-weight:700px;
  font-family: Open Sans, "Open Sans Fallback: Arial", sans-serif;
}

/* Works for WooCommerce and Yoast */
.woocommerce-breadcrumb,
#breadcrumbs{
  margin: 5px 20px 16px!important;
  font: 400 12px/1.35 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif!important;
  color:#000!important;
  letter-spacing: 0;
  word-spacing: .25ch;           /* gives space around the slash */
}

/* underline every crumb (including current) */
.woocommerce-breadcrumb a,
.woocommerce-breadcrumb span,
#breadcrumbs a,
#breadcrumbs span{
  color:#000!important;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration: underline!important;
  text-decoration-thickness: 1px;
}

/* subtle hover */
.woocommerce-breadcrumb a:hover,
#breadcrumbs a:hover{
  opacity:.85;
}

/* optional: keep on one line on desktop */
@media (min-width: 768px){
  .woocommerce-breadcrumb,
  #breadcrumbs{ white-space: nowrap; }
}

.woocommerce .woocommerce-breadcrumb {
  padding: 15px 0px!important;
}


.energy-label-container {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

/* Base style for the label */
.energy-label {
  min-width: 50px;  /* Fixed width */
  width:50px;
  height: 26px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: left;
  font-size: 16px;
  font-weight: bold;
  color: white;
  position: relative;
  text-transform: uppercase;
  padding: 3px;
  padding-left: 0px; /* Adjusts text position */
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 1); /* Adds shadow to text */
}

/* Left-side A-G image inside the label */
.energy-label::before {
  content: "";
  background: url('/wp-content/themes/hello-child/assets/images/g_a.png') no-repeat center center;
  background-size: contain;
  width: 12px;  /* Adjusted width */
  height: 24px; /* Adjusted height */
  margin-right: 5px; /* Space between image and text */
}

/* Create the right arrow */
.energy-label::after {
  content: "";
  position: absolute;
  right: -10px;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
/*  border-left: 10px solid gray;*/
text-decoration:none!important;
}
.energy-label-container a{
  text-decoration:none!important;
}

/*.energy-label { background-color: gray; }*/
.energy-A { background-color: #00913d; } /* Dark Green */
.energy-A::after { border-left: 10px solid #00913d; }

.energy-Aplusplusplus { background-color: #00e673; } /* Verde muito claro */
.energy-Aplusplusplus::after { border-left: 10px solid #00e673; }

/* A++ */
.energy-Aplusplus { background-color: #00cc5f; } /* Verde claro */
.energy-Aplusplus::after { border-left: 10px solid #00cc5f; }

/* A+ */
.energy-Aplus { background-color: #00b34c; } /* Verde médio-claro */
.energy-Aplus::after { border-left: 10px solid #00b34c; }


.energy-B { background-color: #5fae27; } /* Light Green */
.energy-B::after { border-left: 10px solid #5fae27; }

.energy-C { background-color: #c8d300; } /* Yellow */
.energy-C::after { border-left: 10px solid #c8d300; }

.energy-D { background-color: #ffef00; } /* Light Orange */
.energy-D::after { border-left: 10px solid #ffef00; }

.energy-E { background-color: #f9bc00; } /* Darker Orange */
.energy-E::after { border-left: 10px solid #f9bc00; }

.energy-F { background-color: #ea7500; } /* Red */
.energy-F::after { border-left: 10px solid #ea7500; }

.energy-G { background-color: #df0009; } /* Dark Red */
.energy-G::after { border-left: 10px solid #df0009; }

/* Quando o PJAX está a trocar de página, esconde o content para evitar FOUC */
html.pjax-loading #content,
html.pjax-loading #primary,
html.pjax-loading main#main,
html.pjax-loading .site-main,
html.pjax-loading .product {
  opacity: 0;
  transition: opacity .15s ease;
}

/* Quando termina a navegação, volta a mostrar */
html:not(.pjax-loading) #content,
html:not(.pjax-loading) #primary,
html:not(.pjax-loading) main#main,
html:not(.pjax-loading) .site-main,
html:not(.pjax-loading) .product {
  opacity: 1;
}

/* Lightbox simples da galeria de produto (fallback) */
#tnz-galeria-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

#tnz-galeria-lightbox.is-open {
  display: flex;
}

.tnz-galeria-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.tnz-galeria-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tnz-galeria-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tnz-galeria-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
/* Lightbox custom da galeria de produto */
#tnz-galeria-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

#tnz-galeria-lightbox.is-open {
  display: flex;
}

.tnz-galeria-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.tnz-galeria-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tnz-galeria-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Botões de navegação */
.tnz-galeria-lightbox-prev,
.tnz-galeria-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 32px;
  width: 40px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tnz-galeria-lightbox-prev {
  left: -50px;
}

.tnz-galeria-lightbox-next {
  right: -50px;
}

.tnz-galeria-lightbox-prev:hover,
.tnz-galeria-lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Botão fechar */
.tnz-galeria-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
