/* Redefine o container */
.woocommerce-product-gallery .flexy-item figure[data-src] {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 100% !important;
    height: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
}

/* Força a imagem com seletores muito específicos */
.woocommerce-product-gallery .flexy-item figure[data-src] > img[width][height][itemprop="image"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    aspect-ratio: unset !important;
    margin: auto !important;
}
p.woocommerce-mini-cart__buttons.buttons {
    display: none;
}

a.cc_saved_items_list {
    display: none !important;
}



.cc-compass {
    display: none;
}

a.cc_cart_items_list {
    display: none !important;
}

/* === Botão normal verde (produtos em estoque) === */
.woocommerce a.button.add_to_cart_button,
.woocommerce button.button.add_to_cart_button,
.button.add_to_cart_button,
.woocommerce ul.products li.product .button,
.woocommerce .related .product .button,
.woocommerce .upsells .product .button {
  background-color: #28a745 !important;
  color: #fff !important;
  border: 1px solid #28a745 !important;
  opacity: 1 !important;
  transition: all .12s ease !important;
}

/* Hover estoque */
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce button.button.add_to_cart_button:hover,
.button.add_to_cart_button:hover {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
  transform: translateY(-1px);
}

/* === Produtos ESGOTADOS — estilo depreciado, mas clicável === */

/* Imagem levemente desbotada */
.woocommerce ul.products li.product.outofstock img {
  opacity: 0.6 !important;
  transition: opacity .2s ease !important;
}

/* Botão esgotado estilo cinza fraco, mas clicável */
.woocommerce ul.products li.product.outofstock .button,
.woocommerce ul.products li.product.outofstock a.button {
  background-color: #c0c0c0 !important; /* cinza mais claro */
  color: #444444 !important;
  border: 1px solid #b0b0b0 !important;
  opacity: 0.7 !important;
  pointer-events: auto !important; /* mantém clicável */
  cursor: pointer !important;
}

/* Hover no botão esgotado — só aumenta levemente contraste */
.woocommerce ul.products li.product.outofstock .button:hover,
.woocommerce ul.products li.product.outofstock a.button:hover {
  background-color: #b0b0b0 !important;
  border-color: #9e9e9e !important;
  color: #333333 !important;
}

/* === Botão “Ver carrinho” após adicionar ao carrinho === */

/* Força texto branco */
a.added_to_cart.wc-forward {
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* Fundo do botão “Ver carrinho” — se quiser manter verde */
a.added_to_cart.wc-forward:hover {
  color: #ffffff !important;
  opacity: 0.85 !important;
}


