/* ============================================
   SPLIFF FACTORY — CART WIDGET
   Variables charte + styles drawer
   ============================================ */

:root {
    /* Couleurs */
    --scw-blue: #5A8BFF;
    --scw-blue-hover: #4A7AEE;
    --scw-blue-light: #EBF1FF;
    --scw-noir: #1B1B1B;
    --scw-blanc: #F9F9F9;
    --scw-success: #34C759;
    --scw-success-bg: rgba(52, 199, 89, 0.1);
    --scw-warning: #FF6B35;
    --scw-grey-100: #F3F3F3;
    --scw-grey-200: #E8E8E8;
    --scw-grey-300: #D1D1D1;
    --scw-grey-400: #9A9A9A;
    --scw-grey-500: #6B6B6B;
    --scw-grey-600: #4A4A4A;
    --scw-violet: #7C3AED;
    --scw-amber: #F59E0B;

    /* Terpenes */
    --scw-terpene-agrume: #FFB020;
    --scw-terpene-boise: #2E7D32;
    --scw-terpene-diesel: #546E7A;
    --scw-terpene-epice: #D84315;
    --scw-terpene-floral: #E91E8C;
    --scw-terpene-fromage: #F9A825;
    --scw-terpene-fruite: #E53935;
    --scw-terpene-terreux: #795548;

    /* Espacements */
    --scw-space-micro: 4px;
    --scw-space-xs: 8px;
    --scw-space-sm: 12px;
    --scw-space-md: 16px;
    --scw-space-lg: 24px;
    --scw-space-xl: 32px;

    /* Rayons */
    --scw-radius-sm: 8px;
    --scw-radius-md: 12px;
    --scw-radius-lg: 16px;
    --scw-radius-full: 9999px;

    /* Ombres */
    --scw-shadow-sm: 0 1px 3px rgba(27,27,27,0.06);
    --scw-shadow-md: 0 4px 16px rgba(27,27,27,0.08);
    --scw-shadow-lg: 0 8px 32px rgba(27,27,27,0.10);
    --scw-shadow-xl: 0 16px 48px rgba(27,27,27,0.12);
    --scw-shadow-cta: 0 4px 16px rgba(90,139,255,0.35);

    /* Transition */
    --scw-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ELEMENTOR WIDGET — CART ICON TRIGGER
   ============================================ */
.scw-el-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    position: relative;
    transition: none !important;
    transform: none !important;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
    box-shadow: none !important;
}

.scw-el-trigger:hover,
.scw-el-trigger:focus,
.scw-el-trigger:active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}

.scw-el-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scw-el-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    transition: var(--scw-transition);
}

.scw-el-label {
    font-size: 14px;
    font-weight: 600;
    transition: var(--scw-transition);
}

.scw-el-count {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--scw-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', monospace;
    line-height: 1;
    transition: var(--scw-transition);
}

.scw-el-count:empty,
.scw-el-count[data-count="0"] {
    display: none;
}

/* ============================================
   OVERLAY
   ============================================ */
.scw-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(27, 27, 27, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scw-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   DRAWER
   ============================================ */
.scw-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100000;
    width: 448px;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    background: var(--scw-blanc);
    box-shadow: var(--scw-shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scw-drawer.open {
    transform: translateX(0);
}

/* ============================================
   CLOSE STRIP (thin vertical bar on left edge)
   ============================================ */
.scw-close-strip {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--scw-strip-w, 28px);
    height: 100%;
    background: var(--scw-blue);
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 20;
    padding: 0;
    transition: background 0.2s ease, width 0.2s ease;
    flex-shrink: 0;
}

.scw-close-strip:hover {
    background: var(--scw-blue-hover);
    width: calc(var(--scw-strip-w, 28px) + 4px);
}

.scw-close-strip svg {
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.scw-close-strip:hover svg {
    opacity: 1;
    transform: translateX(1px);
}

/* Offset all drawer content to make room for the strip */
.scw-drawer {
    padding-left: var(--scw-strip-w, 28px);
}

/* ============================================
   REASSURANCE ROTATIVE
   ============================================ */
.scw-reassurance {
    padding: 0 var(--scw-space-lg);
    background: var(--scw-grey-100);
    flex-shrink: 0;
    overflow: hidden;
    height: 36px;
    position: relative;
}

.scw-reassurance-track {
    display: flex;
    flex-direction: column;
    /* Animation set dynamically by JS based on item count */
}

.scw-reassurance-item {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--scw-noir);
    white-space: nowrap;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-reassurance-item.scw-reassurance-image {
    padding: 4px 0;
}

.scw-reassurance-item.scw-reassurance-image img {
    max-height: var(--scw-reassurance-img-h, 28px);
    width: auto;
    object-fit: contain;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.scw-progress {
    padding: var(--scw-space-md) var(--scw-space-lg);
    border-bottom: 1px solid var(--scw-grey-200);
    flex-shrink: 0;
}

.scw-progress-milestones {
    display: block;
    position: relative;
    height: 42px;
    margin-bottom: var(--scw-space-xs);
}

.scw-progress-track {
    width: 100%;
    height: 6px;
    background: var(--scw-grey-200);
    border-radius: var(--scw-radius-full);
    position: relative;
    margin-bottom: var(--scw-space-sm);
    margin-top: var(--scw-space-xs);
}

.scw-progress-fill {
    height: 100%;
    border-radius: var(--scw-radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--scw-success), var(--scw-blue));
}

.scw-progress-remaining {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--scw-blue);
    margin-top: var(--scw-space-xs);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-progress-remaining span {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
}

/* Milestones (Phase 3) — positioned above track */
.scw-milestone {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 2;
}

.scw-milestone-icon {
    display: none; /* icons now rendered as badges on track */
}

.scw-milestone.pending .scw-milestone-icon {
    background: var(--scw-grey-200);
    border: 2px solid var(--scw-grey-300);
}

.scw-milestone.reached .scw-milestone-icon {
    background: var(--scw-success);
    border: 2px solid var(--scw-success);
    box-shadow: 0 2px 8px rgba(52,199,89,0.3);
}

/* Chosen = reached + gift picked (CGP Gifts integration) */
.scw-milestone.chosen .scw-milestone-icon {
    background: var(--scw-success);
    border: 2px solid var(--scw-success);
    box-shadow: 0 2px 8px rgba(52,199,89,0.3);
    position: relative;
}

.scw-milestone.chosen .scw-milestone-icon::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--scw-success);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.scw-milestone.next .scw-milestone-icon {
    background: var(--scw-blue-light);
    border: 2px solid var(--scw-blue);
    animation: scwPulse 2s infinite;
}

.scw-milestone-label {
    display: none;
}

.scw-milestone.pending .scw-milestone-label { color: var(--scw-grey-400); }
.scw-milestone.reached .scw-milestone-label { color: var(--scw-success); }
.scw-milestone.chosen .scw-milestone-label { color: var(--scw-success); }
.scw-milestone.next .scw-milestone-label { color: var(--scw-blue); }

.scw-milestone-value {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 700;
}

/* Checkmark overlay on reached/chosen badges */
.scw-progress-badge.reached::after,
.scw-progress-badge.chosen::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--scw-success);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

/* Reached milestone checkmark */
.scw-milestone.reached .scw-milestone-icon::after {
    content: '✓';
    position: absolute;
    font-size: 10px;
    color: #fff;
    font-weight: 700;
    display: none;
}

/* Badge icons on the track at threshold positions */
.scw-progress-markers {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    pointer-events: none;
    z-index: 3;
}

.scw-progress-badge {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    /* For ::after checkmark positioning */
    z-index: 1;
}

.scw-progress-badge-icon {
    font-size: 15px;
    line-height: 1;
}

.scw-progress-badge.pending {
    background: var(--scw-grey-200);
    border: 2px solid var(--scw-grey-300);
}

.scw-progress-badge.reached {
    background: var(--scw-success);
    border: 2px solid var(--scw-success);
    box-shadow: 0 2px 8px rgba(52,199,89,0.3);
}

.scw-progress-badge.chosen {
    background: var(--scw-success);
    border: 2px solid var(--scw-success);
    box-shadow: 0 2px 8px rgba(52,199,89,0.3);
}

.scw-progress-badge.next {
    background: var(--scw-blue-light);
    border: 2px solid var(--scw-blue);
    animation: scwPulse 2s infinite;
}

@keyframes scwMarkerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* All tiers reached message */
.scw-progress-remaining.scw-all-reached {
    color: var(--scw-success);
}

@keyframes scwPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(90,139,255,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(90,139,255,0); }
}

/* Milestone transition on state change */
.scw-milestone-icon {
    transform: scale(1);
}

.scw-milestone.reached .scw-milestone-icon {
    animation: scwMilestoneReached 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scwMilestoneReached {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   SCROLLABLE AREA
   ============================================ */
.scw-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.scw-scroll::-webkit-scrollbar { width: 4px; }
.scw-scroll::-webkit-scrollbar-track { background: transparent; }
.scw-scroll::-webkit-scrollbar-thumb { background: var(--scw-grey-300); border-radius: var(--scw-radius-full); }

/* ============================================
   ITEMS (structure — contenu Phase 2)
   ============================================ */
.scw-items {
    padding: var(--scw-space-lg) var(--scw-space-lg) var(--scw-space-xs);
    display: flex;
    flex-direction: column;
    gap: var(--scw-space-lg);
}

.scw-item:first-child {
    padding-top: var(--scw-space-sm);
}

.scw-item {
    display: flex;
    gap: var(--scw-space-md);
    padding-bottom: var(--scw-space-sm);
    border-bottom: 1px solid var(--scw-grey-200);
    transition: var(--scw-transition);
    animation: scwItemFadeIn 0.35s ease forwards;
    opacity: 0;
}

.scw-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
    margin-bottom: 0;
}
.scw-item:nth-child(1) { animation-delay: 0.1s; }
.scw-item:nth-child(2) { animation-delay: 0.2s; }
.scw-item:nth-child(3) { animation-delay: 0.3s; }

/* ─── Bloc cadeaux acquis ─────────────────────────── */
.scw-gifts-block {
    background: var(--scw-grey-100, #f5f5f5);
    border-radius: var(--scw-radius-md);
    padding: var(--scw-space-md) var(--scw-space-lg);
    text-align: center;
    animation: scwItemFadeIn 0.35s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}
.scw-gifts-title {
    font-family: 'Instrument Sans', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--scw-noir);
    margin-bottom: var(--scw-space-sm);
}
.scw-gifts-row {
    display: flex;
    align-items: center;
    gap: var(--scw-space-sm);
    justify-content: center;
    gap: var(--scw-space-xs);
    padding: var(--scw-space-xs) 0;
    border-top: 1px solid var(--scw-grey-200);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--scw-noir);
}
.scw-gifts-row:first-of-type {
    border-top: none;
}
.scw-gifts-icon {
    font-size: 14px;
}
.scw-gifts-thumb {
    width: 28px;
    height: 28px;
    border-radius: var(--scw-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes scwItemFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.scw-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--scw-radius-md);
    background: var(--scw-grey-100);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scw-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scw-item-image .scw-badge-cbd {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--scw-blue);
    color: #fff;
    font-family: 'Space Grotesk', monospace;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--scw-radius-full);
}

.scw-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--scw-space-micro);
    min-width: 0;
}

.scw-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--scw-space-xs);
}

.scw-item-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--scw-noir);
    line-height: 1.3;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-item-variant {
    font-size: 12px;
    color: var(--scw-grey-500);
    font-weight: 500;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-item-remove {
    background: none;
    border: none;
    color: var(--scw-grey-400);
    cursor: pointer;
    padding: 2px;
    transition: var(--scw-transition);
    flex-shrink: 0;
}

.scw-item-remove:hover { color: var(--scw-warning); }
.scw-item-remove svg { width: 16px; height: 16px; }

/* Terpene badges */
.scw-terpene-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.scw-terpene-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--scw-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    transition: var(--scw-transition);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-terpene-badge:hover { transform: translateY(-1px); box-shadow: var(--scw-shadow-sm); }

.scw-terpene-badge .scw-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--scw-noir);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--scw-radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 20;
}

.scw-terpene-badge .scw-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--scw-noir);
}

.scw-terpene-badge:hover .scw-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.scw-terpene-badge.fruite { background: rgba(229,57,53,0.12); color: var(--scw-terpene-fruite); }
.scw-terpene-badge.floral { background: rgba(233,30,140,0.12); color: var(--scw-terpene-floral); }
.scw-terpene-badge.boise { background: rgba(46,125,50,0.12); color: var(--scw-terpene-boise); }
.scw-terpene-badge.diesel { background: rgba(84,110,122,0.12); color: var(--scw-terpene-diesel); }
.scw-terpene-badge.agrume { background: rgba(255,176,32,0.12); color: var(--scw-terpene-agrume); }
.scw-terpene-badge.epice { background: rgba(216,67,21,0.12); color: var(--scw-terpene-epice); }
.scw-terpene-badge.terreux { background: rgba(121,85,72,0.12); color: var(--scw-terpene-terreux); }

/* Price + Qty row */
.scw-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--scw-space-xs);
}

.scw-gift-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--scw-success);
    background: rgba(52, 199, 89, 0.1);
    padding: 4px 10px;
    border-radius: var(--scw-radius-full);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-item-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    text-align: right;
}
.scw-item-prices--promo {
    gap: 0;
}
.scw-item-prices--promo .scw-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.scw-item-price {
    font-family: 'Space Grotesk', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--scw-noir);
}

/* ─── Prix promo (CRO) ─────────────────────────────── */
.scw-item-prices--promo .scw-item-price {
    color: var(--scw-success, #34c759);
}
.scw-item-price-regular {
    font-family: 'Space Grotesk', monospace;
    font-size: 12px;
    font-weight: 400;
    color: var(--scw-grey-400);
    text-decoration: line-through;
}
.scw-item-save-badge {
    display: inline-block;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--scw-success, #34c759);
    padding: 1px 6px;
    border-radius: var(--scw-radius-full);
    letter-spacing: 0.02em;
    animation: scwPulse 2s ease-in-out infinite;
}
@keyframes scwPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.scw-item-price-ht {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--scw-grey-400);
}

.scw-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--scw-grey-200);
    border-radius: var(--scw-radius-sm);
    height: 22px;
}

.scw-qty-selector button {
    width: 20px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--scw-grey-500);
    font-size: 11px;
    padding: 0;
    outline: none;
    transition: var(--scw-transition);
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
}

.scw-qty-selector button:first-child {
    border-radius: calc(var(--scw-radius-md) - 2px) 0 0 calc(var(--scw-radius-md) - 2px);
}

.scw-qty-selector button:last-child {
    border-radius: 0 calc(var(--scw-radius-md) - 2px) calc(var(--scw-radius-md) - 2px) 0;
}

.scw-qty-selector button:hover {
    background: var(--scw-blue-light);
    color: var(--scw-blue);
}

.scw-qty-selector .scw-qty-value {
    width: 22px;
    text-align: center;
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--scw-noir);
    border: none;
    border-left: 1px solid var(--scw-grey-200);
    border-right: 1px solid var(--scw-grey-200);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
    padding: 0;
}

.scw-qty-selector .scw-qty-value::-webkit-inner-spin-button,
.scw-qty-selector .scw-qty-value::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Gift item */
.scw-item.scw-gift {
    background: var(--scw-success-bg);
    margin: 0 calc(var(--scw-space-sm) * -1);
    padding: var(--scw-space-sm);
    border-radius: var(--scw-radius-md);
    border-bottom: none;
}

.scw-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--scw-success);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--scw-radius-full);
    margin-top: 2px;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

/* ============================================
   CROSS-SELL
   ============================================ */
.scw-crosssell {
    padding: var(--scw-space-md) var(--scw-space-lg);
    border-top: none;
}

.scw-crosssell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--scw-space-sm);
}

.scw-crosssell-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--scw-noir);
}

.scw-crosssell-nav {
    display: flex;
    gap: 6px;
}

.scw-crosssell-nav button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--scw-grey-200);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--scw-grey-500);
    transition: var(--scw-transition);
    font-size: 14px;
    padding: 0;
    flex-shrink: 0;
}

.scw-crosssell-nav button:hover {
    border-color: var(--scw-blue);
    color: var(--scw-blue);
    background: var(--scw-blue-light);
}

.scw-crosssell-track {
    display: flex;
    gap: var(--scw-space-sm);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    cursor: grab;
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
}

.scw-crosssell-track:active {
    cursor: grabbing;
}

.scw-crosssell-track.scw-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
}

/* Hide scrollbar by default, show on hover/scroll */
.scw-crosssell-track {
    scrollbar-width: none; /* Firefox */
}
.scw-crosssell-track::-webkit-scrollbar { height: 3px; }
.scw-crosssell-track::-webkit-scrollbar-track { background: transparent; }
.scw-crosssell-track::-webkit-scrollbar-thumb { background: transparent; border-radius: var(--scw-radius-full); transition: background 0.3s; }
.scw-crosssell-track:hover::-webkit-scrollbar-thumb { background: var(--scw-grey-300); }
.scw-crosssell-track.scw-dragging::-webkit-scrollbar-thumb { background: var(--scw-grey-400); }

.scw-crosssell-card {
    flex-shrink: 0;
    width: calc(100% - 16px);
    scroll-snap-align: start;
    border: 1px solid var(--scw-grey-200);
    border-radius: var(--scw-radius-md);
    overflow: hidden;
    background: #fff;
    transition: var(--scw-transition);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.scw-crosssell-card:hover {
    box-shadow: var(--scw-shadow-md);
}

.scw-crosssell-card-image {
    width: 90px;
    min-width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #F9F9F9;
    overflow: hidden;
}

.scw-crosssell-card-info {
    padding: var(--scw-space-sm) var(--scw-space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.scw-crosssell-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--scw-noir);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-crosssell-card-price {
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--scw-noir);
    margin-top: 2px;
}

.scw-crosssell-add {
    flex-shrink: 0;
    padding: var(--scw-space-sm) var(--scw-space-md);
    background: transparent;
    border: none;
    border-left: 1px solid var(--scw-grey-200);
    border-radius: 0;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--scw-blue);
    cursor: pointer;
    transition: var(--scw-transition);
    white-space: nowrap;
    align-self: stretch;
    display: flex;
    align-items: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    outline: none;
}

.scw-crosssell-add:hover {
    background: var(--scw-blue-light);
    color: var(--scw-blue-hover);
}

/* focus handled globally */

/* ============================================
   BOTTOM SHEET — Variant selection
   ============================================ */
.scw-bs-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.scw-bs-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.scw-bs-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
}

.scw-bs-sheet {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--scw-radius-lg) var(--scw-radius-lg) 0 0;
    width: 100%;
    padding: var(--scw-space-lg);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80%;
    overflow-y: auto;
}
.scw-bs-overlay.open .scw-bs-sheet {
    transform: translateY(0);
}

.scw-bs-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--scw-grey-200) !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--scw-grey-500);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    z-index: 2;
}

.scw-bs-close:hover {
    background: var(--scw-grey-100) !important;
    color: var(--scw-noir);
}

.scw-bs-header {
    display: flex;
    align-items: center;
    gap: var(--scw-space-sm);
    margin-bottom: var(--scw-space-md);
}

.scw-bs-product-img {
    width: 48px;
    height: 48px;
    border-radius: var(--scw-radius-sm);
    background: var(--scw-grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
}

.scw-bs-product-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--scw-noir);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-bs-product-price {
    font-size: 12px;
    color: var(--scw-grey-500);
    margin-top: 2px;
    font-family: 'Space Grotesk', monospace;
}

.scw-bs-attr-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--scw-grey-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    margin-top: var(--scw-space-sm);
}

/* Pills (for text attributes like flavors) */
.scw-bs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--scw-space-xs);
}

.scw-bs-pill {
    padding: 6px 12px;
    border: 1px solid var(--scw-grey-200);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--scw-noir);
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-bs-pill:hover {
    border-color: var(--scw-blue);
    color: var(--scw-blue);
}

.scw-bs-pill.active {
    background: var(--scw-blue);
    color: #fff;
    border-color: var(--scw-blue);
}

/* Options list (for quantity/price attributes) */
.scw-bs-options {
    margin-bottom: var(--scw-space-xs);
}

.scw-bs-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--scw-grey-200);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.scw-bs-option:hover { border-color: var(--scw-blue); }

.scw-bs-option.active {
    border-color: var(--scw-blue);
    background: rgba(90,139,255,0.05);
}

.scw-bs-option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--scw-noir);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-bs-option.active .scw-bs-option-label { color: var(--scw-blue); }

.scw-bs-option-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--scw-blue);
    font-family: 'Space Grotesk', monospace;
}

/* CTA button */
.scw-bs-cta {
    width: 100%;
    padding: 12px 0;
    background: var(--scw-blue);
    color: #fff;
    border: none;
    border-radius: var(--scw-radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: var(--scw-space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-bs-cta:hover { background: var(--scw-blue-hover); }

/* Feedback "Ajoute !" */
.scw-crosssell-add.scw-crosssell-added {
    color: var(--scw-success);
    background: rgba(52, 199, 89, 0.1);
    border-top-color: rgba(52, 199, 89, 0.2);
}

/* Image dans les cards cross-sell */
.scw-crosssell-card-image img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Badge CBD petit (cross-sell) */
.scw-badge-cbd-sm {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--scw-blue);
    color: #fff;
    font-family: 'Space Grotesk', monospace;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--scw-radius-full);
}

/* ============================================
   PROMO CODE
   ============================================ */
.scw-promo {
    padding: 0 var(--scw-space-lg);
    margin-bottom: var(--scw-space-xs);
}

.scw-promo-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--scw-grey-500);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Instrument Sans', sans-serif;
    transition: var(--scw-transition);
    padding: 0;
}

.scw-promo-toggle:hover { color: var(--scw-blue); }

.scw-promo-chevron {
    transition: var(--scw-transition);
    font-size: 12px;
}

.scw-promo-toggle.open .scw-promo-chevron {
    transform: rotate(180deg);
}

.scw-promo-form {
    display: none;
    gap: var(--scw-space-xs);
    margin-top: var(--scw-space-xs);
}

.scw-promo-form.visible {
    display: flex;
}

.scw-promo-input {
    flex: 1;
    height: 38px;
    border: 1.5px solid var(--scw-grey-200);
    border-radius: var(--scw-radius-md);
    padding: 0 var(--scw-space-sm);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    color: var(--scw-noir);
    background: #fff;
    outline: none;
    transition: var(--scw-transition);
}

.scw-promo-input::placeholder { color: var(--scw-grey-400); }
/* focus handled by global rule */

.scw-promo-apply {
    height: 38px;
    padding: 0 var(--scw-space-md);
    background: var(--scw-noir);
    color: #fff;
    border: none;
    border-radius: var(--scw-radius-md);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--scw-transition);
}

.scw-promo-apply:hover { background: var(--scw-grey-600); }

.scw-promo-apply.scw-promo-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Promo feedback */
.scw-promo-feedback {
    font-size: 12px;
    font-weight: 600;
    margin-top: var(--scw-space-xs);
    padding: 0;
    border-radius: var(--scw-radius-sm);
    display: none;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-promo-feedback.visible {
    display: block;
}

.scw-promo-feedback.success {
    color: var(--scw-success);
}

.scw-promo-feedback.error {
    color: #E53935;
}

/* Applied coupons */
.scw-promo-applied {
    display: flex;
    flex-direction: column;
    gap: var(--scw-space-micro);
    margin-top: var(--scw-space-xs);
}

.scw-promo-applied:empty {
    display: none;
}

.scw-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--scw-blue-light);
    color: var(--scw-blue);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--scw-radius-full);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-coupon-tag .scw-coupon-amount {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
}

.scw-coupon-remove {
    background: none;
    border: none;
    color: var(--scw-blue);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: var(--scw-transition);
}

.scw-coupon-remove:hover {
    opacity: 1;
}

/* ============================================
   CASHBACK
   ============================================ */
.scw-cashback {
    margin: 0 var(--scw-space-lg) var(--scw-space-xs);
    padding: var(--scw-space-sm) var(--scw-space-md);
    background: var(--scw-success-bg);
    border-radius: var(--scw-radius-md);
    display: flex;
    align-items: center;
    gap: var(--scw-space-sm);
    flex-shrink: 0;
    animation: scwCashbackPop 0.4s ease 0.6s both;
}

.scw-cashback-icon {
    width: 36px;
    height: 36px;
    background: var(--scw-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scw-cashback-icon svg { width: 18px; height: 18px; color: #fff; }

.scw-cashback-info { flex: 1; }

.scw-cashback-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--scw-grey-600);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-cashback-amount {
    font-family: 'Space Grotesk', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--scw-success);
}

.scw-cashback-detail {
    font-size: 10px;
    font-weight: 500;
    color: var(--scw-grey-400);
    margin-top: 1px;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

@keyframes scwCashbackPop {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   FOOTER
   ============================================ */
.scw-footer {
    padding: var(--scw-space-xs) var(--scw-space-lg) var(--scw-space-sm);
    border-top: 1px solid var(--scw-grey-200);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--scw-transition);
}

.scw-footer--no-subtotals {
    border-top: none;
}

.scw-totals {
    display: flex;
    flex-direction: column;
    gap: var(--scw-space-xs);
}

.scw-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-total-row .label {
    font-size: 13px;
    font-weight: 500;
    color: var(--scw-grey-500);
}

.scw-total-row .value {
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
    font-weight: 400;
    color: var(--scw-grey-500);
}

.scw-total-row.scw-savings {
    background: var(--scw-success-bg);
    margin: 0 calc(var(--scw-space-sm) * -1);
    padding: var(--scw-space-xs) var(--scw-space-sm);
    border-radius: var(--scw-radius-sm);
}

.scw-total-row.scw-savings .label { color: var(--scw-success); font-weight: 600; }
.scw-total-row.scw-savings .value { color: var(--scw-success); font-weight: 700; font-size: 14px; }

.scw-total-row.scw-total {
    padding-top: var(--scw-space-xs);
    border-top: 1px solid var(--scw-grey-200);
    margin-top: var(--scw-space-micro);
}

.scw-total-row.scw-total .label {
    font-size: 15px;
    font-weight: 700;
    color: var(--scw-noir);
}

.scw-total-row.scw-total .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--scw-noir);
}

.scw-value-ht {
    font-size: 12px;
    font-weight: 400;
    color: var(--scw-grey-400);
    margin-left: 8px;
}

/* CTA */
.scw-cta {
    width: 100%;
    height: 52px;
    background: var(--scw-blue);
    color: #fff;
    border: none;
    border-radius: var(--scw-radius-md);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--scw-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--scw-space-xs);
    position: relative;
    overflow: hidden;
}

.scw-cta:hover {
    background: var(--scw-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--scw-shadow-cta);
}

.scw-cta .scw-cta-price {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    margin-left: 4px;
}

.scw-cta svg { width: 18px; height: 18px; }

/* CTA shimmer */
.scw-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: scwShimmer 3s ease-in-out infinite;
}

@keyframes scwShimmer {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

/* Payment */
.scw-payment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: var(--scw-space-sm);
}

.scw-payment.scw-payment-reverse {
    flex-direction: column-reverse;
}

.scw-payment-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--scw-grey-400);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-payment-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ============================================
   STICKY MINI SUMMARY
   ============================================ */
.scw-mini-summary {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--scw-noir);
    color: #fff;
    padding: var(--scw-space-sm) var(--scw-space-lg);
    border-radius: var(--scw-radius-lg) var(--scw-radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--scw-space-md);
    z-index: 100001;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(27,27,27,0.15);
}

.scw-mini-summary.visible {
    transform: translateY(0);
}

.scw-mini-summary-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.scw-mini-summary-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--scw-grey-400);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-mini-summary-total {
    font-family: 'Space Grotesk', monospace;
    font-size: 18px;
    font-weight: 700;
}

.scw-mini-summary-cashback {
    font-size: 11px;
    color: var(--scw-success);
    font-weight: 600;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

.scw-mini-summary-cta {
    padding: 10px 20px;
    background: var(--scw-blue);
    color: #fff;
    border: none;
    border-radius: var(--scw-radius-md);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--scw-transition);
    white-space: nowrap;
}

.scw-mini-summary-cta:hover {
    background: var(--scw-blue-hover);
    box-shadow: var(--scw-shadow-cta);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet landscape / small desktop (≤1024px) --- */
@media (max-width: 1024px) {
    .scw-drawer {
        width: 380px;
    }

    .scw-mini-summary {
        width: 380px;
    }

    .scw-crosssell-card {
        width: 130px;
    }

    .scw-crosssell-card-image {
        height: 90px;
    }
}

/* --- Tablet portrait (≤768px) --- */
@media (max-width: 768px) {
    .scw-drawer {
        width: 100%;
        max-width: 100vw;
        border-radius: 0;
    }

    .scw-mini-summary {
        width: 100%;
    }

    .scw-items {
        padding: var(--scw-space-md);
        gap: var(--scw-space-md);
    }

    .scw-item-image {
        width: 70px;
        height: 70px;
    }

    .scw-footer {
        padding: var(--scw-space-md);
    }

    .scw-crosssell {
        padding: var(--scw-space-sm) var(--scw-space-md);
    }

    .scw-promo {
        padding: 0 var(--scw-space-md);
    }

    .scw-cashback {
        margin-left: var(--scw-space-md);
        margin-right: var(--scw-space-md);
    }
}

/* --- Mobile (≤480px) — slide-up full screen --- */
@media (max-width: 480px) {
    .scw-drawer {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
    }

    .scw-drawer.open {
        transform: translateY(0);
    }

    .scw-mini-summary {
        width: 100%;
        border-radius: var(--scw-radius-lg) var(--scw-radius-lg) 0 0;
    }

    .scw-items {
        padding: var(--scw-space-md);
        gap: var(--scw-space-md);
    }

    .scw-item-image {
        width: 64px;
        height: 64px;
    }

    .scw-item-name {
        font-size: 13px;
    }

    .scw-item-price {
        font-size: 14px;
    }

    .scw-terpene-badges {
        gap: 4px;
    }

    .scw-terpene-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .scw-crosssell {
        padding: var(--scw-space-sm) var(--scw-space-md);
    }

    .scw-crosssell-card {
        width: 125px;
    }

    .scw-crosssell-card-image {
        height: 80px;
    }

    .scw-promo {
        padding: 0 var(--scw-space-md);
    }

    .scw-cashback {
        margin-left: var(--scw-space-md);
        margin-right: var(--scw-space-md);
    }

    .scw-footer {
        padding: var(--scw-space-sm) var(--scw-space-md) var(--scw-space-sm);
        gap: var(--scw-space-xs);
    }

    .scw-cta {
        height: 48px;
        font-size: 14px;
        border-radius: var(--scw-radius-sm);
    }

    .scw-total-row.scw-total .value {
        font-size: 18px;
    }

    .scw-progress {
        padding: var(--scw-space-sm) var(--scw-space-md);
    }

    .scw-milestone-label {
        font-size: 9px;
        max-width: 60px;
    }

    .scw-milestone-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Safe area for devices with notch / home indicator */
    .scw-footer {
        padding-bottom: calc(var(--scw-space-md) + env(safe-area-inset-bottom, 0px));
    }

    .scw-mini-summary {
        padding-bottom: calc(var(--scw-space-sm) + env(safe-area-inset-bottom, 0px));
    }
}

/* ============================================
   ACCESSIBILITY — FOCUS STYLES
   ============================================ */

/* Visible focus ring for keyboard navigation */
/* ============================================
   ASTRA THEME OVERRIDES
   Reset all Astra global button styles inside drawer
   ============================================ */
.scw-drawer button,
.scw-drawer .button,
.scw-drawer input[type="button"],
.scw-drawer input[type="submit"] {
    box-shadow: none !important;
    border-color: transparent !important;
    -webkit-appearance: none !important;
}

.scw-drawer button:hover,
.scw-drawer button:focus,
.scw-drawer button:active,
.scw-drawer .button:hover,
.scw-drawer .button:focus,
.scw-drawer .button:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Restore specific borders we WANT (qty selector, crosssell cards) */
.scw-drawer .scw-qty-selector {
    border-color: var(--scw-grey-200) !important;
}
.scw-drawer .scw-qty-selector .scw-qty-value {
    border-color: var(--scw-grey-200) !important;
}
.scw-drawer .scw-crosssell-add {
    border-top-color: var(--scw-grey-200) !important;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
}
.scw-drawer .scw-promo-apply {
    border-color: transparent !important;
}
.scw-drawer .scw-close-strip {
    border-color: transparent !important;
}

/* Remove ALL outlines/focus-rings in drawer */
.scw-drawer *:focus,
.scw-drawer *:focus-visible,
.scw-drawer *:focus-within,
.scw-drawer *:focus:not(:focus-visible) {
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
}

/* Skip-to-content style (sr-only but visible on focus) */
.scw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Empty state CTA button */
.scw-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--scw-space-sm);
    padding: 10px 20px;
    background: var(--scw-blue);
    color: #fff;
    border: none;
    border-radius: var(--scw-radius-md);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--scw-transition);
    text-decoration: none;
}

.scw-empty-cta:hover {
    background: var(--scw-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--scw-shadow-cta);
    color: #fff;
}

/* ============================================
   PHASE 2 — ITEM ANIMATIONS & STATES
   ============================================ */

/* Image placeholder (no WC image) */
.scw-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a6741 0%, #2d4a28 50%, #5a7c52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* Slide-out animation on remove */
.scw-item-removing {
    animation: scwItemSlideOut 0.35s ease forwards;
    pointer-events: none;
}

@keyframes scwItemSlideOut {
    0% { opacity: 1; transform: translateX(0); max-height: 200px; margin-bottom: 0; }
    50% { opacity: 0; transform: translateX(60px); }
    100% { opacity: 0; transform: translateX(60px); max-height: 0; margin-bottom: -24px; overflow: hidden; }
}

/* Qty bump animation */
.scw-qty-bump {
    animation: scwQtyBump 0.2s ease;
}

@keyframes scwQtyBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Price flash on update */
.scw-price-flash {
    animation: scwPriceFlash 0.3s ease;
}

@keyframes scwPriceFlash {
    0% { color: var(--scw-blue); }
    100% { color: var(--scw-noir); }
}

/* Loading state */
.scw-drawer.scw-loading .scw-items {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Empty state */
.scw-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--scw-space-xl) var(--scw-space-lg);
    text-align: center;
    gap: var(--scw-space-sm);
    min-height: 200px;
}

.scw-empty-icon {
    font-size: 48px;
    opacity: 0.5;
}

.scw-empty-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--scw-noir);
}

.scw-empty-text {
    font-size: 13px;
    color: var(--scw-grey-500);
    max-width: 260px;
    line-height: 1.5;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
}

/* Fromage terpene (missing from Phase 1) */
.scw-terpene-badge.fromage { background: rgba(249,168,37,0.12); color: var(--scw-terpene-fromage); }

/* ============================================
   PHASE 7 — ANIMATIONS & POLISH
   ============================================ */

/* --- 7.2 Tooltip scientific name styling --- */
.scw-tooltip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    max-width: 220px;
    white-space: normal;
    line-height: 1.4;
}

.scw-tooltip-sci {
    font-style: italic;
    font-weight: 600;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.scw-tooltip-desc {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* --- 7.4 Extended stagger for 4+ items --- */
.scw-item:nth-child(4) { animation-delay: 0.4s; }
.scw-item:nth-child(5) { animation-delay: 0.5s; }
.scw-item:nth-child(6) { animation-delay: 0.55s; }
.scw-item:nth-child(7) { animation-delay: 0.6s; }
.scw-item:nth-child(n+8) { animation-delay: 0.6s; }

/* --- 7.4 Section entrance animations --- */
.scw-progress {
    animation: scwSectionFadeIn 0.4s ease 0.15s both;
}

.scw-crosssell {
    animation: scwSectionFadeIn 0.35s ease 0.2s both;
}

.scw-promo {
    animation: scwSectionFadeIn 0.35s ease 0.25s both;
}

@keyframes scwSectionFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- 7.4 Cross-sell cards cascade --- */
.scw-crosssell-card {
    animation: scwCardFadeIn 0.3s ease both;
}

.scw-crosssell-card:nth-child(1) { animation-delay: 0.1s; }
.scw-crosssell-card:nth-child(2) { animation-delay: 0.15s; }
.scw-crosssell-card:nth-child(3) { animation-delay: 0.2s; }
.scw-crosssell-card:nth-child(4) { animation-delay: 0.25s; }
.scw-crosssell-card:nth-child(5) { animation-delay: 0.3s; }
.scw-crosssell-card:nth-child(6) { animation-delay: 0.35s; }

@keyframes scwCardFadeIn {
    from { opacity: 0; transform: translateY(6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- 7.4 Qty selector hover scale feedback --- */
.scw-qty-selector button:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

/* --- 7.4 Remove button hover animation --- */
.scw-item-remove:hover svg {
    animation: scwTrashShake 0.4s ease;
}

@keyframes scwTrashShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* --- 7.4 Badge count pop on update --- */
.scw-el-count.scw-count-pop {
    animation: scwCountPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scwCountPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
    .scw-drawer,
    .scw-overlay,
    .scw-item,
    .scw-crosssell-card,
    .scw-cashback,
    .scw-progress,
    .scw-crosssell,
    .scw-promo,
    .scw-mini-summary,
    .scw-reassurance-track,
    .scw-cta::after,
    .scw-milestone.next .scw-milestone-icon {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .scw-item {
        opacity: 1 !important;
    }
}
