/* =====================================================================
   cart-v2.css — Crisp Commerce cart page
   Two-column layout: items list (left) + sticky summary sidebar (right)
   Shared design tokens with shop-v2 (Onest font, blue palette, white bg)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --c-blue-50:   #eff6ff;
    --c-blue-100:  #dbeafe;
    --c-blue-200:  #bfdbfe;
    --c-blue-300:  #93c5fd;
    --c-blue-400:  #60a5fa;
    --c-blue-500:  #3b82f6;
    --c-blue-600:  #2563eb;
    --c-blue-700:  #1d4ed8;
    --c-blue-800:  #1e40af;
    --c-blue-900:  #1e3a8a;

    --c-white:     #ffffff;
    --c-ink:       #0f172a;
    --c-ink-soft:  #334155;
    --c-ink-mute:  #64748b;
    --c-ink-mute2: #94a3b8;
    --c-line:      #e2e8f0;
    --c-line-soft: #f1f5f9;

    --c-success:   #059669;
    --c-success-soft: #d1fae5;
    --c-danger:    #dc2626;
    --c-danger-soft: #fee2e2;

    --c-shadow-xs: 0 1px 2px rgba(30, 58, 138, 0.06);
    --c-shadow-sm: 0 2px 8px rgba(30, 58, 138, 0.08);
    --c-shadow:    0 10px 24px rgba(30, 58, 138, 0.10);
    --c-shadow-lg: 0 20px 44px -12px rgba(30, 58, 138, 0.22);

    --c-radius:    14px;
    --c-radius-lg: 20px;

    --c-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset (scoped) ---------- */
body.cart-v2 {
    background: var(--c-white);
    color: var(--c-ink);
    font-family: var(--c-sans);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums lining-nums;
}

body.cart-v2 *, body.cart-v2 *::before, body.cart-v2 *::after { box-sizing: border-box; }
body.cart-v2 img { max-width: 100%; display: block; }
body.cart-v2 button, body.cart-v2 input, body.cart-v2 select { font-family: inherit; }

.cv2-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) { .cv2-container { padding: 0 32px; } }

/* ---------- Page header ---------- */
.cv2-page-head {
    padding: 32px 0 6px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.cv2-page-head h1 {
    font-family: var(--c-sans);
    font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    color: var(--c-blue-900);
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.cv2-page-head h1 span {
    color: var(--c-blue-500);
    font-weight: 600;
}

.cv2-page-head a.cv2-back-link {
    color: var(--c-blue-700);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--c-line);
    background: var(--c-white);
    transition: all 0.22s ease;
}

.cv2-page-head a.cv2-back-link:hover {
    background: var(--c-blue-50);
    border-color: var(--c-blue-500);
    color: var(--c-blue-900);
}

/* ---------- Main two-column layout ---------- */
.cv2-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0 80px;
}

@media (min-width: 900px) {
    .cv2-wrap {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 32px;
    }
}

/* ---------- Items list (left col) ---------- */
.cv2-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Desktop: items become a scrollable window so the summary stays
   in view alongside. New items are appended at the bottom — user
   scrolls inside the list to find them. */
@media (min-width: 900px) {
    .cv2-items {
        max-height: calc(100vh - 180px);
        min-height: 320px;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 10px;
        padding-bottom: 4px;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: var(--c-blue-300) transparent;
        /* Mask the scroll edges so cards fade in/out instead of clipping hard */
        mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    }

    .cv2-items::-webkit-scrollbar { width: 8px; }
    .cv2-items::-webkit-scrollbar-track { background: transparent; }
    .cv2-items::-webkit-scrollbar-thumb {
        background: var(--c-blue-200);
        border-radius: 999px;
        border: 2px solid var(--c-white);
    }
    .cv2-items::-webkit-scrollbar-thumb:hover {
        background: var(--c-blue-400);
    }
}

.cv2-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--c-radius);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--c-shadow-xs);
    opacity: 0;
    transform: translateY(8px);
    animation: cv2-fade-up 0.5s ease forwards;
}

@keyframes cv2-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

.cv2-item:nth-child(1) { animation-delay: 0.05s; }
.cv2-item:nth-child(2) { animation-delay: 0.10s; }
.cv2-item:nth-child(3) { animation-delay: 0.15s; }
.cv2-item:nth-child(4) { animation-delay: 0.20s; }
.cv2-item:nth-child(5) { animation-delay: 0.25s; }

.cv2-item:hover {
    border-color: var(--c-blue-300);
    box-shadow: var(--c-shadow);
    transform: translateY(-2px);
}

/* Optimistic delete — slide right + collapse height before DOM removal */
.cv2-item.removing {
    animation: cv2-item-remove 0.38s cubic-bezier(0.55, 0, 1, 0.45) forwards;
    pointer-events: none;
    overflow: hidden;
}

@keyframes cv2-item-remove {
    30% {
        opacity: 0.6;
        transform: translateX(-6px) scale(0.99);
    }
    100% {
        opacity: 0;
        transform: translateX(80px) scale(0.94);
        max-height: 0;
        margin-top: 0;
        margin-bottom: -14px;   /* cancels .cv2-items gap */
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

/* Ephemeral highlight when a row's totals update from an API sync — a soft
   pulse so the user notices the summary changed without being jarring. */
.cv2-item-total.pulse {
    animation: cv2-pulse 0.6s ease;
}

@keyframes cv2-pulse {
    0%   { color: var(--c-blue-900); }
    40%  { color: var(--c-blue-500); transform: scale(1.08); }
    100% { color: var(--c-blue-900); transform: scale(1); }
}

.cv2-sum-total .value.pulse {
    animation: cv2-pulse 0.6s ease;
}

.cv2-item-img {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-blue-50), var(--c-blue-100));
    cursor: pointer;
    position: relative;
}

.cv2-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv2-item:hover .cv2-item-img img {
    transform: scale(1.06);
}

@media (max-width: 480px) {
    .cv2-item { padding: 12px; gap: 12px; }
    .cv2-item-img { flex: 0 0 80px; width: 80px; height: 80px; }
}

.cv2-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cv2-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cv2-item-title {
    margin: 0;
    font-family: var(--c-sans);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--c-ink);
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cv2-item-title a {
    color: inherit;
    text-decoration: none;
}

.cv2-item-title a:hover {
    color: var(--c-blue-700);
}

.cv2-item-remove {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--c-line);
    color: var(--c-ink-mute);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.cv2-item-remove:hover {
    background: var(--c-danger-soft);
    border-color: var(--c-danger);
    color: var(--c-danger);
    transform: rotate(90deg);
}

.cv2-item-price {
    font-size: 0.85rem;
    color: var(--c-ink-mute);
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cv2-item-price strong {
    color: var(--c-blue-900);
    font-weight: 700;
}

.cv2-item-price .cv2-price-old {
    color: var(--c-ink-mute2);
    text-decoration: line-through;
    font-weight: 500;
    font-size: 0.8rem;
}

.cv2-item-price .cv2-price-save {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.cv2-item-subtitle {
    font-size: 0.72rem;
    color: var(--c-ink-mute2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Bottom row: qty control + line total */
.cv2-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.cv2-qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--c-white);
    border: 1.5px solid var(--c-line);
    border-radius: 999px;
    padding: 2px;
    gap: 0;
    box-shadow: var(--c-shadow-xs);
}

.cv2-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--c-blue-900);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    padding: 0;
    line-height: 1;
}

.cv2-qty-btn:hover:not(:disabled) {
    background: var(--c-blue-900);
    color: var(--c-white);
}

.cv2-qty-btn:disabled {
    color: var(--c-ink-mute2);
    cursor: not-allowed;
}

.cv2-qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 800;
    color: var(--c-ink);
    font-size: 0.88rem;
    padding: 0 4px;
    font-variant-numeric: tabular-nums;
}

.cv2-item-total {
    font-family: var(--c-sans);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--c-blue-900);
    letter-spacing: -0.01em;
}

/* ---------- Summary sidebar (right col) ---------- */
.cv2-summary {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--c-radius-lg);
    padding: 22px;
    box-shadow: var(--c-shadow-sm);
    align-self: start;
    position: relative;
}

@media (min-width: 900px) {
    .cv2-summary {
        position: sticky;
        top: 20px;
    }
}

.cv2-summary h2 {
    font-family: var(--c-sans);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-blue-900);
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-line);
    letter-spacing: -0.01em;
}

.cv2-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--c-ink-soft);
}

.cv2-sum-row .label { font-weight: 500; }
.cv2-sum-row .value {
    font-weight: 700;
    color: var(--c-ink);
    font-variant-numeric: tabular-nums;
}

.cv2-sum-row.discount {
    color: var(--c-success);
}
.cv2-sum-row.discount .value { color: var(--c-success); }

.cv2-sum-row .remove-link {
    color: var(--c-danger);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.72rem;
    margin-left: 6px;
    cursor: pointer;
    font-weight: 600;
}

.cv2-sum-divider {
    border-top: 1px dashed var(--c-line);
    margin: 10px 0;
}

.cv2-sum-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0 6px;
    border-top: 1px solid var(--c-line);
    margin-top: 8px;
}

.cv2-sum-total .label {
    font-family: var(--c-sans);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cv2-sum-total .value {
    font-family: var(--c-sans);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--c-blue-900);
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

/* Coupon input */
.cv2-coupon {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--c-line-soft);
}

.cv2-coupon input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1.5px solid var(--c-line);
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--c-blue-50);
    color: var(--c-ink);
    outline: none;
    transition: all 0.22s ease;
}

.cv2-coupon input:focus {
    background: var(--c-white);
    border-color: var(--c-blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.cv2-coupon button {
    padding: 0 18px;
    background: var(--c-blue-900);
    color: var(--c-white);
    border: 1.5px solid var(--c-blue-900);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.82rem;
    transition: all 0.22s ease;
}

.cv2-coupon button:hover {
    background: var(--c-blue-700);
    border-color: var(--c-blue-700);
    transform: translateY(-1px);
}

/* Place order button */
.cv2-place-order {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 15px;
    background: linear-gradient(135deg, var(--c-blue-700) 0%, var(--c-blue-900) 100%);
    color: var(--c-white);
    border: none;
    border-radius: 12px;
    font-family: var(--c-sans);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 22px rgba(30, 58, 138, 0.32);
    position: relative;
    overflow: hidden;
}

.cv2-place-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
    transform: skewX(-18deg);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv2-place-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(30, 58, 138, 0.42);
}

.cv2-place-order:hover:not(:disabled)::before {
    left: 140%;
}

.cv2-place-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.cv2-trust {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--c-ink-mute);
    font-weight: 600;
}

.cv2-trust svg {
    width: 12px;
    height: 12px;
    color: var(--c-success);
}

/* ---------- Shipping address card ---------- */
.cv2-shipping-card {
    margin-top: 24px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--c-radius-lg);
    padding: 24px;
    box-shadow: var(--c-shadow-sm);
    grid-column: 1 / -1;
}

.cv2-shipping-card h3 {
    font-family: var(--c-sans);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-blue-900);
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-line);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv2-shipping-card h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--c-blue-500);
    border-radius: 2px;
}

.cv2-saved-addresses {
    display: none;
    margin-bottom: 18px;
}

.cv2-saved-addresses.has-items { display: block; }

.cv2-saved-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.cv2-saved-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 640px) {
    .cv2-saved-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

.cv2-saved-card {
    padding: 12px 14px;
    border: 1.5px solid var(--c-line);
    border-radius: 12px;
    background: var(--c-white);
    font-size: 0.82rem;
    color: var(--c-ink-soft);
    transition: all 0.22s ease;
}

.cv2-saved-card.active {
    border-color: var(--c-blue-500);
    background: var(--c-blue-50);
}

.cv2-saved-card .name {
    font-weight: 800;
    color: var(--c-ink);
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.cv2-saved-card .use-btn {
    margin-top: 10px;
    padding: 7px 14px;
    background: var(--c-blue-900);
    color: var(--c-white);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    cursor: pointer;
}

.cv2-saved-card.active .use-btn {
    background: var(--c-blue-500);
}

.cv2-ship-divider {
    text-align: center;
    margin: 16px 0;
    font-size: 0.78rem;
    color: var(--c-ink-mute);
    font-weight: 600;
    position: relative;
}

.cv2-ship-divider::before,
.cv2-ship-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--c-line);
}

.cv2-ship-divider::before { left: 0; }
.cv2-ship-divider::after { right: 0; }

.cv2-ship-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cv2-ship-grid .full { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .cv2-ship-grid { grid-template-columns: 1fr; }
}

.cv2-ship-grid label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}

.cv2-ship-grid input,
.cv2-ship-grid select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--c-line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--c-ink);
    background: var(--c-white);
    transition: all 0.22s ease;
    outline: none;
}

.cv2-ship-grid input:focus,
.cv2-ship-grid select:focus {
    border-color: var(--c-blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.cv2-ship-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.cv2-ship-btn {
    padding: 11px 22px;
    border: 1.5px solid var(--c-blue-900);
    background: var(--c-white);
    color: var(--c-blue-900);
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.22s ease;
}

.cv2-ship-btn:hover:not(:disabled) {
    background: var(--c-blue-900);
    color: var(--c-white);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.28);
}

.cv2-ship-btn.primary {
    background: var(--c-blue-900);
    color: var(--c-white);
}

.cv2-ship-btn.primary:hover:not(:disabled) {
    background: var(--c-blue-700);
    border-color: var(--c-blue-700);
}

.cv2-ship-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cv2-ship-status {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--c-ink-mute);
    font-weight: 600;
}

.cv2-ship-status.ok { color: var(--c-success); }
.cv2-ship-status.err { color: var(--c-danger); }

.cv2-ship-breakdown {
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--c-blue-50);
    border: 1px dashed var(--c-blue-300);
    border-radius: 12px;
    font-size: 0.85rem;
}

.cv2-ship-breakdown .row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--c-ink-soft);
}

.cv2-ship-breakdown .total-row {
    border-top: 1px solid var(--c-blue-200);
    padding-top: 8px;
    margin-top: 6px;
    font-weight: 800;
    color: var(--c-blue-900);
}

/* ---------- Terms checkbox ---------- */
.cv2-terms {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--c-blue-50);
    border: 1px solid var(--c-blue-200);
    border-radius: 12px;
    font-size: 0.82rem;
    color: var(--c-ink-soft);
    line-height: 1.55;
}

.cv2-terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cv2-terms input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--c-blue-700);
}

.cv2-terms a {
    color: var(--c-blue-700);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Empty state ---------- */
.cv2-empty {
    text-align: center;
    padding: 80px 24px;
    background: var(--c-white);
    border: 1px dashed var(--c-line);
    border-radius: var(--c-radius-lg);
    color: var(--c-ink-mute);
}

.cv2-empty-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--c-blue-50);
    color: var(--c-blue-500);
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.cv2-empty h3 {
    font-family: var(--c-sans);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--c-blue-900);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.cv2-empty p {
    margin: 0 0 22px;
    font-size: 0.95rem;
}

.cv2-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: var(--c-blue-900);
    color: var(--c-white);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.22s ease;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.cv2-empty-cta:hover {
    background: var(--c-blue-700);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(30, 58, 138, 0.42);
}

/* ---------- Loading skeleton ---------- */
.cv2-skel {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--c-radius);
}

.cv2-skel-img,
.cv2-skel-line {
    background: linear-gradient(90deg, var(--c-blue-50) 0%, var(--c-blue-100) 50%, var(--c-blue-50) 100%);
    background-size: 200% 100%;
    animation: cv2-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.cv2-skel-img { width: 96px; height: 96px; flex-shrink: 0; }
.cv2-skel-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cv2-skel-line { height: 12px; width: 80%; }
.cv2-skel-line.short { width: 50%; }
.cv2-skel-line.fat { height: 18px; width: 30%; margin-top: auto; }

@keyframes cv2-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Toast ---------- */
.mini-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--c-blue-900);
    color: var(--c-white);
    padding: 12px 20px;
    border-radius: var(--c-radius);
    font-family: var(--c-sans);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(30, 58, 138, 0.4);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 560px) {
    .mini-toast { right: 14px; bottom: 14px; left: 14px; text-align: center; }
}

/* Kill v1 style bleed */
body.cart-v2 .container,
body.cart-v2 .shutter-overlay { display: none !important; }
