.cart-section{
    padding-block: 4rem;
}


.cart-header{
    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    margin-bottom: 2rem;
}

.cart-header h1{
    margin: 0;
}

.cart-header .back-btn{
    position: absolute;

    left: 0;
}

.clear-cart-btn{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0.55rem 1rem;

    border: 1px solid var(--color-primary);

    background: var(--color-surface);

    color: var(--color-primary);

    font-weight: 600;

    transition: 0.2s ease;

    cursor: pointer;

    margin-bottom: 1rem;
}

.clear-cart-btn:hover{
    background: var(--color-primary);

    color: var(--color-white);
}

.clear-cart-btn i{
    font-size: 0.95rem;
}


.cart-quantity-box{
    display: flex;

    align-items: center;

    gap: 1rem;

    margin: 1rem 0;
}

.qty-btn{
    display: flex;

    align-items: center;

    justify-content: center;

    width: 32px;

    height: 32px;

    border-radius: 6px;

    background: var(--color-primary);

    color: white;

    text-decoration: none;

    font-size: 1rem;

    font-weight: 700;
}

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

.cart-items{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-card{
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    background: white;
}

.cart-image{
    width: 140px;
    flex-shrink: 0;
}

.cart-image img{
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 16px;
}

.cart-content{
    width: 100%;
}

.cart-content h3{
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cart-product-title{
    text-decoration: none;
}

.cart-price,
.cart-quantity,
.cart-total{
    margin-bottom: 0.5rem;
}

.remove-btn{
    display: inline-block;
    margin-top: 0.5rem;
    color: #b91c1c;
    text-decoration: none;
    font-weight: 600;
}

.cart-summary{
    position: sticky;
    top: 100px;
    padding: 1.5rem;
    border-radius: 20px;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
}

.cart-summary h2{
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.summary-row{
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.empty-cart{
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 24px;
    background: white;
}

.empty-cart h2{
    margin-bottom: 1rem;
}

.empty-cart p{
    margin-bottom: 1.5rem;
}
@media(max-width:768px){

    .cart-section{
        padding-inline: 0.8rem;
    }

    .cart-header{
        flex-direction: column;

        align-items: flex-start;

        gap: 1rem;

        margin-bottom: 1.5rem;
    }

    .cart-header .back-btn{
        position: static;
    }

    .cart-header h1{
        width: 100%;

        text-align: center;

        font-size: 1.5rem;
    }

    .cart-wrapper{
        grid-template-columns: 1fr;

        gap: 1.5rem;
    }

    .cart-card{
        display: flex;

        align-items: flex-start;

        gap: 1rem;
    }

    .cart-image{
        width: 90px;

        flex-shrink: 0;
    }

    .cart-image img{
        width: 100%;

        height: 90px;

        object-fit: cover;
    }

    .cart-content{
        flex: 1;
    }

    .cart-content h3{
        font-size: 0.92rem;

        line-height: 1.5;

        margin-bottom: 0.5rem;
    }

    .cart-price,
    .cart-total{
        font-size: 0.9rem;
    }

    .cart-quantity-box{
        display: flex;

        align-items: center;

        gap: 0.7rem;

        margin-block: 0.8rem;
    }

    .qty-btn{
        width: 28px;

        height: 28px;

        font-size: 0.95rem;

        border-radius: 5px;
    }

    .remove-btn{
        font-size: 0.82rem;
    }

    .cart-summary{
        padding: 1rem;
    }

    .cart-summary h2{
        font-size: 1.2rem;
    }

    .summary-row{
        font-size: 0.92rem;
    }


}