.container-fullhd {
    padding-left: clamp(32px, 6.67vw, 128px);
    padding-right: clamp(32px, 6.67vw, 128px);
}

/* custom carousel gallery */
/* set the position of thumbnail images*/
.wp-block-woocommerce-product-image-gallery {
    max-width: 35vw !important;
}

.woocommerce-product-gallery__image {
    width: 35vw !important; 
    border-radius: 28px;
}

.woocommerce div.product div.images img {
    border-radius: 40px;
}

.onsale {
    background-color: #8B0000 !important;
    text-transform: uppercase !important;
    color: white !important;
    padding: 0 12px !important;
    border-radius: 32px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    position: absolute !important;
    top: 24px !important;
    left: 24px !important;
}

/* 
  div.product div.images.woocommerce-product-gallery .flex-viewport {
     flex-basis: 82%;
     height:50px;
  } */

  .woocommerce-js div.product div.images .flex-control-thumbs {
       flex-basis: 18%;
        width:35vw;
        display: flex;
        gap: 10px;
        margin-top: 10px;
  }
  
  /* set the min width of thumbnail images*/
  .woocommerce div.product div.images .flex-control-thumbs li {
    min-width: calc(8.75vw - 10px);
    border-radius: 10px;

    img {
        border-radius: 10px;
    }
  }
  
  /* Limit the thumbnail images to four images*/
  .woocommerce-js div.product div.images .flex-control-thumbs {
    overflow:hidden ;
      zoom: 1;
     
  }
  /* ol.flex-control-nav.flex-control-thumbs {
      height:390px !important;
        margin:0px;
        padding:0px;
        width:300px;
  }
   */

    /* Set the direction of arrows*/
    ul.flex-direction-nav {
        position: relative;
        bottom: 5vw;
        z-index: 989;
        width: calc(100% + 64px);
        left: -32px;
        margin: 0;
        padding: 0px;
        list-style: none;
        display:flex;
        flex-direction:row;
        justify-content: space-between;
    }
    /* set position of previous arrow*/
    li.flex-nav-prev { 
        /* margin-top:-25px !important; */
        left:-5px !important;
    }
        /* set position of next arrow*/

    li.flex-nav-prev,
    li.flex-nav-next {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    } 

    /* li.flex-nav-prev {
        right: 40px;
    }

    li.flex-nav-next {
        left: 40px;
    } */
    
    a.flex-next, 
    a.flex-prev {
        text-decoration: none;
        visibility:hidden;
    }

    a.flex-next::after,
    a.flex-prev::before {
        visibility:visible;
        font-size: 16px;   
        background-color: white;
        padding: 8px 15px;
        border-radius: 32px;
    }
    
    /* next arrow appear */
    a.flex-next::after {
        content: '\003E';        
    }

    /* previous arrow appear*/
    a.flex-prev::before {
        content: '\003C';
    }
    
    ul.flex-direction-nav li a {
        color: var(--wp--preset--color--dark-text);
    }
    
    ul.flex-direction-nav li a:hover {
        text-decoration: none;
    }
    
    ul.flex-direction-nav li a:hover {
        text-decoration: none;
    }

    .flex-control-nav {
        top:0px;
    }

    .woo-single-product__content {
        .woo-single-product__content-desc {
            .woo-single-product__content-desc-sku {
                font-size: clamp(1.5rem, 1.875vw, 2.25rem);
                margin-bottom: 1rem;

                .wp-block-post-terms__prefix {
                    display: none;
                }
            }

            .woo-single-product__content-desc-title {
                padding-bottom: 16px;
            }

            .wp-block-woocommerce-product-price {
                padding-bottom: 16px;
                
                * {
                    font-size: clamp(1.625rem, 2.5vw, 3rem);
                }
            } 

            .woo-single-product__content-desc-add {
                .single_add_to_cart_button {
                    background-color: var(--wp--preset--color--primary);
                    border-radius: 64px;
                }
            }
        }

        .quantity {
            margin-right: 32px !important;
            background-color: transparent !important;
           
            input, button {
                font-size: var(--wp--preset--font-size--p-xl) !important;
                font-weight: 600 !important;
            }

            &::after {
                border: none;
            }
           
        }

        .out-of-stock,
        .available-on-backorder {
            font-size: var(--wp--preset--font-size--h-5) !important;
            padding-bottom: 24px;
        }

        .variations {
            padding-bottom: 32px;
            
            td {
                a {
                    position: absolute;
                }
            }

            select {
                font-size: 16px !important;
            }

            .reset_variations {
                color: var(--wp--preset--color--primary);
            }
        }

        .woocommerce-variation-price {
            font-size: var(--wp--preset--font-size--h-1) !important;
            padding-bottom: 24px !important;
            margin: 24px 0 !important;
        }
    }

    .wp-block-woocommerce-product-details  {
        margin-left: 0 !important;

        .tabs.wc-tabs {
            padding-left: 6px !important;

            li {
                margin-right: 16px !important;
                border: 1px solid var(--wp--preset--color--dark-text) !important;
                background-color: transparent !important;
                padding: 12px 48px !important;
                border-top-left-radius: 16px !important;
                border-top-right-radius: 16px !important;

                a {
                    padding: 0 !important;
                }

                &.active {
                    background-color: var(--wp--preset--color--dark-text) !important;
                    color: white !important;
                }
            }
        }
        
    }

    .woocommerce-Tabs-panel {
        margin-top: 48px !important;
    }

    .wp-block-separator {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 48px;
    }

    .wp-block-buttons {
        margin-left: 0 !important;
    }

    .stars {
        padding-top: 16px;

        a {
            font-size: 24px;
        }

        a::before  {
            color: #eca408;
        }
    }
    
    .comment-form-comment {
        textarea {
            border: 1px solid grey;
            padding: 16px;
        }
    }

    .commentlist {
        padding-left: 0;
        
        .avatar {
            border-radius: 64px;
        }

        .star-rating {
            span::before {
                color: #eca408;
            }
        }
    }

    .stock {
        font-size: var(--wp--preset--font-size--h-6) !important;
        padding-bottom: 16px;
    }

    /* ingredients */
    .woo-single-product__content-ingredients-grid {
        gap: 24px !important
    }

    .woo-single-product__content-ingredient {
        gap: 16px !important;

        figure {
            min-width: 48px;
        }
    }

    @media only screen and (max-width: 1366px) {
        .woo-single-product__content-desc-adv {
            .woo-single-product__content-desc-adv-group {
                gap: 16px;
                
                p {
                    font-size: 14px !important;
                }
            }
        }

        .woo-single-product__content-ingredient {
            gap: 12px !important;

            p {
                font-size: 14px !important;
            }
        }
    }

    @media only screen and (max-width: 1280px) {
        .woo-single-product__content-ingredient {
            gap: 10px !important;

            p {
                font-size: 13px !important;
            }
        }
    }

    @media only screen and (max-width: 1100px) {
        .wp-block-woocommerce-product-image-gallery {
            /* padding-left: 32px; */
            padding-left: 0;
        }
    
        .woo-single-product__content-related {

            ul {

                li {
                    display: flex;
                    width: 47% !important;
                }
            }
        }

        /* ingredients */
        .woo-single-product__content-ingredients-grid {
            gap: 16px !important;
            grid-template-columns: 1fr 1fr;
        }

    }

    @media only screen and (max-width: 810px) {
        /* ingredients */
        .woo-single-product__content-ingredients-grid {
            gap: 16px !important;
            grid-template-columns: repeat(4, 1fr);
        }

        .onsale {
            top: 16px !important;
            left: 16px !important;
        }
    } 
    

    @media only screen and (max-width: 576px) {
        .woo-single-product__content-desc-adv {
            gap: 16px;
            align-items: flex-start;
            justify-content: center;
        
            .woo-single-product__content-desc-adv-group {
                gap: 8px;
                flex-direction: column;
                min-width: 100px;

                figure {
                    img {
                        width: 48px;
                        height: 48px;
                    }
                }
    
                p {
                    font-size: 11px !important;
                    padding-bottom: 0 !important;
                    text-align: center;
                    line-height: 150%;
                }
            }
  
        }

        .wp-block-woocommerce-product-image-gallery{
            padding-left: 0;
            max-width: 265px !important;
            display: block;
            margin: auto;
        }

        .woocommerce-product-gallery {

            & > div {
                width: 265px !important;

            }

            .woocommerce-product-gallery__image {
                width: 265px !important;
            }
        }

        .woocommerce-js div.product div.images .flex-control-thumbs {
            width: 265px !important;
        }

        ul.flex-direction-nav {
            width: 340px;
            bottom: 45px;
        }

        .woo-single-product__content-desc-sku {
            margin-bottom: 8px !important;
        }

        .woo-single-product__content {
            .woocommerce-variation-price {
                margin: 0 !important;
                padding: 0 !important;
                padding-bottom: 16px !important;
            }
        }

        .reset_variations {
            padding-top: 8px;
        }

        .wc-block-components-product-summary {
            font-size: 14px !important; 
        }

        .variations {
            padding-bottom: 0;
            margin-bottom: 0;
        }

        .woocommerce div.product div.images .flex-control-thumbs li {
            min-width: calc(69px - 10px);
        }


        .wp-block-woocommerce-product-details  {
    
            .tabs.wc-tabs {
                li {
                    margin-right: 8px !important;
                    padding: 8px 16px !important;
                    border-top-left-radius: 8px !important;
                    border-top-right-radius: 8px !important;

                    a {
                        font-size: 12px;
                        padding: 0 !important;
                    }
                }
            }

        }

        .woo-single-product__content-related {

            ul {
                flex-direction: row;

                li {
                    display: flex;
                    width: 100% !important;
                    
                    .product-card {
                        & .product-card__price {
                            & > span, & > del, & > ins {
                                font-size: 14px !important;
                            }
                        }
                    }
                    
                }
            }
         
        }

        .single_add_to_cart_button {
            padding: 16px !important;
        }

        /* ingredients */
        .woo-single-product__content-ingredients-grid {
            gap: 16px !important;
            grid-template-columns: repeat(2, 1fr);
            padding-top: 0 !important;
        }

    }

    .upsells {
        li {
            border-radius: 20px;
            background-color: white;
            padding: 16px !important;
            width: 40% !important;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            .attachment-woocommerce_thumbnail {
                border-radius: 10px !important;
            }

            h2, .price {
                color: var(--wp--preset--color--dark-text);
            }

            h2 {
                font-size: var(--wp--preset--font-size--p-lg) !important;
            }

            .price {
                font-size: 14px !important;
                font-weight: 600 !important;
            }

            .button {
                width: fit-content;
                margin-left: auto;
                margin-right: 0;
                padding: 16px;
                background-image: url("../images/arrow-up.svg");
                background-size: 16px;
                background-repeat: no-repeat;
                background-position: center;
                transition: all .4s ease-in-out;
                background-color: var(--wp--preset--color--primary);
                border-radius: 64px;
            }
        }
    }

    @media only screen and (min-width: 768px) {
        .upsells {
            ul {
                display: flex;
                flex-wrap: wrap;
                gap: 16px;

                li {
                    width: calc(20% - 16px) !important;
                    margin-right: 0;
                }
            }
   
        }

    }

    @media only screen and (min-width: 1000px) {
        .upsells {
            ul {
                li {
                    width: calc(20% - 16px) !important;
                    margin-right: 0 !important;
                }
            }
   
        }
    }

    @media only screen and (min-width: 1200px) {
        .upsells {
            ul {
                li {
                    width: calc(22% - 16px) !important;
                    margin-right: 0 !important;

                    h2, .price {
                        color: var(--wp--preset--color--dark-text);
                    }
        
                    h2 {
                        font-size: var(--wp--preset--font-size--p-lg) !important;
                    }

                    .price {
                        font-size: 16px !important;
                        font-weight: 600 !important;
                    }
        
                }
            }
   
        }
    }

    @media only screen and (min-width: 1200px) {
        .upsells {
            ul {
                li {

                    h2 {
                        font-size: 20px !important;
                    }

                    .price {
                        font-size: 18px !important;
                    }
        
                }
            }
   
        }
    }

    @media only screen and (min-width: 1921px) {
        .woo-single-product__content-cols {
            
            & > .wp-block-column {
                flex-basis: 928px !important;
            }
        
            .woocommerce-product-gallery__image {
                width: 875px !important;

                img {
                    aspect-ratio: 1 / 1;
                    object-fit: contain;
                }
            }

            ul.flex-direction-nav {
                width: calc(100% + 70px);
            }
        }

        .woocommerce-js div.product div.images .flex-control-thumbs {
            width: 875px !important;
        }

        .woocommerce div.product div.images .flex-control-thumbs li {
            min-width: 210px !important;
        }

        .woo-single-product__content-desc {
            padding-left: 32px;
        }
    }