/* v11.15.78: predictable mobile-safe quantity controls on ALL product cards.
   Last-included override for legacy quantity components. Does not alter cart logic. */
.woocommerce form.ayazma-card-buy,
form.ayazma-card-buy {min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;}
.woocommerce form.ayazma-card-buy .ayazma-card-stepper,
form.ayazma-card-buy .ayazma-card-stepper,
body.woocommerce-cart .ayazma-empty-cart-products form.ayazma-card-buy .ayazma-card-stepper {
 width:100%!important;max-width:100%!important;min-width:0!important;
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:clamp(28px,23%,36px) minmax(0,1fr) 28px clamp(28px,23%,36px)!important;
 align-items:center!important;justify-content:stretch!important;
 column-gap:3px!important;padding:3px!important;
 overflow:hidden!important;min-height:43px!important;
 border:1px solid #c9dec9!important;border-radius:11px!important;background:#f7fbf6!important;
}
.woocommerce form.ayazma-card-buy .ayazma-card-stepper>button[data-dir],
form.ayazma-card-buy .ayazma-card-stepper>button[data-dir],
body.woocommerce-cart .ayazma-empty-cart-products form.ayazma-card-buy .ayazma-card-stepper>button[data-dir] {
 display:flex!important;position:static!important;float:none!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:35px!important;min-height:35px!important;flex:none!important;
 box-sizing:border-box!important;padding:0!important;margin:0!important;
 justify-content:center!important;align-items:center!important;
 background:#e6f3e6!important;border:0!important;border-radius:8px!important;
 font-size:20px!important;line-height:1!important;color:#25783a!important;
}
.woocommerce form.ayazma-card-buy .ayazma-card-stepper>button[data-dir="-1"],
form.ayazma-card-buy .ayazma-card-stepper>button[data-dir="-1"] {grid-column:1!important;grid-row:1!important;order:unset!important;}
.woocommerce form.ayazma-card-buy .ayazma-card-stepper>button[data-dir="1"],
form.ayazma-card-buy .ayazma-card-stepper>button[data-dir="1"] {grid-column:4!important;grid-row:1!important;order:unset!important;}
.woocommerce form.ayazma-card-buy .ayazma-card-stepper>input.ayazma-typed-quantity,
form.ayazma-card-buy .ayazma-card-stepper>input.ayazma-typed-quantity,
body.woocommerce-cart .ayazma-empty-cart-products form.ayazma-card-buy .ayazma-card-stepper>input.ayazma-typed-quantity {
 grid-column:2!important;grid-row:1!important;display:block!important;
 min-width:0!important;max-width:100%!important;width:100%!important;
 height:34px!important;min-height:34px!important;box-sizing:border-box!important;
 position:static!important;visibility:visible!important;opacity:1!important;
 flex:none!important;margin:0!important;padding:2px 2px!important;
 border:1px dashed #9bbda2!important;border-radius:7px!important;
 background:#fff!important;background-image:none!important;
 font-family:inherit!important;font-size:13px!important;font-weight:800!important;
 text-align:center!important;color:#195b2e!important;-webkit-text-fill-color:#195b2e!important;
 line-height:1.2!important;pointer-events:auto!important;clip-path:none!important;
}
.woocommerce form.ayazma-card-buy .ayazma-card-stepper::after,
form.ayazma-card-buy .ayazma-card-stepper::after,
body.woocommerce-cart .ayazma-empty-cart-products form.ayazma-card-buy .ayazma-card-stepper::after {
 content:'adet'!important;grid-column:3!important;grid-row:1!important;width:28px!important;min-width:28px!important;max-width:28px!important;text-align:center!important;box-sizing:border-box!important;
 position:static!important;display:block!important;order:unset!important;
 flex:none!important;margin:0!important;padding:0!important;
 font-size:10px!important;font-weight:800!important;white-space:nowrap!important;
 line-height:1!important;color:#25783a!important;
}
.woocommerce form.ayazma-card-buy .ayazma-card-stepper[data-weighted="1"]::after,
form.ayazma-card-buy .ayazma-card-stepper[data-weighted="1"]::after,
body.woocommerce-cart .ayazma-empty-cart-products form.ayazma-card-buy .ayazma-card-stepper[data-weighted="1"]::after {content:'kg'!important;}
/* Keep WooCommerce's numerical source hidden; only editable consumer amount is visible. */
.woocommerce form.ayazma-card-buy .ayazma-card-stepper>input.qty[name="quantity"],
form.ayazma-card-buy .ayazma-card-stepper>input.qty[name="quantity"] {
 position:absolute!important;width:1px!important;min-width:0!important;height:1px!important;
 opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important;
 margin:0!important;padding:0!important;border:0!important;
}
.woocommerce form.ayazma-card-buy .ayazma-card-stepper>.ayazma-unit-display,
form.ayazma-card-buy .ayazma-card-stepper>.ayazma-unit-display {display:none!important;}
@media(max-width:600px){
 .woocommerce form.ayazma-card-buy .ayazma-card-stepper,
 form.ayazma-card-buy .ayazma-card-stepper,
 body.woocommerce-cart .ayazma-empty-cart-products form.ayazma-card-buy .ayazma-card-stepper {
  grid-template-columns:30px minmax(0,1fr) 26px 30px!important;
  column-gap:2px!important;padding:3px!important;min-height:43px!important;
 }
 .woocommerce form.ayazma-card-buy .ayazma-card-stepper>button[data-dir],
 form.ayazma-card-buy .ayazma-card-stepper>button[data-dir] {height:35px!important;min-height:35px!important;font-size:19px!important;}
 .woocommerce form.ayazma-card-buy .ayazma-card-stepper>input.ayazma-typed-quantity,
 form.ayazma-card-buy .ayazma-card-stepper>input.ayazma-typed-quantity {font-size:12px!important;padding:2px 0!important;}
 .woocommerce form.ayazma-card-buy .ayazma-card-stepper::after,
 form.ayazma-card-buy .ayazma-card-stepper::after {font-size:9px!important;width:26px!important;min-width:26px!important;max-width:26px!important;}
 /* Detail and cart aren't narrow product cards: allow them to shrink without horizontal scroll. */
 .woocommerce .ayazma-cart-kg-stepper,
 .ayazma-detail-purchase form.cart .quantity.ayazma-typing-active,
 .wc-block-components-quantity-selector.ayazma-typing-active {
  box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
 }
 .woocommerce .ayazma-cart-kg-stepper>.ayazma-typed-quantity,
 .ayazma-detail-purchase form.cart .quantity.ayazma-typing-active>.ayazma-typed-quantity,
 .wc-block-components-quantity-selector.ayazma-typing-active>.ayazma-typed-quantity {
  flex:1 1 0!important;min-width:22px!important;width:100%!important;max-width:100%!important;
  margin:0!important;padding:3px 2px!important;background-image:none!important;
  font-family:inherit!important;font-size:13px!important;
 }
}
@media(max-width:365px){
 .woocommerce form.ayazma-card-buy .ayazma-card-stepper,
 form.ayazma-card-buy .ayazma-card-stepper,
 body.woocommerce-cart .ayazma-empty-cart-products form.ayazma-card-buy .ayazma-card-stepper {
  grid-template-columns:27px minmax(0,1fr) 24px 27px!important;column-gap:1px!important;padding:2px!important;
 }
 .woocommerce form.ayazma-card-buy .ayazma-card-stepper::after,
 form.ayazma-card-buy .ayazma-card-stepper::after {font-size:8px!important;width:24px!important;min-width:24px!important;max-width:24px!important;}
}

/* v11.15.79: identical, stable editable number widths for kg and adet.
   A reserved unit column prevents reflow when users type or switch products. */
form.ayazma-card-buy .ayazma-card-stepper>input.ayazma-typed-quantity.ayazma-typed-kg,
form.ayazma-card-buy .ayazma-card-stepper>input.ayazma-typed-quantity.ayazma-typed-adet,
body.woocommerce-cart .ayazma-empty-cart-products form.ayazma-card-buy .ayazma-card-stepper>input.ayazma-typed-quantity {
  width:100%!important;min-width:0!important;max-width:100%!important;
  flex:none!important;grid-column:2!important;grid-row:1!important;
  margin:0!important;padding:2px 1px!important;box-sizing:border-box!important;
  font-variant-numeric:tabular-nums!important;
}
form.ayazma-card-buy .ayazma-card-stepper::after,
body.woocommerce-cart .ayazma-empty-cart-products form.ayazma-card-buy .ayazma-card-stepper::after {
  grid-column:3!important;grid-row:1!important;
  text-align:center!important;justify-self:stretch!important;
  margin:0!important;
}
