/* R19 — correção exclusiva das vitrines públicas de produtos.
   Mantém o visual aprovado e limita a grade a 5 produtos no desktop e 2 no mobile. */





/* Cards compactos: nenhuma vitrine cresce para ocupar a linha inteira. */
:where(.product-card,.anseio-section-card,.anseio2619-size-card){
  border-radius:6px!important;
  overflow:hidden!important;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-image{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:3/4!important;
  overflow:hidden!important;
  border-radius:6px 6px 0 0!important;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-image img,
:where(.product-card,.anseio-section-card,.anseio2619-size-card) .anseio-card-gallery,
:where(.product-card,.anseio-section-card,.anseio2619-size-card) .anseio-card-gallery-track,
:where(.product-card,.anseio-section-card,.anseio2619-size-card) .anseio-card-gallery-slide{
  width:100%!important;
  height:100%!important;
  max-height:none!important;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-image img{
  object-fit:cover!important;
  object-position:center!important;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-info{
  padding:14px 13px 13px!important;
  min-height:0!important;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-info h3{
  margin:6px 0!important;
  font-size:.96rem!important;
  line-height:1.3!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden!important;
  min-height:2.5em;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-category{
  font-size:.68rem!important;
  line-height:1.25!important;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) .price{
  margin:6px 0 10px!important;
  font-size:.98rem!important;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 40px!important;
  gap:7px!important;
  align-items:center!important;
  width:100%!important;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) :where(.btn-buy,[data-open-product]){
  width:100%!important;
  min-width:0!important;
  min-height:40px!important;
  height:auto!important;
  padding:9px 8px!important;
  border-radius:6px!important;
  font-size:.75rem!important;
  line-height:1.2!important;
  white-space:normal!important;
}

:where(.product-card,.anseio-section-card,.anseio2619-size-card) :where(.btn-fav,.fav-button){
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  border-radius:6px!important;
}

/* O detalhe de produto é controlado exclusivamente por anseio-product-detail.css. */

@media (max-width:1199px){
  
}

@media (max-width:899px){
  
}

@media (max-width:640px){
  

  :where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-info{
    padding:10px 9px 10px!important;
  }

  :where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-info h3{
    font-size:.84rem!important;
    min-height:2.35em;
  }

  :where(.product-card,.anseio-section-card,.anseio2619-size-card) .price{
    font-size:.88rem!important;
  }

  :where(.product-card,.anseio-section-card,.anseio2619-size-card) .product-actions{
    grid-template-columns:minmax(0,1fr) 36px!important;
    gap:5px!important;
  }

  :where(.product-card,.anseio-section-card,.anseio2619-size-card) :where(.btn-buy,[data-open-product]){
    min-height:36px!important;
    padding:7px 5px!important;
    font-size:.66rem!important;
  }

  :where(.product-card,.anseio-section-card,.anseio2619-size-card) :where(.btn-fav,.fav-button){
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    min-height:36px!important;
  }
}

/* Especificidade final para neutralizar botões em formato pílula dos estilos antigos. */
.product-card .product-actions .btn-buy,
.product-card .product-info > .btn-buy,
.anseio-section-card .product-actions .btn-buy,
.anseio2619-size-card .product-actions .btn-buy,
.product-card .product-actions .btn-fav,
.anseio-section-card .product-actions .btn-fav,
.product-card .fav-button{
  border-radius:6px!important;
}
