.material-product #masthead {

}

.material-product .site-main {
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 30px;
}

.material-product .product {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.material-product.woocommerce span.onsale {
    background: #217FA8;
    border-radius: 5px;
    min-height: 0;
    padding: 5px;
    line-height: 1.2;
    top: 20px;
    left: 20px;
    font-size: 20px;
}

.material-product .woocommerce-product-gallery {
    flex-basis: 48%;
    max-width: 720px;
    margin-right: 4%;
}

.material-product .summary {
    flex-basis: 48%;
    position: relative;
}

.material-product .summary:after {
    content: '';
    position: absolute;
    top: 75%;
    right: 40%;
    width: 284px;
    height: 477px;
    background: url('../img/paw_fond.png') 0 0 no-repeat;
    z-index: -1;
    transform-origin: center;
    transform: rotate(20deg);
}

.material-product .summary h1 {
    font-weight: 700;
}

.material-product .woocommerce-product-details__short-description {
    font-weight: 700;
    font-size: 16px;
    max-width: 500px;
}

.material-product #breadcrumbs {
    margin-bottom: 25px;
}

.material-product .woocommerce-product-gallery__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/*
.material-product .woocommerce-product-gallery__image:first-of-type {
    flex-basis: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    max-height: 300px;

}
*/
.material-product .woocommerce-product-gallery__wrapper a {
    flex-basis: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px !important;
    max-height: 450px !important;

}

.material-product .woocommerce-product-gallery__wrapper a img {
    object-fit: contain;
    height: 100% !important;
    object-position: center;
}

.thumb-product-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.thumb-product-nav div {
   max-width: 70px;
   margin: 5px;
   cursor: pointer;
}

.thumb-product-nav div:hover {
    opacity: .6;
}

@media screen and (min-width: 1300px) and (max-width: 1480px){
    .thumb-product-nav div{
        display: none;
    }
    .thumb-product-nav div:nth-child(1),
    .thumb-product-nav div:nth-child(2),
    .thumb-product-nav div:nth-child(3),
    .thumb-product-nav div:nth-child(4),
    .thumb-product-nav div:nth-child(5),
    .thumb-product-nav div:nth-child(6),
    .thumb-product-nav div:nth-child(7),
    .thumb-product-nav div:nth-child(8),
    .thumb-product-nav div:nth-child(9),
    .thumb-product-nav div:nth-child(10),
    .thumb-product-nav div:nth-child(11),
    .thumb-product-nav div:nth-child(12),
    .thumb-product-nav div:nth-child(13),
    .thumb-product-nav div:nth-child(14){
        display: block;
    }
}

@media screen and (min-width: 1070px) and (max-width: 1300px){
    .thumb-product-nav div{
        display: none;
    }
    .thumb-product-nav div:nth-child(1),
    .thumb-product-nav div:nth-child(2),
    .thumb-product-nav div:nth-child(3),
    .thumb-product-nav div:nth-child(4),
    .thumb-product-nav div:nth-child(5),
    .thumb-product-nav div:nth-child(6),
    .thumb-product-nav div:nth-child(7),
    .thumb-product-nav div:nth-child(8),
    .thumb-product-nav div:nth-child(9),
    .thumb-product-nav div:nth-child(10),
    .thumb-product-nav div:nth-child(11),
    .thumb-product-nav div:nth-child(12),
    .thumb-product-nav div:nth-child(13),
    .thumb-product-nav div:nth-child(14){
        display: block;
        width: 56px;
    }
}

@media screen and (min-width: 960px) and (max-width: 1070px){
    .thumb-product-nav div{
        display: none;
    }
    .thumb-product-nav div:nth-child(1),
    .thumb-product-nav div:nth-child(2),
    .thumb-product-nav div:nth-child(3),
    .thumb-product-nav div:nth-child(4),
    .thumb-product-nav div:nth-child(5),
    .thumb-product-nav div:nth-child(6),
    .thumb-product-nav div:nth-child(7),
    .thumb-product-nav div:nth-child(8),
    .thumb-product-nav div:nth-child(9),
    .thumb-product-nav div:nth-child(10),
    .thumb-product-nav div:nth-child(11),
    .thumb-product-nav div:nth-child(12){
        display: block;
        width: 50px;
    }
}

@media screen and (min-width: 540px) and (max-width: 960px){
    .thumb-product-nav div{
        display: none;
    }
    .thumb-product-nav div:nth-child(1),
    .thumb-product-nav div:nth-child(2),
    .thumb-product-nav div:nth-child(3),
    .thumb-product-nav div:nth-child(4),
    .thumb-product-nav div:nth-child(5),
    .thumb-product-nav div:nth-child(6),
    .thumb-product-nav div:nth-child(7),
    .thumb-product-nav div:nth-child(8),
    .thumb-product-nav div:nth-child(9),
    .thumb-product-nav div:nth-child(10),
    .thumb-product-nav div:nth-child(11),
    .thumb-product-nav div:nth-child(12),
    .thumb-product-nav div:nth-child(13),
    .thumb-product-nav div:nth-child(14),
    .thumb-product-nav div:nth-child(15){
        display: block;
        width: 56px;
    }
}

@media screen and (max-width: 540px){
    .thumb-product-nav div{
        display: none;
    }
    .thumb-product-nav div/*:nth-child(1),
    .thumb-product-nav div:nth-child(2),
    .thumb-product-nav div:nth-child(3),
    .thumb-product-nav div:nth-child(4),
    .thumb-product-nav div:nth-child(5),
    .thumb-product-nav div:nth-child(6),
    .thumb-product-nav div:nth-child(7),
    .thumb-product-nav div:nth-child(8),
    .thumb-product-nav div:nth-child(9),
    .thumb-product-nav div:nth-child(10)*/{
        display: block;
        width: 50px;
    }
}

.material-product .woocommerce-product-gallery__image:not(:first-of-type) img {
    object-fit: cover;
}

.material-product .woocommerce-product-gallery__image a {
    display: flex;
    height: 100%;
}

.material-product .woocommerce-product-gallery__image a:hover {
    opacity: .6;
}

.material-product .woocommerce-product-gallery .js-yt-video {
    position: relative;
}

.material-product .woocommerce-product-gallery .js-yt-video:before {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: url('../img/play.png') 0 0 no-repeat;
}

.material-product .woocommerce-product-gallery__image img {
    flex: 1;
    object-fit: contain;
    object-position: center;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
}

.variable-items-wrapper li {
    box-shadow: 0 0 10px rgb(0 0 0 / 10%) !important;
    color: #217FA8 !important;
    border-radius: 3px !important;
    width: 30px !important;
}

.variable-items-wrapper li.selected {
    background: #217FA8 !important;
    color: #fff !important;
}

.material-product .quantity input::-webkit-outer-spin-button,
.material-product .quantity input::-webkit-inner-spin-button
{
    -webkit-appearance: none;
    margin: 0;
}

.material-product .quantity input[type=number] {
    -moz-appearance: textfield;
}
.material-product .quantity {
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
    width: auto;
    margin-right: 0 !important;
}

.material-product .cart .variations .label {
    line-height: 1.5 !important;
}

.material-product .cart .variations label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 400 !important;
}

.material-product .product_meta > span:not(:last-of-type) {
    margin-right: 10px;
}

.material-product .product_meta > span {
    text-transform: uppercase;
    font-weight: 700 !important;
}

.material-product .product_meta > span span,
.material-product .product_meta > span a {
    text-transform: none;
    font-weight: 400;
}

.material-product .single_variation_wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.material-product .single_variation_wrap .single_variation {
    order: 1;
}

.material-product .single_variation_wrap .woocommerce-product-details__short-description {
    order: 2;
    margin-bottom: 20px;
}

.material-product .single_variation_wrap .variations {
    order: 3;
    margin-bottom: 25px !important;
}

.material-product .single_variation_wrap .variations .value {
    display: flex;
    align-items: center;
}

.material-product .single_variation_wrap .product_meta {
    order: 4;
}

.material-product .single_variation_wrap .woocommerce-variation-add-to-cart {
    order: 5;
}

.material-product .price {
    font-size: 40px !important;
    color: #217FA8 !important;
    margin-bottom: 20px;
    display: block;
}

.material-product .variations_form {
    margin-bottom: 30px !important;
}

.material-product .quantity input {
    padding: 5px !important;
    height: 47px !important;
    flex-basis: 60px;
    flex-direction: column;
    justify-content: center;
    display: inline-flex;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
    z-index: 2;
    text-align: center;
    color: #217FA8;
    font-size: 18px;
}

.material-product .woocommerce-variation-add-to-cart,
.material-product .cart {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 40px;
}

.material-product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.material-product .cart .single_add_to_cart_button {
    /* margin-left: 30px; */
    background: transparent !important;
    border: 2px solid #217FA8 !important;
    color: #217FA8 !important;
}

.material-product .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover,
.material-product .cart .single_add_to_cart_button:hover {
    background: #217FA8 !important;
    color: #fff !important;
}

.material-product .reset_variations {
    display: none !important;
}

.material-product .qty-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-basis: 30px;
    background: #fff;
    color: #217FA8;
    border: none;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
    position: relative;

}


.material-product .qty-action:first-of-type {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    z-index: 1;
}

.material-product .qty-action:nth-of-type(2) {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    z-index: 1;
    margin-right:30px;
}


.link-guide {
    color: #217FA8;
    font-size: 13px;
    margin-left: 40px;
}

.link-guide a {
    color: #217FA8 !important;
    text-decoration: underline;
    text-transform: uppercase;
}


.material-product .tabs {
    flex-basis: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}


.material-product .tabs > div {
    /* flex-basis: 48%; */
    box-sizing: border-box;
}

.material-product .tabs h3 {
    color: #217FA8;
}

.material-product .tabs h3:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    width: 23px;
    height: 23px;
    background-image: url('../img/li_paw.png');
    background-size: cover;
}

.material-product .tabs .content {
    font-size: 16px;
    margin-top: 20px;
    line-height: 1.5em;
}

.material-product .tabs .accordion {
    display: flex;
    flex-direction: column;
    flex-basis: 48%;
    align-self: flex-start;
}


.accordion {
    position: relative;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
    background-color: white;
    padding: 30px 36px 30px 30px;
    border-radius: 32px;
    margin: 30px 0;
    color: black;
    flex-grow: 2;
}

.accordion:not(:last-of-type) {
    margin-right: 30px;
}

.accordion .title {
    position: relative;
    font-size: 22px;
}
.accordion .content {
    display: none;
}

.accordion_more {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.accordion_more:hover {
    opacity: .6;
}

.accordion_more:after {
    content: "+";
    color: #217FA8;
    font-size: 32px;
    font-family: 'Verdana', sans-serif;
    font-weight: 800;
}

.active.accordion_more:after {
    content: "-";
}

.material-product .up-sells > h2 {
    text-align: center;
    font-weight: 700;
    font-size: 41px;
}

.material-product .up-sells > h2:after {
    content: "";
    display: block;
    position: static;
    background-image: url('../img/item_title.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 258px;
    height: 23px;
    margin: 20px auto 40px;
    transform: none;
}

.material-product .up-sells {
    flex-basis: 100%;
}

#upsells-container {
    width: 100%;
    max-width: 90vw;
}

#upsells-container .slick-track {
    display: flex;
}


.material-product .up-sells .product {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 25px !important;

}

.material-product .up-sells .product a:hover {
    opacity: .5;
}

.material-product .up-sells .product img {
    flex-basis: 100%;
    /* aspect-ratio: 1/1; */
}

.material-product .up-sells .product .woocommerce-loop-product__title {
    font-size: 20px !important;
    text-transform: none;
    flex-basis: calc(100% - 100px);
    max-width: calc(100% - 100px);
    box-sizing: border-box;
    margin-right: 0 !important;
}

.material-product .up-sells .product .woocommerce-loop-product__title a:hover {
    color: #217FA8;
}

.material-product .up-sells .product .description {
    font-weight: 400;
    line-height: 1.2;
}

.material-product .up-sells .product .price {
    font-size: 20px !important;
    flex-basis: 100px;
    max-width: 100px;
    text-align: right;
    box-sizing: border-box;
    margin: 30px 0 0 !important;
}

.cart_totals h2 {
    text-align: left;
}

.cart_totals h2:after {
    content: none;
}

.woocommerce-cart-form .quantity input {
    padding: 5px !important;
}

.wc_payment_method.payment_method_stripe img {
    max-width: 50px;
    display: inline-block;
}

.wc_payment_method.payment_method_stripe img:not(:last-of-type) {
    margin-right: 10px !important;
}

.woocommerce #coupon_code {
    width: 200px !important;
}

.material-product .testimonials h2:after {
    content: "";
    display: block;
    position: static;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* width: 120px;
    height: 23px; */
    margin: 20px auto 40px;
    transform: none;
}

.material-product .testimonials h2 {
    text-align: center;
    font-weight: 700;
    font-size: 41px;
}

.testimonials__item {
    padding: 40px;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
    border-radius: 20px;
    margin-right: 30px;
}

.testimonials__list .slick-track {
    padding: 80px 15px 20px;
}

.testimonials__picture {
    overflow: hidden;
    width: 100px;
    height: 100px;
    border-radius: 50px;
    flex-basis: 100px;
    margin-left: 20px;
}

.testimonials__head:before {
    content: '';
    display: block;
    background: #d1e9fa;
    width: 100px;
    height: 100px;
    border-radius: 50px;
    position: absolute;
    bottom: -5px;
    right: -5px;
    z-index: -1;
}

.testimonials__head {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    margin-top: -70px;
}
.testimonials__author:before {
    content: '';
    display: block;
    width: 40px;
    height: 31px;
    background-image: url('../img/quote.png');
    background-position: 0 0;
    margin-bottom: 10px;
}
.testimonials__author {
    font-weight: 700;
    font-size: 1.7em;
}
.testimonials__function {
    text-transform: uppercase;
    color: #217FA8;
    font-size: 14px;
}

.testimonials__comment {
    font-size: 15px;
}

.popup-guide {
    position: fixed;
    background: rgba(0,0,0,.5);
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    bottom: 0;
    display: none;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.popup-guide.active {display: flex;}

.popup-guide .close-button {
    font-size: 24px;
    font-weight: 900;
}
.popup-guide .close-button:hover {
    color: #000;
}
.popup-guide .close-button {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
    color: #217FA8;
}

.popup-guide__caption {
    position: relative;
    background: #fff;
    width: 80%;
    max-width: 850px;
    padding: 30px;
    overflow-y: scroll;
    max-height: 500px;
}
.popup-guide__caption::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #aaa;
}

.popup-guide__caption::-webkit-scrollbar-thumb {
    background: #217FA8;
}
.popup-guide h2 {
    color: #217FA8;
    font-size: 30px;
    font-weight: 900;
}

.popup-guide h3 {
    font-weight: 700;
    font-size: 24px;
}

.popup-guide ul {
    list-style: none;
}

.popup-guide li {
    padding-left: 17px;
    text-indent: -17px;
}
.popup-guide li:before {
    content: ''; 
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #217FA8;
    margin-right: 10px;
}

.popup-guide table {
    margin: 20px auto;
}

.popup-guide table tr:nth-of-type(even) {
    background: #e0f1ff;
}
.popup-guide table th, .popup-guide table td {
    padding: 8px!important;
    text-align: center;
}

.popup-guide table td:not(:last-of-type) {
    border-right: 1px solid #d5d5d5;
}
.popup-guide table th {
    background: #217FA8;
    color: #FFF;
}

@media screen and (max-width: 768px) {
    .material-product .product {
        align-items: flex-start;
    }

    .material-product .tabs {
        flex-wrap: wrap;
    }

    .material-product .tabs > div {
        flex-basis: 100%;
    }

    .accordion {
        flex: 1
    }

    .accordion:not(:last-of-type) {
        margin-right: 0;
    }

    .material-product .woocommerce-product-gallery, .material-product .summary {
        flex-basis: 100%;
    }
}


/* @media screen and (max-width: 640px) {


    .material-product .thumb-product-nav div {
        max-width: 82px;
        flex-basis: 82px;
        height: 67px;
    }
} */


@media screen and (max-width: 480px) {
    .material-product .summary h1 {
        font-size: 24px;
    }

    .material-product .price {
        font-size: 22px !important;
    }

    .link-guide {
        font-size: 11px;
    }

    .material-product .product_meta > span {
        display: block;
    }

    .material-product .product_meta > span:not(:last-of-type) {
        margin-bottom: 5px;
    }

    .material-product .woocommerce-product-gallery {
        min-height: 0;
        min-width: 0;
    }

    .coupon {
        display: block;
    }

    .woocommerce #coupon_code {
        margin-bottom: 10px;
    }

    .coupon > *, .woocommerce #coupon_code {
        width: 100% !important;
    }

    .material-product .woocommerce-variation-add-to-cart {
        flex-wrap: wrap;
    }

    .material-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
        width: 100%;
        margin: 20px 0 0;
    }

    .testimonials__item {
        padding: 20px;
    }
}