/* Cart controls only: card layout and existing normal colours are preserved. */
html body .vatandar-cart-control[data-cart-control] {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 100% !important; max-width: 100%; min-width: 0; box-sizing: border-box;
  gap: 8px !important; position: relative; flex-shrink: 0;
  transition: background .3s ease,color .3s ease;
}
html body .vatandar-cart-control .btn-label { white-space: nowrap; min-width: 0; line-height: inherit; }
html body .vatandar-cart-control .cart-icon-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
html body .vatandar-cart-control .cart-icon { width: 16px; height: 16px; flex: 0 0 auto; }
html body .vatandar-cart-control .cart-mini-counter {
  position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px;
  border-radius: 8px; background: #B82823; color: #fff; font-size: .65rem; font-weight: 700;
  display: none; align-items: center; justify-content: center; padding: 0 4px;
  line-height: 1; border: 1px solid rgba(255,255,255,.3); pointer-events: none;
}
html body .vatandar-cart-control .cart-mini-counter.is-visible { display: inline-flex; }
.cart-mini-counter.is-pulsing { animation: cartPulse .4s ease; }
@keyframes cartPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }
html body :is(.product-card,.related-product-card,.product-stage-grid,form.cart) .vatandar-cart-control[data-cart-control].is-success {
  background: linear-gradient(135deg,#4d692e,#2f421a) !important; color: #CBE6A3 !important;
}
html body :is(.product-card,.related-product-card,.product-stage-grid,form.cart) .vatandar-cart-control[data-cart-control].is-error {
  background: linear-gradient(135deg,#8B1A18,#5a0e0d) !important; color: #ffd0ce !important;
}
.vatandar-cart-control.is-success::before,.vatandar-cart-control.is-error::before { opacity: 0 !important; }
.vatandar-cart-control.added::after { content: none !important; }
a.added_to_cart.wc-forward { display: none !important; }
@media (prefers-reduced-motion: reduce) { .cart-mini-counter.is-pulsing { animation: none; } }

/* WooCommerce notice icons must not overlap RTL/LTR notice text or undo links. */
html body .woocommerce-message::before,
html body .woocommerce-message::after,
html body .woocommerce-info::before,
html body .woocommerce-info::after,
html body .woocommerce-error::before,
html body .woocommerce-error::after {
  content: none !important;
  display: none !important;
}
