/**
 * 2021 Anvanto
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source! Each license that you purchased is only available for 1 wesite only.
 * If you want to use this file on more websites (or projects), you need to purchase additional licenses.
 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
 *
 *  @author Anvanto <anvantoco@gmail.com>
 *  @copyright  2021 Anvanto
 *  @license    Valid for 1 website (or project) for each purchase of license
 *  International Registered Trademark & Property of Anvanto
 */
.sb-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.3);
    display: none;
}

.sb-open {
    overflow: hidden;
}

.sb-open .sb-menu-right {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.sb-menu-right{
    max-width: 100%;
}

.sb-close-btn .sb-close-btn i {
    font-size: 18px;
}

.cart-preview .cart-title {
    padding: 25px 0;
    margin-bottom: 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.cart-preview .cart-title h4 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 400;
    color: #000;
}

.cart-preview .cart-product-line {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 20px 0;
    margin: 0 20px;
    text-align: left;
    border-bottom: 1px solid #f4f4f4;
}

.cart-preview .cart-product-line .product-image {
    width: 30%;
    border: 1px solid #f4f4f4;
}

.cart-preview .cart-product-line .product-infos {
    width: 59%;
    padding-left: 15px;
}

.cart-preview .cart-product-line .product-remove {
    align-self: flex-start;
    width: 10%;
    text-align: right;
}

.cart-preview .product-image .img-fluid {
    max-width: 100%;
    height: auto;
}

.cart-preview .product-infos .product-name {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.cart-preview .product-remove i {
    font-size: 20px;
}

.cart-preview .product-infos .product-line-info {
    line-height: initial;
    font-size: 12px;
    color: #000;
}

.product-infos .product-line-info .label {
    color: #7d7d7d;
}

.cart-preview .product-infos .product-price {
    display: inline-block;
    margin-top: 15px;
}

.cart-preview .product-infos .product-quantity {
    display: inline-block;
    margin-left: 3px;
    font-size: 12px;
    font-weight: 400;
}

.cart-preview .cart-bottom {
    padding: 20px 20px 10px 20px;
    background-color: #f4f4f4;
}

.cart-preview .cart-bottom .total-line {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cart-bottom .total-line span {
    width: 50%;
    font-size: 14px;
    font-weight: 400;
    color: #000;
}

.cart-bottom .total-line .label {
    text-align: left;
}

.cart-bottom .total-line .value {
    text-align: right;
}

.cart-bottom .cart-total .label {
    text-transform: uppercase;
}

.cart-bottom .cart-total .value {
    font-size: 20px;
}

.cart-preview .cart-action .btn-primary {
    width: 100%;
    margin-top: 10px;
}

.cart-preview .no-items {
    text-align: center;
}

.product-qty {
    margin-top: 10px;
}
.product-qty .product-qty-container {
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    width: 80px;
    font-weight: 400;
    background: #f4f4f4;
}
.product-qty-input {
    background: transparent;
    width: 26px !important;
    height: 30px !important;
    line-height: 30px;
    text-align: center !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    padding: 0 !important;
    font-size: 12px;
}
.product-qty .quantity-button {
    border: 0 !important;
    background-color: transparent;
    position: static;
    height: 30px !important;
    width: 27px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    transform: translateX(0) !important;
    padding: 0;
    cursor: pointer;
}

.product-qty .quantity-button svg{
    width: 8px;
    height: 4px;
    display: block;
    transition: all 0.3s ease;
}

.product-qty .quantity-button.quantity-up svg{
    transform: rotate(180deg);
}

.product-qty .quantity-button svg path{
    stroke: #000000;
    transition: all 0.3s ease;
}

.product-qty .quantity-button:hover svg path{
    stroke: #FF383C;
}

.product-remove .removefromcart svg{
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.product-remove .removefromcart svg path{
    stroke: #000000;
    transition: all 0.3s ease;
}

.product-remove .removefromcart:hover svg path{
    stroke: #FF383C;
}

.product-remove .removefromcart:hover svg{
    transform: scale(1.15);
}
.product-qty .quantity-button.quantity-up {
    padding-top: 1px;
}

.product-qty .input-group-btn-vertical {
  display: none!important;
}

.an_sidebarcart-add {
  margin-top: 5px;
} 



.cart-preview .cart-title{
    background: #EDE0D2;
}

.cart-preview .cart-action .btn-primary{
    font-size: 12px;
}


.sb-menu-right #js-cart-sidebar{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.sb-menu-right #js-cart-sidebar .cart-dropdown{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.sb-menu-right #js-cart-sidebar .cart-dropdown-wrapper{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.sb-menu-right #js-cart-sidebar .cart-items{
    flex: 1 1 auto;
    overflow-y: auto;
}

.sb-menu-right #js-cart-sidebar .cart-bottom{
    margin-top: auto;
}




.sb-menu-right {
    width: 494px;
}

#js-cart-sidebar .cart-sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    box-sizing: border-box;
    border-bottom: 1px solid #dfdfdf;
    background: #fff;
    flex-shrink: 0;
}

#js-cart-sidebar .cart-sidebar-header__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

#js-cart-sidebar .cart-sidebar-header__close svg {
    display: block;
    width: 30px;
    height: 30px;
    transform-origin: center;
    transition: transform 0.2s ease;
}

#js-cart-sidebar .cart-sidebar-header__close svg path {
    transition: stroke 0.2s ease;
}

#js-cart-sidebar .cart-sidebar-header__close:hover svg {
    transform: scale(1.08);
}

#js-cart-sidebar .cart-sidebar-header__close:hover svg path {
    stroke: #ff383c;
}

#js-cart-sidebar .cart-sidebar-header__title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    line-height: 1.2;
}


#js-cart-sidebar .cart-product-line {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 0 !important;
}

#js-cart-sidebar .cart-product-line .product-image {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    border: 0;
}

#js-cart-sidebar .cart-product-line .product-image .img-fluid {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 1px 1px 10px 2px #f2f2f9;
}

#js-cart-sidebar .cart-product-line .product-infos {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 100px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#js-cart-sidebar .cart-product-line .product-infos .product-name {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    line-height: 1.3;
}

#js-cart-sidebar .cart-product-line .product-line-info {
    display: none;
}

#js-cart-sidebar .cart-product-line .product-meta-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

#js-cart-sidebar .cart-product-line .product-meta-actions__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

#js-cart-sidebar .cart-product-line .product-qty {
    margin-top: 0;
}

#js-cart-sidebar .cart-product-line .product-qty .product-qty-container {
    width: 131px;
    height: 44px;
    border: 1px solid #dfdfdf;
    border-radius: 140px;
    background: #f8f8f8;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#js-cart-sidebar .cart-product-line .product-qty .quantity-button {
    width: 40px !important;
    height: 44px !important;
}

#js-cart-sidebar .cart-product-line .product-qty .quantity-button span {
    font-size: 21px;
    font-weight: 500;
    color: #5b5b5b;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

#js-cart-sidebar .cart-product-line .product-qty .quantity-button:hover span {
    color: #ff383c;
    transform: scale(1.08);
}

#js-cart-sidebar .cart-product-line .product-qty .quantity-button svg {
    display: none;
}

#js-cart-sidebar .cart-product-line .product-qty-input {
    width: 51px !important;
    height: 44px !important;
    line-height: 44px;
    font-size: 18px;
    font-weight: 500;
    color: #5b5b5b;
    background: transparent;
    text-align: center !important;
}

#js-cart-sidebar .cart-product-line .product-remove {
    width: auto;
    text-align: left;
    align-self: center;
}

#js-cart-sidebar .cart-product-line .product-remove .removefromcart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#js-cart-sidebar .cart-product-line .product-remove .removefromcart svg {
    width: 20px;
    height: 22px;
    transition: transform 0.2s ease;
}

#js-cart-sidebar .cart-product-line .product-remove .removefromcart svg path {
    stroke: none !important;
    transition: fill 0.2s ease;
}

#js-cart-sidebar .cart-product-line .product-remove .removefromcart:hover svg {
    transform: scale(1.08);
}

#js-cart-sidebar .cart-product-line .product-remove .removefromcart:hover svg path {
    fill: #ff383c;
}





.cart-preview .cart-items{
    box-sizing: border-box;
}


  /* width */
  .cart-preview .cart-items::-webkit-scrollbar {
    width: 4px;
  }
  
  /* Track */
  .cart-preview .cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  /* Handle */
  .cart-preview .cart-items::-webkit-scrollbar-thumb {
    background: #FF383C;
  }
  
  /* Handle on hover */
  .cart-preview .cart-items::-webkit-scrollbar-thumb:hover {
    background: #555;
  }


#js-cart-sidebar .cart-product-line .product-price {
    margin-top: 0;
    white-space: nowrap;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
}

#js-cart-sidebar .cart-product-line .product-quantity {
    display: none;
}


#js-cart-sidebar .cart-dropdown {
    height: 100%;
}

#js-cart-sidebar .cart-dropdown-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#js-cart-sidebar .cart-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    max-height: calc(100vh - 320px);
}

#js-cart-sidebar .cart-bottom {
    flex-shrink: 0;
    background: #ffffff !important;
    padding: 20px 20px 20px 20px;
}

#js-cart-sidebar .cart-summary-title {
    font-size: 18px;
    color: #1B1B1D;
    font-weight: 600;
    margin-bottom: 12px;
}

#js-cart-sidebar .cart-bottom hr {
    border: 0;
    border-top: 1px solid #DFDFDF;
    margin: 12px 0;
}


#js-cart-sidebar .cart-bottom .total-line .label {
    font-size: 16px;
    color: #5B5B5B;
    font-weight: 500;
}

#js-cart-sidebar .cart-bottom .total-line .value {
    font-size: 16px;
    color: #000000;
    font-weight: 600;
}

#js-cart-sidebar .cart-bottom .cart-total .label {
    text-transform: none !important;
    font-size: 16px;
    color: #5B5B5B;
    font-weight: 500;
}

#js-cart-sidebar .cart-bottom .cart-total .value {
    font-size: 18px;
    color: #000000;
    font-weight: 700;
}


#js-cart-sidebar .cart-checkout-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

#js-cart-sidebar .cart-checkout-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


#js-cart-sidebar .cart-bottom .js-ansidebarcart-close {
    display: none !important;
}

@media (max-width: 768px) {
    #js-cart-sidebar .cart-summary-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    #js-cart-sidebar .cart-bottom .total-line .label {
        font-size: 14px;
    }

    #js-cart-sidebar .cart-bottom .total-line .value {
        font-size: 14px;
    }

    #js-cart-sidebar .cart-bottom .cart-total .label {
        font-size: 14px;
    }

    #js-cart-sidebar .cart-bottom .cart-total .value {
        font-size: 16px;
    }

    #js-cart-sidebar .cart-bottom hr {
        margin: 10px 0;
    }

    #js-cart-sidebar .cart-product-line {
        padding-right: 12px;
    }

    #js-cart-sidebar .cart-product-line .product-image {
        width: 64px;
        min-width: 64px;
        max-width: 64px;
    }

    #js-cart-sidebar .cart-product-line .product-image .img-fluid {
        width: 64px;
        height: 64px;
        border-radius: 10px;
    }

    #js-cart-sidebar .cart-product-line .product-infos {
        min-height: 64px;
    }

    #js-cart-sidebar .cart-product-line .product-infos .product-name {
        font-size: 13px;
    }

    #js-cart-sidebar .cart-product-line .product-qty .product-qty-container {
        width: 100px;
        max-width: 100px;
        height: 38px;
    }

    #js-cart-sidebar .cart-product-line .product-qty .quantity-button {
        width: 30px !important;
        height: 38px !important;
    }

    #js-cart-sidebar .cart-product-line .product-qty .quantity-button span {
        font-size: 13px;
    }

    #js-cart-sidebar .cart-product-line .product-qty-input {
        width: 40px !important;
        height: 38px !important;
        line-height: 38px;
        font-size: 15px;
    }

    #js-cart-sidebar .cart-product-line .product-price {
        font-size: 14px;
    }
}
