.sidecart-open {
    overflow: hidden;
}

.sidecart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidecart-overlay.active {
    display: block;
    opacity: 1;
}

.sidecart {
    position: fixed;
    top: 0;
    right: -100%;
    max-width: 460px;
    width: 100%;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidecart.right{
    right: -100%;
}

.sidecart.left{
    left: -100%;
}

.sidecart.right.active {
    right: 0;
}

.sidecart.left.active {
    left: 0;
}

.sidecart .top {
    height: 50px;
    padding: 0px 15px;
    border-bottom: 1px solid var(--sidecart-top-border-bottom-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--sidecart-top-bg-color);
}

.sidecart .top h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--sidecart-top-title-color);
}

.sidecart-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sidecart-top-close-color);
    padding: 0px;
    transition: color 0.2s;
}

.sidecart-close:hover {
    color: #000;
}

.sidecart .cart {
    flex: 1;
    overflow-y: auto;
    padding: 5px 10px;
    background-color: var(--sidecart-cart-bg-color);
}

.sidecart .cart .products {
    margin-bottom: 10px;
}

.sidecart .cart .product {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--sidecart-cart-border-color);
    position: relative;
    color: var(--sidecart-cart-text-color);
}

.sidecart .cart .product:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidecart .cart .product figure {
    width: 72px;
    height: 72px;
    margin-bottom: 0px;
    flex-shrink: 0;
}

.sidecart .cart .product figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.sidecart .cart .product .details {
    flex: 1;
    min-width: 0;
}

.sidecart .cart .product .name {
    margin: 0px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    padding-right: 25px;
}

.sidecart .cart .product .name a {
    color: #333;
    text-decoration: none;
}

.sidecart .cart .product .name a:hover {
    color: #000;
}

.sidecart .cart .product .attributes {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.sidecart .cart .product .price-quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidecart .cart .product .quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--sidecart-cart-border-color);
    border-radius: 4px;
}

.sidecart .cart .product .quantity button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
}

.sidecart .cart .product .quantity button:hover {
    background-color: #f5f5f5;
}

.sidecart .cart .product .quantity .input {
    width: 40px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 14px;
    background: none;
}

.sidecart .cart .product .price {
    font-weight: 600;
    font-size: 14px;
}

.sidecart .cart .product .remove {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    transition: color 0.2s;
}

.sidecart .cart .product .remove:hover {
    color: #e74c3c;
}

.sidecart .cart .summary {
    border-top: 1px solid var(--sidecart-cart-border-color);
    padding-top: 5px;
}

.sidecart .cart .summary .line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.sidecart .cart .summary .line.cart-total {
    font-weight: 600;
    padding-top: 5px;
    border-top: 1px solid var(--sidecart-cart-border-color);
}

.sidecart .bottom {
    padding: 5px;
    background-color: var(--sidecart-bottom-bg-color);
    border-top: 1px solid var(--sidecart-bottom-border-top-color);
}

.sidecart .bottom .btn {
    width: 100%;
    margin-bottom: 5px;
}

.sidecart .bottom .btn:last-child {
    margin-bottom: 0;
}

.sidecart .bottom .btn-cart {
    background-color: var(--sidecart-btn-cart-bg-color);
    color: var(--sidecart-btn-cart-title-color);
}

.sidecart .bottom .btn-order {
    background-color: var(--sidecart-btn-order-bg-color);
    color: var(--sidecart-btn-order-title-color);
}

.sidecart .bottom .btn-order.hidden,
.sidecart .bottom .btn-cart.hidden {
    display: none;
}

.sidecart .cart .empty {
    text-align: center;
    padding: 40px 20px;
}

.sidecart .cart .empty svg {
    color: #e5e5e5;
    margin-bottom: 20px;
}

.sidecart .cart .empty p {
    color: #666;
    margin-bottom: 20px;
}

.sidecart .free-shipping {
    padding: 5px 10px;
    background: var(--sidecart-shipping-bg-color);
    border-bottom: solid var(--sidecart-shipping-border-bottom-color) 1px;
}

.sidecart .free-shipping .text {
    text-align: center;
}

.sidecart .free-shipping .message,
.sidecart .free-shipping .message-reached {
    font-size: 14px;
    color: var(--sidecart-shipping-text-color);
    line-height: 1.4;
}

.sidecart .free-shipping .message .remaining,
.sidecart .free-shipping .message-reached strong {
    color: var(--sidecart-shipping-threshold-color);
    font-weight: 700;
}

.sidecart .free-shipping .message-reached {
    display: none;
    color: var(--sidecart-shipping-threshold-color);
    font-weight: 700;
}

.sidecart .progressbar .bar {
    width: 100%;
    height: 10px;
    background-color: var(--sidecart-progressbar-bg-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidecart .free-shipping.is_reached .message {
    display: none;
}

.sidecart .free-shipping.is_reached .message-reached {
    display: block;
}

.sidecart .is_reached .progressbar .bar,
.sidecart .is_reached .progressbar .info {
    display: none;   
}

.sidecart .progressbar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sidecart-progressbar-color-1) 0%, var(--sidecart-progressbar-color-2) 100%);
    border-radius: 12px;
    transition: width 0.6s ease;
    position: relative;
}

.sidecart .progressbar .fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.sidecart .progressbar .info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--sidecart-shipping-text-color);
}

.sidecart .progressbar .info .current-amount {
    font-weight: 600;
    color: var(--sidecart-shipping-threshold-color);
}

.sidecart .progressbar .info .target-amount {
    font-weight: 500;
}

.sidecart .upsell {
    border-top: 1px solid var(--sidecart-upsell-border-top-color);
    padding: 5px 10px;
    background-color: var(--sidecart-upsell-bg-color);
}

.sidecart .upsell h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidecart .carousel {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0px 20px;
    margin: 0px;
    width: 100%;
    left: auto;
    right: auto;
    background-color: transparent;
    box-shadow: none;
}

.sidecart .carousel .track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: #000000 #e5e5e5;
}

.sidecart .carousel .item {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0px;
}

.sidecart .carousel .item figure {
    margin-bottom: 0px;
}

.sidecart .carousel .item .cta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.sidecart .carousel .item .cta .add {
    background-color: #fff;
    border: none;
    cursor: pointer;
    padding: 0px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidecart .carousel .arrow {
    position: absolute;
    top: calc(50% - 20px - 5px);
    border: none;
    background: none;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    line-height: 1;
    margin: 0px;
    padding: 0px;
    z-index:1;
    color: #000000;
}

.sidecart .upsell .carousel .arrow {
    color: var(--sidecart-upsell-arrow-color);
}

.sidecart .carousel .arrow:focus {
    outline: none;
    box-shadow: none;
}

.sidecart .carousel .arrow.disabled {
    opacity: 0.4;
    cursor: default;
}

.sidecart .carousel .arrow.left {
    left: -15px;
}

.sidecart .carousel .arrow.right {
    right: -15px;
}

.sidecart .carousel .item {
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background-color: #FFFFFF;
    border: solid #E5E5E5 1px;
    transition: transform 0.3s;
}

.sidecart .carousel .item figure img {
    max-width: 80px;
    width: 100%;
    height: auto;
}

.sidecart .carousel .item .details {
    width: calc(100% - 80px);
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.sidecart .carousel .item .details .name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidecart .carousel .item .details .name a {
    color: #333;
    text-decoration: none;
}

.sidecart .carousel .item .details .price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0px;
}

.sidecart .carousel .item .details .add,
.sidecart .carousel .item .details .choose {
    color: #000;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.sidecart .carousel .item .details .regular-price{
    text-decoration: line-through;
    color: #999;
    font-size:12px;
    display: block;
}
.sidecart .carousel .item .details .discount-product{
    display: block;
    background-color: #000;
    color: #fff;
    padding: 0px 4px;
    font-size: 12px;
    text-align: center;
    font-weight: 700;
    position: absolute;
    top: 0px;
    left: 0px;
}

.sidecart .voucher {
    position: relative;
    padding: 5px 10px;
    border-top: 1px solid var(--sidecart-voucher-border-top-color);
    background-color: var(--sidecart-voucher-bg-color);
}

.sidecart .voucher .code {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
}

.sidecart .voucher .code input.promo-input {
    width: 100%;
    height: 36px;
    padding: 0px 10px;
    font-size: 14px;
    background-color: var(--sidecart-voucher-input-bg-color);
    color: var(--sidecart-voucher-input-text-color);
    border: solid var(--sidecart-voucher-input-border-color) 1px;
}

.sidecart .voucher .code button {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    width: 36px;
    background-color: transparent;
    padding: 0px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.sidecart .voucher .code button i {
    color: var(--sidecart-voucher-button-text-color);
}

.sidecart .voucher .code button.validated {
    background-color: #28a745;
    color: #fff;
}

.sidecart .voucher .code button:focus {
    outline: none;
    box-shadow: none;
}

.sidecart .voucher .voucher-message{
    display: none;
    position: absolute;
    bottom: 100%;
    width: 100%;
    text-align: center;
    background-color: #fbeaea;
    color: #b10000;
    border: solid #e09e9e 1px;
    font-size: 14px;
    font-weight: 400;
    left: 0;
    right: 0px;
    padding: 10px 20px;
    z-index: 1;
    transition: all 0.5s ease;
}

.sidecart .voucher .voucher-message.show{
    display: block;
}

.sidecart .gamification{
    padding: 5px 10px;
    border-top: 1px solid var(--sidecart-gamification-border-top-color);
    background-color: var(--sidecart-gamification-bg-color);
}

.sidecart .gamification h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidecart .gamification .goal {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    min-height: 50px;
}

.sidecart .gamification p{
    font-size: 14px;
}

.sidecart .gamification .remaining{
    font-size: 14px;
    font-weight: 700;
    color: #28a745;
}

.sidecart .upsell .carousel .arrow {
    color: var(--sidecart-gamification-arrow-color);
}

@media (min-width:576px) {
    .sidecart .top {
        height: 60px;
        padding: 0px 20px;
    }

    .sidecart .progressbar .bar {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .sidecart .free-shipping {
        padding: 10px 20px;
    }

    .sidecart .cart {
        padding: 10px 20px;
    }

    .sidecart .cart .product {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .sidecart .cart .product figure {
        width: 80px;
        height: 80px;
    }

    .sidecart .cart .summary {
        padding-top: 10px;
    }
    
    .sidecart .cart .summary .line {
        margin-bottom: 10px;
    }

    .sidecart .cart .product .attributes {
        margin-bottom: 8px;
    }
    
    .sidecart .cart .summary .line.cart-total {
        padding-top: 10px;
    }
    
    .sidecart .bottom {
        padding: 10px;
    }
    
    .sidecart .bottom .btn {
        margin-bottom: 10px;
    }

    .sidecart .voucher {
        padding: 10px 20px;
    }

    .sidecart .gamification{
        padding: 10px 20px;
    }

    .sidecart .gamification h3 {
        margin-bottom: 10px;
    }

    .sidecart .upsell {
        padding: 10px 20px;
    }

    .sidecart .upsell h3 {
        margin-bottom: 10px;
    }

    .sidecart .carousel .item figure img {
        max-width: 100px;
    }

    .sidecart .carousel .track {
        padding-bottom: 10px;
    }

    .sidecart .carousel .item .details {
        padding: 10px;
        width: calc(100% - 100px);
    }

    .sidecart .carousel .arrow.left {
        left: -20px;
    }
    
    .sidecart .carousel .arrow.right {
        right: -20px;
    }

    .sidecart .bottom {
        padding: 20px;
    }
}