/* Product page sticky Add to cart bar (public/assets/js/sticky-atc.js). Uses the site's colour variables, so dark mode follows automatically. */
.sab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--c-bg); border-top: 1px solid var(--c-border);
  box-shadow: 0 -8px 24px -12px rgba(20, 16, 30, .28); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .25s ease; }
.sab[hidden] { display: none; }
.sab.is-on { transform: translateY(0); }
.sab-in { display: flex; align-items: center; gap: .85rem; max-width: 1100px; margin: 0 auto; padding-right: 64px; }
.sab-img { flex: none; width: 44px; height: 55px; object-fit: cover; border-radius: 6px; background: var(--c-bg-alt); }
.sab-txt { min-width: 0; flex: 1 1 auto; }
.sab-title { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sab-price { margin: .1rem 0 0; font-size: .9rem; color: var(--c-muted); }
.sab-btn { flex: none; min-width: 11rem; width: auto; margin: 0; }
.sab-btn[disabled] { opacity: .6; cursor: not-allowed; }
/* keep the sale popup and the pop-up notes above the bar while it is on screen */
body.has-sab .salepop--bottom-left, body.has-sab .salepop--bottom-right { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
body.has-sab .sn-left, body.has-sab .sn-right, body.has-sab .sn-center { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
  .sab { padding-left: .75rem; padding-right: .75rem; }
  .sab-in { padding-right: 0; gap: .6rem; }
  .sab-btn { min-width: 8.5rem; padding-left: 1rem; padding-right: 1rem; }
  body.has-sab .salepop--bottom-left, body.has-sab .salepop--bottom-right { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .sab { transition: none; } }
