/* BANUK Product Stability v2 — staging-only scoped improvements */
body.single-product .bn-atp-main{max-width:1300px!important;width:min(calc(100% - 40px),1300px)!important;margin-inline:auto!important;overflow:visible!important}
body.single-product .bn-atp-head{grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr)!important;gap:clamp(22px,3.8vw,62px)!important;min-width:0!important}
body.single-product .bn-atp-summary,body.single-product .bn-atp-gallery{min-width:0!important;max-width:100%!important}
body.single-product .bn-atp-summary .product_title{margin-bottom:12px!important;overflow-wrap:break-word!important}
body.single-product .bn-atp-summary>.price{direction:rtl!important;unicode-bidi:plaintext;white-space:normal!important;line-height:1.65!important}
body.single-product .bn-atp-controls form.cart:not(.variations_form),
body.single-product .bn-atp-controls .woocommerce-variation-add-to-cart{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:stretch!important;align-items:stretch!important;gap:12px!important;direction:rtl!important;min-width:0!important;width:100%!important}
body.single-product .bn-atp-controls form.cart .quantity{flex:0 0 116px!important;min-width:116px!important;max-width:116px!important;width:116px!important;align-self:stretch!important;min-height:54px!important;margin:0!important}
body.single-product .bn-atp-controls form.cart .single_add_to_cart_button{flex:1 1 0!important;min-width:0!important;width:auto!important;min-height:54px!important;max-width:100%!important;margin:0!important;padding:11px 10px!important;font-size:13px!important;line-height:1.6!important;white-space:normal!important;overflow-wrap:break-word!important;align-self:stretch!important}
body.single-product .bn-atp-controls form.cart .quantity .bn-qty-step{flex:0 0 34px!important;padding:0!important}
body.single-product .bn-atp-controls .quantity input.bn-polish-visible-qty{font-variant-numeric:normal!important;letter-spacing:0!important}
body.single-product .bn-atp-summary .stock{max-width:max-content!important;margin:10px 0!important;line-height:1.8!important;align-self:flex-start!important}
body.single-product .bn-atp-summary .bn-variant-identity{font-size:12px;color:#514451;border-top:1px solid #e8e1e5;padding:10px 0;margin:7px 0;line-height:2;display:flex;flex-wrap:wrap;gap:6px 15px;align-items:center}
body.single-product .bn-atp-summary .bn-variant-identity[hidden]{display:none!important}
body.single-product .bn-variant-identity .bn-variant-id{font-size:11px;opacity:.8}
body.single-product .bn-variant-identity .bn-variant-link{color:#3e2346;text-decoration:underline;text-underline-offset:3px;font-weight:600}
body.single-product .bn-atp-gallery.bn-color-active{display:block!important;min-width:0!important}
body.single-product .bn-atp-gallery.bn-color-active>.bn-atp-rail,
body.single-product .bn-atp-gallery.bn-color-active>.bn-atp-hero-wrap{display:none!important}
body.single-product .bn-color-gallery{display:flex;flex-direction:column;gap:11px;min-width:0;width:100%}
body.single-product .bn-color-gallery[hidden]{display:none!important}
body.single-product .bn-color-main{display:block;width:100%;aspect-ratio:4/5;object-fit:contain;background:#f7f3ee;border:1px solid #eee6e3;cursor:zoom-in}
body.single-product .bn-color-gallery .bn-color-photos{display:flex;gap:8px;overflow-x:auto;padding:4px 0;scroll-snap-type:x proximity}
body.single-product .bn-color-gallery .bn-color-photo{width:68px;height:84px;flex:0 0 68px;display:block;padding:0;border:1px solid #e0d6dd;background:#f7f3ee;cursor:pointer}
body.single-product .bn-color-gallery .bn-color-photo[aria-pressed=true]{border:2px solid #3e2346}
body.single-product .bn-color-gallery .bn-color-photo img{width:100%;height:100%;object-fit:contain}
body.single-product .bn-color-gallery .bn-color-missing{aspect-ratio:4/5;display:grid;place-content:center;gap:10px;text-align:center;padding:24px;background:#f7f3ee;color:#5e5260;border:1px solid #e8dee4;line-height:1.95;font-size:14px}
body.single-product .bn-color-gallery .bn-color-missing small{font-size:11px;color:#7b7378}
body.single-product .bn-color-main:focus-visible,body.single-product .bn-color-gallery button:focus-visible{outline:2px solid #3e2346;outline-offset:2px}
body.single-product .bn-atp-detail-section .woocommerce-Tabs-panel{width:100%!important;min-width:0!important;clear:both!important}
body.single-product .bn-atp-detail-section .woocommerce-Tabs-panel p{max-width:100ch!important}
body.single-product .bn-atp-related-section .related ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.single-product .bn-atp-related-section li.product{min-width:0!important}
@media(max-width:1000px){
 body.single-product .bn-atp-head{display:flex!important;flex-direction:column!important;gap:24px!important}
 body.single-product .bn-atp-gallery{order:-1!important;width:100%!important}
 body.single-product .bn-atp-summary{order:1!important;width:100%!important;max-width:720px!important;margin-inline:auto!important}
 body.single-product .bn-atp-gallery:not(.bn-color-active){display:flex!important;flex-direction:column-reverse!important}
 body.single-product .bn-atp-rail{flex-direction:row!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;gap:8px!important}
 body.single-product .bn-atp-thumb{width:68px!important;min-width:68px!important;min-height:84px!important}
}
@media(max-width:720px){
 body.single-product .bn-atp-main{width:calc(100% - 26px)!important;padding-bottom:55px!important}
 body.single-product .bn-atp-summary .product_title{font-size:clamp(22px,6vw,30px)!important}
 body.single-product .bn-atp-benefits{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.single-product .bn-atp-related-section .related ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body.single-product .bn-atp-detail-section{margin-top:40px!important}
}
@media(max-width:380px){
 body.single-product .bn-atp-controls form.cart .quantity{flex-basis:100px!important;min-width:100px!important;width:100px!important;max-width:100px!important}
 body.single-product .bn-atp-controls form.cart .single_add_to_cart_button{font-size:12px!important;padding:8px!important}
 body.single-product .bn-atp-controls form.cart .quantity .bn-qty-step{flex-basis:30px!important}
}


/* Chromium QA 2026-10-31: defeat higher-specificity legacy Woo simple-cart grid.
   The variable-cart flex row was already correct; keep it untouched. */
body.single-product .woocommerce div.product.bn-atp-product .bn-atp-controls form.cart:not(.variations_form) {
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  direction:rtl!important;
  justify-content:stretch!important;
  align-items:stretch!important;
  grid-template-columns:none!important;
  gap:12px!important;
  padding:0!important;
  margin:0!important;
}
body.single-product .woocommerce div.product.bn-atp-product .bn-atp-controls form.cart:not(.variations_form) > .quantity {
  display:flex!important;
  flex:0 0 118px!important;
  width:118px!important;
  max-width:118px!important;
  min-width:118px!important;
  justify-content:space-between!important;
  align-items:center!important;
  margin:0!important;
  min-height:54px!important;
}
body.single-product .woocommerce div.product.bn-atp-product .bn-atp-controls form.cart:not(.variations_form) > .quantity > .bn-qty-step {
  display:flex!important;
  flex:0 0 35px!important;
  width:35px!important;
  height:52px!important;
  justify-content:center!important;
  align-items:center!important;
}
body.single-product .woocommerce div.product.bn-atp-product .bn-atp-controls form.cart:not(.variations_form) > .single_add_to_cart_button {
  display:flex!important;
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:54px!important;
  margin:0!important;
  justify-content:center!important;
  align-items:center!important;
  align-self:stretch!important;
}
@media(max-width:380px){
  body.single-product .woocommerce div.product.bn-atp-product .bn-atp-controls form.cart:not(.variations_form) > .quantity {
    flex-basis:106px!important;width:106px!important;max-width:106px!important;min-width:106px!important;
  }
  body.single-product .woocommerce div.product.bn-atp-product .bn-atp-controls form.cart:not(.variations_form) > .quantity > .bn-qty-step {
    flex-basis:32px!important;width:32px!important;
  }
}
