.cart-page-section {
    background: #f5f7fb;
}

.cart-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-page-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.cart-page-heading p {
    margin: 0.35rem 0 0;
    color: #667085;
}

.cart-items-panel,
.cart-summary-panel,
.cart-empty-state {
    border: 1px solid #e4e9f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07);
}

.cart-items-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #e4e9f1;
}

.cart-items-title h2,
.cart-summary-panel h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 850;
}

.cart-items-title span {
    color: #667085;
    font-size: 0.9rem;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) minmax(110px, .7fr) 110px minmax(120px, .8fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid #e4e9f1;
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.cart-image-box {
    display: flex;
    flex: 0 0 92px;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 76px;
    overflow: hidden;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: #fff;
    color: #98a2b3;
    font-size: 0.75rem;
    text-decoration: none;
}

.cart-image-box img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 92px !important;
    max-height: 76px !important;
    padding: 5px;
    object-fit: contain !important;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.cart-item-info h3 a {
    color: #101828;
    text-decoration: none;
}

.cart-item-info h3 a:hover {
    color: #1458d4;
}

.cart-item-sku {
    color: #667085;
    font-size: 0.8rem;
}

.cart-item-stock {
    margin-top: 0.2rem;
    color: #067647;
    font-size: 0.8rem;
    font-weight: 700;
}

.cart-item-price,
.cart-item-subtotal {
    display: flex;
    flex-direction: column;
}

.cart-item-price del {
    color: #98a2b3;
    font-size: 0.78rem;
}

.cart-item-quantity label {
    display: block;
    margin-bottom: 0.3rem;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
}

.cart-item-quantity input {
    width: 82px;
}

.cart-item-quantity small {
    color: #98a2b3;
    font-size: 0.7rem;
}

.cart-mobile-label {
    display: none;
    color: #667085;
    font-size: 0.75rem;
}

.cart-items-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
}

.cart-summary-panel {
    position: sticky;
    top: 6rem;
    padding: 1.5rem;
}

.cart-summary-row,
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.cart-summary-total {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.cart-empty-state {
    padding: 5rem 2rem;
    text-align: center;
}

.cart-empty-icon {
    margin-bottom: 1rem;
    font-size: 4rem;
}

.cart-empty-state h2 {
    font-weight: 850;
}

.cart-empty-state p {
    color: #667085;
}

@media (max-width: 991.98px) {
    .cart-item {
        grid-template-columns: minmax(240px, 2fr) 100px 100px;
    }

    .cart-item-subtotal,
    .cart-item-remove {
        grid-column: auto;
    }

    .cart-summary-panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .cart-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-item {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .cart-item-product {
        grid-column: 1 / -1;
    }

    .cart-item-remove {
        text-align: right;
    }

    .cart-mobile-label {
        display: block;
    }

    .cart-items-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

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

    .cart-item-product,
    .cart-item-remove {
        grid-column: auto;
    }

    .cart-item-remove {
        text-align: left;
    }

    .cart-image-box {
        flex-basis: 76px;
        width: 76px;
        height: 66px;
    }

    .cart-image-box img {
        max-width: 76px !important;
        max-height: 66px !important;
    }
}
