/**
 * Phase 5 — Cart & checkout: step indicator, summary cards, form rhythm.
 */

.almart-checkout-steps__list {
    font-size: var(--almart-type-small-size);
    font-weight: var(--almart-font-weight-semibold);
}

.almart-checkout-steps__item {
    color: var(--almart-color-text-muted);
}

.almart-checkout-steps__item.is-current {
    color: var(--bs-primary);
}

.almart-checkout-steps__item.is-current span {
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 2px;
}

.almart-checkout-page .almart-checkout-form .form-control {
    border-radius: var(--almart-radius-md);
}

.almart-checkout-page .almart-checkout-form .form-label {
    font-weight: var(--almart-font-weight-medium);
}

.almart-cart-page .almart-cart-table tbody tr:hover {
    background: var(--almart-color-surface-muted);
}

.almart-cart-qty {
    width: 3.5rem;
    min-width: 3.25rem;
    max-width: 4rem;
    border-radius: var(--almart-radius-md);
    text-align: center;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

/* Cart line qty + update — aligned, compact */
.cart-line-qty__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.cart-line-qty__btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: var(--almart-font-weight-semibold);
    line-height: 1.3;
    border-radius: var(--almart-radius-md);
    white-space: nowrap;
}

/* Cart page buttons (summary + empty state) */
.cart-page__btn {
    padding: 0.5rem 1.125rem;
    font-size: 0.9rem;
    font-weight: var(--almart-font-weight-semibold);
    line-height: 1.35;
    border-radius: var(--almart-radius-lg);
}

.cart-page__btn--primary {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.almart-cart-thumb img {
    border: 1px solid var(--almart-color-border);
}

.almart-cart-summary {
    border: 1px solid var(--almart-color-border-subtle);
}

.almart-cart-suggest:hover {
    box-shadow: var(--almart-shadow-card) !important;
}

.almart-cart-empty {
    border: 1px dashed var(--almart-color-border-strong);
    border-radius: var(--almart-radius-xl);
    background: var(--almart-color-surface-muted);
}

@media (max-width: 575.98px) {
    .cart-line-qty__form {
        flex-direction: column;
        align-items: stretch;
        max-width: 8rem;
    }

    .cart-line-qty__form .almart-cart-qty {
        width: 100%;
        max-width: none;
    }

    .cart-line-qty__btn {
        width: 100%;
    }
}
