/* ========================================================================
   BITANIK Quantum v2.9.0 — Adaptive Brand Intelligence / Mobile P0 Release
   Scope: brand orbs, smart filter depth, search readability, mobile cart,
          utility rail, trust visibility and messenger asset hardening.
   ======================================================================== */
:root{
  --bq2-font:"IRANYekanXFaNum","IRANYekanX","IRANYekan","Yekan Bakh","Vazirmatn",Tahoma,Arial,sans-serif;
  --bq2-z-utility:760;
  --bq2-z-search:7800;
  --bq2-z-menu:9000;
  --bq2-z-modal:10000;
}

/* ---------------- Approved brand-logo bank ---------------- */
.bq2-glass-key-icon.is-brand-orb{
  width:54px!important;height:54px!important;border-radius:50%!important;
  padding:0!important;overflow:visible!important;
  background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.98),rgba(227,247,252,.86) 44%,rgba(183,225,240,.50) 100%)!important;
  border:1px solid rgba(255,255,255,.96)!important;
  box-shadow:inset 4px 5px 8px rgba(255,255,255,.98),inset -6px -7px 12px rgba(15,79,112,.08),0 10px 18px rgba(11,74,103,.13)!important;
}
.bq2-brand-orb-image{width:54px;height:54px;object-fit:contain;border-radius:50%;display:block;filter:drop-shadow(0 8px 10px rgba(8,56,86,.12))}
.bq2-product-brand-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;margin:0 0 7px;padding:4px 9px 4px 5px;border:1px solid rgba(109,196,224,.24);border-radius:999px;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(223,246,252,.80));box-shadow:inset 0 1px 0 #fff,0 7px 14px rgba(12,78,111,.07);color:#31596b}
.bq2-product-brand-chip .bq2-brand-orb{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;overflow:hidden;background:#fff}
.bq2-product-brand-chip .bq2-brand-orb img{width:30px;height:30px;object-fit:cover;border-radius:50%;display:block}
.bq2-product-brand-chip small{font-size:9px!important;font-weight:900!important;letter-spacing:.25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bq2-product-brand-chip.is-single{margin-bottom:10px}.bq2-product-brand-chip.is-single .bq2-brand-orb{width:38px;height:38px;flex-basis:38px}.bq2-product-brand-chip.is-single .bq2-brand-orb img{width:38px;height:38px}.bq2-product-brand-chip.is-single small{font-size:11px!important}


.bq2-context-brand-logo{width:30px!important;height:30px!important;min-width:30px!important;border-radius:50%!important;object-fit:cover!important;background:#fff!important;box-shadow:0 5px 10px rgba(9,65,94,.09)!important;margin-inline-end:6px!important}
.bq2-glass-panel-sellers .bq2-glass-key-icon .bq2-context-brand-logo{width:44px!important;height:44px!important;margin:0!important}

/* ---------------- Search: readable, matte, never under smart controls ---------------- */
body.bq2-search-open .bq2-header{z-index:var(--bq2-z-search)!important;isolation:isolate!important}
body.bq2-search-open .bq2-search-wrap{position:relative!important;z-index:calc(var(--bq2-z-search) + 10)!important;overflow:visible!important}
body.bq2-search-open .bq2-main,body.bq2-search-open .bq2-smart-filter-deck{isolation:auto!important}
body.bq2-active .bq2-search-results{
  z-index:calc(var(--bq2-z-search) + 20)!important;
  background:rgba(246,252,255,.985)!important;
  backdrop-filter:blur(24px) saturate(145%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(145%)!important;
  border:1px solid rgba(114,196,226,.68)!important;
  box-shadow:0 28px 74px rgba(8,49,74,.28),inset 0 1px 0 rgba(255,255,255,.98)!important;
  overflow:auto!important;overscroll-behavior:contain!important;
}
.bq2-search-result{background:rgba(255,255,255,.84)!important;border:1px solid rgba(114,191,217,.13);margin:4px 0;box-shadow:0 7px 16px rgba(12,68,96,.04)}
.bq2-search-result:hover,.bq2-search-result.is-active{background:#fff!important;border-color:rgba(64,171,210,.30)!important;box-shadow:0 11px 22px rgba(12,76,107,.09)!important}
.bq2-search-result-copy strong{color:#15394b!important}.bq2-search-result-copy small{display:flex!important;align-items:center;gap:6px!important;color:#526f7d!important}
.bq2-search-brand-logo{width:24px!important;height:24px!important;min-width:24px!important;border-radius:50%!important;object-fit:cover!important;background:#fff!important;box-shadow:0 4px 8px rgba(12,74,103,.08)!important}
.bq2-search-head,.bq2-search-all{background:rgba(255,255,255,.92)!important;border-radius:14px!important}

/* ---------------- Smart filter: strong 3D metallic gaming keys ---------------- */
.bq2-smart-filter-deck{overflow:visible!important;border-color:rgba(112,197,228,.60)!important;background:linear-gradient(160deg,rgba(255,255,255,.93),rgba(222,246,252,.78) 62%,rgba(242,236,255,.72))!important;box-shadow:inset 0 1px 0 #fff,0 20px 44px rgba(9,67,97,.11)!important}
.bq2-smart-filter-grid{gap:13px!important}
.bq2-smart-filter-key{
  --key-led:#2bd7f0;--key-metal:#3fd7ef;
  min-height:108px!important;padding:13px 16px!important;grid-template-columns:66px minmax(0,1fr)!important;gap:14px!important;
  border:1px solid color-mix(in srgb,var(--key-metal) 46%,#dcecf3)!important;border-radius:26px!important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.98),color-mix(in srgb,var(--key-metal) 14%,#eaf9fc) 48%,rgba(255,255,255,.74))!important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,1),
    inset 0 -18px 24px color-mix(in srgb,var(--key-metal) 13%,transparent),
    0 16px 0 color-mix(in srgb,var(--key-metal) 10%,#cde1ea),
    0 22px 34px rgba(10,70,100,.14)!important;
  transform:translateY(-4px);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
.bq2-smart-filter-key::before{inset:3px!important;border-radius:22px!important;background:radial-gradient(circle at 24% 14%,rgba(255,255,255,.95),transparent 28%),linear-gradient(180deg,rgba(255,255,255,.46),rgba(255,255,255,.04) 54%),repeating-linear-gradient(90deg,rgba(36,105,145,.03) 0 1px,transparent 1px 9px)!important}
.bq2-smart-filter-key:hover,.bq2-smart-filter-key:focus-visible{transform:translateY(-7px) scale(1.012)!important;box-shadow:inset 0 2px 0 #fff,inset 0 -20px 28px color-mix(in srgb,var(--key-metal) 15%,transparent),0 18px 0 color-mix(in srgb,var(--key-metal) 12%,#cddfe8),0 28px 38px rgba(8,68,98,.16),0 0 25px color-mix(in srgb,var(--key-led) 24%,transparent)!important}
.bq2-smart-filter-key:active{transform:translateY(2px) scale(.995)!important;box-shadow:inset 0 2px 0 #fff,inset 0 -8px 16px color-mix(in srgb,var(--key-metal) 16%,transparent),0 7px 0 color-mix(in srgb,var(--key-metal) 12%,#cddfe8),0 12px 20px rgba(8,68,98,.12)!important}
.bq2-smart-filter-key.is-active{transform:translateY(-2px)!important;outline:2px solid color-mix(in srgb,var(--key-led) 42%,transparent)!important;outline-offset:2px!important}
.bq2-smart-filter-key.is-cheap{--key-led:#18d7e8;--key-metal:#16cbdc}
.bq2-smart-filter-key.is-trending{--key-led:#ad5cff;--key-metal:#8f55ec}
.bq2-smart-filter-key.is-expensive{--key-led:#f2bd30;--key-metal:#d9a51c}
.bq2-smart-filter-key.is-girls{--key-led:#ff6fae;--key-metal:#e75d9c}
.bq2-smart-filter-key.is-boys{--key-led:#3c78f4;--key-metal:#2f67d3}
.bq2-smart-filter-key.is-bestseller{--key-led:#28c989;--key-metal:#1eae76}
.bq2-smart-filter-orb{width:64px!important;height:64px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.96)!important;background:radial-gradient(circle at 28% 18%,#fff 0 8%,color-mix(in srgb,var(--key-led) 30%,#f0fbff) 29%,rgba(208,239,248,.66) 66%,rgba(255,255,255,.60))!important;box-shadow:inset 6px 7px 10px rgba(255,255,255,.98),inset -8px -9px 14px rgba(12,80,115,.09),0 12px 20px rgba(10,68,98,.15),0 0 16px color-mix(in srgb,var(--key-led) 20%,transparent)!important}
.bq2-smart-filter-orb svg{width:36px!important;height:36px!important;stroke:#093b58!important;filter:drop-shadow(0 5px 8px rgba(7,55,83,.16))!important}
.bq2-smart-filter-copy{justify-items:center!important;text-align:center!important}.bq2-smart-filter-copy strong{font-size:18px!important;line-height:1.2!important;font-weight:950!important;white-space:normal!important;color:#123c50!important;text-shadow:0 1px 0 #fff,0 3px 8px rgba(7,54,82,.09)}.bq2-smart-filter-copy small{font-size:9px!important;margin-top:4px!important}

/* ---------------- Trust emblem visibility ---------------- */
.bq2-trust-emblem,a[href*="enamad.ir"] img,img[src*="enamad" i],[class*="enamad" i] img,[id*="enamad" i] img{
  width:clamp(92px,8vw,138px)!important;max-width:138px!important;height:auto!important;object-fit:contain!important;filter:drop-shadow(0 10px 16px rgba(7,61,90,.14))!important
}
a.bq2-trust-emblem,[class*="enamad" i],[id*="enamad" i]{min-width:108px!important;min-height:108px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:7px!important;border-radius:24px!important;background:rgba(255,255,255,.88)!important;border:1px solid rgba(118,197,224,.28)!important;box-shadow:inset 0 1px 0 #fff,0 14px 28px rgba(8,69,99,.10)!important}

/* ---------------- Native mobile utility rail: News / Back / Home ---------------- */
.bq2-global-nav-news{display:none!important}
@media(max-width:860px){
  body.bq2-active [data-bq2-news-float]{display:none!important;visibility:hidden!important;pointer-events:none!important}
  body.bq2-active .bq2-global-nav{
    z-index:var(--bq2-z-utility)!important;top:auto!important;right:auto!important;
    left:max(9px,env(safe-area-inset-left))!important;
    bottom:calc(76px + env(safe-area-inset-bottom))!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;gap:7px!important;
    transform:none!important;transition:opacity .16s ease,transform .16s ease!important;
  }
  body.bq2-active .bq2-global-nav-news{display:grid!important;margin-bottom:10px!important}
  body.bq2-active .bq2-global-nav :is(a,button){width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;flex:0 0 50px!important;border-radius:50%!important}
  body.bq2-active .bq2-global-nav strong{font-size:8px!important;line-height:1.15!important;margin-top:2px!important}
  body.bq2-active.bq2-search-open .bq2-global-nav,
  body.bq2-active.bq2-menu-open .bq2-global-nav,
  body.bq2-active.bq2-voice-open .bq2-global-nav,
  body.bq2-active.bq2-modal-open .bq2-global-nav{opacity:0!important;pointer-events:none!important;transform:translateX(-16px) scale(.94)!important}
  body.woocommerce-cart .bq2-global-nav,body.woocommerce-checkout .bq2-global-nav{bottom:calc(104px + env(safe-area-inset-bottom))!important}
}
@media(orientation:landscape) and (max-height:540px) and (max-width:960px){
  body.bq2-active .bq2-global-nav{gap:5px!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;transform:scale(.88)!important;transform-origin:left bottom!important}
  body.bq2-active .bq2-global-nav-news{margin-bottom:7px!important}
}

/* ---------------- Mobile cart/checkout P0 ---------------- */
.woocommerce .woocommerce-Price-amount,.woocommerce .woocommerce-Price-currencySymbol,.woocommerce .amount,
body.woocommerce-cart .product-price,body.woocommerce-cart .product-subtotal,body.woocommerce-checkout .product-total{
  white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important
}
@media(max-width:600px){
  body.woocommerce-cart,body.woocommerce-checkout{overflow-x:hidden!important}
  body.woocommerce-cart .bq2-woo-shell,body.woocommerce-checkout .bq2-woo-shell,
  body.woocommerce-cart .bq2-content-shell,body.woocommerce-checkout .bq2-content-shell{width:calc(100% - 14px)!important;max-width:100%!important;margin-inline:auto!important;padding:12px!important;overflow:visible!important}
  body.woocommerce-cart .woocommerce-cart-form{overflow:visible!important;max-width:100%!important}
  body.woocommerce-cart table.shop_table_responsive,body.woocommerce-cart table.shop_table{width:100%!important;max-width:100%!important;border-collapse:separate!important;border-spacing:0 12px!important;background:transparent!important;border:0!important;table-layout:fixed!important}
  body.woocommerce-cart table.shop_table thead{display:none!important}
  body.woocommerce-cart table.shop_table tbody{display:block!important;width:100%!important}
  body.woocommerce-cart table.shop_table tr.woocommerce-cart-form__cart-item,
  body.woocommerce-cart table.shop_table tr.cart_item{display:block!important;position:relative!important;width:100%!important;margin:0 0 12px!important;padding:12px!important;border:1px solid rgba(116,197,225,.28)!important;border-radius:24px!important;background:linear-gradient(155deg,rgba(255,255,255,.97),rgba(225,247,252,.88))!important;box-shadow:inset 0 1px 0 #fff,0 13px 26px rgba(8,71,101,.08)!important;overflow:hidden!important}
  body.woocommerce-cart table.shop_table tr.cart_item td{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:8px 0!important;border:0!important;text-align:right!important;white-space:normal!important}
  body.woocommerce-cart table.shop_table tr.cart_item td::before{position:static!important;float:none!important;flex:0 0 auto!important;max-width:42%!important;margin:0!important;font-weight:900!important;color:#405e6d!important;white-space:normal!important}
  body.woocommerce-cart td.product-remove{position:absolute!important;top:8px!important;left:8px!important;width:38px!important;height:38px!important;padding:0!important;z-index:2!important;display:grid!important;place-items:center!important}
  body.woocommerce-cart td.product-remove::before{display:none!important}
  body.woocommerce-cart td.product-remove a.remove{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(212,99,121,.22)!important}
  body.woocommerce-cart td.product-thumbnail{display:block!important;width:100%!important;padding:2px 46px 4px 0!important;text-align:right!important}
  body.woocommerce-cart td.product-thumbnail::before{display:none!important}
  body.woocommerce-cart td.product-thumbnail a{display:inline-block!important}
  body.woocommerce-cart td.product-thumbnail img{display:block!important;width:96px!important;max-width:32vw!important;height:auto!important;border-radius:18px!important;object-fit:cover!important}
  body.woocommerce-cart td.product-name{display:block!important;padding-top:6px!important;text-align:right!important}
  body.woocommerce-cart td.product-name::before{display:none!important}
  body.woocommerce-cart td.product-name a{display:block!important;font-size:14px!important;font-weight:900!important;line-height:1.8!important;overflow-wrap:break-word!important;word-break:normal!important}
  body.woocommerce-cart td.product-price .amount,body.woocommerce-cart td.product-subtotal .amount{font-size:14px!important;font-weight:900!important}
  body.woocommerce-cart td.product-quantity .quantity{margin-inline-start:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important}
  body.woocommerce-cart td.product-quantity input.qty{width:64px!important;min-width:64px!important;min-height:46px!important;border-radius:16px!important;text-align:center!important}
  body.woocommerce-cart table.shop_table tr:not(.cart_item) td.actions{display:block!important;width:100%!important;padding:0!important;border:0!important;background:transparent!important}
  body.woocommerce-cart .actions .coupon{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;max-width:100%!important;float:none!important;margin:0 0 9px!important;padding:10px!important;border:1px solid rgba(107,196,226,.25)!important;border-radius:20px!important;background:rgba(255,255,255,.76)!important}
  body.woocommerce-cart .coupon :is(input.input-text,input[type=text],button,.button){box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:48px!important;float:none!important;margin:0!important;border-radius:16px!important}
  body.woocommerce-cart button[name="update_cart"]{width:100%!important;min-height:48px!important;float:none!important;margin:0!important}
  body.woocommerce-cart .cart-collaterals,body.woocommerce-cart .cart_totals{width:100%!important;max-width:100%!important;float:none!important;margin:16px 0 0!important;clear:both!important}
  body.woocommerce-cart .cart_totals{padding:14px!important;border:1px solid rgba(109,194,222,.26)!important;border-radius:24px!important;background:linear-gradient(155deg,rgba(255,255,255,.97),rgba(228,247,252,.88))!important;box-shadow:0 14px 28px rgba(8,67,96,.08)!important}
  body.woocommerce-cart .cart_totals table{display:table!important;width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
  body.woocommerce-cart .cart_totals tr{display:table-row!important}
  body.woocommerce-cart .cart_totals th,body.woocommerce-cart .cart_totals td{display:table-cell!important;width:50%!important;padding:12px 8px!important;vertical-align:middle!important;border-bottom:1px solid rgba(97,173,202,.18)!important;word-break:normal!important;overflow-wrap:normal!important}
  body.woocommerce-cart .wc-proceed-to-checkout{padding:12px 0 0!important;margin:0!important}
  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;min-height:54px!important;margin:0!important;padding:10px 14px!important;border-radius:18px!important;font-size:15px!important;line-height:1.5!important;text-align:center!important;white-space:normal!important}
  body.woocommerce-cart .bq2-floating-cart,body.woocommerce-checkout .bq2-floating-cart{bottom:calc(70px + env(safe-area-inset-bottom))!important;transform:scale(.88)!important;transform-origin:right bottom!important}
  body.woocommerce-cart .bq2-main,body.woocommerce-checkout .bq2-main{padding-bottom:92px!important}

  /* Checkout fields and totals stay inside the viewport. */
  body.woocommerce-checkout form.checkout,body.woocommerce-checkout .woocommerce-checkout-review-order,body.woocommerce-checkout .col2-set,body.woocommerce-checkout .col-1,body.woocommerce-checkout .col-2{width:100%!important;max-width:100%!important;float:none!important;min-width:0!important}
  body.woocommerce-checkout .form-row{width:100%!important;max-width:100%!important;float:none!important}
  body.woocommerce-checkout input,body.woocommerce-checkout select,body.woocommerce-checkout textarea{max-width:100%!important;min-width:0!important}
  body.woocommerce-checkout table.shop_table{width:100%!important;table-layout:fixed!important}
  body.woocommerce-checkout table.shop_table th,body.woocommerce-checkout table.shop_table td{padding:10px 6px!important;word-break:normal!important;overflow-wrap:break-word!important}
}

/* 200% text zoom resilience: avoid hard heights on financial UI. */
@media(max-width:430px){
  .bq2-smart-filter-grid{grid-template-columns:1fr!important}.bq2-smart-filter-key{min-height:96px!important;grid-template-columns:60px minmax(0,1fr)!important}.bq2-smart-filter-orb{width:58px!important;height:58px!important}.bq2-smart-filter-copy strong{font-size:16px!important}
  .bq2-glass-key-icon.is-brand-orb,.bq2-brand-orb-image{width:48px!important;height:48px!important}
  body.bq2-active .bq2-global-nav :is(a,button){width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}
}
@media(max-width:359px){
  body.bq2-active .bq2-global-nav{left:max(5px,env(safe-area-inset-left))!important}
  body.woocommerce-cart .bq2-woo-shell,body.woocommerce-checkout .bq2-woo-shell{width:calc(100% - 8px)!important;padding:8px!important}
}

@media(prefers-reduced-motion:reduce){.bq2-smart-filter-key,.bq2-global-nav,.bq2-brand-orb-image{transition:none!important}}
