/* Main CSS */
main {
    text-align: left;
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 500px;
    padding: 3rem 0
}

@media screen and (max-width: 768px) {
    main {
        padding: 1rem 0
    }
}

.relative {
    position: relative;
}

.product-category-archive main, .content-product main {
    width: 95%;
    max-width: calc(50% + 640px);
    margin-left: 0;
    margin-right: 0;
}

@media screen and (min-width: 1920px) {
    .product-category-archive main, .content-product main {
        max-width: calc(50% + 720px);
    }
}

.tax-product_cat h1, .content-product h1 {
    margin-top: 0.5rem;
}
.content-product h1{
    margin-bottom:0.25em;
}

.tax-product_cat .product-category-header__title, .content-product .product-category-header__title, .product-category-archive .product-category-header__title {
    background-color: var(--darkblue);
    color: var(--blanc);
    padding: 0.75rem 1rem;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 0.5rem;

}

.tax-product_cat .product-category-header__title .sous-menubt, .product-category-header__title .sous-menubt {
    width: 30px;
    height: 30px;
    background: url(../img/sub-menu.svg) no-repeat center / contain;
    cursor: pointer;
}

.tax-product_cat .product-list__item {
    padding: 1rem 1rem 1rem 3rem;
}

.product-category-header__title a {
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0 0.25rem;
    color: var(--blanc);
}

.product-category-header__title a span {
    width: 1.35em;
    height: 1.35em;
    background: url(../img/search-white.svg) no-repeat center / contain
}

.product-category-header__subcategories {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.product-category-header__subcategories li {
    text-align: right;
}

.product-category-header__subcategories li a {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 0 0.25rem;
    padding: 0.75rem 0.5rem;
    color: var(--darkblue);
}

.product-category-header__subcategories a:hover {
    background-color: var(--bleuclair);
    color: var(--blanc)
}

.product-category-header__subcategory.active {
    background-color: var(--bleuclair);

}

.product-category-header__subcategory.active a {
    color: #FFFFFF;
}

.product-matieres-item {
    position: relative;
}

.product-matieres-item .vignet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-matieres-item h2 {
    position: absolute;
    left: 1.5rem;
    top: 0;
    height: 100%;
    width: 30%;
    background-color: var(--blanc);
    padding: 0.5rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-left: 1px solid rgb(200, 200, 200);
    border-right: 1px solid rgb(200, 200, 200);
    font-size: 0.9rem !important;
}

@media screen and (max-width: 500px) {
    .product-matieres-item h2 {
        font-size: 0.75rem !important;
    }
}

@media screen and (max-width: 580px) {
    .product-matieres-item h2 {
        width: 45%;
        font-size: 0.7rem !important;
    }
}

.content-product .ref {
    font-size: 1.5rem;
}

.content-product .galerie .swiper-slide {
    border: 1px solid rgb(230, 230, 230);
}

.content-product .galerie .swiper-slide .vs img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.content-product .galerie .swiper-button-next, .content-product .galerie .swiper-button-prev {
    color: var(--blanc) !important;
    height: 30px !important;
    width: 30px;
    border-radius: 50%;
    background-color: var(--darkblue);
}

.content-product .galerie .swiper-button-next svg, .content-product .galerie .swiper-button-prev svg {
    height: 65%;
}

.content-product .labels {
    gap: 1rem;
}

.content-product .labels .label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--bleuclair);
    color: var(--blanc);
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(-20deg);
}

.content-product .labels .label > span {
    display: inline-block;
    width: 80%;
}

@media screen and (min-width: 1920px) {
    main {
        max-width: 1440px;
    }

    .product-category-archive main, .content-product main {
        max-width: calc(50% + 720px);
    }
}

.product-tags-list {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto
}

.product-tags-list .swiper {
    padding-bottom: 3rem;
}

.product-tags-list .swiper-pagination {
    display: inline-flex;
    gap: 0.25rem;
    justify-content: center
}

.product-tags-list .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
}

.product-tags-list .swiper-pagination-bullet-active {
    background-color: var(--darkblue)
}

.product-tags-list .picto {
    border-radius: 50%;
    overflow: clip;
    width: 100px;
    height: 100px;
    background-color: rgb(220, 220, 220);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.product-tags-list a:hover .picto {
    opacity: 0.8
}

.product-tags-list .picto img {
    width: 100%;
}

.product-tags-list .nom {
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 0.35rem 0;
    line-height: 1.05
}

.product-tags-list a {
    color: var(--darkblue)
}

.notification-page {
    border-bottom: 1px solid var(--vert);
}

.notification-page span {
    font-weight: bold;
    display: inline-block;
    background-color: var(--vert);
    color: var(--blanc);
    padding: 0.35rem 1.35rem;
    border-radius: 0 2rem 2rem 0;
    font-size: 0.9rem;
}

.fil-ariane {
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    padding: 0 5%;
    margin-bottom:3.5rem;
}

.fil-ariane > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.5rem;
}

/*  woocommerce pages */

.woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none
}

.woocommerce-MyAccount-navigation ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--darkblue);
}

.woocommerce-MyAccount-navigation ul li.is-active {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.25rem;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--darkblue);
}

.woocommerce-info {
    border-top: none;
    background-color: transparent;
}

.woocommerce-Button {
    background: var(--darkblue) !important;
    color: var(--blanc) !important
}

.woocommerce nav.woocommerce-pagination ul {
    border: none
}

.woocommerce nav.woocommerce-pagination ul li {
    border-right: none
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    font-weight: bold;
    background-color: transparent
}

.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
    color: var(--darkblue)
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    color: var(--bleuclair);
    background-color: transparent
}


.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
}

.product-list a {
    color: var(--darkblue);
}

.product-list h3, .woocommerce-loop-product__title {
    font-size: 1rem !important;
    margin: 0;
    padding : 0 !important;
}

@media screen and (max-width:600px){
    .product-list h3, .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
    }
}

.woocommerce-Price-amount {
    font-size: 1.15rem;
    color: var(--darkblue);
}

.summary .woocommerce-Price-amount {
    font-size: 2rem;
}

.product-card__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* .product-card__info h2 {
    font-weight: bold
} */

.product-card__image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: clip;
    border: 1px solid transparent
}

.product-card__sku {
    color: var(--darkblue);
}
@media screen and (max-width:600px){
    .product-card__sku {
        font-size:0.85rem
    }
}

a.woocommerce-loop-product__link:hover {
    color: var(--bleuclair)
}

.product-card__image img, .woocommerce ul.products li.product a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 0;
}

.product-card__price {
    margin: 0.5em 0;
}

.woocommerce-Price-currencySymbol {
    display: inline-block;
    vertical-align: top;
    font-size: 0.8em;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
    color: var(--darkblue);
}

.product .add_to_cart_button {
    display: none !important;
}

.woocommerce-products-header__title, .woocommerce-breadcrumb {
    text-align: center
}

.woocommerce-result-count {
    font-weight: bold;
    font-size: 0.8rem;
}

.woocommerce-ordering select {
    background-color: var(--blanc);
    color: var(--darkblue);
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--darkblue);
    font-family: 'Montserrat', sans-serif;
    border-radius: 0;
}

.woocommerce-ordering select option {
    border-radius: 0;
}

/* Grille produits responsive */
/* .woocommerce ul.products[class*=columns-] li.product{
    width: 100% !important;
    margin-right: 0 !important;
} */
@media screen and (min-width: 768px) {
    /* .woocommerce ul.products[class*=columns-] li.product{
        width: 48% !important;
        margin-right: 4% !important;
    }
    .woocommerce ul.products[class*=columns-] li.product:nth-child(2n){
        margin-right: 0 !important;
    } */
}

@media screen and (min-width: 992px) {
    /* .woocommerce ul.products[class*=columns-] li.product{
        width: 30.66% !important;
        margin-right: 4% !important;
    }
    .woocommerce ul.products[class*=columns-] li.product:nth-child(2n){
        margin-right: 4% !important;
    }
    .woocommerce ul.products[class*=columns-] li.product:nth-child(3n){
        margin-right: 0 !important;
    } */
}

@media screen and (min-width: 1024px) {
    /* .woocommerce ul.products[class*=columns-] li.product{
        width: 22% !important;
        margin-right: 4% !important;
    }
    .woocommerce ul.products[class*=columns-] li.product:nth-child(3n){
        margin-right: 4% !important;
    }
    .woocommerce ul.products[class*=columns-] li.product:nth-child(4n){
        margin-right: 0 !important;
    } */
}

.woocommerce-info::before {
    color: var(--darkblue) !important;
}

.woocommerce-error, .woocommerce-info, .woocommerce-message {
    color: var(--darkblue);
    font-weight: bold;
}

.woocommerce div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.woo-variation-product-gallery {
    flex: 1 0 45%;
    display: flex;
    flex-direction: column;
    max-width: 45% !important;
    width: auto;
}

@media screen and (max-width: 768px) {
    .woo-variation-product-gallery {
        flex: 1 0 100%;
        max-width: 100% !important;
    }
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background-color: var(--vert);
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
    background-color: var(--darkblue);
}

.woocommerce div.product form.cart {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.woocommerce div.product form.cart .quantity {
    display: flex;
    flex: 0 0 10%;
    margin: 0;
}

.woocommerce .quantity .qty {
    flex: 1 1 auto;
    font-size: 1.15rem;
}

.woo-variation-gallery-slider {
    border: 1px solid rgb(230, 230, 230)
}

.woo-variation-gallery-thumbnail-slider {
    margin-top: 1rem !important
}

.wvg-gallery-thumbnail-image > div {
    border: 1px solid rgb(180, 180, 180)
}

/*COLORIS*/
.woocommerce-page.term-coloris ul.products.columns-3 li.product img,
.woocommerce.term-matieres ul.products.columns-3 li.product img {
    height: 100%;
}

.term-coloris .product-matieres-item .vignet img {
    object-fit: cover;
}

.woocommerce.term-coloris ul.products li.product .vignet {
    border-top-right-radius: 5rem;
    border-bottom-right-radius: 5rem;
    overflow: hidden;
}

@media screen and (min-width: 992px) {
    .woocommerce.term-coloris ul.products::before {
        content: inherit;
    }

    .woocommerce.term-coloris ul.products {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 3rem 6rem;
    }

    .woocommerce.term-coloris ul.products li.product {
        float: none;
        width: 100%;
        margin: 0;
    }

    .term-coloris  [data-ratio="matiere"]::before {
        padding-top: 120px;
    }
}
