/* Cart page — scoped styles (loaded only on /cart). */

.cart-page-section {
    background: #f6f6f4;
    min-height: 60vh;
}

.cart-lines-card,
.cart-summary-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.cart-lines-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: .85rem;
    margin-bottom: .25rem;
    border-bottom: 1px solid #eee;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a8a8a;
    font-weight: 600;
}

.cart-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-line.is-adjusted {
    background: #fffdf5;
}

.cart-line-thumb {
    flex: 0 0 auto;
}

.cart-line-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

.cart-line-name {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
}

.cart-line-name:hover {
    color: #b8860b;
}

.cart-col-price,
.cart-col-total {
    flex: 0 0 90px;
    text-align: center;
    font-weight: 600;
}

.cart-col-total {
    color: #1a1a1a;
}

.cart-col-qty {
    flex: 0 0 130px;
    display: flex;
    justify-content: center;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.cart-qty .qty-btn {
    border: 0;
    background: #f4f4f2;
    width: 34px;
    height: 36px;
    cursor: pointer;
    color: #333;
}

.cart-qty .qty-btn:hover {
    background: #e9e9e6;
}

.cart-qty .qty-input {
    width: 46px;
    height: 36px;
    border: 0;
    text-align: center;
    -moz-appearance: textfield;
}

.cart-qty .qty-input::-webkit-outer-spin-button,
.cart-qty .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-col-remove {
    flex: 0 0 40px;
    text-align: center;
}

.cart-line-remove {
    border: 0;
    background: transparent;
    color: #b0b0b0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color .15s;
}

.cart-line-remove:hover {
    color: #c0392b;
}

.cart-lines-foot {
    padding-top: 1.15rem;
    margin-top: .25rem;
}

.cart-summary-card {
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 0;
    font-size: .92rem;
}

.cart-summary-total {
    font-size: 1.05rem;
    font-weight: 700;
}

.cart-empty-icon {
    font-size: 3.5rem;
    color: #d8d8d8;
}

/* Stacked layout on small screens. */
@media (max-width: 767.98px) {
    .cart-line {
        flex-wrap: wrap;
        position: relative;
    }

    .cart-line-info {
        flex: 1 1 auto;
    }

    .cart-col-price,
    .cart-col-total,
    .cart-col-qty {
        flex: 1 1 auto;
        text-align: left;
        justify-content: flex-start;
        margin-top: .5rem;
    }

    .cart-col-price::before,
    .cart-col-total::before {
        content: attr(data-label) ": ";
        color: #8a8a8a;
        font-weight: 500;
    }

    .cart-col-remove {
        position: absolute;
        top: 1.15rem;
        right: 0;
    }
}
