.paginaCos {
    width: min(1400px, 96%);
    margin: 30px auto;
    color: #222;
}

.paginaCos h1 {
    margin: 0 0 25px;
    font-size: 30px;
}

.shopCartHeader,
.shopCartRow {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 120px 140px 130px 36px;
    align-items: center;
    gap: 16px;
}

.shopCartHeader {
    padding: 12px 8px;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.shopCartRow {
    min-height: 125px;
    padding: 14px 8px;
    border-bottom: 1px solid #ddd;
}

.shopCartProduct {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.shopCartImage {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.shopCartNoImage {
    display: grid;
    place-items: center;
    color: #777;
    font-size: 13px;
}

.shopCartName {
    color: #405b32;
    font-weight: 600;
    text-decoration: none;
}

.shopCartCode {
    margin-top: 8px;
    font-size: 14px;
}

.shopCartPrice,
.shopCartLineSubtotal {
    white-space: nowrap;
}

.shopCartQuantity {
    background-color: var(--alb);
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    overflow: hidden;
    width: max-content;
    justify-self: start;
}

.shopCartQuantity button {
    width: 38px;
    height: 38px;
    border: 0;
    background: #fff;
    color: #333;
    font-size: 21px;
    cursor: pointer;
}

.shopCartQuantity button:hover {
    background: #f2f4f1;
}

.shopCartQuantity button:disabled {
    opacity: .5;
    cursor: wait;
}

.shopCartQuantity span {
    min-width: 32px;
    text-align: center;
}

.shopCartRemove {
    border: 0;
    background: transparent;
    color: #d22;
    font-size: 26px;
    cursor: pointer;
}

.shopCartSummary {
    width: 100%;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.shopCartSubtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.shopCartSubtotal strong {
    font-size: 21px;
}

.shopCartShipping {
    margin: 12px 0 20px;
    color: #666;
}

.shopCartActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.shopCartFinalize,
.shopCartContinue {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 4px;
    text-decoration: none;
}

.shopCartFinalize {
    background: var(--verdeSemiInchis);
    color: var(--alb);
    font-weight: 700;
}

.shopCartFinalize:hover {
    background: var(--verdeDeschis);
    color: var(--bejAlb);
    font-weight: 700;
}

.shopCartContinue {
    border: 1px solid var(--verdeSemiInchis);
    color: var(--verdeSemiInchis);
}
.shopCartContinue:hover {
    background-color: var(--verdeDeschis);
    color: var(--bejAlb);
}

.shopCartEmpty {
    padding: 35px 0;
}

@media (max-width: 760px) {
    .shopCartHeader {
        display: none;
    }

    .shopCartRow {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 18px 4px;
    }

    .shopCartProduct {
        grid-column: 1 / -1;
    }

    .shopCartPrice::before {
        content: "Preț: ";
        color: #666;
    }

    .shopCartQuantity {
        justify-self: start;
    }

    .shopCartLineSubtotal {
        justify-self: end;
    }

    .shopCartLineSubtotal::before {
        content: "Subtotal: ";
        color: #666;
    }

    .shopCartRemove {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .shopCartActions {
        flex-direction: column;
    }

    .shopCartFinalize,
    .shopCartContinue {
        width: 100%;
        box-sizing: border-box;
    }
}