/* Product detail (mobile): Cart & Buy Now buttons floating at the bottom, marketplace style.
   The bottom-nav menu is hidden only on pages that have the order button. */
@media(max-width:800px){
  body:has(.detail-order) .bottom-nav{display:none!important}
  body:has(.detail-order){padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}

  body:has(.detail-order) .detail-order{
    position:fixed!important;left:0;right:0;bottom:0;z-index:90;
    display:flex!important;flex-wrap:nowrap!important;align-items:stretch;gap:10px!important;
    margin:0!important;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
    background:#fff;border-top:1px solid #e3ebe8;
    box-shadow:0 -6px 20px rgba(14,56,48,.08)}
  body:has(.detail-order) .detail-order small{display:none}
  body:has(.detail-order) .detail-order .detail-cart-btn,
  body:has(.detail-order) .detail-order .detail-buy-btn{
    height:46px;min-width:0;margin:0;border-radius:12px;font-size:13.5px;font-weight:700;
    justify-content:center;white-space:nowrap}
  body:has(.detail-order) .detail-order .detail-cart-btn{flex:1 1 0}
  body:has(.detail-order) .detail-order .detail-buy-btn{flex:1.15 1 0}
  body:has(.detail-order) .detail-order .detail-cart-btn .ico,
  body:has(.detail-order) .detail-order .detail-buy-btn .ico{width:18px;height:18px}

  /* the chat button moves above the new bar */
  body:has(.detail-order) .chat-fab{bottom:calc(82px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:360px){
  body:has(.detail-order) .detail-order .detail-cart-btn .lbl{font-size:12.5px}
}

/* ---- Product detail: stock + fulfillment chips (premium, flush-left with title / price / seller / description) ---- */
.detail-info .stock-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 16px;padding:0}
.detail-info .stock-row .stock.stock-pill{margin:0!important;display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px 0 10px;
  background:var(--green3,#e7f6f1);border:1px solid #cfeae1;border-radius:999px;color:var(--green-dark,#055a49);font-size:12px;line-height:1;white-space:nowrap}
.detail-info .stock-pill .stock-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--green,#087760);box-shadow:0 0 0 3px rgba(8,119,96,.16)}
.detail-info .stock-pill .stock-qty{font-weight:700;letter-spacing:-.1px;color:inherit}
.detail-info .stock-pill .stock-hint{font-size:10.5px;font-weight:600;letter-spacing:.2px;text-transform:uppercase;opacity:.8;padding-left:8px;border-left:1px solid rgba(154,90,23,.3)}
.detail-info .stock-row .stock-pill.is-low{background:#fff6ec;border-color:#f6dcc0;color:#9a5a17}
.detail-info .stock-row .stock-pill.is-low .stock-dot{background:#e8892b;box-shadow:0 0 0 3px rgba(232,137,43,.18)}
.detail-info .stock-row .stock-pill.is-out{background:#fdf0ee;border-color:#f5d3ce;color:#c0392b}
.detail-info .stock-row .stock-pill.is-out .stock-dot{background:#c0392b;box-shadow:0 0 0 3px rgba(192,57,43,.15)}
.detail-info .stock-row .ful-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 10px;border:1px solid #cfeae1;border-radius:999px;background:var(--green3,#e7f6f1);color:var(--green-dark,#055a49);font-size:12px;font-weight:600;line-height:1;white-space:nowrap}
.detail-info .stock-row .ful-chip svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--green,#087760)}
@media(max-width:800px){
  .detail-info .stock-row{gap:6px;margin:8px 0 14px}
  .detail-info .stock-row .stock.stock-pill,.detail-info .stock-row .ful-chip{height:28px;font-size:11.5px}
  .detail-info .stock-row .ful-chip{padding:0 10px 0 8px;gap:5px}
  .detail-info .stock-row .ful-chip svg{width:14px;height:14px}
}
