/* BITANIK Quantum 2.9.4 — Mobile Resilience + Menu Health Guard */
.bq2-action-orb svg,.bq2-mobile-account-grid b svg,.bq2-mobile-nav span svg,.bq2-mobile-menu-orb svg,.bq2-cat-toggle-orb svg{width:62%;height:62%;display:block}
.bq2-mobile-top-actions{display:none}
.bq2-mobile-menu-orb,.bq2-cat-toggle-orb{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:13px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(211,242,252,.82));color:#0b75a7;box-shadow:inset 0 1px 0 #fff,0 8px 15px rgba(16,93,132,.10)}

/* Product loop: Quick Buy must never be visually larger than its sibling CTA. */
body.bq2-active .woocommerce ul.products li.product :is(.button.add_to_cart_button,.button.product_type_simple,.bq2-loop-quick),
body.bq2-active.woocommerce ul.products li.product :is(.button.add_to_cart_button,.button.product_type_simple,.bq2-loop-quick){
  box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:40px!important;height:auto!important;margin:6px 0 0!important;padding:7px 8px!important;border-radius:14px!important;font-size:10.5px!important;font-weight:850!important;line-height:1.45!important;display:flex!important;align-items:center!important;justify-content:center!important;white-space:normal!important
}
body.bq2-active .woocommerce ul.products li.product .bq2-loop-quick{font-size:10.5px!important}

/* Cart/checkout hardening: keep every monetary and control surface inside viewport. */
@media(max-width:600px){
  body.woocommerce-cart .woocommerce,body.woocommerce-checkout .woocommerce{max-width:100%!important;overflow:visible!important}
  body.woocommerce-cart .woocommerce-cart-form__contents,body.woocommerce-cart .cart-collaterals,body.woocommerce-cart .cart_totals{min-width:0!important;max-width:100%!important}
  body.woocommerce-cart .woocommerce-Price-amount,body.woocommerce-cart .woocommerce-Price-currencySymbol,body.woocommerce-cart .amount,
  body.woocommerce-checkout .woocommerce-Price-amount,body.woocommerce-checkout .woocommerce-Price-currencySymbol,body.woocommerce-checkout .amount{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}
  body.woocommerce-cart td.product-price,body.woocommerce-cart td.product-subtotal{flex-wrap:wrap!important}
  body.woocommerce-cart .coupon{overflow:hidden!important}
  body.woocommerce-cart .coupon input,body.woocommerce-cart .coupon button{inline-size:100%!important;max-inline-size:100%!important}
  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{position:relative!important;z-index:1!important}
  body.woocommerce-cart .bq2-floating-cart,body.woocommerce-checkout .bq2-floating-cart{right:10px!important;bottom:calc(88px + env(safe-area-inset-bottom))!important;max-width:150px!important;min-height:54px!important}
  body.woocommerce-cart .bq2-floating-cart-copy,body.woocommerce-checkout .bq2-floating-cart-copy{display:none!important}
}

@media(max-width:860px){
  /* Header becomes a deterministic stack: brand/search -> menu row -> four actions. */
  .bq2-header{overflow:visible!important}
  .bq2-mainbar{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:min(calc(100% - 18px),var(--max))!important;padding:10px 0 8px!important;min-height:0!important}
  .bq2-logo{justify-self:center!important;max-width:min(64vw,220px)!important}
  .bq2-logo .custom-logo{max-width:min(56vw,180px)!important;max-height:58px!important}
  .bq2-search-wrap{width:100%!important;min-width:0!important}
  .bq2-search{min-height:50px!important;grid-template-columns:auto minmax(0,1fr) auto!important;border-radius:20px!important}
  .bq2-search-status{display:none!important}
  .bq2-search input[type=search]{height:48px!important;font-size:13px!important}
  .bq2-search button{height:40px!important;margin:5px!important;padding:0 14px!important;font-size:11px!important}
  .bq2-actions{display:none!important}
  .bq2-navline{border-top:0!important;background:transparent!important}
  .bq2-navline-inner{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;width:min(calc(100% - 18px),var(--max))!important;padding:4px 0 7px!important;min-height:0!important;overflow:visible!important}
  .bq2-mobile-menu-toggle,.bq2-cat-toggle{display:flex!important;width:100%!important;min-width:0!important;min-height:54px!important;padding:6px 10px!important;border-radius:20px!important;justify-content:flex-start!important;overflow:hidden!important}
  .bq2-mobile-menu-toggle strong,.bq2-cat-toggle strong{font-size:11px!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .bq2-mobile-menu-toggle small{display:none!important}
  .bq2-primary{display:none!important}

  .bq2-mobile-top-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;width:min(calc(100% - 18px),var(--max))!important;margin:0 auto 10px!important;padding:0!important}
  .bq2-mobile-top-actions .bq2-action-card{display:grid!important;grid-template-rows:auto auto!important;justify-items:center!important;align-content:center!important;gap:4px!important;min-width:0!important;min-height:78px!important;padding:7px 4px!important;border-radius:20px!important;text-align:center!important}
  .bq2-mobile-top-actions .bq2-action-orb{width:39px!important;height:39px!important;flex-basis:39px!important}
  .bq2-mobile-top-actions .bq2-action-copy{align-items:center!important;max-width:100%!important}
  .bq2-mobile-top-actions .bq2-action-copy strong{font-size:9.5px!important;line-height:1.35!important;white-space:normal!important}
  .bq2-mobile-top-actions .bq2-action-copy small{display:none!important}
  .bq2-mobile-top-actions .bq2-cart-count{top:4px!important;left:4px!important;right:auto!important;min-width:18px!important;height:18px!important}

  .bq2-mobile-menu{z-index:10000!important}
  .bq2-mobile-menu-panel{width:min(94vw,430px)!important;max-width:94vw!important;max-height:min(88dvh,760px)!important;overflow:auto!important;overscroll-behavior:contain!important;border-radius:28px 0 0 28px!important}
  .bq2-mobile-account-grid b svg{width:24px!important;height:24px!important}
  .bq2-cat-drawer{position:relative!important;z-index:9800!important}
  .bq2-cat-drawer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px 0 14px!important}
  .bq2-cat-drawer-grid a{min-width:0!important;overflow:hidden!important}

  /* Page rails stay side-by-side on phones and never become large floating orbs. */
  .bq2-page-rails{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:12px 0 0!important}
  .bq2-page-rails-bottom{margin:14px 0 4px!important}
  .bq2-page-rail{min-width:0!important;min-height:54px!important;padding:7px 9px!important;border-radius:19px!important;gap:8px!important}
  .bq2-page-rail-orb{width:37px!important;height:37px!important;border-radius:14px!important;font-size:18px!important}
  .bq2-page-rail-copy strong{font-size:11px!important}.bq2-page-rail-copy small{font-size:8px!important}

  .bq2-mobile-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important;padding-inline:6px!important}
  .bq2-mobile-nav a{min-width:0!important;margin:0 3px!important;padding:5px 2px!important;font-size:0!important}
  .bq2-mobile-nav a>span{display:grid;place-items:center;width:27px;height:27px;color:#0f6d9d}
  .bq2-mobile-nav a:nth-child(2)>span{color:#7548c8}.bq2-mobile-nav a:nth-child(3)>span{color:#d43160}.bq2-mobile-nav a:nth-child(4)>span{color:#287ca9}
  .bq2-mobile-nav small{font-size:9px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}

  /* Product grids retain shape across common phone widths. */
  .woocommerce ul.products,.bq2-products{gap:9px!important}
}

@media(min-width:360px) and (max-width:860px){
  .woocommerce ul.products.columns-4,.woocommerce ul.products,.bq2-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:359px){
  .woocommerce ul.products.columns-4,.woocommerce ul.products,.bq2-products{grid-template-columns:1fr!important}
  .bq2-mobile-top-actions{gap:5px!important}
  .bq2-mobile-top-actions .bq2-action-card{min-height:72px!important;border-radius:18px!important}
  .bq2-mobile-top-actions .bq2-action-orb{width:35px!important;height:35px!important}
  .bq2-mobile-top-actions .bq2-action-copy strong{font-size:8.5px!important}
  .bq2-mobile-menu-toggle strong,.bq2-cat-toggle strong{font-size:10px!important}
}
@media(orientation:landscape) and (max-width:960px) and (max-height:560px){
  .bq2-mainbar{grid-template-columns:130px minmax(0,1fr)!important;align-items:center!important}
  .bq2-logo{justify-self:start!important}.bq2-logo .custom-logo{max-height:44px!important}
  .bq2-mobile-top-actions .bq2-action-card{min-height:64px!important}.bq2-mobile-top-actions .bq2-action-orb{width:32px!important;height:32px!important}
  .bq2-mobile-menu-panel{max-height:92dvh!important}
}
@media(prefers-reduced-motion:reduce){.bq2-action-card,.bq2-page-rail,.bq2-mobile-menu-panel{transition:none!important;animation:none!important}}

@media(max-width:860px){
  .bq2-page-rails{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .bq2-page-rail-top .bq2-page-rail-copy strong{font-size:10.5px!important}
}

@media(max-width:860px){
 .bq2-mobile-top-actions .bq2-action-orb:has(.bq2-action-bank-image){width:46px!important;height:46px!important;background:transparent!important;box-shadow:none!important}
 .bq2-mobile-top-actions .bq2-action-orb .bq2-action-bank-image{width:46px!important;height:46px!important}
}
