.filter-item-list,
.single_variation_wrap .variations_button,
.single-product .cart:not(.variations_form) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.product_title {
    font-size: 2em;
    font-weight: $font-weight-semibold;
    margin-bottom: 0.5em;
    color: var(--porto-color-price);
    a {
        color: inherit;
        &:hover, &:focus {
            color: var(--porto-primary-color);
        }
    }
    &.show-product-nav {
        width: calc(100% - 52px);
    }
}

.woocommerce-product-rating {
    color: #999;
    margin-bottom: 1.4286em;
    margin-top: 0;
    font-size: .9286em;
    .star-rating {
        font-size: 1.2857em;
        display: inline-block;
        margin-#{$right}: .7143em;
        position: relative;
    }
    .review-link {
        display: inline-block;
        a:first-child {
            padding-#{$left}: 0;
        }
    }
    a {
        color: inherit;
        display: inline-block;
        vertical-align: bottom;
        padding: 0 .7143em;

        &:hover,
        &:active {
            color: #888;
        }
    }
    &.noreview {
        a {
            padding: 0;
        }
    }
}
.product-summary-wrap {
    .summary-before,
    .summary {
        margin-bottom: 2rem;
    }
    .description {
        margin-bottom: 1em;
        p:last-child {
            margin-bottom: 0;
        }
    }
    .summary {
        @media #{$screen-medium} {
            margin-#{$right}: 0;
        }
    }
    .cart {
        margin-bottom: 1.7857em;
    }
    .quantity {
        vertical-align: top;
        margin-bottom: 5px;
    }
    .single_add_to_cart_button {
        margin: side-values(0 .625rem .3125rem 0);
        &:before {
            display: inline-block;
            content: "\e8ba";
            font-family: "Porto";
            margin-#{$right}: .5rem;
            font-size: 1.2857em;
            line-height: 1;
        }
        // @media #{$screen-normal} {
        //     padding: 0 1.4286em;
        // }
        // @media #{$screen-small} {
        //     padding: 0 .7143em;
        // }
    }
    .stock {
        font-weight: 600;
        color: #4c4c4c;
        margin-bottom: 0;
    }
    .yith-wcwl-add-to-wishlist {
        position: relative;
        text-align: $left;

        a,
        span:not(.yith-wcwl-tooltip) {
            color: var(--porto-wishlist-color, #302e2a);
            width: auto;
            text-indent: 0;
            overflow: visible;
            border: none;
            background: none;
            border-radius: 0;
        }
    }

    .yith-wcwl-add-to-wishlist a,
    .yith-wcwl-add-to-wishlist span {
        &:hover, &:focus {
            color: var(--porto-wishlist-color-inverse, var(--porto-primary-color));
        }
    }
    .yith-wcwl-add-to-wishlist a span:not(.yith-wcwl-tooltip) {
        &, &:hover {
            color: inherit;
        }
        transition: none
    }

    /*.compare.button {
        width: auto;
        text-indent: 0;
        padding-left: 2.8em;
        margin-bottom: 1em;
        border: none;
        background: transparent;
        color: inherit;
        border-radius: 0;

        &:before {
            border: 1px solid #52b9b5;
            color: #52b9b5;
            border-radius: $border-normal;
            width: 2em;
            top: 0;
            bottom: 0;
        }

        &:hover {
            color: #52b9b5;

            &:before {
                color: #fff;
                background-color: #52b9b5;
            }
        }

        &.loading:after {
            width: 2.2em;
            border: 1px solid #52b9b5;
        }

        > * {
            width: 2.2em !important;
            right: auto;
            border: 1px solid #52b9b5 !important;
            border-radius: $border-normal;
        }
    }*/

    .product_meta {
        margin: 1.2143em 0;
        span {
            span,
            a {
                display: inline-block;
                font-weight: 400;
                color: #777;
            }
        }
    }
    .share-links {
        margin: 2.2143em 0 0;
    }
    .share-links {
        margin-bottom: 1.0714em;
    }

    #product-tab {

        .description {
            margin-bottom: 0;
        }

        hr {
            display: none;
        }
    }

    .price {
        color: var(--porto-heading-color);
    }
}

.product_meta {
    .posted_in,
    .sku_wrapper,
    .product-stock,
    .global_unique_id_wrapper,
    .tags  {
        display: block;
        margin-bottom: .25rem;
    }
}

div.products {
    margin-bottom: 1.875rem;
}
.products-container {
    list-style: none
}


.summary-before {
    position: relative;
    @media #{$screen-normal} {
        /*max-width: 462px;*/
        margin-left: auto;
        margin-right: auto;
    }

    .labels {
        position: absolute;
        line-height: 1;
        color: $color-white;
        font-weight: $font-weight-bold;
        text-transform: uppercase;
        margin: 0;
        z-index: 7;
        top: .8em;
        #{$left}: .8em;
        margin-#{$left}: var(--porto-column-spacing);

        .onhot,
        .onsale,
        .onnew {
            font-size: .8571em;
            padding: .5833em .6333em;
            margin-bottom: 5px;
            display: block;
        }

        .onnew {
            background: linear-gradient(135deg, var(--porto-new-bgc, #08c) 0, var(--porto-new-bgc, #0169fe) 80%);
        }
    }

    .ms-lightbox-btn { background-color: var(--porto-primary-color); }
    .ms-lightbox-btn:hover { background-color: var(--porto-primary-light-5); }
    .ms-nav-next:before,
    .ms-nav-prev:before,
    .ms-thumblist-fwd:before,
    .ms-thumblist-bwd:before { color: var(--porto-primary-color); }
}

.woocommerce-product-gallery__wrapper {
    .product-images {
        .mejs-controls {
            display: none;
        }
    }
}
.product-images {
    position: relative;
    margin-bottom: 8px;

    .zoom,
    .image-galley-viewer {
        border-radius: 100%;
        bottom: 4px;
        cursor: pointer;
        background-color: var(--porto-primary-color);
        color: #FFF;
        display: block;
        height: 30px;
        padding: 0;
        position: absolute;
        #{$right}: 4px;
        text-align: center;
        width: 30px;
        opacity: 0;
        @include transition(all .1s);
        z-index: 1000;
        i {
            font-size: 14px;
            line-height: 30px;
        }
    }

    .image-galley-viewer {
        display: flex;
        justify-content: center;
        bottom: calc( 8px + var( --porto-product-action-margin, 0px ) + 2 * var( --porto-product-action-border, 0px ) + var( --porto-product-action-width, 30px ) );
        i {
            font-size: 16px;
            &:before {
                font-size: 1.25em;
                line-height: inherit;
            }
        }
        &.without-zoom {
            bottom: 4px;
        }
    }

    &:hover {
        .zoom, .image-galley-viewer {
            opacity: 1;
        }
    }

    .product-image-slider.owl-carousel {
        margin-bottom: 0;
        .img-thumbnail {
            display: block;
        }
    }
}

.product-image-slider.owl-carousel {
    margin-bottom: 10px;

    .img-thumbnail {
        padding: 0;
    }
    .owl-nav {
        [class*="owl-"], [class*="owl-"]:hover, [class*="owl-"]:active {
            background: none !important;
            font-size: 22px;
            color: #222529;
        }
        .owl-prev {
            #{$left}: 0;
        }
        .owl-next {
            #{$right}: 0;
        }
    }
}

.product-image-slider {
    .owl-item {
        cursor: grab;
        line-height: 1;
        .img-thumbnail {
            width: 100%
        }
    }
}

.product-thumbs-slider.owl-carousel {
    margin-bottom: 0;
    --porto-el-spacing: 8px;//has-ccols-spacing
    .thumb-nav {
        opacity: 0;
        @include transition(opacity .3s);
        top: 50%;
        position: absolute;
        margin-top: -20px;
        width: 100% !important;
        .thumb-prev, .thumb-next {
            cursor: pointer;
            display: inline-block;
            position: absolute;
            font-size: 15px;
            color: var(--porto-primary-color);
            width: 30px;
            height: 30px;
            text-align: center;
            text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
            margin: 5px;
            padding: 4px 7px;
            @include user-select(none);
            &:before {
                font-family: var(--fa-style-family-classic, "Font Awesome 6 Free"); 
                font-weight: 900;
                position: relative;
                top: 0;
            }
        }
        .thumb-prev {
            #{$left}: -5px;
            &:before {
                content: if-ltr($fa-var-chevron-left, $fa-var-chevron-right);
                #{$left}: -1px;
            }
        }
        .thumb-next {
            #{$right}: -5px;
            &:before {
                content: if-ltr($fa-var-chevron-right, $fa-var-chevron-left);
                #{$left}: 1px;
            }
        }
    }

    &:hover {
        .thumb-nav {
            opacity: 1;
        }
    }
    .owl-item {
        cursor: pointer;

        img {
            @include transition(opacity .3s);
        }
    }
    .owl-stage-outer .img-thumbnail {
        border: 1px solid var(--porto-gray-1);
        transition: border-color .2s;
    }
}
.product-thumbs-slider.owl-carousel .owl-item.selected .img-thumbnail,
html:not(.touch) .product-thumbs-slider .owl-item:hover .img-thumbnail {
    border: 2px solid var(--porto-heading-color);
}

.variations {
    td > br {
        display: none;
    }
    .label {
        font-size: 1em;
        color: inherit;
        text-align: $left;
        padding-#{$left}: 0;
    }
    .reset_variations {
        display: inline-block;
        line-height: 1;
        padding: .4375rem .5rem;
        margin-top: .7em;
        background: var(--porto-gray-1);
        color: inherit;
        border: none;
        font-size: .6875rem;
        text-transform: uppercase;
        &:hover {
            background: var(--porto-heading-color);
            color: var(--porto-body-bg);
        }
    }
    tr {
        td {
            padding-top: 2px;
            label {
                padding-top: 10px;
            }
        }
    }
    tr:last-child {
        select {
            margin-bottom: 0;
        }
    }
    select {
        display: block;
        height: 2.625rem;
        font-size: .8571em;
        font-weight: 600;
        text-transform: uppercase;
        box-shadow: none;
        width: 100%;
    }
}
.single_variation_wrap,
.single-product .cart:not(.variations_form) {
    padding: 1.25rem 0 1rem;
    border-top: 1px solid var(--porto-gray-2);
    border-bottom: 1px solid var(--porto-gray-2);
    margin-top: 1rem;
}

.single-product .cart.cart_group {
    display: block;
    padding: 0;
    border: none;
    margin-top: 0;
}
.single-product .cart.bundle_data {
    align-items: flex-end;
}

.wcml_currency_switcher {
    margin-bottom: 15px;
}

.group_table {
    th, td {
        vertical-align: middle;
        display: table-cell;
    }
    .label,
    .price {
        font-size: 1.2em;
    }
}

/*.resp-htabs.style-2 .resp-tabs-list li {
    margin-#{$right}: 35px;
}
.resp-vtabs.style-2 {
    .resp-tabs-container {
        border: none;
        box-shadow: none;
    }
    ul.resp-tabs-list {
        padding-right: 5% !important;
        padding-left: 5% !important;
    }
    .resp-tabs-list li {
        text-align: $right;
        &:first-child {
            border-top-width: 0 !important;
        }
        &:last-child {
            border-bottom-width: 0 !important;
        }
        &.resp-tab-active {
            border-bottom: 2px solid var(--porto-primary-color) !important;
        }
    }
}
.resp-easy-accordion.style-2 {
    .tab-content.resp-tab-content {
        border-top: none;
    }
    h2.resp-accordion {
        position: relative;
        margin-bottom: 5px;
        border: none;
        &.resp-tab-active {
            color: #ffffff;
        }
        &:first-child {
            border-top: none !important;
        }
        &:after {
            content: "\e814";
            position: absolute;
            top: 50%;
            right: 20px;
            margin-top: -10px;
            font-family: porto;
        }
    }
    .resp-accordion.resp-tab-active:after {
        content: "\e80b";
        color: #fff;
    }
}*/

/* Shop Single Page */

.single-product {
    .cart {
        margin-bottom: 0px;
        &:not(.variations_form) {
            margin-top: 10px;
        }
    }
    .product-summary-wrap {
        .yith-wcwl-add-to-wishlist {
            padding: 0;
            display: inline-block;
            vertical-align: middle;
            margin: side-values(15px .5rem 0 0);
            font: 700 .75rem/1 var(--porto-add-to-cart-ff, var(--porto-body-ff)), sans-serif;
            text-transform: uppercase;
            letter-spacing: -.015em;
            + .clear {
                display: block;
            }
        }
        .description {
            p {
                font-size: 1.1428em;
                line-height: 1.6875;
                letter-spacing: -0.015em;
            }
        }
        .price {
            font: 600 1.5rem/1 var(--porto-add-to-cart-ff, var(--porto-body-ff)), sans-serif;
            letter-spacing: -0.02em;
            .price { margin-top: 0; margin-bottom: 0; }
            del { letter-spacing: 0; }
        }
        .share-links {
            a {
                font-size: 13px;
                width: 32px;
                height: 32px;
                border-radius: 16px;
                margin: side-values(0.2857em 0.1em 0.2857em 0);

                &:not(:hover) {
                    background: none;
                    color: var(--porto-heading-color);
                    border: 2px solid #e7e7e7
                }
            }
            margin: 0;
        }
        .product-share {
            display: inline-block;
            margin: side-values(15px .5rem 0 0);
            vertical-align: middle;
        }
    }
    .product_meta {
        clear: both;
        font-size: .8571em;
        font-weight: 600;
        color: var(--porto-heading-color);
        a, 
        span span {
            font-weight: 400;
            color: #777;
        }
        a:hover {
            color: var(--porto-heading-color);
        }
    }
    .entry-summary {
        position: relative;
        .yith-wcwl-add-to-wishlist a:before {
            position: static;
            margin-#{$right}: .32rem;
            margin-bottom: .2em;
            line-height: 1;
        }
    }
    
    .product_title {
        font-size: 1.875rem;
        line-height: 1.2;
        color: var(--porto-heading-color);
        letter-spacing: -0.01em;
        font-weight: 700;
        margin-bottom: 2px;
    }
    .product-images {
        .zoom, .image-galley-viewer {
            background: none;
            color: $color-dark;
        }
    }
    .woocommerce-product-rating {
        .star-rating {
            &:before {
                color: #999;
            }
            span:before {
                color: #ff5b5b;
            }
            font-size: 1em;
            top: 1px;
        }
        &:after {
            content: '';
            display: block;
            width: 40px;
            border-top: 2px solid #e7e7e7;
            margin: 0.875rem 0 1rem;
        }
    }
    .variations {
        width: auto;
        min-width: 45%;
        .label {
            display: table-cell;
            padding-#{$right}: 1em;
            label {
                font-size: 1em;
                text-transform: uppercase;
                line-height: 42px;
                white-space: nowrap;
                padding: 0;
                margin: 0;
                color: var(--porto-heading-color);
                &:after { content: ":"; }
            }
        }
    }
    
    // wishlist widget - Backward compatibility
    .product-summary-wrap {
        .wishlist-nolabel:not(.entry-summary) {
            .yith-wcwl-add-to-wishlist a,
            .yith-wcwl-add-to-wishlist span:not(.yith-wcwl-tooltip):not(.separator){
                width: 36px; 
                text-indent: -9999em; 
                border: 1px solid var(--porto-shop-add-links-border-color, transparent);
            }
            .yith-wcwl-add-to-wishlist a:before { 
                position: absolute;
                line-height: inherit;
            }
        }
    } 
    
    // Stock Style
    .woocommerce-variation-availability {
        .stock {
            display: inline-block;
            position: relative;
            font-size: 0.6875rem;
            color: #777;
            line-height: 1.6875rem;
            text-transform: uppercase;
            background-color: #f3f3f3;
            border-radius: 0.8125rem;
            z-index: 2;
            overflow: hidden;
            padding: 0 3rem;
            margin-bottom: 0;
            &:before {
                display: block;
                content: '';
                position: absolute;
                background-color: #2fc589;
                width: 15%;
                height: 100%;
                left: 0;
                z-index: -1;
            }
            &.out-of-stock::before {
                background-color: #e12d2d;
            }
        } 
    }

    // Back In Stock Notifier for WooCommerce plugin
    .cwginstock-subscribe-form {
        margin-top: 0.625rem;
    }
    .cwginstock-panel-heading h4 {
        margin-bottom: 0;
    }

    // WooCommerce Custom Product Addons
    .fpf-fields,
    .fpf-totals {
        width: 100%;
    }
    .fpf-field {
        h2 {
            margin-bottom: 1rem;
        }
        label {
            margin-bottom: 0.5rem;
        }
    }
    .wcpa_form_outer {
        margin: 0;
    }
    .pswp__item {
        opacity: 0;
        transition: opacity .5s
    }

    .pswp--visible .pswp__item {
        opacity: 1
    }
    .pswp__bg {
        background-color: rgba(0, 0, 0, .7);
    }
    .pswp__caption__center {
        text-align: center;
    }
}
@media screen and (max-width: 600px) {
	.admin-bar .pswp {
        height: 100%;
        top: 0;
	}
}

.single-product .product-summary-wrap,
.shop_table.cart-table {
    .quantity {
        margin-#{$right}: .5rem;
        .minus, .plus {
            width: 30px;
            height: 3rem;
            border-radius: 0;
        }
        .qty {
            width: 44px;
            height: 3rem;
            font-size: 1rem;
            line-height: 14px;
            border-radius: 0;
            border-width: 1px 0 1px 0;
        }
    }
}

.single_add_to_cart_button,
.view-cart-btn {
    height: 3rem !important;
    padding: 0 2em;
    margin-bottom: 5px;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 1em;
    letter-spacing: -0.015em;
    font-weight: 700;
    line-height: 3rem;
    border: none;
}

.single_add_to_cart_button {
    font-family: var(--porto-add-to-cart-ff, var(--porto-body-ff)), sans-serif;
    background: var(--porto-heading-color);
    color: var(--porto-light-1);
}

.view-cart-btn {
    display: none;
}

.single-add-to-cart .type-product .view-cart-btn {
    display: inline-block;
}

.filter-item-list {
    padding: 0;
    list-style: none;
    margin-bottom: 0;
    .products & {
        margin-bottom: 0;
    }
    .filter-color {
        display: block;
        position: relative;
        margin: side-values(5px 10px 5px 0);
        padding-#{$right}: 0 !important;
        // swatch color size
        --porto-sw-size: 24px;
        width: var(--porto-sw-size);
        height: var(--porto-sw-size);
        text-indent: -9999px;
        font-size: 0;
        white-space: nowrap;
        // border: 1px solid #e7e7e7;
        border-radius: 50%;
        &:is([style*="#ffffff"],[style*="#FFFFFF"],[style*="255,255,255"]) {
            border-color: #222529 !important;
            outline: 1px solid #e8e8e8 !important;
        }
    }
    .chosen, .active {
        .filter-color:before {
            content: '';
            position: absolute;
            // swatch color offset
            --porto-sw-offset: -4px;
            left: var(--porto-sw-offset);
            top: var(--porto-sw-offset);
            right: var(--porto-sw-offset);
            bottom: var(--porto-sw-offset);
            border: 1px solid;
            border-color: inherit;
            border-radius: 50%;
        }
    }

    & + select {
        display: none;
        /*visibility: hidden;
        width: 0;
        height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        float: $right;
        border: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;*/
    }

    a.disabled {
        cursor: not-allowed;
        opacity: .5;
    }
}

.woocommerce-widget-layered-nav-list a:not(.filter-color),
.filter-item-list .filter-item {
    display: block;
    padding: 0 15px;
    margin: side-values(3px 6px 3px 0);
    min-width: 32px;
    border: 1px solid var(--porto-gray-5);
    text-align: center;
    font-size: 12px;
    line-height: 24px;
    font-weight: 500;
    color: inherit;
}

.woocommerce-widget-layered-nav-list .chosen a:not(.filter-color),
.filter-item-list .active .filter-item,
.filter-item-list .filter-item:not(.disabled):hover {
    background-color: var(--porto-heading-color);
    border-color: var(--porto-heading-color);
    color: var(--porto-body-bg);
}

.filter-item-list .filter-image {
    width: 32px;
    height: 32px;
    text-indent: -9999px;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: transparent !important;
}
.single-product .single_variation > div:not(:empty) {
    margin-bottom: .75rem;
}
.single-product .porto-pre-order-date {
    flex: 0 0 100%;
    max-width: 100%;
}
.label-pre-order {
    font-size: .9em;
    color: var(--porto-primary-color);
}
.single-product .product-summary-wrap .single_add_to_cart_button,
.single-product .product-summary-wrap .quantity,
.single-product .product-summary-wrap .view-cart-btn {
    margin: 0;
}
.single-product .sticky-product .quantity {
    margin-#{$right}: 0.5rem;
}
.single_variation_wrap .variations_button,
.single-product .cart:not(.variations_form) {
    gap: .625rem;
}

/* daily sale */
.sale-product-daily-deal .daily-deal-title,
.sale-product-daily-deal .porto_countdown {
    font-family: var(--porto-h3-ff, var(--porto-body-ff)), sans-serif;
    text-transform: uppercase
}
.entry-summary .sale-product-daily-deal {
    margin-top: 10px;
    .porto_countdown {
        margin-bottom: 5px
    }
    .porto_countdown-section {
        background-color: var(--porto-primary-color);
        color: #fff;
        margin-left: 1px;
        margin-right: 1px;
        display: block;
        float: $left;
        max-width: calc(25% - 2px);
        min-width: 64px;
        padding: 12px 10px
    }
    .porto_countdown .porto_countdown-amount {
        display: block;
        font-size: 18px;
        font-weight: 700
    }
    .porto_countdown-period {
        font-size: 10px
    }
    
    &:after {
        content: '';
        display: table;
        clear: both
    }
}

.products .sale-product-daily-deal {
    position: absolute; left: 10px; right: 10px; bottom: 10px; color: #fff; padding: 5px 0; text-align: center;
    &:before {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        top: 0;
        height: 100%;
        background: var(--porto-primary-color);
        opacity: 0.7
    }
    > h5,
    > div {
        position: relative;
        z-index: 1
    }
    .daily-deal-title {
        display: inline-block;
        color: #fff;
        font-size: 11px;
        font-weight: 400;
        margin-bottom: 0;
        margin-#{$right}: 1px
    }
    .porto_countdown {
        float: none;
        display: inline-block;
        margin-bottom: 0;
        width: auto
    }
    .porto_countdown-section {
        padding: 0;
        margin-bottom: 0
    }
    .porto_countdown-section:first-child:after {
        content: ',';
        margin-#{$right}: 2px
    }
    .porto_countdown-amount,
    .porto_countdown-period {
        font-size: 13px;
        font-weight: 500;
        padding: 0 1px
    }
    .porto_countdown-section:last-child .porto_countdown-period {
        padding: 0
    }
    &:after {
        content: '';
        display: table;
        clear: both
    }
}


// Update product type for mobile user experience
@media ( max-width: 575px ) {
    li.product-col {
        &:not(.product-onimage2) .links-on-image .add-links-wrap {
            display: block !important;
        }
        .links-on-image {
            .button {
                opacity: 1 !important;
            }
        }
        .product-image {
            box-shadow: none !important;
            .img-effect img {
                opacity: 1 !important;
            }
            .img-effect .hover-image,
            .quickview {
                display: none !important;
            }
            .yith-wcwl-add-to-wishlist > div {
                opacity: 1 !important;
                visibility: visible !important;
            }
        }
    }
    li.product-outimage .add-links .quickview,
    li.product-default .add-links .quickview,
    li.product-default .add-links .yith-wcwl-add-to-wishlist>div {
        display: none;
    }
    li.product-outimage .add-links .yith-wcwl-add-to-wishlist>div {
        opacity: 1 !important;
        visibility: visible !important;
    }
}