/* Synergy Research prof2: floating cart badge, v3 (peptides = dark grey #2b2f36, 2026-09-15). One badge per division cart (beauty / peptides / water),
   hidden while that cart is empty. Sits bottom-right, under modals, clear of #navFab (right edge, mid screen). */
.ljs-cartbadge{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:150;width:52px;height:52px;border-radius:50%;border:0;padding:0;margin:0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;background:#1a1a1a;box-shadow:0 10px 26px rgba(0,0,0,.26),0 2px 6px rgba(0,0,0,.14);transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .22s ease,box-shadow .22s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.ljs-cartbadge[hidden]{display:none}
.ljs-cartbadge:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(0,0,0,.3),0 2px 6px rgba(0,0,0,.14)}
.ljs-cartbadge:active{transform:scale(.96)}
.ljs-cartbadge:focus-visible{outline:2px solid #fff;outline-offset:3px}
.ljs-cartbadge svg{width:24px;height:24px;display:block;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ljs-cartbadge .n{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#1a1a1a;color:#fff;font:700 11.5px/22px -apple-system,BlinkMacSystemFont,'Segoe UI',Poppins,Inter,Arial,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff;letter-spacing:0}
.ljs-cartbadge.pop{animation:ljsBadgePop .38s cubic-bezier(.2,.8,.2,1)}
@keyframes ljsBadgePop{0%{transform:scale(.7)}60%{transform:scale(1.08)}100%{transform:scale(1)}}
/* division accents */
.ljs-cartbadge--beauty{background:#ad8a38}
.ljs-cartbadge--peptides{background:#2b2f36}
.ljs-cartbadge--water{background:var(--accent-blue,#1a8fb8)}
.ljs-cartbadge--peptides .n{background:#141618}
.ljs-cartbadge--water .n{background:#062232}
.ljs-cartbadge--beauty .n{background:#241d16}
/* peptides store: the Categories tab (#catFab, right edge, bottom 100px on phones) sits above the badge,
   so lift the badge over it on that page */
@media(max-width:640px){
  body.has-catfab .ljs-cartbadge{bottom:calc(160px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){
  .ljs-cartbadge,.ljs-cartbadge.pop{transition:none;animation:none}
}

/* v4: cart badge restyled to match the flap tabs, mobile only, hanging from the BOTTOM edge, right side (same side as the top MENU tab) */
@media(max-width:1000px){
  .ljs-cartbadge{
    right:24px !important; left:auto !important; bottom:0 !important; top:auto !important;
    width:auto !important; height:44px !important; border-radius:18px 18px 0 0 !important;
    padding:0 16px !important; flex-direction:row; gap:8px;
    box-shadow:0 -8px 22px rgba(0,0,0,.22) !important;
  }
  .ljs-cartbadge svg{width:20px;height:20px}
  .ljs-cartbadge .n{position:static;box-shadow:none;background:rgba(255,255,255,.22) !important;font-size:12px;height:20px;min-width:20px;padding:0 6px}
  body.has-catfab .ljs-cartbadge{bottom:0 !important}
}

/* v11: cart sticks to the right edge, like the division tab, positioned below it (vertical flap, right:0) */
@media(max-width:1000px){
  .ljs-cartbadge{
    right:0 !important; left:auto !important; bottom:auto !important; top:auto !important; bottom:70px !important;
    width:38px !important; height:auto !important; min-height:64px;
    border-radius:15px 0 0 15px !important; padding:12px 0 14px !important;
    flex-direction:column !important; gap:6px; font-size:11.5px !important;
    box-shadow:-6px 8px 22px rgba(0,0,0,.20) !important;
  }
  .ljs-cartbadge::before,.ljs-cartbadge::after{content:"";position:absolute;right:0;width:15px;height:15px;pointer-events:none}
  .ljs-cartbadge::before{top:-15px}
  .ljs-cartbadge::after{bottom:-15px}
  .ljs-cartbadge--beauty::before,.ljs-cartbadge--beauty::after{background:radial-gradient(circle at 0 0,transparent 14px,#ad8a38 14.6px)}
  .ljs-cartbadge--beauty::after{background:radial-gradient(circle at 0 100%,transparent 14px,#ad8a38 14.6px)}
  .ljs-cartbadge--peptides::before,.ljs-cartbadge--peptides::after{background:radial-gradient(circle at 0 0,transparent 14px,#2b2f36 14.6px)}
  .ljs-cartbadge--peptides::after{background:radial-gradient(circle at 0 100%,transparent 14px,#2b2f36 14.6px)}
  .ljs-cartbadge--water::before,.ljs-cartbadge--water::after{background:radial-gradient(circle at 0 0,transparent 14px,var(--accent-blue,#1a8fb8) 14.6px)}
  .ljs-cartbadge--water::after{background:radial-gradient(circle at 0 100%,transparent 14px,var(--accent-blue,#1a8fb8) 14.6px)}
  .ljs-cartbadge:not([class*="ljs-cartbadge--"])::before{background:radial-gradient(circle at 0 0,transparent 14px,#1a1a1a 14.6px)}
  .ljs-cartbadge:not([class*="ljs-cartbadge--"])::after{background:radial-gradient(circle at 0 100%,transparent 14px,#1a1a1a 14.6px)}
  .ljs-cartbadge svg{width:18px;height:18px}
  .ljs-cartbadge .n{position:static;box-shadow:none;background:rgba(255,255,255,.22) !important;font-size:11px;line-height:1;height:18px;width:18px;min-width:18px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;text-align:center}
  .ljs-cartbadge.ljs-over-footer{opacity:0 !important;pointer-events:none !important}
  .ljs-cartbadge{transition:opacity .2s ease,transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s ease}
}
