.cart-section{
    width: 100%;
    padding: 20px 10vw;
    display: flex;
    justify-content: space-between;
}

.product-list{
    width: 70%;
}

.seller-info img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 1px solid #000; */
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.retail-price {
    text-decoration: line-through;
    color: #959191;
}

.item-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.cost-row {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delete-product {
    margin-top: 0.5rem;
    background-color: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    color: var(--color-text-primary);
}




.item-container {
    max-width: 840px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 1rem;
}

/* Wraps the .item-container cards inside #bagItemGrid. No rule existed for
   this before, so multiple cart items had nothing keeping them apart. */
.bag-item-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bag-note {
    color: #747474;
}

.product-img {
    /* border: 1px solid #000; */
    margin-top: 1rem;
    border-radius: 8px;
    object-fit: cover;
    width: 200px;
    height: 200px;
}

.empty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.empty-wrapper img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.checkout-section{
    width: 28%;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading{
    font-size: 30px;
    font-weight: 500;
    margin: 20px 0;
    text-transform: capitalize;
}

.sm-product{
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.cart .sm-product:last-child, .wishlist .sm-product:last-child{
    margin-bottom: 0;
}

.sm-product-img{
    height: 100px;
    width: 100px;
    object-fit: cover;
    border-radius: 5px;

}

.sm-text{
    width: 50%;
}

.sm-product-name{
    font-size:  25px;
    font-weight: 700;
    text-transform: capitalize;
}

.sm-des{
    font-size: 18px;
    opacity: 0.5;
    line-height: 25px;
    text-transform: capitalize;
    margin-top: 10px;

}

.item-counter{
    width: 90px;
    height: 30px;
    display: flex;
    margin-right: 20px;

}

.counter-btn, .item-count{
    width: 30px;
    height: 30px;
}

.counter-btn{
    background: #f3f3f3;
    border: 1px solid rgb(216, 216, 216);
    border-radius: 1px;
    cursor: pointer;
    
}

.item-count{
    text-align: center;
    line-height: 30px;
    background: #f5f5f5;

}

.sm-price{
    font-size: 50px;
    font-weight: 500;
    
}

.content-wrapper {
    width: 1200px;
    margin: auto;
}



header {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.seller-at p:nth-child(1) {
    font-size: 1.2rem;
    font-weight: 600;
}

.seller-at p:nth-child(2) {
    color: #747474;
    font-weight: 500;
}

.sm-delete-btn{
    position: absolute;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgb(216, 216, 216);
    z-index: 2;
    cursor: pointer;
}

.sm-delete-btn img{
    height: 15px;
}

.empty-img{
    width: 50%;
    display: block;
    margin: auto;

}

.checkout-box{
    width: 100%;
    max-height: 270px;
    border-radius: 2px;
    border: 1px solid #d8d8d8;
    padding: 20px;
}

.text{
    text-transform: capitalize;
    font-size: 24px;
    padding-bottom: 1rem;
}

.checkout-btn {
    /* border: 1px solid #000; */
    padding: 0.5rem;
    width: 100%;

}

.bill{
    font-size: 60px;
    font-weight: 500;
    margin: 10px 0;
}

.wrapper {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    padding: 10px 6px;
}


/*
Disabled: legacy mobile nav-sidebar styles. Left commented out rather than
deleted since #navbar doesn't match the #menu id your jQuery toggle script
actually targets in cart.html — this block looks superseded by that newer
nav implementation. Re-enable and rename the id to #menu if you want this
sidebar behavior back.

@media (max-width: 820px) {
    .section-p1 {
        padding: 40px 40px;
    }
    #navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 300px;
    background-color: #070707;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
    padding: 80px 0 0 10px;
    transition: 0.3s;

    }

    #navbar.active{
      right: 0px;
    }

    navigation bar
    end navbar
    search bar
}
*/

@media (max-width: 920px) {

    /* cart */

    .checkout-box {
        max-height: 290px;
    }

    .product-list {
        width: 100%;
    }

    .checkout-section {
        width: 100%;
    }

    .cart-section {
        flex-direction: column;
        width: 100%;
        justify-content: space-between;

    }

    .content-wrapper {
        width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
        margin-bottom: 1.5rem;
    }


    .text {
        text-transform: capitalize;
        font-size: 24px;
        /* margin: 10px 10px 11px; */
    }

    .bill {
        font-size: 190%;
        font-weight: 500;
        margin: 10px 0;
    }

    .checkout-btn, .place-order-btn {
        display: block;
        width: 100%;
        border: none;
        outline: none;
        cursor: pointer;
        height: 27%;
        border-radius: 5px;
        background: red;
        color: #fff;
        text-align: center;
        line-height: 40px;
        text-transform: capitalize;
        text-decoration: none;
    }

    .footer {
        padding: 0px 25px !important;
    }
}

@media (max-width: 390px) {
    .section-p1 {
        padding: 40px 40px;
    }

    /* cart */

    .text {
        text-transform: capitalize;
        font-size: 15px;
        margin: 10px 10px 11px;
    }

    .bill {
        font-size: 190%;
        font-weight: 500;
        margin: 10px 0;
    }

    .checkout-btn, .place-order-btn {
        display: block;
        width: 100%;
        border: none;
        outline: none;
        cursor: pointer;
        height: 24%;
        border-radius: 5px;
        background: red;
        color: #fff;
        text-align: center;
        line-height: 40px;
        text-transform: capitalize;
        text-decoration: none;
        margin-top: -12%;
    }

    .checkout-section {
        width: 69%;
        /* padding-left: 1%; */
        margin-left: 11%;
        /* top: 70%; */
        margin-top: 4%;
    }

    /* footer */
    footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 11px;
    }
}