/**
 * Cart lines (validated cart): header row and line rows on the .dc-cart__lines-card surface.
 * Loads after data-table.css (the card shell rule lives there).
 */

.dc-cart__table-head,
.dc-cart__line-row {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) 7.375rem 7.25rem 6rem 2rem;
    gap: 0.875rem;
    align-items: center;
}

.dc-cart__table-head {
    padding: 0 var(--dc-space-4);
    height: 2.5rem;
}

.dc-cart__table-head-cell--price,
.dc-cart__table-head-cell--subtotal {
    text-align: right;
}

.dc-cart__line-row {
    padding: var(--dc-space-3) var(--dc-space-4);
    min-height: 5.5rem;
    border-top: 1px solid var(--dc-ceniza);
    box-sizing: border-box;
}

.dc-cart__line-thumb-img,
.dc-cart__line-thumb-placeholder {
    width: 4rem;
    height: 4rem;
    border-radius: var(--dc-radius-sm);
    object-fit: cover;
    display: block;
    background: var(--dc-hueso);
}

.dc-cart__line-product {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
}

.dc-cart__line-name {
    font-size: var(--dc-size-body-s);
    font-weight: var(--dc-weight-medium);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-cart__line-sub,
.dc-cart__line-equiv {
    font-size: var(--dc-size-small);
    line-height: var(--dc-lh-h2);
    color: var(--dc-gris);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-cart__line-equiv {
    font-size: 0.75rem;
}

.dc-cart__line-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
}

.dc-cart__line-unit-price {
    font-size: var(--dc-size-body-s);
    font-weight: var(--dc-weight-semibold);
    white-space: nowrap;
}

.dc-cart__line-pvr {
    font-size: var(--dc-size-caption);
    color: var(--dc-gris);
    white-space: nowrap;
}

.dc-cart__line-subtotal {
    font-size: var(--dc-size-body);
    font-weight: var(--dc-weight-semibold);
    text-align: right;
    white-space: nowrap;
}

.dc-cart__line-remove-btn {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: var(--dc-radius-pill);
    background: transparent;
    color: var(--dc-gris);
    text-decoration: none;
    font-size: 0;
}

.dc-cart__line-remove-btn:hover,
.dc-cart__line-remove-btn:focus-visible {
    color: var(--dc-error-text);
    background: var(--dc-hueso);
}
