/* Cart page — pink theme, responsive stacked rows */

.sf-cart-page-main.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.sf-cart-selected-badge {
    background: var(--sf-accent-soft, rgba(194, 24, 91, 0.12));
    color: var(--brand-pink, #c2185b);
    font-weight: 600;
    padding: 0.45rem 0.85rem;
}

.sf-cart-empty-icon {
    width: 72px;
    height: 72px;
    margin-inline: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-accent-soft, rgba(194, 24, 91, 0.12));
    color: var(--brand-pink, #c2185b);
    font-size: 2rem;
}

.sf-cart-table-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1.6fr) 140px 110px 110px 40px;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sf-cart-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sf-cart-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sf-cart-row:last-child {
    border-bottom: 0;
}

.sf-cart-row-check {
    padding-top: 0.35rem;
}

.sf-cart-row-product {
    display: flex;
    gap: 0.85rem;
    min-width: 0;
    grid-column: 2;
}

.sf-cart-row-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.sf-cart-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-cart-row-title {
    font-weight: 600;
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-cart-row-title:hover {
    color: var(--brand-pink, #c2185b);
}

.sf-cart-row-meta,
.sf-cart-row-var {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.sf-cart-row-qty,
.sf-cart-row-price,
.sf-cart-row-total {
    grid-column: 2;
}

.sf-cart-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(194, 24, 91, 0.25);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.sf-cart-qty-btn {
    border: 0;
    border-radius: 0;
    color: var(--brand-pink, #c2185b);
    padding: 0.25rem 0.55rem;
    line-height: 1;
}

.sf-cart-qty-btn:hover {
    background: var(--sf-accent-soft, rgba(194, 24, 91, 0.1));
}

.sf-cart-qty-input {
    width: 48px;
    border: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    text-align: center;
    font-weight: 600;
    padding: 0.25rem 0.2rem;
    box-shadow: none;
}

.sf-cart-qty-input:focus {
    box-shadow: none;
}

.sf-cart-row-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.sf-cart-unit-price {
    font-weight: 600;
    color: var(--brand-pink, #c2185b);
}

.sf-cart-row-total strong {
    color: #212529;
}

.sf-cart-row-remove {
    grid-column: 2;
    justify-self: end;
    font-size: 1.1rem;
}

.sf-cart-summary-card {
    top: 96px;
}

.sf-cart-summary-rows dd:last-of-type,
.sf-cart-summary-rows dt:last-of-type {
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.sf-cart-recommend .sf-mh-product-card {
    border-radius: 12px;
}

@media (min-width: 992px) {
    .sf-cart-row {
        grid-template-columns: 40px minmax(0, 1.6fr) 140px 110px 110px 40px;
        align-items: center;
        gap: 0.75rem;
    }

    .sf-cart-row-product,
    .sf-cart-row-qty,
    .sf-cart-row-price,
    .sf-cart-row-total,
    .sf-cart-row-remove {
        grid-column: auto;
    }

    .sf-cart-row-remove {
        justify-self: center;
    }

    .sf-cart-row-qty .sf-cart-qty-control {
        margin-inline: auto;
    }

    .sf-cart-row-price {
        flex-direction: column;
        align-items: flex-end;
    }

    .sf-cart-row-total {
        text-align: end;
    }
}

@media (max-width: 991.98px) {
    .sf-cart-row {
        position: relative;
        padding-right: 2rem;
    }

    .sf-cart-row-remove {
        position: absolute;
        top: 1rem;
        right: 0;
    }

    .sf-cart-row-qty,
    .sf-cart-row-price,
    .sf-cart-row-total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
}
