/* Shared B2C quantity/cart controls. Catalog and checkout use the same native inputs. */
.b2c-quantity-control.b2c-quantity-control {
  --quantity-size: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: var(--quantity-size);
  overflow: visible;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}
.b2c-quantity-control.b2c-quantity-control > button {
  flex: 0 0 var(--quantity-size);
  width: var(--quantity-size);
  min-width: var(--quantity-size);
  height: calc(var(--quantity-size) - 2px);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f6f7f9;
  color: #334155;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.b2c-quantity-control.b2c-quantity-control > input {
  flex: 1 1 52px;
  width: 52px;
  min-width: 36px;
  height: calc(var(--quantity-size) - 2px);
  min-height: 0;
  padding: 0 4px !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: #fff;
  color: #17212e;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: normal;
  text-align: center !important;
  appearance: textfield;
  -moz-appearance: textfield;
  box-shadow: none;
}
.b2c-quantity-control input::-webkit-inner-spin-button,
.b2c-quantity-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.b2c-quantity-control.b2c-quantity-control > button:hover:not(:disabled) { background: #f5e8f1; color: #a50d80; }
.b2c-quantity-control.b2c-quantity-control > button:disabled { opacity: .38; cursor: not-allowed; background: #f6f7f9; color: #64748b; }
.b2c-quantity-control:focus-within { border-color: #a50d80; }
.b2c-quantity-control > :focus-visible,
.b2c-cart-button:focus-visible,
#cart:focus-visible { outline: 2px solid #a50d80; outline-offset: 2px; }
#box-product .b2b-buy-box .b2c-quantity-control { width: 100%; }
#box-product .b2b-buy-box .b2c-quantity-control .qty-unit { font-size: 13px; padding: 0 8px; }
.product-card-actions .product-card-cart-row { gap: 8px; }
.product-card-actions .b2c-quantity-control { --quantity-size: 36px; }
.product-card-actions .b2c-cart-button { flex: 1 1 44px; width: auto; min-width: 44px; min-height: 36px; padding: 0 12px; font-size: 0; }
.product-card-actions .b2c-cart-button .fa { font-size: 17px; }
.product-card-actions .b2c-cart-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.b2c-cart-button.b2c-cart-button,
#box-product .b2b-buy-box .b2c-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #a50d80;
  border-radius: 8px;
  background: #a50d80;
  color: #fff;
  font-weight: 700;
  box-shadow: none;
  filter: none;
}
#box-product .b2b-buy-box .b2c-cart-button { min-height: 48px; }
.b2c-cart-button.b2c-cart-button:hover:not(:disabled),
#box-product .b2b-buy-box .b2c-cart-button:hover:not(:disabled) { border-color: #870d69; background: #870d69; color: #fff; filter: none; }
.b2c-cart-button.b2c-cart-button:disabled { opacity: .45; cursor: not-allowed; }
.b2c-cart-button[aria-busy="true"] { opacity: .65; cursor: wait; pointer-events: none; }
.b2c-cart-button[aria-busy="true"]::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: b2c-cart-spin .7s linear infinite; }
@keyframes b2c-cart-spin { to { transform: rotate(360deg); } }
.quick-buy-form .b2c-cart-button { min-height: 44px; }
#cart.industrial-cart .quantity:empty { display: none; }
#cart.industrial-cart { min-height: 44px; border-radius: 8px; }
#cart.industrial-cart:hover { color: #a50d80; }
#box-checkout-cart .b2c-checkout-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#box-checkout-cart .b2c-checkout-actions > button { min-width: 44px; min-height: 44px; border-radius: 8px; }
#box-checkout-cart .b2c-quantity-control { max-width: 100%; }
#box-checkout-cart .b2c-quantity-control .qty-unit { padding: 0 8px; color: #64748b; }
@media (pointer: coarse), (max-width: 991px) {
  .product-card-actions .b2c-quantity-control { --quantity-size: 44px; }
  .product-card-actions .b2c-cart-button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .b2c-cart-button[aria-busy="true"]::after { animation: none; }
}
