/* ==========================================================================
   CART EMPTY STATE — page + drawer
   ========================================================================== */

.cart-empty-state {
    --ces-gap: 1.25rem;
}

.cart-empty-state--page {
    margin-bottom: 1rem;
}

.cart-empty-state--drawer {
    padding: 0 0 1rem;
}

.cart-empty-state__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}

.cart-empty-state__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #4b5563;
    margin-bottom: 12px;
}

.cart-empty-state__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #e5e7eb;
}

.cart-empty-state__sub {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
    max-width: 260px;
}

.cart-empty-state__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.18s ease;
}

.cart-empty-state__cta--primary {
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.35);
}

.cart-empty-state__cta--primary:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
}

.cart-empty-state__kit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: var(--ces-gap) 16px 0;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(224, 32, 32, 0.1) 0%, rgba(30, 35, 45, 0.6) 100%);
    border: 1px solid rgba(224, 32, 32, 0.22);
}

.cart-empty-state--page .cart-empty-state__kit {
    margin: var(--ces-gap) 0 0;
}

.cart-empty-state__kit-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 32, 32, 0.15);
    color: #fca5a5;
    font-size: 14px;
}

.cart-empty-state__kit-body {
    flex: 1;
    min-width: 0;
}

.cart-empty-state__kit-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2px;
}

.cart-empty-state__kit-vehicle {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.cart-empty-state__kit-hint {
    margin: 3px 0 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.35;
}

.cart-empty-state__kit-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--ca-accent, #e02020);
    border: 1px solid rgba(224, 32, 32, 0.5);
    white-space: nowrap;
    transition: background 0.18s ease;
}

.cart-empty-state__kit-btn:hover {
    background: #c41c1c;
    color: #fff;
}

.cart-empty-state__section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.cart-empty-state--drawer .cart-empty-state__section-head {
    padding: 0 16px;
}

.cart-empty-state--page .cart-empty-state__recent,
.cart-empty-state--page .cart-empty-state__upsell {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-empty-state--drawer .cart-empty-state__recent,
.cart-empty-state--drawer .cart-empty-state__upsell {
    margin-top: var(--ces-gap);
}

.cart-empty-state__section-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.cart-empty-state--page .cart-empty-state__section-title {
    font-size: 1.05rem;
}

.cart-empty-state__section-sub {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--ca-text-3, rgba(255, 255, 255, 0.55));
    max-width: 36rem;
}

.cart-empty-state__section-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

.cart-empty-state__upsell-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-empty-state__upsell-kit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.cart-empty-state__upsell-kit:hover {
    background: rgba(224, 32, 32, 0.2);
    border-color: rgba(224, 32, 32, 0.35);
    color: #fff;
}

.cart-empty-state__upsell-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.65rem;
    color: #fca5a5;
    background: rgba(224, 32, 32, 0.12);
    border: 1px solid rgba(224, 32, 32, 0.25);
}

.cart-empty-state__recent-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 16px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cart-empty-state--page .cart-empty-state__recent-track {
    padding-left: 0;
    padding-right: 0;
}

.cart-empty-state__recent-card {
    flex: 0 0 auto;
    width: 148px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    scroll-snap-align: start;
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.cart-empty-state--page .cart-empty-state__recent-card {
    width: 168px;
}

.cart-empty-state__recent-card:hover {
    border-color: rgba(224, 32, 32, 0.3);
    background: rgba(224, 32, 32, 0.05);
}

.cart-empty-state__recent-img {
    display: block;
    aspect-ratio: 1;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.cart-empty-state__recent-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-empty-state__recent-name {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.3;
}

.cart-empty-state__recent-price {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ca-accent, #e02020);
    font-family: var(--ca-mono, monospace);
}

.cart-empty-state__upsell-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.cart-empty-state--page .cart-empty-state__upsell-grid {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .cart-empty-state--page .cart-empty-state__upsell-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.cart-empty-state__upsell-item {
    display: flex;
    align-items: stretch;
    gap: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.cart-empty-state__upsell-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: inherit;
}

.cart-empty-state__upsell-img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.cart-empty-state__upsell-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-empty-state__upsell-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-empty-state__upsell-reason--bundle {
    color: #fcd34d;
}

.cart-empty-state__upsell-reason {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.25;
}

.cart-empty-state__upsell-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.3;
}

.cart-empty-state__upsell-price {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ca-accent, #e02020);
    font-family: var(--ca-mono, monospace);
}

.cart-empty-state__upsell-add {
    flex-shrink: 0;
    width: 40px;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(224, 32, 32, 0.08);
    color: #fca5a5;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.cart-empty-state__upsell-add:hover {
    background: rgba(224, 32, 32, 0.18);
    color: #fff;
}

.cart-empty-state__upsell-add.is-added {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}