/* CV catalog compact v1: colors remain the existing Chave Vertical green. */
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .woocommerce-loop-product__title{
  font-variant:small-caps!important;
  text-transform:none!important;
  letter-spacing:.012em!important;
  line-height:1.4!important;
  min-height:2.8em!important;
  height:2.8em!important;
  max-height:2.8em!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  position:relative!important;
  margin-bottom:5px!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .woocommerce-loop-product__title:hover,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .woocommerce-loop-product__title:focus-visible{
  height:auto!important;
  max-height:none!important;
  min-height:2.8em!important;
  display:block!important;
  -webkit-line-clamp:unset!important;
  overflow:visible!important;
  z-index:10!important;
  background:#fff!important;
  box-shadow:0 4px 14px rgba(20,34,45,.08)!important;
}
/* Keep title hover from permanently stretching the neighboring cards. */
@media(hover:hover){
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .woocommerce-loop-product__title:hover{
    position:relative!important;
  }
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions:has(.added_to_cart){
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:7px!important;
  width:100%!important;
  height:auto!important;
  min-height:40px!important;
  padding:0 11px 11px!important;
  margin:6px 0 0!important;
  pointer-events:auto!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions>.cvl-card-eye-button{
  grid-column:1!important;
  grid-row:1!important;
  justify-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:38px!important;
  min-height:38px!important;
  border:1px solid #cbd3d9!important;
  border-radius:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  background:#fff!important;
  color:#344149!important;
  font-size:12px!important;
  font-weight:700!important;
  text-decoration:none!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-card-eye-icon{
  width:17px!important;
  height:17px!important;
  flex:none!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions>.cvl-catalog-cart{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  width:100%!important;
  position:relative!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-add,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-quantity{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  border:1px solid var(--cvl-commercial-green,#009a56)!important;
  border-radius:22px!important;
  background:var(--cvl-commercial-green,#009a56)!important;
  color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:none!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-add[hidden],
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-quantity[hidden],
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-error[hidden]{display:none!important}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-cart-icon{
  width:22px!important;
  height:22px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-step{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
  display:grid!important;
  flex:1 1 0!important;
  min-width:0!important;
  height:100%!important;
  padding:0!important;
  place-items:center!important;
  font-size:23px!important;
  font-weight:500!important;
  cursor:pointer!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-number{
  flex:0 0 29px!important;
  max-width:45%!important;
  display:grid!important;
  place-items:center!important;
  min-height:28px!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#14221b!important;
  font-size:12px!important;
  font-weight:800!important;
  font-variant-numeric:tabular-nums!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-step:disabled,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-cart.is-busy{opacity:1!important}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-error{
  position:absolute!important;
  z-index:15!important;
  bottom:100%!important;
  right:0!important;
  width:max-content!important;
  max-width:220px!important;
  padding:7px 10px!important;
  border:1px solid #e8c2c2!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#a32929!important;
  font-size:11px!important;
  line-height:1.4!important;
  box-shadow:0 4px 14px rgba(0,0,0,.12)!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions>.button.cvl-view-product{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:38px!important;
  min-height:38px!important;
  border-radius:22px!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions:has(.cvl-catalog-cart)>.added_to_cart{
  display:none!important;
}
/* Supported wishlist plugins keep their own click and saved state. */
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-card-wishlist{
  top:9px!important;
  right:9px!important;
  width:34px!important;
  height:34px!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-card-wishlist :is(a,button){
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:var(--cvl-ref-red,#d71920)!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-card-wishlist :is(a,button)::before{
  color:inherit!important;
  font-size:27px!important;
}
@media(max-width:767.98px){
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions,
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions:has(.added_to_cart){
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:5px!important;
    padding:0 7px 9px!important;
  }
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions>.cvl-card-eye-button,
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-add,
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-quantity{
    height:34px!important;
    min-height:34px!important;
    font-size:11px!important;
  }
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-number{
    flex-basis:23px!important;
    font-size:11px!important;
  }
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-catalog-step{
    font-size:18px!important;
  }
}


/* Botao de compra como "Ver": metade da linha, formato pilula e icone so de carrinho.
   Regras mais especificas que v13.css para neutralizar estilos antigos da .button. */
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-cart > .cvl-catalog-quantity {
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid var(--cvl-commercial-green,#009a56)!important;
  border-radius:22px!important;
  background:var(--cvl-commercial-green,#009a56)!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
  opacity:1!important;
  text-decoration:none!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  font-size:0!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add[hidden]{
  display:none!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-cart > .cvl-catalog-quantity[hidden]{
  display:none!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add .cvl-catalog-cart-icon{
  display:block!important;
  width:21px!important;
  height:21px!important;
  flex:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  fill:none!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-card-eye-button,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-cart{
  align-self:stretch!important;
  max-width:none!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add:focus-visible,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-cart .cvl-catalog-step:focus-visible{
  outline:2px solid #263c30!important;
  outline-offset:2px!important;
}
@media(max-width:767.98px){
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
    .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add,
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
    .cvl-product-actions > .cvl-catalog-cart > .cvl-catalog-quantity{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    border-radius:20px!important;
  }
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
    .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add .cvl-catalog-cart-icon{
    width:19px!important;
    height:19px!important;
  }
}

/* 2026-10-11: cesto mais pequeno, botoes ligeiramente estreitos e espaco apos preco.
   Reutiliza integralmente as cores comerciais que ja estao definidas no tema. */
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions:has(.added_to_cart){
  margin:22px 0 0!important;
  padding:0 25px 12px!important;
  gap:12px!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .cvl-card-eye-button,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .button.cvl-view-product,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add,
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .cvl-catalog-cart > .cvl-catalog-quantity{
  height:35px!important;
  min-height:35px!important;
  max-height:35px!important;
  border-radius:20px!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add .cvl-catalog-cart-icon{
  width:19px!important;
  height:19px!important;
  stroke-width:1.8!important;
}
@media(max-width:767.98px){
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions,
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions:has(.added_to_cart){
    margin:17px 0 0!important;
    padding:0 14px 10px!important;
    gap:6px!important;
  }
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .cvl-card-eye-button,
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .button.cvl-view-product,
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add,
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .cvl-catalog-cart > .cvl-catalog-quantity{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
  }
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions > .cvl-catalog-cart > a.button.cvl-catalog-add .cvl-catalog-cart-icon{
    width:17px!important;
    height:17px!important;
  }
}


/* Mobile muito estreito: nao comprimir o rotulo CONSULTAR. */
@media(max-width:420px){
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions,
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category) .cvl-product-actions:has(.added_to_cart){
    padding-inline:9px!important;
  }
}

/* 2026-10-11 — Produtos sem stock e com backorders desativados:
   CONSULTAR tem a mesma pilula neutra do botao Ver; nao e uma compra. */
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > button.button.cvl-availability-request-button.cvl-catalog-consult-button{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:35px!important;
  min-height:35px!important;
  max-height:35px!important;
  margin:0!important;
  padding:0 5px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  border:1px solid #cbd3d9!important;
  border-radius:20px!important;
  background:#fff!important;
  color:#344149!important;
  box-shadow:none!important;
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  line-height:1!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:none!important;
  cursor:pointer!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > button.button.cvl-availability-request-button.cvl-catalog-consult-button:is(:hover,:focus-visible){
  border-color:#98a4ab!important;
  background:#f6f8f9!important;
  color:#344149!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > button.button.cvl-availability-request-button.cvl-catalog-consult-button:focus-visible{
  outline:2px solid #344149!important;
  outline-offset:2px!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-consult-button .cvl-catalog-consult-icon{
  display:block!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  flex:0 0 14px!important;
  fill:none!important;
  stroke:currentColor!important;
  color:inherit!important;
}
:is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
  .cvl-product-actions > .cvl-catalog-consult-button .cvl-catalog-consult-label{
  display:inline-block!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  line-height:inherit!important;
  letter-spacing:inherit!important;
}
@media(max-width:767.98px){
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
    .cvl-product-actions > button.button.cvl-availability-request-button.cvl-catalog-consult-button{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    padding:0 3px!important;
    gap:3px!important;
    font-size:9px!important;
  }
  :is(.woocommerce,.cvl-v4-products) ul.products li.product:not(.product-category)
    .cvl-product-actions > .cvl-catalog-consult-button .cvl-catalog-consult-icon{
    width:12px!important;
    height:12px!important;
    min-width:12px!important;
    flex-basis:12px!important;
  }
}
