/* Cart panel styles */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden initially */
    width: 400px;
    height: 100dvh;
    background-color: var(--grey-10);
    color: white;
    z-index: 9999;
    transition: right 0.4s ease-in-out;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

/* Active states */
.cart-panel.active {
    right: 0;
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel-main-header{
    width: 100%;
    height: auto;
    padding: 32px 20px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.cart-header{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-cart-title{
    font-size: 28px;
    line-height: 28px;
    letter-spacing: 1px;
    font-weight: var(--regular);
    color: var(--white);
    font-family: var(--fontFamily-forum);
}

.close-cart-icon{
    width: 24px;
    height: 24px;
    filter: var(--filter-white);
}

.item-is-added-in-cart-container{
    width: 100%;
    height: 48px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: var(--green-success);
    font-size: 14px;
    line-height: 14px;
    font-weight: var(--regular);
    color: var(--green-success-text);
    display: none;
}

.item-is-added-in-cart-container.active{
    display: flex;
}

.item-added-cart-icon{
    width: 24px;    
    height: 24px;
}


.item-price-cart{
    margin-top: 10px;
}


.cart-overview-main-container{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 24px 20px;
    border-top: solid 1px var(--grey-20);
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    flex-direction: column;
    gap: 32px;
    background-color: var(--grey-10);

}

.cart-overview-container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
    height: auto;
}

.cart-overview-row{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.row-title{
    font-size: 14px;
    line-height: 14px;
    font-weight: var(--medium);
    color: var(--grey-80);
}

.row-value{
    font-size: 14px;
    line-height: 14px;
    font-weight: var(--medium);
    color: var(--grey-90);
}

.row-title.main{
    font-size: 18px;
    line-height: 18px;
    font-weight: var(--semiBold);
    color: var(--grey-95);
}

.row-value.main{
    font-size: 16px;
    line-height: 18px;
    font-weight: var(--medium);
    color: var(--white);
}

.buttons-container-cart{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-direction: column;
}

.shopping-cart-button{
    width: 100%;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    line-height: 22px;
    font-weight: var(--semiBold);
    transition: 0.5s;
}

.shopping-cart-button.payment{
    color: var(--grey-05);
    background-color: var(--accent-01);
}

.shopping-cart-button.continue-shopping{
    color: var(--grey-95);
    border: solid 1px var(--grey-75);
}


.shopping-cart-button.payment:is(:hover, :focus-visible, :focus-within){
    color: var(--grey-95);
    background-color: var(--grey-05);
    border: solid 1px var(--accent-01);
    scale: 1.05;
    
}

.shopping-cart-button.continue-shopping:is(:hover, :focus-visible, :focus-within){
    color: var(--white);
    background-color: var(--grey-05);
    border: solid 1px var(--white);
    scale: 1.05;
}


.cart-full-main-container{
    width: 100%;
    height: 100%;
    display: none;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
}

.cart-full-main-container.active{
    display: flex;
}

.cart-empty {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.cart-empty.active {
    display: flex;
}

.cart-empty-illustration{
    width: auto;
    height: 80px;
}

.empty-cart-text{
    font-size: 14px;
    line-height: 22px;
    color: var(--grey-95);
    font-weight: var(--regular);
    margin-bottom: 12px;
}


.cart-product-is-added-button{
    width: 100%;
    height: 40px;
    background-color: var(--grey-10);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.cart-small-sign-container{
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--grey-20);
    flex-shrink: 0;
    transition: 0.5s;

}

.cart-small-sign-container.add{
    background-color: var(--accent-01);
}

.cart-product-is-added-text-container{
    font-size: 14px;
    line-height: 14px;
    font-weight: var(--medium);
    color: #CCCCCC;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-top: solid 1px var(--grey-20);
    border-bottom: solid 1px var(--grey-20);
}

.cart-quantity-products-added{
    font-weight: 600;
    color: var(--white);
    display: flex;
}

.cart-sign-icon{
    width: 24px;
    height: 24px;
    transition: 0.5s;
}


.cart-small-sign-container.add:is(:focus-visible, :focus-visible, :hover) {
    background-color: var(--grey-10);
    border: solid 1px #E4C590;
    color: var(--white);
}

.cart-small-sign-container.add:is(:focus-visible, :focus-visible, :hover) .cart-sign-icon{
    filter: var(--filter-white)
}
.cart-mall-sign-container:is(:focus-visible, :focus-visible, :hover) {
    background-color: var(--grey-10);
    border: solid 1px var(--grey-95);
    color: var(--white);
}

.cart-small-sign-container:is(:focus-visible, :focus-visible, :hover) .cart-sign-icon{
    filter: var(--filter-white)
}


.items-in-cart-main-container{
    width: 100%;
    height: auto;
    padding: 32px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    overflow-y: auto;
}

.single-item-in-cart-container{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
    gap: 12px;
}

.item-info-cart{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 12px;
}

.item-image{
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.item-name{
    font-size: 16px;
    line-height: 20px;
    font-weight: var(--regular);
    color: var(--grey-95);
}
.item-in-cart-details-info{
    width: 100%;
    height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
}


.items-in-cart-separator{
    width: 100%;
    height: 1px;
    background-color: var(--grey-20);
}

@media (max-width: 500px) {
    .cart-panel {
        right: -100%; /* Hidden initially */
        width: 100%;

    }

}

@media (max-width: 380px) {
    .cart-panel {
        right: -100%; /* Hidden initially */
        width: 100%;

    }

    .item-name{
        font-size: 14px;
        line-height: 18px;
        font-weight: var(--regular);
        color: var(--grey-95);
    }

    .cart-product-is-added-text-container {
        font-size: 12px;
        line-height: 12px;

    }

    .cart-small-sign-container {
        width: 32px;
    }

    .cart-sign-icon {
        width: 20px;
        height: 20px;
        transition: 0.5s;
    }





}