/* Smbios site-wide cart drawer.
   Palette matches landing / checkout: bg #0d0d0d, panel #151515, border #434348, accent #4b80c2. */

:root {
    --sc-bg: #0d0d0d;
    --sc-panel: #151515;
    --sc-panel-2: #1a1a1a;
    --sc-border: #434348;
    --sc-border-soft: rgba(255, 255, 255, 0.06);
    --sc-text: #ffffff;
    --sc-text-muted: #8A8A8D;
    --sc-accent: #4b80c2;
    --sc-accent-strong: #2e619c;
    --sc-red: #eb4034;
    --sc-radius: 10px;
    --sc-drawer-width: 420px;
}

/* Backdrop */
.sc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9998;
}
.sc-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer */
.sc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--sc-drawer-width);
    background: var(--sc-panel);
    color: var(--sc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    z-index: 9999;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    border-left: 1px solid var(--sc-border);
}
.sc-drawer.is-open {
    transform: translateX(0);
}

/* Header */
.sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--sc-border-soft);
    flex-shrink: 0;
}
.sc-head-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sc-head-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(75, 128, 194, 0.18);
    color: #7ec3ff;
    font-size: 11px;
    font-weight: 700;
}
.sc-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    border: 0;
    color: var(--sc-text-muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    padding: 0;
}
.sc-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sc-text);
}
.sc-close svg { width: 18px; height: 18px; display: block; }

/* Body (scrolling area) */
.sc-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 22px 22px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.sc-body::-webkit-scrollbar { width: 6px; }
.sc-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 6px; }

/* Empty state (with featured products) */
.sc-empty {
    padding: 32px 0 20px;
    color: var(--sc-text-muted);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sc-empty-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.sc-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(75, 128, 194, 0.08);
    color: var(--sc-accent);
    display: inline-grid;
    place-items: center;
    margin-bottom: 8px;
}
.sc-empty-icon svg { width: 26px; height: 26px; }
.sc-empty-title { color: var(--sc-text); font-weight: 600; font-size: 15px; }
.sc-empty-sub { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-text-muted); }
.sc-empty-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
    align-self: center;
    width: 100%;
    max-width: 240px;
}
.sc-empty-cta:hover { background: rgba(75, 128, 194, 0.1); border-color: var(--sc-accent); }
.sc-empty-cta svg { transition: transform .18s ease; }
.sc-empty-cta:hover svg { transform: translateX(2px); }

/* Featured product cards (empty-state) */
.sc-featured { display: flex; flex-direction: column; gap: 8px; }
.sc-featured-empty { font-size: 12px; color: var(--sc-text-muted); text-align: center; padding: 20px 0; }
.sc-feat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--sc-panel-2);
    border-radius: var(--sc-radius);
    padding: 10px;
    transition: background .15s ease;
}
.sc-feat-card:hover { background: rgba(75, 128, 194, 0.08); }
.sc-feat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.sc-feat-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #0d0d0d;
    flex-shrink: 0;
    border: 1px solid var(--sc-border-soft);
}
.sc-feat-img.is-placeholder { background: linear-gradient(135deg, #1a1a1a, #0d0d0d); }
.sc-feat-body { min-width: 0; flex: 1; }
.sc-feat-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sc-text);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-feat-price { font-size: 12px; color: var(--sc-text-muted); margin-top: 2px; }
.sc-feat-add {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(75, 128, 194, 0.15);
    border: 0;
    color: var(--sc-accent);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background .15s ease, transform .15s ease, color .15s ease;
    padding: 0;
}
.sc-feat-add:hover { background: var(--sc-accent); color: #0d0d0d; transform: scale(1.08); }
.sc-feat-add svg { width: 16px; height: 16px; }

/* Featured card skeleton */
.sc-feat-card.is-skel { pointer-events: none; }
.is-skel { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 37%, rgba(255,255,255,0.04) 63%); background-size: 400% 100%; animation: sc-skel 1.4s ease infinite; }
.sc-feat-name.is-skel { height: 12px; width: 60%; border-radius: 4px; }
.sc-feat-price.is-skel { height: 10px; width: 40%; border-radius: 4px; margin-top: 6px; }
@keyframes sc-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Item card */
.sc-items { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.sc-item {
    display: flex;
    flex-direction: column;
    background: var(--sc-panel-2);
    border-radius: var(--sc-radius);
    padding: 14px;
    position: relative;
    transition: opacity .2s ease, transform .2s ease;
    overflow: hidden;
}
.sc-item.is-removing { opacity: 0; transform: translateX(20px); }

.sc-item-main {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 14px;
    align-items: stretch;
}
.sc-item-img {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    background: #0d0d0d;
    object-fit: cover;
    align-self: stretch;
    border: 1px solid var(--sc-border-soft);
}
.sc-item-img.is-placeholder {
    display: grid;
    place-items: center;
    color: var(--sc-text-muted);
}
.sc-item-img.is-placeholder svg { width: 26px; height: 26px; }

.sc-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}
.sc-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--sc-text);
    line-height: 1.25;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sc-item-plan {
    font-size: 12px;
    color: var(--sc-text-muted);
    margin-top: 2px;
}
.sc-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.sc-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--sc-text);
    align-self: flex-start;
    white-space: nowrap;
}

/* Upsell pill (below the item body) */
.sc-item-upsell {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(75,128,194,0.16), rgba(75,128,194,0.06));
    border: 1px solid rgba(75, 128, 194, 0.35);
    border-radius: 8px;
    color: var(--sc-text);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.sc-item-upsell:hover {
    background: linear-gradient(135deg, rgba(75,128,194,0.28), rgba(75,128,194,0.12));
    border-color: var(--sc-accent);
    transform: translateY(-1px);
}
.sc-item-upsell-spark {
    color: #7ec3ff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.sc-item-upsell-spark svg { width: 14px; height: 14px; }
.sc-item-upsell-text {
    flex: 1;
    min-width: 0;
    color: var(--sc-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sc-item-upsell-text b { font-weight: 700; }
.sc-item-upsell-save {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.sc-item-upsell-diff {
    color: var(--sc-text-muted);
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

/* Qty stepper */
.sc-qty {
    display: inline-flex;
    align-items: center;
    background: #0d0d0d;
    border: 1px solid var(--sc-border-soft);
    border-radius: 6px;
    overflow: hidden;
}
.sc-qty-btn {
    width: 26px;
    height: 26px;
    background: transparent;
    border: 0;
    color: var(--sc-text-muted);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
    padding: 0;
    font-family: inherit;
}
.sc-qty-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); color: var(--sc-text); }
.sc-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.sc-qty-val {
    min-width: 26px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--sc-text);
    padding: 0 2px;
}

.sc-item-remove {
    background: transparent;
    border: 0;
    color: var(--sc-text-muted);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    transition: color .15s ease;
    font-family: inherit;
    letter-spacing: 0.02em;
}
.sc-item-remove:hover { color: var(--sc-red); }

/* Footer */
.sc-foot {
    padding: 16px 22px 18px;
    border-top: 1px solid var(--sc-border-soft);
    background: var(--sc-panel);
    flex-shrink: 0;
}

/* Coupon section */
.sc-coupon { margin-bottom: 14px; }
.sc-coupon-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    padding: 4px 0;
    color: var(--sc-text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s ease;
}
.sc-coupon-toggle:hover { color: var(--sc-accent); }
.sc-coupon-toggle svg { width: 15px; height: 15px; opacity: 0.85; }

.sc-coupon-form {
    display: flex;
    gap: 8px;
}
.sc-coupon-input {
    flex: 1;
    min-width: 0;
    background: #1a1a1a;
    border: 1px solid var(--sc-border-soft);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--sc-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.sc-coupon-input:focus {
    border-color: var(--sc-accent);
    background: #1e1e1e;
}
.sc-coupon-input::placeholder { color: var(--sc-text-muted); font-weight: 500; letter-spacing: 0.02em; }
.sc-coupon-apply {
    background: var(--sc-accent);
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #0d0d0d;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background .15s ease;
}
.sc-coupon-apply:hover { background: #7ba5d8; }
.sc-coupon-apply:disabled { opacity: 0.6; cursor: not-allowed; }

.sc-coupon-error {
    margin-top: 8px;
    font-size: 12px;
    color: var(--sc-red);
    line-height: 1.4;
}

.sc-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 8px;
}
.sc-coupon-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--sc-text);
    min-width: 0;
    flex: 1;
}
.sc-coupon-tag svg {
    width: 15px;
    height: 15px;
    color: #22C55E;
    flex-shrink: 0;
}
.sc-coupon-tag span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sc-coupon-tag b { color: #7ee0a1; font-weight: 700; }
.sc-coupon-remove {
    background: transparent;
    border: 0;
    color: var(--sc-text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 4px;
    transition: color .15s ease, background .15s ease;
    flex-shrink: 0;
}
.sc-coupon-remove:hover { color: var(--sc-red); background: rgba(255,255,255,0.04); }
.sc-coupon-remove svg { width: 14px; height: 14px; }

/* Totals block */
.sc-totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.sc-tot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sc-tot-label {
    font-size: 12px;
    color: var(--sc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sc-tot-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--sc-text);
}
.sc-tot-value-neg { color: #22C55E; }

.sc-tot-row.is-total {
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid var(--sc-border-soft);
}
.sc-tot-label-total {
    font-size: 13px;
    color: var(--sc-text);
    font-weight: 600;
}
.sc-tot-value-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--sc-text);
    letter-spacing: -0.01em;
}

.sc-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    background: var(--sc-accent);
    color: #0d0d0d;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
    transition: background .18s ease, transform .18s ease;
}
.sc-checkout:hover:not(:disabled) { background: #7ba5d8; }
.sc-checkout:active:not(:disabled) { transform: scale(0.985); }
.sc-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
.sc-checkout svg { width: 16px; height: 16px; transition: transform .18s ease; }
.sc-checkout:hover:not(:disabled) svg { transform: translateX(3px); }

/* Loading state on drawer */
.sc-drawer.is-busy .sc-body { opacity: 0.55; pointer-events: none; }

/* Fly-to-cart dot — animates from click point to the cart icon on add.
   CSS variables --sc-fly-dx / --sc-fly-dy are set inline by the JS. */
.sc-fly {
    position: fixed;
    z-index: 10000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sc-accent);
    color: #0d0d0d;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 22px rgba(75, 128, 194, 0.55);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: sc-fly-arc 780ms cubic-bezier(.55, -0.15, .55, 1) forwards;
}
.sc-fly svg { width: 15px; height: 15px; }

@keyframes sc-fly-arc {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    12%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    25%  { transform: translate(calc(-50% + var(--sc-fly-dx) * 0.15), calc(-50% + var(--sc-fly-dy) * 0.15 - 40px)) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--sc-fly-dx)), calc(-50% + var(--sc-fly-dy))) scale(0.35); opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
    .sc-fly { display: none; }
}

/* Just-added item glow (drawer) */
.sc-item.is-just-added {
    animation: sc-item-just-added 1.5s cubic-bezier(.22, .61, .36, 1);
}
@keyframes sc-item-just-added {
    0% {
        background: rgba(75, 128, 194, 0.35);
        box-shadow: 0 0 0 2px rgba(75, 128, 194, 0.45), 0 8px 24px rgba(75, 128, 194, 0.25);
        transform: scale(1.015);
    }
    100% {
        background: var(--sc-panel-2);
        box-shadow: 0 0 0 0 rgba(75, 128, 194, 0), 0 0 0 rgba(75, 128, 194, 0);
        transform: scale(1);
    }
}

/* Checkout transition overlay — matches checkout page's .pt-overlay so the
   two sides read as one continuous handoff. Fades in on Checkout click, then
   navigation happens; the checkout page's overlay fades out on load. */
.sc-checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: #0d0d0d;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}
.sc-checkout-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.sc-checkout-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.sc-checkout-overlay-inner img {
    filter: drop-shadow(0 0 22px rgba(76, 128, 194, .35));
    animation: sc-co-pulse 1.6s ease-in-out infinite;
}
.sc-checkout-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.10);
    border-top-color: var(--sc-accent);
    border-radius: 50%;
    animation: sc-co-spin .8s linear infinite;
}
@keyframes sc-co-pulse {
    0%, 100% { opacity: 0.92; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.04); }
}
@keyframes sc-co-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .sc-checkout-overlay { transition: none; }
    .sc-checkout-overlay-inner img,
    .sc-checkout-spinner { animation: none; }
}

/* Cross-document view transitions (browser-native crossfade to /checkout/).
   Requires the destination page to also opt in — checkout page already does. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: cubic-bezier(.22,.61,.36,1); }

/* Cart trigger badge (used by nav icon) */
.sc-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--sc-accent);
    color: #0d0d0d;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: scale(0);
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
    line-height: 1;
}
.sc-badge.is-visible { transform: scale(1); }
.sc-badge.is-pulse { animation: sc-badge-pulse .55s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes sc-badge-pulse {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(75, 128, 194, 0.6); }
    40%  { transform: scale(1.55); box-shadow: 0 0 0 6px rgba(75, 128, 194, 0.15); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(75, 128, 194, 0); }
}

/* Mobile */
@media (max-width: 520px) {
    :root { --sc-drawer-width: 100%; }
    .sc-drawer { border-left: 0; }
    .sc-head { padding: 16px 18px; }
    .sc-body { padding: 8px 18px 18px; }
    .sc-foot { padding: 14px 18px 16px; }
    .sc-item { padding: 12px; }
    .sc-item-main { grid-template-columns: 72px 1fr auto; gap: 12px; }
    .sc-item-img { width: 72px; height: 72px; }
}

/* Prevent body scroll while drawer is open */
body.sc-lock { overflow: hidden; }

/* Site-wide cart trigger. Two variants:
   .is-inline  → placed inside the nav next to the Shop link (preferred).
   .is-fixed   → floating pill fallback if nav injection fails. */
.site-cart-fab {
    /* Starts hidden until the boot script assigns a variant so we don't flash
       a floating pill before nav injection has a chance to run. */
    display: none;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.site-cart-fab.is-inline,
.site-cart-fab.is-fixed { display: inline-flex; }

/* Inline (nav-integrated) — small round pill placed after the last nav link. */
.site-cart-fab.is-inline {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 6px;
    vertical-align: middle;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.site-cart-fab.is-inline:hover {
    background: rgba(75, 128, 194, 0.14);
    border-color: rgba(75, 128, 194, 0.45);
    color: #fff;
    transform: translateY(-1px);
}
.site-cart-fab.is-inline svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Fixed fallback — bottom-right floating pill. */
.site-cart-fab.is-fixed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #151515;
    border: 1px solid #2A2A2E;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transition: background .2s ease, border-color .2s ease, transform .18s ease, box-shadow .2s ease;
    animation: sc-fab-in .5s cubic-bezier(.34, 1.56, .64, 1) .1s backwards;
}
.site-cart-fab.is-fixed:hover {
    background: rgba(75, 128, 194, 0.14);
    border-color: rgba(75, 128, 194, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(75, 128, 194, 0.25) inset;
}
.site-cart-fab.is-fixed:active { transform: translateY(0); }
.site-cart-fab.is-fixed svg {
    width: 22px;
    height: 22px;
    display: block;
    transform: translateY(-1px);
}

@keyframes sc-fab-in {
    from { opacity: 0; transform: translateY(20px) scale(0.85); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@media (max-width: 767px) {
    .site-cart-fab.is-fixed {
        top: 14px;
        right: 68px; /* clear of the hamburger at ~14px right */
        bottom: auto;
        width: 40px;
        height: 40px;
        border-radius: 9999px;
        box-shadow: none;
        animation: none;
    }
    .site-cart-fab.is-fixed svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-cart-fab.is-fixed { animation: none; }
}

/* Badge position tuning per variant (base is top:-6px right:-6px). */
.site-cart-fab.is-inline .sc-badge { top: -4px; right: -4px; min-width: 16px; height: 16px; font-size: 9px; }
