.cart-section {
    max-width: 80%;
    margin: 0 auto;
    padding-bottom: 20px;
}

.cart-heading {
    display: flex;
    justify-content: space-between;
    border-bottom: solid 1px var(--light-gray);
    margin-bottom: 20px;
    align-items: center;
}

.cart-heading h1 {
    font-size: 3rem;
    color: var(--black);
}


.empty-cart {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin: 15px 0;
    padding: 20px;
    background-color: #fefefe;
    border: 1px dashed #ddd;
    border-radius: 8px;
}




.cart-content {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    /* Ensures mobile friendliness */
}

/* Left Section - Items */
.cart-items {
    flex: 2;
}

/* Right Section - Summary */
#cart-summary-section {
    flex: 1;
    display: block;
}

.cart-summary {
    text-align: end;
}

.cart-summary h3 {
    margin-bottom: 10px;
}

.total-price {
    margin-bottom: 10px;
}

.cart-summary p {
    margin-bottom: 15px;
}

.checkout-btn {
    display: inline-block;
}


.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    gap: 15px;
    border-bottom: solid 1px var(--light-gray);
}

.product-section {
    display: flex;
    align-items: center;
    flex: 2;
    gap: 15px;
}

.product-section img {
    width: 150px;
    height: auto;
    object-fit: contain;
}



.quantity-section {
    flex: 1;
    display: flex;
    gap: 100px;
    justify-content: space-between;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background-color: var(--light-gray);
    border: none;
    padding: 5px 12px;
    font-size: 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: var(--smlkh);
}

.quantity-input {
    width: 35px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 3px 0;
}

.price-section {
    font-weight: 600;
    color: #333;
}

.delete-section {
    flex: 1;
    display: flex;
    justify-content: end;

}

.delete-btn {
    background-color: var(--smlkh);
    color: #fff;
    border: none;
    padding: 6px 14px;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: var(--smlkh-button);
}



@media (max-width: 768px) {
    .cart-section {
        max-width: 95%;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .product-section,
    .price-section,
    .delete-section {
        width: 100%;
    }

    .product-section {
        flex-direction: row;
    }

    .price-section {
        text-align: right;
    }

    .cart-content {
        flex-direction: column;
    }


}

@media (max-width: 480px) {
    .product-section {
        flex-direction: row;
        align-items: normal;
    }

    .product-details h3 {
        font-size: 15px;
    }

    .product-details p {
        font-size: 14px;
    }

    .cart-heading h1 {
        font-size: 2rem;
    }

    .quantity-section {
        gap: 45px;

    }
}

@media (max-width: 360px) {
    .product-section {
        flex-direction: column;
        align-items: normal;
    }

    .quantity-section {
        gap: 36px;

    }
}