/*
 * Cuidare — Mini-cart (Elementor Menu Cart + WooCommerce)
 * Sobrescreve estilos padrão para combinar com o design do projeto.
 */

/* ------------------------------------------------------------------ */
/* Container principal                                                   */
/* ------------------------------------------------------------------ */

.elementor-menu-cart__container,
.widget_shopping_cart {
  font-family: 'Poppins', sans-serif !important;
}

/* ------------------------------------------------------------------ */
/* Lista de produtos                                                     */
/* ------------------------------------------------------------------ */

.elementor-menu-cart__product {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

/* Thumbnail menor */
.elementor-menu-cart__product-image,
.elementor-menu-cart__product-image a,
.widget_shopping_cart .mini_cart_item .woocommerce-loop-product__link {
  flex-shrink: 0 !important;
  width: 56px !important;
  min-width: 56px !important;
}

.elementor-menu-cart__product-image img,
.widget_shopping_cart .mini_cart_item img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
}

/* Nome do produto — tira o rosa/magenta do tema */
.elementor-menu-cart__product-name,
.elementor-menu-cart__product-name a,
.widget_shopping_cart .mini_cart_item a:not(.remove) {
  color: #1f2937 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
  font-family: 'Poppins', sans-serif !important;
}

.elementor-menu-cart__product-name a:hover,
.widget_shopping_cart .mini_cart_item a:not(.remove):hover {
  color: #155dfc !important;
}

/* Preço por item */
.elementor-menu-cart__product-price,
.elementor-menu-cart__product-price .woocommerce-Price-amount,
.widget_shopping_cart .quantity {
  font-size: 12.5px !important;
  color: #6b7280 !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Botão remover item */
.remove_from_cart_button,
.elementor-menu-cart__product-remove a,
.widget_shopping_cart .mini_cart_item .remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: background .15s, color .15s !important;
  flex-shrink: 0 !important;
  position: static !important;
  float: none !important;
}

.remove_from_cart_button:hover,
.elementor-menu-cart__product-remove a:hover,
.widget_shopping_cart .mini_cart_item .remove:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}

/* ------------------------------------------------------------------ */
/* Subtotal + PIX                                                        */
/* ------------------------------------------------------------------ */

.elementor-menu-cart__subtotal,
.woocommerce-mini-cart__total {
  padding: 14px 0 10px !important;
  border-top: 1.5px solid #f3f4f6 !important;
  font-family: 'Poppins', sans-serif !important;
}

.elementor-menu-cart__subtotal .woocommerce-Price-amount,
.woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
}

/* Linha de total PIX injetada via JS */
.cc-mc-pix-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 7px 10px;
  background: #f0fdf4;
  border-radius: 7px;
  font-family: 'Poppins', sans-serif;
}

.cc-mc-pix-label {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
}

.cc-mc-pix-valor {
  font-size: 14px;
  font-weight: 800;
  color: #16a34a;
}

/* ------------------------------------------------------------------ */
/* Botões                                                                */
/* ------------------------------------------------------------------ */

.elementor-menu-cart__footer-buttons,
.woocommerce-mini-cart__buttons {
  display: flex !important;
  gap: 8px !important;
  padding-top: 14px !important;
}

/* "Ver carrinho" — cinza */
.elementor-button.elementor-button--view-cart,
.woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout) {
  flex: 1 !important;
  background: #6b7280 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 18px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .18s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}

.elementor-button.elementor-button--view-cart:hover,
.woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout):hover {
  background: #4b5563 !important;
  color: #fff !important;
}

/* "Ver carrinho" — cobertura ampla (todos os contextos WC/Elementor) */
/* Notice WC após add-to-cart, link .added_to_cart injetado pelo WC AJAX,
   variantes do widget sem classes Elementor, floating cart, etc.        */
.woocommerce-message a.button.wc-forward,
.woocommerce-message a.wc-forward,
a.added_to_cart.wc-forward,
a.added_to_cart.button,
.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.button:not(.checkout),
.elementor-menu-cart__footer-buttons a:not([class*="checkout"]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  background: #6b7280 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 18px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .18s !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

.woocommerce-message a.button.wc-forward:hover,
.woocommerce-message a.wc-forward:hover,
a.added_to_cart.wc-forward:hover,
a.added_to_cart.button:hover,
.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.button:not(.checkout):hover,
.elementor-menu-cart__footer-buttons a:not([class*="checkout"]):hover {
  background: #4b5563 !important;
  color: #fff !important;
}

/* "Finalização de compra" — azul */
.elementor-button.elementor-button--checkout,
.woocommerce-mini-cart__buttons .button.checkout {
  flex: 1 !important;
  background: #155dfc !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .18s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
}

.elementor-button.elementor-button--checkout:hover,
.woocommerce-mini-cart__buttons .button.checkout:hover {
  background: #1048d0 !important;
  color: #fff !important;
}

/* ------------------------------------------------------------------ */
/* WooCommerce Blocks Mini-Cart (drawer lateral — WC 8+)              */
/* ------------------------------------------------------------------ */

/* Container dos botões do drawer */
.wc-block-mini-cart__footer-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* "Ver carrinho" — botão cinza no drawer WC Blocks */
.wc-block-mini-cart__footer-cart,
a.wc-block-mini-cart__footer-cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #6b7280 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .18s !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

.wc-block-mini-cart__footer-cart:hover {
  background: #4b5563 !important;
  color: #fff !important;
}

/* "Finalizar compra" — botão azul no drawer WC Blocks */
.wc-block-mini-cart__footer-checkout,
a.wc-block-mini-cart__footer-checkout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #155dfc !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .18s !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

.wc-block-mini-cart__footer-checkout:hover {
  background: #1048d0 !important;
  color: #fff !important;
}
