/* =============================================================================
   cart.css - Herb & House Side Cart v3.0  (Premium Botanical · Fixed Cascade)
   --------------------------------------------------------------------------
   Root-cause fix for "design is too much broken":

   The previous version's CSS rules for .gift-widget-*, .gift-timeline-*,
   .gift-picker-*, .gift-progress-* were LOSING the CSS cascade to an
   inline <style> block that _gift_widget.blade.php was rendering INSIDE
   the body (later in source order → wins on equal specificity, and even
   wins over !important in earlier-loaded stylesheets when both use it).

   v3.0 FIX:
     1. The inline <style> block was REMOVED from _gift_widget.blade.php
     2. All those gift-widget rules now live here in Section 7
     3. No !important needed - cart.css rules now win cleanly on equal specificity

   Plus v2.0 polish retained:
     • Lighter Playfair header weight (500 vs 700) for editorial luxury
     • Soft green-tinted shadows on cards (botanical depth)
     • Green-tinted drawer shadow (not pure black)
     • "Grab it" button = OUTLINE ghost (no CTA competition)
     • Checkout button has inner highlight + outer drop (tactile depth)
     • Refined typography (lighter item names, crisper prices, larger total)
     • content-visibility: auto on cart rows (perf)
     • contain: layout style paint on scroll body (perf)
     • GPU-only animations (transform + opacity)
     • prefers-reduced-motion respected

   PLUS v3.0 NEW:
     • Gift widget styles properly themed to match React design (warm cream
       progress box, gold accent icons, sage green ribbons)
     • Fixed --terracotta-clay token reference (now uses --clay correctly)
   ========================================================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   1. OFFCANVAS SHELL - drawer container
   ═══════════════════════════════════════════════════════════════════════════ */

#demo.offcanvas {
    width: 420px !important;
    border-left: 0 !important;
    background:var(--paper) !important;
    /* v2.0: Green-tinted shadow (not pure black) - feels like part of the brand */
    box-shadow: -24px 0 70px rgba(28, 58, 28, 0.22);
    will-change: transform;
    contain: layout style;
}

#demo.offcanvas.offcanvas-end {
    transform: translateX(100%);
    transition: transform var(--cart-duration-slow, 0.4s) var(--cart-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

#demo.offcanvas.show {
    transform: translateX(0);
    will-change: auto;
}

.offcanvas-backdrop.show {
    opacity: 0.35 !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. HEADER - title + count pill + close button
   ═══════════════════════════════════════════════════════════════════════════ */

.sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--sp-4, 16px) 10px;
    border-bottom: 1px solid var(--line);
    background:var(--paper);
    position: sticky;
    top: 0;
    z-index: 2;
    contain: layout style;
}

.sc-header-title {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: 19px;
    font-weight: 500;  /* v2.0: was 700 - lighter, more editorial/luxury */
    color: var(--ink);
    margin: 0;
    letter-spacing: 0.3px;  /* v2.0: positive tracking for editorial feel */
    line-height: 1.2;
}

.sc-header-count {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 12px;
    font-weight: 600;
    color: var(--on-ink);
    background:var(--ink);
    padding: 3px 10px;
    border-radius: 50px;
    margin-left: 10px;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.sc-close-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background:var(--paper);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-close-btn:hover {
    background:var(--cream);
    transform: rotate(90deg);
}

.sc-close-btn svg {
    width: 14px;
    height: 14px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. SHIPPING STRIP - thin 4px progress bar
   ═══════════════════════════════════════════════════════════════════════════ */

.sc-shipping-bar {
    padding: 0;
    background:var(--paper);
    flex-shrink: 0;
}

.sc-shipping-track {
    height: 4px;
    background:var(--paper);
    overflow: hidden;
}

.sc-shipping-fill {
    height: 100%;
    background:var(--ink);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-shipping-msg {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 8px var(--sp-4, 16px) 0;
    text-align: center;
    line-height: 1.4;
}

.sc-shipping-msg strong {
    color: var(--ink);
    font-weight: var(--fw-semibold);
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. SHIPPING UNLOCKED BANNER
   ═══════════════════════════════════════════════════════════════════════════ */

.shipping-unlocked {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px var(--sp-4, 16px);
    background:var(--success-soft);
    border-bottom: 1px solid var(--line-strong);
    flex-shrink: 0;
}

.shipping-unlocked-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background:var(--success);
    color: var(--on-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shipping-unlocked-icon svg {
    width: 12px;
    height: 12px;
}

.shipping-unlocked-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. BODY - scrollable items list
   ═══════════════════════════════════════════════════════════════════════════ */

.sc-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    contain: layout style paint;
}

.sc-body::-webkit-scrollbar {
    width: 3px;
}

.sc-body::-webkit-scrollbar-track {
    background:transparent;
}

.sc-body::-webkit-scrollbar-thumb {
    background:var(--line-strong);
    border-radius: 9999px;
}

.sc-body {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. CART ITEM CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.sc-row {
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 12px;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                margin-bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 190px;
    content-visibility: auto;
    contain-intrinsic-size: 0 96px;
}

.sc-row:last-child {
    margin-bottom: 0;
}

.sc-row.is-removing {
    opacity: 0;
    max-height: 0 !important;
    margin-bottom: 0 !important;
    pointer-events: none;
}

.sc-swipe-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-right: 24px;
    border: 0;
    background:var(--error);
    color: var(--on-ink);
    font-size: 12px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.3px;
    cursor: pointer;
    border-radius: 12px;
}

.sc-swipe-bg svg {
    width: 16px;
    height: 16px;
}

.sc-swipe-content {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px;
    background:var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    touch-action: pan-y;
    /* v2.0: SOFT GREEN-TINTED SHADOW for premium depth */
    box-shadow: 0 1px 3px rgba(28, 58, 28, 0.05), 0 4px 14px rgba(28, 58, 28, 0.06);
}

.sc-swipe-content.is-dragging {
    transition: none;
}

.sc-row:hover .sc-swipe-content {
    border-color: var(--cream);
    box-shadow: 0 2px 6px rgba(28, 58, 28, 0.08), 0 10px 24px rgba(28, 58, 28, 0.08);
}

.sc-img {
    width: 54px;
    height: 54px;
    min-width: 54px;
    flex-shrink: 0;
    border-radius: 9px;
    background:var(--paper);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-img:hover {
    transform: scale(1.03);
}

.sc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-img:hover img {
    transform: scale(1.05);
}

.sc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 26px;
}

.sc-name {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 13px;
    font-weight: 500;  /* v2.0: was 600 - lighter, more editorial */
    color: var(--ink);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

a.sc-name:hover {
    color: var(--success);
}

.sc-variant {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-faint);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.sc-price {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 13px;  /* compact drawer sizing, full cart keeps its own */
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.1px;
}

.sc-price del {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-faint);
    margin-left: 5px;
}

.sc-discount-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--success);
    background:var(--success-soft);
    border: 1px solid var(--line-strong);
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.4;
}

.sc-del {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 22px;
    height: 22px;
    border: 0;
    background:transparent;
    border-radius: 50%;
    color: var(--text-faint);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.6;
    transition: color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-del svg {
    width: 12px;
    height: 12px;
}

.sc-row:hover .sc-del,
.sc-del:focus-visible {
    opacity: 1;
}

.sc-del:hover {
    background:var(--error-soft);
    color: var(--error);
}

.sc-del:active {
    transform: scale(0.9);
}

.sc-stock {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
    padding: 2px 0;
    line-height: 1.4;
}

.sc-stock.is-instock {
    color: var(--ink-hover);
}

.sc-stock.is-outstock {
    color: var(--error);
}


/* ═══════════════════════════════════════════════════════════════════════════
   7. GIFT ROW (free-gift variant inside side cart)
   ═══════════════════════════════════════════════════════════════════════════ */

.sc-row[data-row-type="gift"] .sc-swipe-content {
    background:var(--success-soft);
    border-color: var(--line-strong);
}

.fc-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background:var(--success);
    color: var(--on-ink);
    font-size: 10px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 0 0 8px 8px;
    align-self: flex-start;
    line-height: 1.4;
}

.fc-gift-badge svg {
    width: 9px;
    height: 9px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. GIFT WIDGET - single unified card (timeline + status live in ONE box)
   --------------------------------------------------------------------------
   v4.0 CONSOLIDATION
     The widget used to render as several visually different pieces stacked
     on top of each other: a bare, unboxed reward timeline, then a separate
     bordered "status" card below it, sometimes with a THIRD bordered card
     for an upgrade note, plus dead CSS for an old flag-on-a-progress-bar
     timeline that nothing rendered anymore. Net effect: two competing
     "timeline" concepts in the codebase and a patched-together look in the
     UI (a floating list sitting above a boxed card).

     v4.0 renders exactly one card - .gift-widget-box - that contains the
     timeline (when there's at least one gift tier) and the current status
     line (confirmed / offer / progress) together. One shell, one shadow,
     one border. State is expressed as a CSS custom-property theme on that
     same box (8.3), not as a different box per state.

     The old flag/track/fill "mini progress bar" (.gift-progress-track,
     .gift-progress-fill, .gift-progress-flag*) is REMOVED - the reward
     timeline (8.5) is the only progress indicator now, including for the
     single-tier case (it already renders a 1-node timeline).

   STRUCTURE (see _gift_widget.blade.php + its sub-partials)
     .gift-widget                     outer padding gutter (cart vs sidecart)
       .gift-widget-box               ← the one card. data-state theme.
         .gift-timeline                reward ladder (8.5) - omitted if no tiers
         .gift-widget-divider          hairline - omitted if only one of the two
         .gift-widget-status           icon + message row (8.4)
         .gift-widget-subnote          optional secondary line (upgrade nudge)
         .gift-picker                  optional "pick your gift" card grid (8.6)

   MOBILE-FIRST / PERFORMANCE
     • Reward ladder uses CSS Grid with equal-width columns (not per-tier
       inline % math) - layout holds for 1 tier or 6 without per-tier
       positioning bugs, and reflows naturally at any viewport width.
     • Tier labels sit in normal document flow (no absolute-positioned
       label hanging off the bottom of the track) - a long gift name simply
       makes the row taller instead of being clipped by whatever renders
       next, which was the "half hidden under the next card" bug.
     • All animated properties are transform/opacity (GPU) and respect
       prefers-reduced-motion (8.7).
   ═══════════════════════════════════════════════════════════════════════════ */

/* -- 8.1 Outer gutter + loading skeleton -- */
.gift-widget {
    margin-bottom: 10px;
    padding: 0 var(--sp-4, 16px) 2px;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .gift-widget {
        padding-left: var(--sp-5, 20px);
        padding-right: var(--sp-5, 20px);
    }
}

.gift-widget-loading {
    position: relative;
    pointer-events: none;
    border-radius: 18px;
    overflow: hidden;
    min-height: 40px;
}
.gift-widget-loading > * {
    opacity: 0.38;
}
.gift-widget-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background:rgba(148, 178, 107, 0.32);
    background-size: 200% 100%;
    animation: giftShimmerSweep 1.15s ease-in-out infinite;
}
@keyframes giftShimmerSweep {
    0%   { background-position: 160% 0; }
    100% { background-position: -60% 0; }
}

/* -- 8.2 The one card shell -- */
.gift-widget-box {
    position: relative;
    padding: 11px 12px 12px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink);
    background: var(--success-soft);
    border: 1px solid var(--gw-border);
    overflow: hidden;
}

.gift-widget-box::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    right: -36px;
    bottom: -40px;
    border: 1px solid var(--gw-accent-soft, rgba(45,90,39,.10));
    border-radius: 50%;
    pointer-events: none;
}

.gift-widget-divider {
    height: 1px;
    margin: 9px 2px;
    background:var(--gw-accent-line, rgba(45,90,39,.12));
}

/* -- 8.3 State themes - swap the accent, everything else stays identical -- */
.gift-widget-box.gift-widget-confirmed,
.gift-widget-box.gift-widget-offer {
    --gw-bg-from:    var(--success-soft);
    --gw-bg-to:      var(--success-soft);
    --gw-border:     var(--line-strong);
    --gw-accent:     var(--success);
    --gw-accent-soft: rgba(45, 90, 39, .10);
    --gw-accent-line: rgba(45, 90, 39, .12);
}

.gift-widget-box.gift-widget-progress-box {
    --gw-bg-from:    var(--gold-soft);
    --gw-bg-to:      var(--paper);
    --gw-border:     var(--gold-soft);
    --gw-accent:     var(--gold-deep);
    --gw-accent-soft: rgba(176, 145, 91, .12);
    --gw-accent-line: rgba(176, 145, 91, .16);
}

.gift-widget-confirmed.gift-celebrate-play {
    animation: giftPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gift-widget-confirmed.gift-celebrate-seen .gift-widget-icon-pop {
    animation: none;
}

@keyframes giftPopIn {
    0%   { transform: scale(0.94); opacity: 0; }
    60%  { transform: scale(1.015); opacity: 1; }
    100% { transform: scale(1); }
}

/* -- 8.4 Status row - icon + message, shared by every state -- */
.gift-widget-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gift-widget-icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--gw-accent);
    border: 1px solid var(--gw-accent-soft, rgba(45,90,39,.16));
    border-radius: 11px;
    background:rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 4px 11px rgba(28, 58, 28, 0.07);
}

.gift-state-svg {
    width: 23px;
    height: 23px;
    display: block;
    overflow: visible;
}

.gift-state-celebrate {
    width: 25px;
    height: 25px;
}

.gift-orbit {
    stroke: var(--gw-accent-soft, rgba(45,90,39,.16));
    stroke-width: 1;
    stroke-dasharray: 2 4;
    transform-origin: center;
    animation: giftOrbit 7s linear infinite;
}

.gift-spark {
    opacity: .8;
    animation: giftSpark 1.8s ease-in-out infinite;
}

.gift-widget-icon-pop {
    animation: giftIconPop 1.1s ease 0.15s 1;
}

.gift-widget-icon-bounce {
    animation: giftIconFloat 2.2s ease-in-out infinite;
}

@keyframes giftIconPop {
    0%   { transform: scale(.9); }
    35%  { transform: scale(1.08); }
    65%  { transform: scale(.98); }
    100% { transform: scale(1); }
}
@keyframes giftIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
@keyframes giftOrbit {
    to { transform: rotate(360deg); }
}
@keyframes giftSpark {
    0%, 100% { opacity: .35; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.08); }
}

.gift-widget-text {
    min-width: 0;
}

.gift-widget-link {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-weight: var(--fw-semibold);
    cursor: pointer;
}
.gift-widget-link:hover {
    color: var(--gw-accent);
}

/* Secondary line under the status row - e.g. "you unlocked an even
   better gift" nudge while a lower tier is already confirmed. Replaces
   the old standalone .gift-widget-upgrade CARD - it's one line inside
   the same box now, not a second box. */
.gift-widget-subnote {
    margin: 6px 0 0;
    padding-left: 44px; /* aligns under the status text, past the icon */
    font-size: 11.5px;
    color: var(--text-muted);
}
.gift-widget-subnote .gift-widget-link {
    color: var(--gold-deep);
}

/* -- 8.5 Reward timeline - the ONLY progress indicator in the widget -- */
.gift-timeline {
    margin-bottom: 10px;
}

.gift-timeline-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: .78;
    margin: 0 0 10px;
}
.gift-timeline-heading::before {
    content: '';
    width: 18px;
    height: 1px;
    background:rgba(45, 90, 39, .28);
}

/* Scroll container: equal-width columns hold for the common 1-4 tier
   case; if a merchant ever configures many tiers this scrolls instead
   of squeezing nodes/labels into overlap. */
.gift-timeline-scroll {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -2px;
    padding: 0 2px;
}
.gift-timeline-scroll::-webkit-scrollbar {
    display: none;
}

.gift-timeline-track-row {
    position: relative;
}

.gift-timeline-track {
    position: absolute;
    top: 14px;
    left: 30px;  /* half of .gift-timeline-stop's width - lines up exactly
                    with the first/last node's center, see below */
    right: 30px;
    height: 5px;
    border-radius: 999px;
    background:rgba(28, 58, 28, 0.16);
    box-shadow: inset 0 1px 2px rgba(28,58,28,.08);
}

.gift-timeline-fill {
    height: 100%;
    border-radius: inherit;
    background:var(--sage-mid);
    box-shadow: 0 1px 4px rgba(45,90,39,.20);
    transition: width .6s cubic-bezier(.22,1,.36,1);
}

/* Each stop is ONE flex item: node + its own label, stacked. Two
   separate stops can never drift out of alignment with each other since
   there's only one row of items, not two rows kept in sync by matching
   grid templates. First stop sits at the row start, last at the row end,
   with any stops between spread evenly - so the track (which spans the
   same row, edge to edge) always has a stop sitting right on each end. */
.gift-timeline-stops {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}

/* A single tier has nothing to "space between" - without this it would
   sit at the row start instead of reading as a target on the bar. */
.gift-timeline-stops.is-single {
    justify-content: flex-end;
}

.gift-timeline-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.gift-timeline-node {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:var(--gold-soft);
    border: 1.5px solid rgba(148,178,107,.42);
    padding: 0;
    cursor: default;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(28,58,28,.09);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.gift-timeline-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: .20;
    filter: saturate(.78);
    transition: opacity .2s ease;
}

.gift-timeline-icon {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.gift-icon-svg {
    width: 15px;
    height: 15px;
    color: var(--success);
}
.gift-icon-lock {
    color: var(--text-faint);
}
.gift-icon-check {
    color: var(--on-ink);
}

.gift-timeline-stop.is-locked .gift-timeline-node {
    opacity: .72;
    background:var(--paper);
}

.gift-timeline-stop.is-unlocked .gift-timeline-node {
    border-color: rgba(45,90,39,.48);
    cursor: pointer;
    animation: giftTimelinePulse 2.1s ease-in-out infinite;
}
.gift-timeline-stop.is-unlocked .gift-timeline-node:hover {
    transform: scale(1.10);
    box-shadow: 0 6px 15px rgba(28,58,28,.15);
}

.gift-timeline-stop.is-selected .gift-timeline-node {
    background:var(--ink);
    border-color: var(--ink);
    cursor: default;
    animation: none;
    box-shadow: 0 5px 14px rgba(28,58,28,.20);
}
.gift-timeline-stop.is-selected .gift-timeline-img {
    opacity: .10;
}
.gift-timeline-stop.is-selected .gift-timeline-node::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
}

.gift-timeline-node.gift-picker-loading {
    opacity: .55;
    pointer-events: none;
}

@keyframes giftTimelinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(110,168,126,.24), 0 2px 7px rgba(28,58,28,.08); }
    50% { box-shadow: 0 0 0 6px rgba(110,168,126,0), 0 4px 10px rgba(28,58,28,.11); }
}

/* Two-line clamp with ellipsis means a long gift name can NEVER push
   past its own stop and get covered by whatever renders after the
   widget - worst case it truncates instead of overlapping. */
.gift-timeline-label-col {
    margin-top: 6px;
}

.gift-timeline-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.28;
    color: var(--text-muted);
    font-weight: 650;
}

.gift-timeline-price {
    display: block;
    margin-top: 1px;
    font-style: normal;
    font-weight: 800;
    color: var(--ink);
    font-size: 9px;
    white-space: nowrap;
}

/* Sidecart runs narrower - scale the whole ladder down a notch rather
   than maintaining a second set of rules per element. */
.gift-widget-sidecart .gift-timeline-track {
    top: 12px;
    left: 25px;  /* half of the sidecart .gift-timeline-stop width (50px) */
    right: 25px;
}
.gift-widget-sidecart .gift-timeline-stop {
    width: 50px;
}
.gift-widget-sidecart .gift-timeline-node {
    width: 24px;
    height: 24px;
}
.gift-widget-sidecart .gift-icon-svg {
    width: 13px;
    height: 13px;
}
.gift-widget-sidecart .gift-timeline-label {
    font-size: 9px;
}

/* -- 8.6 Picker grid - "you unlocked N gifts, pick one" -- */
.gift-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.gift-picker-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 90px;
    padding: 9px 7px 8px;
    border: 1px solid rgba(45, 90, 39, 0.14);
    border-radius: 13px;
    background:var(--surface);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    overflow: visible;
}
.gift-picker-card:hover {
    border-color: rgba(45, 90, 39, 0.38);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(28, 58, 28, 0.12);
}
.gift-picker-card:active {
    transform: translateY(-1px);
}

.gift-picker-ribbon {
    position: absolute;
    top: -6px;
    right: 6px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--on-ink);
    background:var(--ink);
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 3px 7px rgba(28,58,28,.14);
}

.gift-picker-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-picker-img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 11px;
}
.gift-picker-img-placeholder {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--success);
    background:var(--paper);
    border: 1px solid rgba(45, 90, 39, 0.12);
    border-radius: 11px;
}
.gift-placeholder-svg {
    width: 28px;
    height: 28px;
}

.gift-picker-label {
    font-size: 11.5px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.3;
    font-weight: 650;
}
.gift-picker-cta {
    font-size: 10px;
    color: var(--success);
    font-weight: var(--fw-semibold);
}
.gift-picker-card.gift-picker-loading {
    opacity: .55;
    pointer-events: none;
}
.gift-picker-card.gift-picker-loading .gift-picker-cta::after {
    content: '...';
}

/* -- 8.7 Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
    .gift-widget-loading::after,
    .gift-orbit,
    .gift-spark,
    .gift-widget-icon-pop,
    .gift-widget-icon-bounce,
    .gift-timeline-fill,
    .gift-timeline-stop.is-unlocked .gift-timeline-node,
    .gift-widget-confirmed.gift-celebrate-play {
        animation: none !important;
        transition: none !important;
        background-position: 50% 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. FOOTER - subtotal / shipping / total / checkout / view cart
   ═══════════════════════════════════════════════════════════════════════════ */

.sc-foot {
    flex-shrink: 0;
    padding: 10px 14px 12px;
    border-top: 1px solid var(--line);
    background:var(--paper);
    position: sticky;
    bottom: 0;
    z-index: 2;
    contain: layout style;
}

.sc-foot-summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.sc-foot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-foot-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
}

.sc-foot-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.sc-foot-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2px 0;
}

.sc-foot-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 4px;
}

.sc-foot-total-label {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 13px;
    font-weight: var(--fw-semibold);
    color: var(--ink);
    line-height: 1.2;
}

.sc-foot-total-value {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.sc-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px;
    background:var(--ink);
    color: var(--on-ink);
    border: 0;
    border-radius: 11px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    line-height: 1.4;
    /* v2.0: Subtle inner highlight + outer drop for tactile depth */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08),
                0 4px 14px rgba(28, 58, 28, 0.18);
}

.sc-checkout-btn:hover {
    opacity: 0.9;
    color: var(--on-ink);
    text-decoration: none;
    transform: translateY(-1px);
}

.sc-checkout-btn:active {
    transform: scale(0.98);
}

.sc-checkout-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-checkout-btn:hover svg {
    transform: translateX(3px);
}

.sc-view-cart {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-faint);
    margin-top: 0;
    padding: 6px 0 0;
    text-decoration: none;
    transition: color 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1.4;
}

.sc-view-cart:hover {
    color: var(--text-muted);
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   10. EMPTY STATE
   ═══════════════════════════════════════════════════════════════════════════ */

.sc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    text-align: center;
}

.sc-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background:var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-faint);
}

.sc-empty-icon svg {
    width: 36px;
    height: 36px;
}

.sc-empty-title {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 4px;
    line-height: 1.3;
}

.sc-empty-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-faint);
    margin: 0 0 24px;
    line-height: 1.5;
    max-width: 240px;
}

.sc-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background:var(--ink);
    color: var(--on-ink);
    border: 0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1.4;
}

.sc-empty-cta:hover {
    opacity: 0.85;
    color: var(--on-ink);
    text-decoration: none;
    transform: translateY(-1px);
}

.sc-empty-cta svg {
    width: 16px;
    height: 16px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   11. FULL CART PAGE (separate /cart route)
   ═══════════════════════════════════════════════════════════════════════════ */

#product-banner {
    background-image:url(../images/botanical-blends-herbs-essencial-oils-naturopathy_72402-5867.jpg);
    background-size: cover;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
}

#product-banner .overlay {
    background-color: rgba(28, 58, 28, 0.65);
    padding: 40px 0;
}

#product-banner .product-content .product-title {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: 28px;
    color: var(--on-ink);
    font-weight: var(--fw-semibold);
}

#productCart {
    background:var(--paper);
}

.fc-header {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 24px;
    align-items: center;
    padding: 0 var(--sp-5, 20px) 16px;
    border-bottom: 2px solid var(--line);
    margin-bottom: 8px;
}

.fc-header-col {
    font-size: 12px;
    font-weight: var(--fw-semibold);
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.fc-header-col:last-child {
    text-align: right;
}

.fc-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    margin-bottom: 12px;
    background:var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 220px;
    overflow: hidden;
}

.fc-row:hover {
    border-color: var(--cream);
}

.fc-row.is-removing {
    opacity: 0;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    pointer-events: none;
    overflow: hidden;
}

.fc-row-gift {
    background:var(--success-soft);
    border-color: var(--line-strong);
}

.fc-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.fc-img {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 12px;
    background:var(--surface);
    overflow: hidden;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-img:hover {
    transform: scale(1.03);
}

.fc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 8px;
}

.fc-product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fc-name {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    margin: 0;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

a.fc-name:hover {
    color: var(--success);
}

.fc-variant {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-faint);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background:transparent;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    transition: color 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-remove:hover {
    color: var(--error);
}

.fc-remove svg {
    width: 14px;
    height: 14px;
}

.fc-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fc-price del {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-faint);
    text-decoration: line-through;
}

.fc-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.fc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    background:var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    flex-wrap: wrap;
}

.fc-summary-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fc-summary-subtotal-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
}

.fc-summary-subtotal-value {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 24px;
    font-weight: var(--fw-semibold);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.fc-summary-shipping {
    font-size: 13px;
    color: var(--text-faint);
    font-weight: 500;
    line-height: 1.4;
}

.fc-summary-shipping strong {
    color: var(--success);
}

.fc-checkout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background:var(--ink);
    color: var(--on-ink);
    border: 0;
    border-radius: 50px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    line-height: 1.4;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08),
                0 4px 14px rgba(28, 58, 28, 0.18);
}

.fc-checkout-btn:hover {
    opacity: 0.9;
    color: var(--on-ink);
    text-decoration: none;
    transform: translateY(-1px);
}

.fc-checkout-btn:active {
    transform: translateY(0);
}

.fc-checkout-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-checkout-btn:hover svg {
    transform: translateX(3px);
}

.fc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    text-align: center;
}

.fc-empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background:var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-faint);
}

.fc-empty-icon svg {
    width: 40px;
    height: 40px;
}

.fc-empty-title {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.3;
}

.fc-empty-desc {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-faint);
    margin: 0 0 32px;
    line-height: 1.5;
    max-width: 320px;
}

.fc-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background:var(--ink);
    color: var(--on-ink);
    border: 0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1.4;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08),
                0 4px 14px rgba(28, 58, 28, 0.18);
}

.fc-empty-cta:hover {
    opacity: 0.9;
    color: var(--on-ink);
    text-decoration: none;
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════════════════
   12. ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes cartRowSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cartPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes cartBounceIn {
    0%   { transform: scale(0.7); opacity: 0; }
    60%  { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes giftPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 146, 42, 0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(200, 146, 42, 0); }
}

@keyframes toastSlideDown {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sparklePop {
    0%   { opacity: 0; transform: scale(0) rotate(0deg); }
    50%  { opacity: 1; transform: scale(1.2) rotate(20deg); }
    100% { opacity: 0; transform: scale(0.8) rotate(40deg); }
}

.sc-row.is-new {
    animation: cartRowSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sc-row.is-gift-new {
    animation: cartBounceIn 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cart-count-pulse {
    animation: cartPulse 0.3s ease;
}

.gift-animate {
    animation: giftPulse 1.6s ease-in-out infinite;
}

.cart-toast-enter {
    animation: toastSlideDown 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


/* ═══════════════════════════════════════════════════════════════════════════
   13. CONFETTI CANVAS - sits above drawer, never blocks pointer events
   ═══════════════════════════════════════════════════════════════════════════ */

#hh-confetti-canvas {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 99999 !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   14. RESPONSIVE - Mobile-first enhancements
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 576px) {
    .sc-header {
        padding: 20px var(--sp-5, 20px) 16px;
    }

    .sc-header-title {
        font-size: 24px;
    }

    .sc-shipping-msg {
        margin-left: var(--sp-5, 20px);
        margin-right: var(--sp-5, 20px);
    }

    .shipping-unlocked {
        padding-left: var(--sp-5, 20px);
        padding-right: var(--sp-5, 20px);
    }

    .sc-body {
        padding: 16px var(--sp-5, 20px);
    }

    .sc-foot {
        padding: 14px var(--sp-5, 20px) 16px;
    }
}

@media (max-width: 991.98px) {
    .fc-header {
        display: none;
    }

    .fc-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .fc-product {
        gap: 12px;
    }

    .fc-img {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }

    .fc-price,
    .fc-total {
        text-align: left;
    }

    .fc-summary {
        flex-direction: column-reverse;
        align-items: stretch;
        text-align: center;
        gap: 16px;
        padding: 20px 16px;
        margin: 0 12px;
        margin-top: 24px;
    }

    .fc-summary-left {
        align-items: center;
    }

    .fc-checkout-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    #demo.offcanvas {
        width: 100% !important;
    }

    .fc-row {
        padding: 12px;
        margin-left: 8px;
        margin-right: 8px;
    }

    .fc-img {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    .fc-name {
        font-size: 14px;
    }

    .sc-img {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   15. REDUCED MOTION - zero animations for accessibility
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .sc-row,
    .fc-row,
    .sc-img,
    .fc-img,
    .sc-del,
    .sc-checkout-btn,
    .fc-checkout-btn,
    .sc-close-btn,
    .sc-swipe-content,
    .sc-shipping-fill,
    .gift-timeline-fill,
    .gift-animate,
    .gift-picker-card,
    .gift-timeline-stop.is-unlocked .gift-timeline-node {
        transition: none !important;
        animation: none !important;
    }

    .sc-row.is-new,
    .sc-row.is-gift-new,
    .cart-count-pulse,
    .cart-toast-enter,
    .gift-widget-icon-pop,
    .gift-widget-icon-bounce,
    .gift-widget-confirmed.gift-celebrate-play {
        animation: none !important;
    }

    #demo.offcanvas.offcanvas-end {
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. CART BUTTON FLASH ANIMATION  (flashCartButton JS helper)
   ═══════════════════════════════════════════════════════════════════════════

   Powers the brief '✓ Added' / '✕ Removed' confirmation flash that runs
   on every add-to-cart button (home card, PDP, Undo) for ~900ms before
   settling to the long-term 'Remove' / 'Add to Cart' state.

   Same visual on .btn-order-now (product-card) and .btn-cart (PDP) so
   the user perceives them as one logical button no matter which one
   they clicked - same text, same colour, same animation, same duration.

   The JS (flashCartButton in app.js) owns the timing: it adds the class,
   swaps the innerHTML to '✓ Added' / '✕ Removed', and 900ms later
   removes the class and calls setCartButtonState() to settle. The CSS
   here owns the look: a quick scale pulse + background flash + shadow.
═══════════════════════════════════════════════════════════════════════════ */

@keyframes cartBtnFlashAdded {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(45, 122, 79, 0.55); }
    35%  { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(45, 122, 79, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(45, 122, 79, 0); }
}

@keyframes cartBtnFlashRemoved {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(190, 60, 50, 0.55); }
    35%  { transform: scale(0.96); box-shadow: 0 0 0 8px rgba(190, 60, 50, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(190, 60, 50, 0); }
}

/* Added flash - green, scales UP (positive gesture) */
.btn-order-now.is-flash-added,
.btn-cart.is-flash-added {
    background-color: var(--success) !important;
    color: var(--on-ink) !important;
    border-color: var(--success) !important;
    animation: cartBtnFlashAdded 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1;
    /* Hold the scale-up at peak briefly so the 'Added' label reads cleanly */
    will-change: transform, box-shadow;
}

/* Removed flash - red, scales DOWN (negative gesture) */
.btn-order-now.is-flash-removed,
.btn-cart.is-flash-removed {
    background-color: var(--error) !important;
    color: var(--on-ink) !important;
    border-color: var(--error) !important;
    animation: cartBtnFlashRemoved 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1;
    will-change: transform, box-shadow;
}

/* While flashing, suppress the default hover transform so the two
   animations don't fight each other for the transform property. */
.btn-order-now.is-flash-added:hover,
.btn-order-now.is-flash-removed:hover,
.btn-cart.is-flash-added:hover,
.btn-cart.is-flash-removed:hover {
    transform: none;
}

/* -- Reduced-motion: kill the animation but keep the colour swap --
   The JS already skips the flash entirely for reduced-motion users
   (going straight to setCartButtonState), but if a flash class ever
   lands on a reduced-motion button anyway, this ensures no motion. */
@media (prefers-reduced-motion: reduce) {
    .btn-order-now.is-flash-added,
    .btn-order-now.is-flash-removed,
    .btn-cart.is-flash-added,
    .btn-cart.is-flash-removed {
        animation: none !important;
        transform: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   11. DRAWER DENSITY PASS
   The side cart is a narrow overlay that bills every vertical pixel, so
   the rows, stepper and reward widgets shrink inside it. The full cart
   page keeps the roomier sizing: every override below is scoped to the
   side-cart mounts only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 11.1 Incentive tracker mount (#scTrackerBox in quickpage.blade.php).
   Same server fragment as the cart page's #cartTrackerBox - only the
   sizing differs. Falls back to nothing when the tracker is disabled,
   in which case the legacy strip + banner render instead. */
.sc-tracker {
    flex-shrink: 0;
    padding: 6px 12px 2px;
    background:var(--paper);
    border-bottom: 1px solid var(--line);
}

.sc-tracker .hht {
    margin: 0;
    padding: 8px 10px 7px;
    border-radius: 11px;
}

.sc-tracker .hht-head { margin-bottom: 6px; }
.sc-tracker .hht-title { font-size: 10.5px; }
.sc-tracker .hht-sub { font-size: 9.5px; }

.sc-tracker .hht-bars { gap: 7px; }
.sc-tracker .hht-item { padding: 7px 9px 8px; }
.sc-tracker .hht-line1 { margin-bottom: 4px; }
.sc-tracker .hht-name { font-size: 12px; }
.sc-tracker .hht-sub-label { display: none; }
.sc-tracker .hht-togo { font-size: 10.5px; }
.sc-tracker .hht-chip { font-size: 9px; padding: 1px 7px; }
.sc-tracker .hht-bar { height: 4px; }
.sc-tracker .hht-line2 { font-size: 10.5px; margin-top: 3px; }

.sc-tracker .hht-statements { gap: 5px; }
.sc-tracker .hht-statements li { font-size: 12px; line-height: 1.4; }

.sc-tracker .hht-step { padding: 5px 0 5px 2px; gap: 10px; }
.sc-tracker .hht-node { width: 24px; height: 24px; }
.sc-tracker .hht-step-title { font-size: 12px; }
.sc-tracker .hht-step-detail { font-size: 10.5px; }

.sc-tracker .hht-perk { padding: 7px 9px; margin-top: 8px; gap: 8px; }
.sc-tracker .hht-perk-body b { font-size: 11px; }
.sc-tracker .hht-perk-body span { font-size: 10px; }
.sc-tracker .hht-perk-val { font-size: 11px; }

/* 11.2 Footer savings line: "You're saving X vs MRP" - the drawer's
   one-number takeaway, patched live by patchPrices() on qty changes
   (full add/remove swaps re-render it server-side). */
.sc-save-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-soft);
    border-radius: var(--r-sm);
    padding: 7px 12px;
}

.sc-save-line svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.sc-save-line b {
    font-variant-numeric: tabular-nums;
    color: var(--success);
}

/* 11.2 Stepper sized down to match the slimmer rows (qty-stepper.css is
   variable-driven, so this only rescales the tokens, not the logic). */
.sc-meta .hh-qty {
    --hh-qty-h: 30px;
    --hh-qty-btn: 26px;
    --hh-qty-radius: 9px;
    padding: 3px;
    gap: 2px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.sc-meta .hh-qty-input {
    width: 28px;
    flex: 0 0 28px;
    font-size: 12.5px;
}

.sc-meta .hh-qty-btn svg {
    width: 12px;
    height: 12px;
}

/* 11.3 Gift widget density pass for the drawer copy. The full cart page
   widget keeps its display-case padding (see Section 8). */
.gift-widget-sidecart {
    margin-bottom: 6px;
    padding-left: 12px;
    padding-right: 12px;
}
.gift-widget-sidecart .gift-widget-box { padding: 8px 10px 9px; border-radius: 12px; }
.gift-widget-sidecart .gift-widget-divider { margin: 6px 2px; }
.gift-widget-sidecart .gift-widget-status { gap: 8px; font-size: 12px; }
.gift-widget-sidecart .gift-widget-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 8px;
}
.gift-widget-sidecart .gift-state-svg { width: 17px; height: 17px; }
.gift-widget-sidecart .gift-state-celebrate { width: 19px; height: 19px; }
.gift-widget-sidecart .gift-widget-subnote {
    margin-top: 4px;
    padding-left: 34px;
    font-size: 10.5px;
}
.gift-widget-sidecart .gift-timeline { margin-bottom: 6px; }
.gift-widget-sidecart .gift-timeline-heading { margin-bottom: 6px; }
.gift-widget-sidecart .gift-picker { margin-top: 7px; gap: 6px; }
.gift-widget-sidecart .gift-picker-card { width: 76px; padding: 7px 6px 6px; }
.gift-widget-sidecart .gift-picker-img,
.gift-widget-sidecart .gift-picker-img-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 9px;
}
.gift-widget-sidecart .gift-placeholder-svg { width: 22px; height: 22px; }


/* ==========================================================================
   Struck MRP beside the live subtotal (cart summary + side-cart foot).
   The whole MRP story on one line: struck retail total, then what you pay.
   ========================================================================== */
.fc-mrp-strike {
    color: var(--text-faint);
    font-weight: 400;
    font-size: .8em;
    margin-right: 7px;
}

.sc-mrp-strike {
    color: var(--text-faint);
    font-weight: 400;
    font-size: .92em;
    margin-right: 6px;
}
