/* =============================================================================
   cart.css — Herb & House Unified Cart Design System (2026)
   --------------------------------------------------------------------------
   Covers both the side-cart offcanvas (#demo) and the full cart page
   (#productCart). Both share the same design tokens, micro-interactions,
   and visual language for a cohesive experience.

   Design principles:
     1. Soft surfaces — subtle shadows, rounded corners, muted borders
     2. Breathing room — generous padding, generous gaps
     3. Motion with purpose — 300ms ease transitions, spring-like feedback
     4. Information hierarchy — price is prominent, actions are intuitive
     5. Brand alignment — uses variables.css tokens (--forest, --clay, etc.)
============================================================================= */

/* ──────────────────────────────────────────────
   0. SHARED TOKENS (local to cart only)
   ────────────────────────────────────────────── */
:root {
    --cart-radius:       16px;
    --cart-radius-sm:    12px;
    --cart-radius-xs:    8px;
    --cart-shadow-card:  0 1px 3px rgba(13,74,49,0.06), 0 4px 14px rgba(13,74,49,0.04);
    --cart-shadow-hover: 0 4px 16px rgba(13,74,49,0.10), 0 2px 6px rgba(13,74,49,0.06);
    --cart-shadow-inset: inset 0 1px 0 rgba(255,255,255,0.7);
    --cart-transition:   0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --cart-transition-fast: 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    --cart-img-size:     80px;
    --cart-gap:          16px;
    --cart-removed-height: 0;
    --cart-removed-opacity: 0;
    --cart-removed-margin: 0;
}


/* ══════════════════════════════════════════════
   1. SIDE CART — OFFCANVAS SHELL
   ══════════════════════════════════════════════ */

/* Offcanvas panel — wider, softer, cream-toned */
#demo.offcanvas {
    width: 420px !important;
    border-left: none !important;
    background: var(--cream) !important;
    box-shadow: -8px 0 40px rgba(13,74,49,0.10), -2px 0 8px rgba(13,74,49,0.04);
}

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

#demo.offcanvas.show {
    transform: translateX(0);
}

/* Backdrop — subtler */
.offcanvas-backdrop.show {
    opacity: 0.35 !important;
}

/* ── Header ── */
.sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 2;
}

.sc-header-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--forest);
    margin: 0;
    letter-spacing: -0.2px;
}

.sc-header-count {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--forest-50);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-left: 10px;
    letter-spacing: 0.3px;
}

.sc-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--forest-50);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--cart-transition-fast), transform var(--cart-transition-fast);
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

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

/* ── Body (scrollable items) ── */
.sc-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Custom scrollbar for side cart */
.sc-body::-webkit-scrollbar {
    width: 4px;
}
.sc-body::-webkit-scrollbar-track {
    background: transparent;
}
.sc-body::-webkit-scrollbar-thumb {
    background: var(--forest-200);
    border-radius: 4px;
}


/* ══════════════════════════════════════════════
   2. CART ITEM ROW (shared between side & full)
   ══════════════════════════════════════════════ */

/* ── Side Cart Row ── */
.sc-row {
    display: flex;
    align-items: flex-start;
    gap: var(--cart-gap);
    padding: 16px 24px;
    position: relative;
    transition: opacity var(--cart-transition), max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.4s cubic-bezier(0.22, 1, 0.36, 1), background var(--cart-transition-fast);
    max-height: 200px;
    overflow: hidden;
}

.sc-row + .sc-row {
    border-top: 1px solid var(--border);
}

.sc-row:hover {
    background: rgba(13, 74, 49, 0.02);
}

/* Row removal animation */
.sc-row.is-removing {
    opacity: 0;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    overflow: hidden;
}

/* ── Product Image ── */
.sc-img {
    width: var(--cart-img-size);
    height: var(--cart-img-size);
    min-width: var(--cart-img-size);
    flex-shrink: 0;
    border-radius: var(--cart-radius-sm);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--cart-shadow-card);
    transition: box-shadow var(--cart-transition), transform var(--cart-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-img:hover {
    box-shadow: var(--cart-shadow-hover);
    transform: scale(1.03);
}

.sc-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: transform var(--cart-transition);
}

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

/* ── Product Info Column ── */
.sc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sc-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color var(--cart-transition-fast);
}

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

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

/* ── Price + Qty Row ── */
.sc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.sc-price {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--forest);
    margin: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
}

.sc-price del {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-faint);
    margin-left: 6px;
    letter-spacing: 0;
}

.sc-discount-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--success);
    background: var(--success-bg);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Remove Button ── */
.sc-del {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: var(--text-faint);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--cart-transition-fast), color var(--cart-transition-fast),
                transform var(--cart-transition-fast);
    padding: 0;
    opacity: 0;
}

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

.sc-del:hover {
    background: var(--error-bg);
    color: var(--error);
    transform: scale(1.1);
}

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

/* Mobile: always show delete */
@media (max-width: 575.98px) {
    .sc-del { opacity: 1; }
}

/* ── Stock indicator ── */
.sc-stock {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
    padding: 2px 0;
}
.sc-stock.is-instock {
    color: var(--success);
}
.sc-stock.is-outstock {
    color: var(--error);
}


/* ══════════════════════════════════════════════
   3. SIDE CART — FOOTER
   ══════════════════════════════════════════════ */

.sc-foot {
    flex-shrink: 0;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border);
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

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

.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);
}

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

.sc-foot-divider {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 4px 0;
}

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

.sc-foot-total-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
}

.sc-foot-total-value {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    color: var(--forest);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

/* ── Checkout Button ── */
.sc-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--forest);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--cart-transition), transform var(--cart-transition-fast),
                box-shadow var(--cart-transition);
    box-shadow: 0 2px 8px rgba(13,74,49,0.20);
    position: relative;
    overflow: hidden;
}

.sc-checkout-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.sc-checkout-btn:hover {
    background: var(--forest-90);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13,74,49,0.30);
    text-decoration: none;
}

.sc-checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13,74,49,0.20);
}

.sc-checkout-btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--cart-transition);
}

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

/* ── View Cart link ── */
.sc-view-cart {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
    text-decoration: none;
    transition: color var(--cart-transition-fast);
    letter-spacing: 0.2px;
}

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


/* ══════════════════════════════════════════════
   4. EMPTY STATE
   ══════════════════════════════════════════════ */

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

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

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

.sc-empty-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-body);
    margin: 0 0 8px;
}

.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(--forest-50);
    color: var(--forest);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--cart-transition-fast), color var(--cart-transition-fast),
                transform var(--cart-transition-fast);
}

.sc-empty-cta:hover {
    background: var(--forest-100);
    color: var(--forest);
    text-decoration: none;
    transform: translateY(-1px);
}


/* ══════════════════════════════════════════════
   5. FULL CART PAGE
   ══════════════════════════════════════════════ */

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

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

#product-banner .product-content .product-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: #fff;
    font-weight: 700;
}

/* ── Section wrapper ── */
#productCart {
    background: var(--cream);
}

/* ── Cart table header (desktop) ── */
.fc-header {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 24px;
    align-items: center;
    padding: 0 24px 16px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 8px;
}

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

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

/* ── Full Cart Row ── */
.fc-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transition: background var(--cart-transition-fast), opacity var(--cart-transition),
                max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 200px;
    overflow: hidden;
}

.fc-row:hover {
    background: rgba(13, 74, 49, 0.02);
}

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

/* ── Product column ── */
.fc-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.fc-img {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: var(--cart-radius-sm);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--cart-shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow var(--cart-transition), transform var(--cart-transition);
}

.fc-img:hover {
    box-shadow: var(--cart-shadow-hover);
    transform: scale(1.03);
}

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

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

.fc-name {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.35;
    margin: 0;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--cart-transition-fast);
}

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

.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: none;
    background: transparent;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    transition: color var(--cart-transition-fast);
}

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

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

/* ── Price column ── */
.fc-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-body);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

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

/* ── Total column ── */
.fc-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--forest);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    letter-spacing: -0.3px;
}


/* ── Cart Summary Footer ── */
.fc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    background: #fff;
    border-radius: var(--cart-radius);
    box-shadow: var(--cart-shadow-card);
    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);
}

.fc-summary-subtotal-value {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    color: var(--forest);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

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

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

/* ── Checkout Button (full cart) ── */
.fc-checkout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: var(--forest);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--cart-transition), transform var(--cart-transition-fast),
                box-shadow var(--cart-transition);
    box-shadow: 0 2px 12px rgba(13,74,49,0.22);
    position: relative;
    overflow: hidden;
}

.fc-checkout-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.fc-checkout-btn:hover {
    background: var(--forest-90);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(13,74,49,0.32);
    text-decoration: none;
}

.fc-checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(13,74,49,0.22);
}

.fc-checkout-btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--cart-transition);
}

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

/* ── Empty State (full cart page) ── */
.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(--forest-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--forest-200);
}

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

.fc-empty-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-body);
    margin: 0 0 8px;
}

.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(--forest);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--cart-transition), transform var(--cart-transition-fast),
                box-shadow var(--cart-transition);
    box-shadow: 0 2px 12px rgba(13,74,49,0.22);
}

.fc-empty-cta:hover {
    background: var(--forest-90);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(13,74,49,0.32);
}


/* ══════════════════════════════════════════════
   6. FREE SHIPPING PROGRESS BAR
   ══════════════════════════════════════════════ */

.sc-shipping-bar {
    padding: 0 24px 16px;
    background: var(--cream);
}

.sc-shipping-track {
    height: 4px;
    background: var(--forest-50);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.sc-shipping-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--forest), var(--sage));
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-shipping-msg {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.sc-shipping-msg strong {
    color: var(--forest);
}


/* ══════════════════════════════════════════════
   7. RESPONSIVE
   ══════════════════════════════════════════════ */

/* ── Side Cart responsive ── */
@media (max-width: 575.98px) {
    #demo.offcanvas {
        width: 100% !important;
    }

    .sc-header {
        padding: 16px 16px 12px;
    }

    .sc-row {
        padding: 12px 16px;
        gap: 12px;
    }

    .sc-foot {
        padding: 16px 16px 20px;
    }

    .sc-shipping-bar {
        padding: 0 16px 12px;
    }
}

/* ── Full Cart responsive ── */
@media (max-width: 991.98px) {
    .fc-header {
        display: none;
    }

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

    .fc-product {
        gap: 12px;
    }

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

    /* On mobile, show price + qty + total as a sub-row */
    .fc-price,
    .fc-total {
        text-align: left;
    }

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

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

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

@media (max-width: 575.98px) {
    .fc-row {
        padding: 16px 12px;
    }

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

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


/* ══════════════════════════════════════════════
   8. ANIMATIONS & REDUCED MOTION
   ══════════════════════════════════════════════ */

@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); }
}

/* Apply entrance animation to newly added rows */
.sc-row.is-new {
    animation: cartRowSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Badge pulse when count changes */
.cart-count-pulse {
    animation: cartPulse 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .sc-row, .fc-row, .sc-img, .fc-img,
    .sc-del, .sc-checkout-btn, .fc-checkout-btn,
    .sc-close-btn {
        transition: none !important;
    }
    .sc-row.is-new {
        animation: none !important;
    }
    .cart-count-pulse {
        animation: none !important;
    }
}
