/* Fast2buys storefront core styles: toasts (toastr-compatible markup), image lightbox,
   horizontal product shelf, product gallery — the vanilla replacements for toastr.css,
   magnific-popup.css and slick.css. */

/* ---------- toasts ---------- */
#toast-container{ position:fixed; z-index:1000020; pointer-events:none; width:min(340px, calc(100vw - 24px)); display:flex; flex-direction:column; gap:8px; }
#toast-container.toast-top-right{ top:14px; right:12px; }
#toast-container.toast-top-left{ top:14px; left:12px; }
#toast-container.toast-bottom-right{ bottom:14px; right:12px; }
#toast-container.toast-bottom-left{ bottom:14px; left:12px; }
#toast-container.toast-top-center{ top:14px; left:50%; transform:translateX(-50%); }
#toast-container.toast-bottom-center{ bottom:14px; left:50%; transform:translateX(-50%); }
#toast-container .toast{ position:relative; pointer-events:auto; overflow:hidden; border-radius:10px; padding:12px 34px 12px 14px; color:#fff !important; font-size:13.5px; line-height:1.4; box-shadow:0 10px 30px -10px rgba(0,0,0,.45); opacity:0; transform:translateY(8px); transition:opacity .22s ease, transform .22s ease; }
#toast-container .toast.show{ opacity:1; transform:none; }
#toast-container .toast-success{ background:#0A717A; }
#toast-container .toast-error{ background:#c0392b; }
#toast-container .toast-warning{ background:#d97706; }
#toast-container .toast-info{ background:#2563eb; }
#toast-container .toast-title{ font-weight:800; margin-bottom:2px; }
#toast-container .toast-message{ word-break:break-word; }
#toast-container .toast-message a{ color:#fff !important; text-decoration:underline; }
#toast-container .toast-close-button{ position:absolute; top:6px; right:8px; width:22px; height:22px; border:0; background:transparent; color:#fff; font-size:18px; line-height:22px; padding:0; cursor:pointer; opacity:.8; }
#toast-container .toast-close-button:hover{ opacity:1; }
#toast-container .toast-progress{ position:absolute; left:0; bottom:0; height:3px; width:100%; background:rgba(255,255,255,.45); transition-property:width; transition-timing-function:linear; }

/* ---------- lightbox ---------- */
.f2b-lightbox{ position:fixed; inset:0; z-index:1000030; background:rgba(10,12,16,.92); display:none; align-items:center; justify-content:center; padding:16px; }
.f2b-lightbox.open{ display:flex; }
body.f2b-lb-open{ overflow:hidden; }
.f2b-lightbox figure{ margin:0; max-width:100%; max-height:100%; display:flex; align-items:center; justify-content:center; }
.f2b-lightbox img{ max-width:min(96vw, 1100px); max-height:88vh; width:auto; height:auto; object-fit:contain; border-radius:8px; box-shadow:0 30px 80px -30px rgba(0,0,0,.8); background:#fff; }
.f2b-lightbox button{ position:absolute; border:0; background:rgba(255,255,255,.12); color:#fff; width:44px; height:44px; border-radius:50%; font-size:22px; line-height:44px; padding:0; cursor:pointer; transition:background .15s ease; }
.f2b-lightbox button:hover{ background:rgba(255,255,255,.28); }
.f2b-lightbox .f2b-lb-close{ top:14px; right:14px; font-size:28px; }
.f2b-lightbox .f2b-lb-prev{ left:12px; top:50%; transform:translateY(-50%); }
.f2b-lightbox .f2b-lb-next{ right:12px; top:50%; transform:translateY(-50%); }
.f2b-lightbox.single .f2b-lb-prev, .f2b-lightbox.single .f2b-lb-next{ display:none; }
.f2b-lightbox .f2b-lb-count{ position:absolute; bottom:14px; left:50%; transform:translateX(-50%); color:rgba(255,255,255,.75); font-size:12.5px; font-weight:600; letter-spacing:.06em; }

/* ---------- horizontal shelf (related products) ---------- */
.f2b-shelf{ position:relative; }
.f2b-shelf .slide-arrow{ position:absolute; top:-46px; right:0; width:34px; height:34px; border-radius:50%; border:1px solid #e5e7eb; background:#fff; color:#111827; display:flex; align-items:center; justify-content:center; font-size:13px; padding:0; cursor:pointer; transition:background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease; z-index:2; }
.f2b-shelf .slide-arrow:hover{ background:#0A717A; border-color:#0A717A; color:#fff; }
.f2b-shelf .prev-arrow{ right:42px; }
.f2b-shelf .slide-arrow.is-off{ opacity:.35; pointer-events:none; }
.f2b-shelf.no-scroll .slide-arrow{ display:none; }
@media (min-width:576px){
  .f2b-shelf .explore-product-activation{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -ms-overflow-style:none; }
  .f2b-shelf .explore-product-activation::-webkit-scrollbar{ display:none; }
  .f2b-shelf .explore-product-activation > .related-slide{ flex:0 0 33.3333%; max-width:33.3333%; scroll-snap-align:start; }
}
@media (min-width:992px){ .f2b-shelf .explore-product-activation > .related-slide{ flex-basis:25%; max-width:25%; } }
@media (min-width:1200px){ .f2b-shelf .explore-product-activation > .related-slide{ flex-basis:20%; max-width:20%; } }
@media (max-width:575.98px){ .f2b-shelf .slide-arrow{ display:none; } }

/* ---------- product gallery (one large slide at a time) ---------- */
.product-large-thumbnail-3 > .thumbnail{ display:none !important; }
.product-large-thumbnail-3 > .thumbnail.is-active{ display:flex !important; }
.product-large-thumbnail-3{ touch-action:pan-y; }

/* ---------- cart slide-in panel ---------- */
/* The theme's .cart-dropdown.open{right:0} kept losing to its own mobile rule in practice; pin it. */
.cart-dropdown.open, #cart-dropdown.open{ right:0 !important; }
.closeMask{ position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:100; }

/* ---------- drawers (Bootstrap offcanvas) ---------- */
/* Sit above the fixed bottom nav (999997) / floating cart stack (999998), like the modals do, and hide
   those two while a drawer is open so they can never cover the drawer's last items or its buttons. */
.offcanvas{ z-index:1000001 !important; }
.offcanvas-backdrop{ z-index:1000000 !important; }
body.offcanvas-open .glass-bottom-nav,
body.offcanvas-open .premium-float-stack{ visibility:hidden !important; }
