/* GadgetTechLab v5.0 — exact, scoped WooCommerce commerce controls. */
body.single-product .g4-woo-single div.product form.cart:not(.variations_form){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:12px!important;margin:20px 0 23px!important;padding:15px!important;border:1px solid #e4eaf2!important;border-radius:12px!important;background:#f8fafc!important;box-shadow:none!important;max-width:100%!important;box-sizing:border-box!important}
/* Variable product controls stay in their Woo variation layout. */
body.single-product .g4-woo-single div.product form.variations_form.cart{display:block!important;padding:14px!important;border:1px solid #e4eaf2!important;border-radius:12px!important;background:#f8fafc!important;max-width:100%!important}
body.single-product .g4-woo-single div.product .woocommerce-variation-add-to-cart{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:center!important}
body.single-product .g4-woo-single div.product form.cart .quantity.gtl-quantity-stepper{display:flex!important;flex:0 0 168px!important;align-items:stretch!important;width:168px!important;min-width:0!important;height:50px!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #d6dfeb!important;border-radius:9px!important;background:#fff!important;box-sizing:border-box!important;float:none!important}
body.single-product .g4-woo-single div.product form.cart .quantity.gtl-quantity-stepper input.qty{display:block!important;flex:1 1 58px!important;width:58px!important;min-width:0!important;max-width:none!important;height:48px!important;min-height:48px!important;padding:4px 1px!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;color:#172a48!important;box-shadow:none!important;font-size:14px!important;font-weight:600!important;text-align:center!important;appearance:textfield!important;-moz-appearance:textfield!important}
body.single-product .g4-woo-single div.product form.cart .quantity.gtl-quantity-stepper input.qty::-webkit-inner-spin-button,
body.single-product .g4-woo-single div.product form.cart .quantity.gtl-quantity-stepper input.qty::-webkit-outer-spin-button{appearance:none!important;-webkit-appearance:none!important;margin:0!important}
body.single-product .g4-woo-single div.product form.cart .gtl-qty-adjust{display:flex!important;flex:0 0 46px!important;align-items:center;justify-content:center;height:48px!important;min-height:48px!important;width:46px!important;min-width:46px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;color:#193553!important;box-shadow:none!important;cursor:pointer;font-size:20px!important;font-weight:500!important;line-height:1!important;transition:background .15s ease}
body.single-product .g4-woo-single div.product form.cart .gtl-qty-minus{border-right:1px solid #e9edf3!important}
body.single-product .g4-woo-single div.product form.cart .gtl-qty-plus{border-left:1px solid #e9edf3!important}
body.single-product .g4-woo-single div.product form.cart .gtl-qty-adjust:hover{background:#eef3f9!important}
body.single-product .g4-woo-single div.product form.cart .single_add_to_cart_button,
body.single-product .g4-woo-single div.product form.cart a.single_add_to_cart_button{display:inline-flex!important;flex:0 0 168px!important;align-items:center!important;justify-content:center!important;width:168px!important;min-width:0!important;height:50px!important;min-height:50px!important;max-height:50px!important;padding:0 16px!important;margin:0!important;background:#ff9900!important;border:1px solid #ed9100!important;border-radius:9px!important;box-shadow:none!important;color:#172849!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:0!important;text-align:center!important;white-space:nowrap!important;text-decoration:none!important;transition:background .15s ease,box-shadow .15s ease!important;box-sizing:border-box!important}
body.single-product .g4-woo-single div.product form.cart .single_add_to_cart_button:hover,
body.single-product .g4-woo-single div.product form.cart a.single_add_to_cart_button:hover{background:#eba000!important;box-shadow:0 4px 12px rgba(235,160,0,.15)!important;transform:none!important}
body.single-product .g4-woo-single div.product form.cart .single_add_to_cart_button:focus-visible,
body.single-product .g4-woo-single div.product form.cart .gtl-qty-adjust:focus-visible,
body.single-product .g4-woo-single div.product form.cart .quantity input.qty:focus-visible{outline:2px solid #0e3870!important;outline-offset:2px!important}
/* Woo theme base templates may not include a div.woocommerce wrapper. The
   selectors above deliberately target the actual .g4-woo-single div.product. */
body.single-product .g4-woo-single div.product form.cart .quantity:not(.gtl-quantity-stepper){display:flex!important;flex:0 0 168px!important;width:168px!important;margin:0!important;float:none!important}
body.single-product .g4-woo-single div.product form.cart .quantity:not(.gtl-quantity-stepper) input.qty{width:168px!important;height:50px!important;min-height:50px!important;max-width:168px!important;border:1px solid #d6dfeb!important;border-radius:9px!important;background:#fff!important;font-size:14px!important}
/* Related products, archives, homepage product loops all use WooCommerce's
   label filters. Style Buy Now consistently but do not alter their URL behavior. */
.g4-woo-layout .woocommerce ul.products li.product a.add_to_cart_button,
.g4-woo-layout .woocommerce ul.products li.product a.product_type_simple,
.g4-woo-layout .woocommerce ul.products li.product a.product_type_external,
.gtls-woo-page .woocommerce ul.products li.product a.add_to_cart_button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:10px 18px!important;background:#ff9900!important;border-radius:8px!important;color:#172849!important;font-size:12px!important;font-weight:600!important;text-align:center!important;box-shadow:none!important}
@media(max-width:700px){
 body.single-product .g4-woo-single div.product form.cart:not(.variations_form){padding:12px!important;gap:10px!important}
 body.single-product .g4-woo-single div.product form.cart .quantity.gtl-quantity-stepper,
 body.single-product .g4-woo-single div.product form.cart .quantity:not(.gtl-quantity-stepper),
 body.single-product .g4-woo-single div.product form.cart .single_add_to_cart_button,
 body.single-product .g4-woo-single div.product form.cart a.single_add_to_cart_button{flex:1 1 calc(50% - 5px)!important;width:calc(50% - 5px)!important;min-width:0!important;max-width:none!important}
 body.single-product .g4-woo-single div.product form.cart .quantity.gtl-quantity-stepper input.qty{width:10px!important;flex:1 1 10px!important}
 body.single-product .g4-woo-single div.product form.cart .quantity:not(.gtl-quantity-stepper) input.qty{width:100%!important;max-width:100%!important}
}
@media(max-width:370px){body.single-product .g4-woo-single div.product form.cart .gtl-qty-adjust{flex-basis:36px!important;width:36px!important;min-width:36px!important}}
@media(prefers-reduced-motion:reduce){body.single-product .g4-woo-single div.product form.cart *{transition:none!important}}
/* Very narrow devices: stacked, full-size controls remain readable. */
@media(max-width:370px){
 body.single-product .g4-woo-single div.product form.cart .quantity.gtl-quantity-stepper,
 body.single-product .g4-woo-single div.product form.cart .quantity:not(.gtl-quantity-stepper),
 body.single-product .g4-woo-single div.product form.cart .single_add_to_cart_button,
 body.single-product .g4-woo-single div.product form.cart a.single_add_to_cart_button{flex:1 1 100%!important;width:100%!important;min-width:0!important}
}
