.cart-sidebar{
    width:417px;
    height: 746px;
    background:#fff;
    padding:30px 20px;

    margin: 0 auto;
    position:relative;
}

.cart-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.cart-header h2{
    font-size:24px;
    font-weight:600;
    line-height: 100%;
    letter-spacing: 0%;
}

.close-btn{
   height: 19px;
   width: 16.62px;
   color:  rgba(159, 159, 159, 1);
;
}

.line{
    margin:25px 0;
    border:none;
    border-top:1px solid #ddd;
}

.cart-item{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:18px;
}

.cart-item img{
    width:108px;
    height:108px;
    border-radius:10px;
    object-fit:cover;
    background:#f3ead8;
}

.item-info{
    flex:1;
}

.item-info h4{
    font-size:18px;
    font-weight:500;
    margin-bottom:10px;
}

.item-info p{
    font-size:16px;
    color:rgba(0, 0, 0, 1);
}

.item-info span{
    color: rgba(184, 142, 47, 1);

font-size: 12px;
    font-weight:500;
}

.remove{
    width:20px;
    height:20px;
    border-radius:50%;
    background: rgba(159, 159, 159, 1);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    font-size: 12px;
}

.subtotal{
    position:absolute;
    bottom:109px;
    left:31px;
    right:100px;
    display:flex;
    justify-content:space-between;
    font-size:16px;
    font-weight:400;
}

.subtotal .price{
    color:rgba(184, 142, 47, 1);
}
.price{
    margin-top: 0px;
}

.bottom-buttons{
    position:absolute;
    bottom:20px;
    left:20px;
    right:20px;
    display:flex;
    justify-content:space-between;
    gap:14px;
    border-top:1px solid #ddd;
    padding-top:20px;
}

.bottom-buttons button{
    flex:1;
    padding:10px;
    border:1px solid rgba(0, 0, 0, 1);
    background:#fff;
    border-radius:25px;
    cursor:pointer;
    transition:.3s;
}

.bottom-buttons button:hover{
    background:#000;
    color:#fff;
}
.section-cart-sidebar{
    position:fixed;
    top:0;
    right: 450px;
    width:417px;
    height:746px;
    opacity:0;
    pointer-events:none;
    transition:0.3s;
    z-index:2000;
}
.section-cart-sidebar.active{
    opacity:1;
    pointer-events:auto;
}

.section-cart-sidebar .cart-sidebar{
   
    height:100%;
    transform:translateY(-100%);
    transition:0.3s;
}
.section-cart-sidebar.active .cart-sidebar{
    transform:translateX(0);
}


@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        height: 100vh;
        padding: 20px 15px;
        margin: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        overflow-y: auto;
    }

    .cart-item img {
        width: 80px;
        height: 80px;
    }

    .item-info h4 {
        font-size: 16px;
    }

    .item-info p {
        font-size: 14px;
    }

    .subtotal {
        position: static;
        margin-top: 20px;
    }

    .bottom-buttons {
        position: static;
        margin-top: 20px;
        flex-direction: column;
    }

    .bottom-buttons button {
        width: 100%;
    }
}