/* BBOX 5.5.0 MOBILE ISOLATION — migrated from former shared base.css. */
/* product-purchase — base presentation. */
.woocommerce div.product div.summary {
  float: none;
  width: 100%;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bbox-space-4);
}

.woocommerce div.product form.cart {
  margin: var(--bbox-space-4) 0;
}

.bbox-native-purchase-action {
  display: flex;
  gap: var(--bbox-space-3);
  align-items: center;
}

.woocommerce .quantity .qty {
  width: 5rem;
  text-align: center;
}

.woocommerce div.product form.cart div.quantity {
  float: none;
  margin: 0;
}

.woocommerce div.product form.cart .button {
  float: none;
  flex: 1;
  min-width: 0;
}

.woocommerce-variation-add-to-cart {
  clear: both;
}

/* BBOX 5.1.10 MOBILE STICKY PRICE BASE */

.bbox-mobile-sticky-price{
    display:none;
}

/* BBOX 5.3.0 shared safety: mobile proxy is opt-in only from mobile presentation. */
.bbox-sticky-purchase-proxy{display:none;}

/* product-purchase — mobile presentation (5.4.0 clean owner). */
@media (max-width:782px){
  .woocommerce div.product .product-top{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    align-items:start;
    width:100%;
  }

  .single-product .bbox-mobile-product-title{order:1;}
  .single-product .bbox-product-gallery-stage{order:2;}
  .woocommerce div.product .product-top > div.summary{order:3;width:100%;min-width:0;margin:0;display:flex;flex-direction:column;gap:12px;}

  .single-product .product-details{display:contents;}

  .single-product .product-purchase{
    box-sizing:border-box;
    display:block!important;
    width:100%;
    min-width:0;
    padding:14px!important;
    border:1px solid rgba(205,153,24,.20)!important;
    border-radius:18px!important;
    background:linear-gradient(145deg,#fff,#fffdf8)!important;
    box-shadow:0 10px 24px rgba(17,24,39,.045)!important;
  }

  .single-product .product-purchase > h2{display:none!important;}
  .single-product .product-purchase > form.cart{width:100%;min-width:0;margin:0!important;}
  .single-product .product-purchase .single_variation{display:block!important;width:100%!important;margin:0!important;}
  .single-product .product-purchase form.cart:not(.variations_form),
  .single-product .product-purchase .woocommerce-variation-add-to-cart{width:100%!important;margin:0!important;}

  .single-product .product-purchase .bbox-native-purchase-action{
    position:static!important;
    inset:auto!important;
    z-index:auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 108px!important;
    grid-template-areas:"button quantity"!important;
    gap:8px!important;
    align-items:center!important;
    width:100%!important;
    margin:12px 0 0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    direction:rtl!important;
  }

  .single-product .product-purchase .bbox-mobile-sticky-price{display:none!important;}

  .single-product .product-purchase .bbox-native-purchase-action > .single_add_to_cart_button{
    grid-area:button!important;
    width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    margin:0!important;
    padding:10px 12px!important;
    border-radius:11px!important;
    font-size:13px!important;
    font-weight:850!important;
    line-height:1.45!important;
    white-space:normal!important;
    writing-mode:horizontal-tb!important;
    transform:none!important;
  }

  .single-product .product-purchase .bbox-native-purchase-action > .quantity{
    grid-area:quantity!important;
    display:grid!important;
    grid-template-columns:28px minmax(40px,1fr) 28px!important;
    align-items:center!important;
    width:108px!important;
    min-width:108px!important;
    height:44px!important;
    margin:0!important;
    overflow:hidden;
    border:1px solid rgba(177,136,47,.36)!important;
    border-radius:10px!important;
    background:#fff!important;
    direction:ltr!important;
  }
  .single-product .product-purchase .bbox-native-purchase-action > .quantity .qty{
    width:100%!important;min-width:0!important;height:42px!important;margin:0!important;padding:0 3px!important;
    border:0!important;border-inline:1px solid rgba(177,136,47,.16)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important;font-size:12px!important;font-weight:850!important;
  }
  .single-product .bbox-qty-step{display:flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:42px;padding:0;margin:0;border:0;background:transparent;box-shadow:none;color:#171717;font-size:18px;line-height:1;cursor:pointer;}

  .single-product .product-purchase .shipping-link{display:none!important;}
  .single-product .bbox-product-features{order:4;width:100%;}
  .single-product .product_meta{order:5;width:100%;}

  .bbox-sticky-purchase-proxy{
    position:fixed;
    left:0;right:0;bottom:var(--bbox-nav-offset);
    z-index:var(--bbox-layer-purchase);
    box-sizing:border-box;
    display:grid;
    grid-template-columns:minmax(94px,.9fr) 78px minmax(128px,1.35fr);
    grid-template-areas:"price quantity button";
    align-items:center;
    gap:6px;
    width:100%;
    min-height:50px;
    max-height:52px;
    padding:4px 6px;
    border-top:1px solid rgba(190,151,64,.22);
    background:rgba(255,255,255,.985);
    box-shadow:0 -10px 28px rgba(15,23,42,.08);
    backdrop-filter:blur(14px);
    direction:rtl;
  }
  .bbox-sticky-proxy-price{grid-area:price;min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;direction:rtl;text-align:right;white-space:nowrap;}
  .bbox-sticky-proxy-price .screen-reader-text{display:none!important;}
  .bbox-sticky-proxy-price del{display:block!important;margin:0!important;color:#999!important;font-size:8px!important;font-weight:500!important;line-height:1.1!important;white-space:nowrap!important;}
  .bbox-sticky-proxy-price ins{display:block!important;margin:0!important;background:none!important;color:#986400!important;text-decoration:none!important;font-size:13px!important;font-weight:900!important;line-height:1.15!important;white-space:nowrap!important;}
  .bbox-sticky-proxy-quantity{grid-area:quantity;display:grid;grid-template-columns:21px minmax(34px,1fr) 21px;align-items:center;height:38px;border:1px solid rgba(177,136,47,.30);border-radius:10px;background:#fff;overflow:hidden;direction:ltr;}
  .bbox-sticky-qty-step{display:flex;align-items:center;justify-content:center;width:21px;height:36px;padding:0;border:0;background:transparent;font-size:15px;}
  .bbox-sticky-qty-value{display:flex;align-items:center;justify-content:center;min-width:0;height:36px;border-inline:1px solid rgba(177,136,47,.14);font-size:11.5px;font-weight:850;}
  .bbox-sticky-cart-proxy{grid-area:button;width:100%;min-width:0;min-height:38px;height:38px;padding:6px 8px!important;border-radius:10px!important;font-size:11px!important;font-weight:850!important;line-height:1.25!important;white-space:nowrap!important;}

  body.bbox-footer-near .bbox-sticky-purchase-proxy,
  body.bbox-dialog-open .bbox-sticky-purchase-proxy{display:none!important;}
}

/* BBOX_5_5_7_MOBILE_PURCHASE_REFINEMENT:START */
@media (max-width:782px){
  .single-product .product-purchase{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    column-gap:0 !important;
    align-items:start !important;
    overflow:visible !important;
    border-radius:18px !important;
    direction:ltr !important;
  }

  .single-product .product-purchase > *{
    grid-column:1 / -1;
    min-width:0;
    direction:rtl !important;
  }

  .single-product .product-purchase > .bbox-mobile-stock-presentation{
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:stretch !important;
    justify-self:stretch !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;
    margin:0 0 10px !important;
    padding:2px 18px 8px 4px !important;
    border-right:1px solid rgba(190,139,20,.42) !important;
    text-align:left !important;
    direction:ltr !important;
  }

  .single-product .product-purchase > .bbox-mobile-stock-presentation .bbox-stock-copy{
    direction:rtl !important;
    align-items:flex-start !important;
    justify-content:center !important;
    text-align:right !important;
  }

  .single-product .product-purchase > .price{
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:stretch !important;
    justify-self:stretch !important;
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    margin:0 0 10px !important;
    padding:2px 4px 8px 18px !important;
    text-align:right !important;
    direction:rtl !important;
  }

  body.single-product{
    --bbox-product-sticky-height:52px !important;
  }

  .single-product .bbox-sticky-purchase-proxy{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    bottom:calc(var(--bbox-mobile-nav-height,72px) + env(safe-area-inset-bottom) + 3px) !important;
    min-height:52px !important;
    height:52px !important;
    max-height:52px !important;
    padding:5px 7px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    clip:auto !important;
    clip-path:none !important;
    transform:none !important;
    z-index:10020 !important;
    display:grid !important;
    grid-template-columns:minmax(142px,1.55fr) 78px minmax(92px,.85fr) !important;
    grid-template-areas:"button quantity price" !important;
    gap:6px !important;
    align-items:center !important;
    direction:ltr !important;
  }

  .single-product .bbox-sticky-cart-proxy{
    grid-area:button !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    min-height:40px !important;
    height:40px !important;
    max-height:40px !important;
    margin:0 !important;
    padding:7px 9px !important;
    overflow:visible !important;
    writing-mode:horizontal-tb !important;
    white-space:nowrap !important;
    line-height:1.2 !important;
    font-size:11px !important;
    border-radius:10px !important;
    direction:rtl !important;
  }

  .single-product .bbox-sticky-proxy-quantity{
    grid-area:quantity !important;
    justify-self:center !important;
    width:78px !important;
    height:40px !important;
    max-height:40px !important;
    display:grid !important;
    grid-template-columns:21px minmax(34px,1fr) 21px !important;
    overflow:hidden !important;
    direction:ltr !important;
    border-radius:9px !important;
  }

  .single-product .bbox-sticky-qty-step,
  .single-product .bbox-sticky-qty-value{
    min-height:38px !important;
    height:38px !important;
  }

  .single-product .bbox-sticky-qty-step{
    width:21px !important;
    font-size:14px !important;
  }

  .single-product .bbox-sticky-proxy-price{
    grid-area:price !important;
    min-width:0 !important;
    max-height:40px !important;
    overflow:visible !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
    justify-content:center !important;
    gap:1px !important;
    direction:rtl !important;
    text-align:right !important;
    white-space:nowrap !important;
  }

  .single-product .bbox-sticky-proxy-price del{
    font-size:7px !important;
    line-height:1 !important;
  }

  .single-product .bbox-sticky-proxy-price ins{
    font-size:11px !important;
    line-height:1.05 !important;
  }

  body.single-product.bbox-purchase-visible{
    padding-bottom:calc(
      var(--bbox-mobile-nav-height,72px)
      + var(--bbox-product-sticky-height,52px)
      + env(safe-area-inset-bottom)
      + 16px
    ) !important;
  }
}
/* BBOX_5_5_7_MOBILE_PURCHASE_REFINEMENT:END */

/* BBOX 5.5.25 MOBILE PRODUCT CORRECTIONS */
@media (max-width:782px){
  /* Mobile must not inherit either desktop brand source. */
  body.single-product .product-details > .bbox-product-brand,
  body.single-product .product-purchase > .bbox-purchase-brand,
  body.single-product .bbox-purchase-brand{
    display:none!important;
  }

  /* Keep exactly one stock authority: bbox-mobile-stock-presentation at the top. */
  body.single-product .product-purchase > p.stock,
  body.single-product .product-purchase > .stock,
  body.single-product .product-purchase .woocommerce-variation-availability:not(:empty){
    display:none!important;
  }

  /* Do not allow any desktop pseudo color label to leak to mobile. */
  body.single-product .product-purchase .bbox-color-variation-row > th.label::after{
    content:none!important;
    display:none!important;
  }
}

/* BBOX 5.5.43 ADD TO CART STATE AUTHORITY START */
body.single-product .product-purchase .single_add_to_cart_button,
body.single-product .product-purchase .single_add_to_cart_button:hover,
body.single-product .product-purchase .single_add_to_cart_button:focus,
body.single-product .product-purchase .single_add_to_cart_button:focus-visible,
body.single-product .product-purchase .single_add_to_cart_button:active,
body.single-product .product-purchase .single_add_to_cart_button.loading,
body.single-product .product-purchase .single_add_to_cart_button.added,
body.single-product .bbox-sticky-cart-proxy,
body.single-product .bbox-sticky-cart-proxy:hover,
body.single-product .bbox-sticky-cart-proxy:focus,
body.single-product .bbox-sticky-cart-proxy:active{
  background:linear-gradient(135deg,#e9bd45,#b97c08)!important;
  background-color:#c98a0a!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 8px 20px rgba(172,112,0,.18)!important;
  filter:none!important;
}

body.single-product .product-purchase .single_add_to_cart_button:focus,
body.single-product .product-purchase .single_add_to_cart_button:focus-visible,
body.single-product .bbox-sticky-cart-proxy:focus,
body.single-product .bbox-sticky-cart-proxy:focus-visible{
  outline:2px solid rgba(185,124,8,.32)!important;
  outline-offset:2px!important;
}
/* BBOX 5.5.43 ADD TO CART STATE AUTHORITY END */
