/* CloudNexus cart — components only (page shell matches other routes) */
.cart-steps {
    display: flex;
    justify-content: space-between;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    padding-top: 0.5rem;
    position: relative;
}

@media (max-width: 640px) {
    .cart-steps {
        margin-bottom: 2rem;
        padding-top: 0.25rem;
    }
}

.cart-steps::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.cart-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.cart-step__dot {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    box-shadow: 0 0 0 4px #f8fafc;
}

.cart-step--active .cart-step__dot {
    border-color: #ff8c00;
    color: #ff8c00;
}

.cart-step__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.cart-step--active .cart-step__label {
    color: #ff8c00;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr minmax(300px, 360px);
        gap: 2rem;
    }
}

.cart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.cart-card__head {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cart-card__title {
    font-family: Outfit, system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.cart-card__sub {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff8c00;
    background: #fff3e6;
    border: 1px solid rgba(255, 140, 0, 0.2);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
}

/* Line item — CSS grid forces price/remove to the right */
.cart-line {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: 'icon details price remove';
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s;
}

.cart-line:hover {
    background: #fafbfc;
}

.cart-line:last-child {
    border-bottom: none;
}

.cart-line__icon {
    grid-area: icon;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-line__details {
    grid-area: details;
    min-width: 0;
}

.cart-line__type {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.375rem;
}

.cart-line__name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
}

.cart-line__meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.cart-line__price {
    grid-area: price;
    text-align: right;
    padding-left: 0.5rem;
    justify-self: end;
}

.cart-line__amount {
    font-family: Outfit, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cart-line__term {
    font-size: 0.625rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.125rem;
}

.cart-line__remove {
    grid-area: remove;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.cart-line__remove:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

@media (max-width: 640px) {
    .cart-line {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            'icon details remove'
            'icon price price';
        padding: 1rem 1.25rem;
    }

    .cart-line__price {
        text-align: left;
        padding-left: 0;
    }
}

.cart-upsell {
    padding: 1.25rem 1.75rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.cart-upsell__title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.cart-upsell__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .cart-upsell__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cart-upsell__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cart-upsell__link:hover {
    border-color: rgba(255, 140, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.08);
}

.cart-summary {
    background: #0f172a;
    color: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid #1e293b;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
}

.cart-promo {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.cart-promo__form {
    display: flex;
    gap: 0.5rem;
}

.cart-promo__input {
    flex: 1;
    min-width: 0;
    height: 2.75rem;
    padding: 0 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: #f8fafc;
    color: #0f172a;
}

.cart-promo__input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
    background: #fff;
}

.cart-promo__btn {
    height: 2.75rem;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: #0f172a;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.cart-promo__btn:hover {
    background: #ff8c00;
}

.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #ff8c00, #f97316);
    border-radius: 0.875rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.35);
    transition: filter 0.15s, transform 0.15s;
}

.cart-checkout-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
