.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-row {
    display: grid;
    grid-template-columns: 88px 1fr 110px 110px 110px 44px;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.cart-head {
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
}

.cart-head .cart-col {
    color: white;
}

.cart-col-right {
    text-align: right;
}

.cart-meta {
    display: contents;
}

.cart-thumb {
    width: 88px;
    height: 88px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.cart-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #101010;
    line-height: 1.4;
    text-decoration: none;
    display: block;
}

.cart-title:hover {
    color: var(--secondary-color);
}

.cart-sku {
    font-size: 0.78rem;
    color: #777;
    margin-top: 4px;
}

.cart-stock {
    font-size: 0.78rem;
    font-weight: 600;
    color: #28a745;
    margin-top: 4px;
}

.cart-stock.low {
    color: #d98200;
}

.cart-stock.out {
    color: var(--secondary-color);
}

.cart-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.cart-price small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #000;
}

.cart-remove {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 100px;
    background: #ededed;
    color: #101010;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-remove:hover {
    background: var(--secondary-color);
    color: white;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cart-actions .btn-action {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.cart-summary {
    background: white;
    padding: 1.87rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 1em;
}

.cart-summary .detail-row {
    padding: 12px 0;
}

.cart-summary .detail-row:last-of-type {
    border-bottom: none;
}

.cart-summary .detail-label {
    min-width: 0;
    flex: 1;
}

.cart-summary .detail-value {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 600;
}

.cart-summary .detail-row.total .detail-label,
.cart-summary .detail-row.total .detail-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-summary .btn-action {
    width: 100%;
    margin-top: 1.25rem;
}

.cart-checkout {
    display: block;
    text-align: center;
    text-decoration: none;
}

.cart-note {
    font-size: 0.78rem;
    color: #777;
    margin-top: 1rem;
    line-height: 1.5;
}

.cart-empty {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 4rem 2rem;
    text-align: center;
}

.cart-empty i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.cart-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101010;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: #777;
    margin-bottom: 1.75rem;
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .cart-head {
        display: none;
    }

    .cart-row {
        grid-template-columns: 72px 1fr 44px;
        grid-template-areas:
            "thumb info remove"
            "meta  meta meta";
        row-gap: 0.9rem;
        padding: 1.25rem 1rem;
        align-items: start;
    }

    .cart-row .cart-col-thumb {
        grid-area: thumb;
    }

    .cart-row .cart-col-info {
        grid-area: info;
        min-width: 0;
    }

    .cart-row .cart-col-remove {
        grid-area: remove;
    }

    .cart-row .cart-meta {
        grid-area: meta;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem;
        border-top: 1px dashed #e8e8e8;
        padding-top: 0.85rem;
    }

    .cart-row .cart-col-price,
    .cart-row .cart-col-qty {
        text-align: left;
    }

    .cart-row .cart-col-total {
        text-align: right;
    }

    .cart-row .cart-col-price::before,
    .cart-row .cart-col-qty::before,
    .cart-row .cart-col-total::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: #999;
        margin-bottom: 4px;
    }

    .cart-row .cart-price small {
        display: block;
        margin-left: 0;
    }

    .cart-thumb {
        width: 72px;
        height: 72px;
    }
}
