
.ea-cart-overlay, .ea-cart-drawer, .ea-cart-drawer * { box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.ea-cart-overlay {
    position: fixed; inset: 0;
    background: rgba(13,17,68,0.40);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.ea-cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.ea-cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 480px;
    max-width: 100vw;
    background: #FAFAF7;
    z-index: 99999;
    box-shadow: -24px 0 60px rgba(13,17,68,0.18);
    transform: translateX(100%);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    isolation: isolate;
    color: #1E1E24;
}
.ea-cart-drawer.is-open { transform: translateX(0); }
@media (max-width: 720px) { .ea-cart-drawer { width: 100%; } }

/* Header sticky */
.ea-cart-drawer__header {
    position: sticky; top: 0; z-index: 10;
    background: #FAFAF7;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(13,17,68,0.10);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.ea-cart-drawer__success { display: flex; align-items: center; gap: 12px; }
.ea-cart-drawer__check {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #2D7A4B; color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    animation: ea-cart-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}
.ea-cart-drawer__check svg { width: 18px; height: 18px; }
.ea-cart-drawer__title-block { display: flex; flex-direction: column; gap: 2px; }
.ea-cart-drawer__eyebrow {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.10em; text-transform: uppercase;
    color: #2D7A4B;
    margin: 0;
}
.ea-cart-drawer__title {
    font-size: 17px; font-weight: 700;
    color: #1E1E24;
    margin: 0;
    letter-spacing: -0.01em;
}
.ea-cart-drawer__close {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(2,1,1,0.62);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.22s ease;
    flex-shrink: 0;
    padding: 0;
}
.ea-cart-drawer__close:hover {
    background: #fff;
    border-color: rgba(13,17,68,0.10);
    color: #1E1E24;
}
.ea-cart-drawer__close svg { width: 18px; height: 18px; }

/* Body scrollable */
.ea-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px 28px;
    display: flex; flex-direction: column; gap: 20px;
}
.ea-cart-drawer__loading {
    display: flex; align-items: center; gap: 12px;
    padding: 24px;
    color: rgba(2,1,1,0.62);
    font-size: 14px;
    justify-content: center;
}
.ea-cart-drawer__spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(13,17,68,0.20);
    border-top-color: #B85540;
    border-radius: 50%;
    animation: ea-cart-spin 0.8s linear infinite;
}

/* Product card */
.ea-cart-product {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(13,17,68,0.10);
    border-radius: 12px;
    align-items: center;
    animation: ea-cart-slide-up 0.35s ease-out 0.10s both;
}
.ea-cart-product__img {
    width: 84px; height: 84px;
    background: linear-gradient(135deg, #E8E4D8, #FAFAF7);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.ea-cart-product__img img { width: 100%; height: 100%; object-fit: cover; }
.ea-cart-product__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ea-cart-product__sku {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: #B85540;
}
.ea-cart-product__name {
    font-size: 15px; font-weight: 700;
    color: #1E1E24;
    letter-spacing: -0.005em;
    line-height: 1.25;
    margin: 0;
}
.ea-cart-product__meta { font-size: 12px; color: rgba(2,1,1,0.62); }
.ea-cart-product__price {
    font-size: 16px; font-weight: 800;
    color: #0D1144;
    margin-top: 4px;
}
.ea-cart-product__price * { font-size: inherit; color: inherit; font-weight: inherit; }
.ea-cart-product__price del { opacity: 0.5; font-weight: 500; margin-right: 6px; }

/* Free shipping bar */
.ea-cart-shipping {
    background: #fff;
    border: 1px solid rgba(13,17,68,0.10);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.ea-cart-shipping__row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ea-cart-shipping__icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #0D1144;
}
.ea-cart-shipping__icon svg { width: 18px; height: 18px; }
.ea-cart-shipping__text { color: #1E1E24; font-weight: 500; }
.ea-cart-shipping__text strong { color: #0D1144; font-weight: 700; }
.ea-cart-shipping__text--unlocked { color: #2D7A4B; font-weight: 600; }
.ea-cart-shipping__bar {
    width: 100%; height: 4px;
    background: rgba(13,17,68,0.10);
    border-radius: 999px; overflow: hidden;
}
.ea-cart-shipping__bar-fill {
    height: 100%;
    background: #B85540;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ea-cart-shipping.is-unlocked .ea-cart-shipping__bar-fill { background: #2D7A4B; }

/* Section header */
.ea-cart-section-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 -8px; }
.ea-cart-section-head__lbl {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.10em; text-transform: uppercase;
    color: rgba(2,1,1,0.45);
    margin: 0;
}
.ea-cart-section-head__line { flex: 1; height: 1px; background: rgba(13,17,68,0.10); }

/* Upsell card */
.ea-cart-upsell {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(13,17,68,0.10);
    border-radius: 12px;
    align-items: center;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.ea-cart-upsell:hover {
    border-color: #0D1144;
    box-shadow: 0 6px 16px rgba(13,17,68,0.06);
}
.ea-cart-upsell__img {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #E8E4D8, #FAFAF7);
    border-radius: 8px;
    overflow: hidden;
}
.ea-cart-upsell__img img { width: 100%; height: 100%; object-fit: cover; }
.ea-cart-upsell__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ea-cart-upsell__badge {
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #B85540;
    margin: 0 0 2px;
}
.ea-cart-upsell__name {
    font-size: 14px; font-weight: 700;
    color: #1E1E24;
    letter-spacing: -0.005em;
    line-height: 1.25;
    margin: 0;
}
.ea-cart-upsell__meta {
    font-size: 12px; color: rgba(2,1,1,0.62);
    line-height: 1.4;
}
.ea-cart-upsell__price-block { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ea-cart-upsell__price {
    font-size: 14px; font-weight: 800;
    color: #0D1144;
    white-space: nowrap;
}
.ea-cart-upsell__price * { font-size: inherit; color: inherit; font-weight: inherit; }
.ea-cart-upsell__add {
    padding: 6px 12px;
    font-family: inherit;
    font-size: 12px; font-weight: 600;
    background: #0D1144; color: #fff;
    border: 1px solid #0D1144;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 4px;
}
.ea-cart-upsell__add:hover { background: #1C2153; }
.ea-cart-upsell.is-added .ea-cart-upsell__add {
    background: #2D7A4B;
    border-color: #2D7A4B;
    pointer-events: none;
}

/* Pose centre */
.ea-cart-pose {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #0D1144; color: #fff;
    border: 0; border-radius: 12px;
    cursor: pointer;
    transition: background 0.22s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
}
.ea-cart-pose:hover { background: #1C2153; }
.ea-cart-pose__icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.10);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ea-cart-pose__icon svg { width: 20px; height: 20px; }
.ea-cart-pose__info { flex: 1; min-width: 0; }
.ea-cart-pose__title { font-size: 13px; font-weight: 700; margin: 0 0 2px; line-height: 1.25; }
.ea-cart-pose__meta { font-size: 11px; color: rgba(255,255,255,0.72); line-height: 1.4; margin: 0; }
.ea-cart-pose__price { font-size: 14px; font-weight: 800; white-space: nowrap; text-align: right; }
.ea-cart-pose__price small { display: block; font-size: 9px; font-weight: 500; opacity: 0.72; text-transform: uppercase; letter-spacing: 0.06em; }

/* Footer sticky */
.ea-cart-drawer__footer {
    position: sticky; bottom: 0;
    background: #FAFAF7;
    border-top: 1px solid rgba(13,17,68,0.10);
    padding: 18px 24px 22px;
    display: flex; flex-direction: column; gap: 10px;
    box-shadow: 0 -8px 24px rgba(13,17,68,0.04);
}
.ea-cart-drawer__cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px;
    padding: 0 24px;
    font-family: inherit;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    width: 100%;
}
.ea-cart-drawer__cta--primary {
    background: #B85540; color: #fff;
    border-color: #B85540;
    box-shadow: 0 6px 20px rgba(184,85,64,0.30);
}
.ea-cart-drawer__cta--primary:hover {
    background: #A04A38;
    border-color: #A04A38;
    box-shadow: 0 10px 28px rgba(184,85,64,0.40);
}
.ea-cart-drawer__cta--ghost {
    background: transparent;
    color: #1E1E24;
    border-color: rgba(13,17,68,0.10);
}
.ea-cart-drawer__cta--ghost:hover {
    background: #fff;
    border-color: #0D1144;
}
.ea-cart-drawer__cta-price {
    margin-left: auto;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.ea-cart-drawer__cta-price * { font-size: inherit; color: inherit; font-weight: inherit; }

/* Trust */
.ea-cart-trust {
    display: flex; justify-content: center; gap: 16px;
    margin: 4px 0 0;
    padding: 0;
    flex-wrap: wrap;
    list-style: none;
}
.ea-cart-trust li {
    font-size: 11px;
    color: rgba(2,1,1,0.45);
    display: inline-flex; align-items: center; gap: 5px;
    font-weight: 500;
}
.ea-cart-trust svg { width: 12px; height: 12px; color: #2D7A4B; }

/* Animations */
@keyframes ea-cart-pop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes ea-cart-slide-up {
    0% { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes ea-cart-spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ea-cart-overlay, .ea-cart-drawer, .ea-cart-shipping__bar-fill, .ea-cart-product, .ea-cart-drawer__check, .ea-cart-drawer__spinner {
        transition: none !important;
        animation: none !important;
    }
}
