/* Product Gallery */
.product-gallery-loading img {
    width: 100%;
    animation: opacityPulse 2s infinite ease-in-out;
}

@keyframes opacityPulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: .7;
    }

    100% {
        opacity: 0.3;
    }
}

.product-gallery-mobile {
    display: none;
}

@media screen and (max-width: 1024px) {
    .product-gallery {
        display: none !important;
    }

    .product-gallery-mobile {
        display: block;
    }

    .product-gallery-loading {
        display: none;
    }

    .product-gallery-mobile .swiper-pagination {
        display: block;
        position: static;
        margin-top: 0px;
    }

    .product-gallery-mobile .swiper-pagination .swiper-pagination-bullet {
        background-color: transparent;
        border: 1px solid #EBE7DC;
        width: 28px;
        height: 8px;
        border-radius: 6px;
        opacity: 1;
        margin: 0 3px !important;
    }

    .product-gallery-mobile .swiper-pagination .swiper-pagination-bullet-active {
        background-color: #EBE7DC;
        opacity: 1;
    }

    .product-gallery-mobile {
        overflow: hidden;
    }

    .product-gallery-mobile .product-gallery-wrapper {
        display: flex;
        width: fit-content;
        align-items: flex-start;
    }

    .product-gallery-mobile .product-gallery-image {
        position: relative;
        height: 100vw;
        width: 100vw;
        background-color: #fff;
    }

    .product-gallery-mobile .product-gallery-image img {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 90%;
        object-fit: contain;
    }
}


/* Product accordion */

.woocommerce-tabs-accordion-content {
    display: none;
}

.woocommerce-tabs-accordion-title.active .elementor-accordion-icon-closed,
.woocommerce-tabs-accordion-title .elementor-accordion-icon-opened {
    display: none;
}

.woocommerce-tabs-accordion-title.active .elementor-accordion-icon-opened,
.woocommerce-tabs-accordion-title .elementor-accordion-icon-closed {
    display: inline-block;
}

.cert-logo-wrap {
    display: flex;
    width: 100%;
    margin-top: 20px;
}

img.cert-logo {
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

img.cert-logo.oekotex {
    width: 200px;
    height: auto;
    padding: 5px;
    margin-right: 10px;
    background: #fff;
}

img.cert-logo.fsc {
    width: 101px;
    height: auto;
    border: solid 1px #eee;
    padding: 15px;
    margin-right: 10px;
    background: #fff;
}

img.cert-logo.oekotex:hover,
img.cert-logo.fsc:hover {
    cursor: pointer;
}

.cert-logo-wrap:hover {
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    .spec-row {
        border-bottom: solid 1px #eee;
        padding: 10px 0;
        font-size: 12px;
    }

    img.cert-logo.fsc {
        width: 70px;
        padding: 10px;
    }

    img.cert-logo.oekotex {
        width: 135px;
        padding: 5px;
    }

    .spec-row-key {
        width: 140px;
    }
}


.spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: solid 1px #EBE7DC;
    padding: 5px 0px;
    color: #121212;
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec-row-key {
    width: 220px;
}

.data-accordion .woocommerce-tabs-accordion-content h2 {
    display: none;
}

.data-accordion span.elementor-accordion-icon.elementor-accordion-icon-left {
    display: none;
}

.data-accordion .woocommerce-tabs-accordion-title.active:after {
    content: "";
    float: right;
    background: url(../images/up-chevron.svg) no-repeat center;
    background-size: contain;
    width: 15px;
    height: 15px;
    display: inline-block;
}

.data-accordion .woocommerce-tabs-accordion-title:after {
    content: "";
    float: right;
    background: url(../images/down-chevron.svg) no-repeat center;
    background-size: contain;
    width: 15px;
    height: 15px;
    display: inline-block;
}

.data-accordion .woocommerce-tabs-accordion-title {
    text-transform: normal;
    padding: 15px 0;
    border-bottom: 0;
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
}

.data-accordion .woocommerce-tabs-accordion-item {
    border-bottom: solid 1px #e2e2e2;
    clear: both;
}

.data-accordion .woocommerce-tabs-accordion-content {
    padding-bottom: 20px;
}

p.stock.out-of-stock,
p.stock.in-stock {
    display: none;
}

.single-product form.cart {
    position: relative;
    z-index: 99;
}

.download-image-package {
    display: flex;
    align-items: center;
}

.download-image-package img {
    width: 10px;
    margin-right: 3px;
    pointer-events: none;
}

table.woocommerce-product-attributes.shop_attributes {
    width: 100%;
}

.woocommerce table.shop_attributes th {
    text-align: left;
    width: 40%;
}

.woocommerce table.shop_attributes tr:nth-child(even) td,
.woocommerce table.shop_attributes tr:nth-child(even) th {
    background: none;
}

.woocommerce table.shop_attributes td p {
    font-style: normal;
}

.woocommerce table.shop_attributes,
.woocommerce table.shop_attributes td,
.woocommerce table.shop_attributes th {
    border-top: none;
    border: none;
}

.woocommerce table.shop_attributes td p,
.woocommerce table.shop_attributes th {
    padding: 0;
    margin: 0;
}

.single .product p.price {
    margin: 0;
}

.single .product .price del {
    font-size: 14px !important;
    opacity: .5;
}

.single-product .elementor-widget-woocommerce-product-add-to-cart {
    display: none;
}

.single-product.logged-in .elementor-widget-woocommerce-product-add-to-cart {
    display: block;
}

/* Find retailer CTA */

button.find-retailer-product-button {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-radius: 0px 0px 0px 0px;
    padding: 12px 0px 12px 0px;
    color: #433230;
    background-color: #ffffff;
    border-color: #433230;
    transition: all 0.2s;
    width: 100%;
    margin: 10px 0;
}

button.find-retailer-product-button:hover {
    background: #433230;
    border-color: #433230;
    color: #fff;
}

.not-logged-in-product-notice a {
    text-decoration: underline;
}

/* Product tag slider */

.product-tag-description h2 {
    margin-bottom: 0;
}

.product-tag-description h3 {
    margin-top: 10px;
}

.product-tag-slide {
    display: flex;
    align-content: center;
    position: relative;
    background-color: #5d7b75;
    color: #fff;
    height: 680px;
}

.product-tag-slide a {
    color: #fff;
}

.product-tag-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-width: 65%;
    height: 100%;
}

.product-tag-description {
    position: relative;
    align-self: center;
    padding: 5% 5% 5% 5%;
    height: 680px;
}

.product-tag-slider-pagination {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-tag-slider-pagination li {
    cursor: pointer;
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background-color: rgba(0, 0, 0, 0);
    border: solid 2px rgba(0, 0, 0, 0.5);
    border-radius: 100%;
    transition: all 0.3s ease;
}

.product-tag-slider-pagination li.current {
    cursor: default;
}

.product-tag-slider-pagination li.current,
.product-tag-slider-pagination li:hover {
    background-color: rgb(0, 0, 0, 0.5);
    border: solid 2px rgba(0, 0, 0, 0);
}

.retail-prices strong {
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

/* Pagination */

.fa-chevron-right:before {
    content: "";
    background: url(/wp-content/themes/hubsch/assets/frontend/images/arrow-down.svg) no-repeat center;
    background-size: contain;
    width: 20px;
    height: 20px;
    display: block;
    transform: rotate(-90deg);
    transform-origin: center;
}

.fa-chevron-left:before {
    content: "";
    background: url(/wp-content/themes/hubsch/assets/frontend/images/arrow-down.svg) no-repeat center;
    background-size: contain;
    width: 20px;
    height: 20px;
    display: block;
    transform: rotate(90deg);
    transform-origin: center;
}

/* Related products */

.related-products {
    display: block;
}

.related-products-logged-in {
    display: none;
}

.logged-in .related-products {
    display: none;
}

.logged-in .related-products-logged-in {
    display: block;
}

/* Product gallery */
figure.woocommerce-product-gallery__wrapper {
    display: flex;
    flex-wrap: wrap;
}

figure.woocommerce-product-gallery__wrapper>div {
    margin: 0px;
    position: relative;
    left: 0;
}

figure.woocommerce-product-gallery__wrapper>div:first-child {
    width: 100%;
    margin: 0;
    left: 0;
}

@media only screen and (max-width: 979px) {
    .product-tag-slide {
        flex-direction: column;
        height: auto;
    }

    .product-tag-image {
        min-width: 100%;
        height: 0;
        padding-bottom: 60%;
    }

    .product-tag-description h2 {
        margin-top: 0;
    }

    .product-tag-description {
        padding: 30px;
        height: auto;
    }
}

@media only screen and (max-width: 768px) {

    .woocommerce div.product form.cart div.quantity {
        margin-bottom: 10px;
        margin-right: 0;
        width: 100%;
    }

    .products .quantity .qty,
    .woocommerce .quantity .qty {
        max-width: 50%;
        width: 100%;
    }

    .single .product .quantity.buttons_added {
        justify-content: space-between;
        padding: 10px;
    }

    .products .cart .quantity {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .woocommerce div.product.elementor .quantity+.button {
        margin-left: 0;
    }

    .single-product button.single_add_to_cart_button.button.alt {
        width: 100%;
    }

    .single-product div.product.elementor .quantity .qty {
        max-width: 100%;
    }
}

.single-product .product-tag-container {
    width: 100%;
    height: 55px;
    z-index: 2;
    display: flex;
    margin-top: 15px;
}

.single-product .product-tag-container img.product-tag-svg {
    object-fit: contain;
    object-position: left;
    margin-right: 10px;
}

.product-attributes {
    padding-bottom: 35px;
}

.product-attributes:not(.open) {
    overflow: hidden;
    position: relative;
    max-height: 155px;
}

.product-attributes:not(.open):after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent, white);
}

.toggle-attributes {
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    z-index: 9;
    display: block;
    text-align: center;
    opacity: .7;
    transition: opacity .3s ease;
}

.toggle-attributes:hover {
    opacity: 1;
}

.toggle-attributes:after {
    content: '';
    border: solid #433230;
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 5px;
    transform: rotate(45deg);
}

.product-attributes.open .toggle-attributes:after {
    transform: rotate(-135deg);
}

/* Sale Badge */

.single .product span.onsale {
    top: 20px;
    left: 15px;
}

/* Quanity buttons */

.single .product .quantity input[type="button"],
.woocommerce-cart .quantity input[type="button"] {
    border: none;
    background: white !important;
    font-size: 20px !important;
    cursor: pointer;
    color: rgba(18, 18, 18, .7) !important;
    transition: all .2s ease;
    min-width: 25px;
    width: 100%;
}

.single .product .quantity.buttons_added {
    display: flex;
    align-items: center;
    background: white;
}

.single .product .quantity .qty {
    width: 50%;
    max-width: 40px;
    min-width: 40px;
    text-align: center;
    border: none;
}

li.product .quantity .qty,
.single-product .quantity .qty {
    max-width: 40px;
    text-align: center;
    font-weight: 500;
    border: none;
    flex: 1;
}

li.product .quantity.buttons_added,
.single-product .quantity.buttons_added,
.woocommerce-cart .quantity.buttons_added {
    display: flex;
    background: #fff;
    justify-content: space-between;
    flex: 1;
}

li.product .quantity .qty::-webkit-outer-spin-button,
.single-product .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart .quantity .qty::-webkit-outer-spin-button,
.single-product .quantity .qty::-webkit-inner-spin-button,
.woocommerce-cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

li.product .quantity .qty[type=number],
.single-product .quantity .qty[type=number],
.woocommerce-cart .quantity .qty[type=number] {
    -moz-appearance: textfield;
}

li.product .quantity input[type="button"],
.single-product .quantity input[type="button"],
.woocommerce-cart .quantity input[type="button"] {
    border: none;
    background: white !important;
    font-size: 20px !important;
    cursor: pointer;
    color: rgba(18, 18, 18, .7) !important;
    transition: all .2s ease;
    min-width: 35px;
    height: auto !important;
}

li.product .quantity input[type="button"]:hover,
.single-product .quantity input[type="button"]:hover,
.woocommerce-cart .quantity input[type="button"]:hover {
    color: rgba(18, 18, 18, 1) !important;
}

.woocommerce-cart form>.quantity.buttons_added {
    margin-right: 10px !important;
}

@media(max-width: 767px) {
    .single-product .quantity .qty {
        width: 30px !important;
        padding: 5px !important;
    }
}

/* Certification tags */
.certification-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    gap: 5px;
}

span.certification-tag {
    border-radius: 11px;
    background: #2B3BB2;
    padding: 3px 7px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.4;
}

span.certification-tag.certification-tag-outdoor {
    background-color: #8ebb90;
}

span.certification-tag.certification-tag-oeko-tex {
    background-color: #C2BDB5;
}

span.certification-tag.certification-tag-fsc {
    background-color: #8A8D7B;
    display: none;
}

/* Upsells Image  */

.single-product .related-products-image .upsells-style-image,
.single-product .related-products-image .upsells-style-image .elementor-widget-container,
.single-product .related-products-image .upsells-style-image .elementor-widget-container .elementor-shortcode {
    height: 100%;
}

/* Add to Cart Button */

.single-product button.single_add_to_cart_button.button.alt {
    flex: 3;
}