/* =========================================================
   JADE INSPIRATIONS
   CATEGORIES + SOUS-CATEGORIES WOOCOMMERCE
   100 % SUR MESURE
   ========================================================= */

.jade-category-page {
    background: #f9f6f1;
    color: #241f1b;
    overflow: hidden;
}

.jade-category-shell {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}


/* =========================================================
   HERO
   ========================================================= */

.jade-category-hero {
    padding: 70px 0 78px;
    background:
        radial-gradient(
            circle at 86% 16%,
            rgba(190, 154, 116, .18),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #faf6ef 0%,
            #eee2d3 100%
        );
}

.jade-category-hero__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(330px, .85fr);
    gap: 76px;
    align-items: center;
}

.jade-category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9b8979;
}

.jade-category-breadcrumb a {
    color: #77675a;
    text-decoration: none;
}

.jade-category-breadcrumb a:hover {
    color: #9c7554;
}

.jade-category-eyebrow,
.jade-category-kicker {
    margin: 0 0 14px;
    color: #9b7554;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.jade-category-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(46px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 500;
}

.jade-category-description {
    max-width: 680px;
    margin-top: 25px;
    color: #675e56;
    font-size: 16px;
    line-height: 1.8;
}

.jade-category-description p {
    margin: 0 0 12px;
}

.jade-category-description p:last-child {
    margin-bottom: 0;
}

.jade-category-hero__meta {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-top: 27px;
    color: #8e7e70;
    font-size: 12px;
}

.jade-category-dot {
    opacity: .45;
}

.jade-category-hero__visual {
    display: flex;
    justify-content: center;
}

.jade-category-hero__image,
.jade-category-hero__monogram {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 1 / .92;
    border-radius: 30px;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 26px 65px rgba(74, 55, 38, .09);
    overflow: hidden;
}

.jade-category-hero__image::after,
.jade-category-hero__monogram::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(87, 65, 47, .08);
    border-radius: inherit;
    pointer-events: none;
}

.jade-category-hero__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 30px;
}

.jade-category-hero__monogram {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jade-category-hero__monogram span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 150px;
    line-height: 1;
    color: rgba(168, 124, 86, .18);
}


/* =========================================================
   TITRES DE SECTIONS
   ========================================================= */

.jade-category-section-head {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px);
    gap: 60px;
    align-items: end;
    margin-bottom: 42px;
}

.jade-category-section-head h2,
.jade-products-toolbar h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 500;
}

.jade-category-section-head > p {
    margin: 0;
    color: #71675f;
    line-height: 1.75;
}


/* =========================================================
   SOUS-CATEGORIES
   ========================================================= */

.jade-subcategories {
    padding: 88px 0 98px;
    background: #fffdf9;
}

.jade-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.jade-subcategory-card {
    min-width: 0;
}

.jade-subcategory-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / .9;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(
            180deg,
            #fff 0%,
            #faf7f2 100%
        );
    box-shadow: 0 17px 42px rgba(57, 43, 31, .065);
}

.jade-subcategory-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(96, 72, 51, .075);
    border-radius: inherit;
    pointer-events: none;
}

.jade-subcategory-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 26px;
    object-fit: contain;
    transform: scale(.93);
    transition: transform .45s ease;
}

.jade-subcategory-card:hover
.jade-subcategory-card__media img {
    transform: scale(.98);
}

.jade-subcategory-card__letter {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 92px;
    color: rgba(161, 118, 82, .19);
}

.jade-subcategory-card__body {
    padding: 18px 4px 0;
}

.jade-subcategory-card__meta {
    margin-bottom: 7px;
    color: #a29080;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.jade-subcategory-card h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 500;
}

.jade-subcategory-card h3 a {
    color: #28211c;
    text-decoration: none;
}

.jade-subcategory-card__link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 13px;
    color: #76573f;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.jade-subcategory-card__link span {
    transition: transform .2s ease;
}

.jade-subcategory-card__link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   PRODUITS
   ========================================================= */

.jade-category-products {
    padding: 96px 0 110px;
}

.jade-products-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 45px;
    margin-bottom: 42px;
}

.jade-products-toolbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.jade-products-toolbar__right
.woocommerce-result-count {
    margin: 0;
    color: #8a7d72;
    font-size: 12px;
}

.jade-products-toolbar__right
.woocommerce-ordering {
    margin: 0;
}

.jade-products-toolbar__right
.woocommerce-ordering select {
    min-width: 205px;
    min-height: 44px;
    padding: 0 38px 0 15px;
    border: 1px solid rgba(57, 45, 35, .13);
    border-radius: 999px;
    background: #fff;
    color: #463b32;
    font-size: 12px;
    outline: none;
}

.jade-products-grid {
    display: grid !important;
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;
    gap: 38px 22px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.jade-product-card {
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
}

.jade-product-card::before,
.jade-product-card::after {
    display: none !important;
}

.jade-product-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(55, 43, 32, .065);
    text-decoration: none;
}

.jade-product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(79, 60, 44, .07);
    border-radius: inherit;
    pointer-events: none;
}

.jade-product-card__media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 25px !important;
    object-fit: contain !important;
    transform: scale(.94);
    transition: transform .45s ease;
}

.jade-product-card:hover
.jade-product-card__media img {
    transform: scale(.985);
}

.jade-product-card__badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #2a231e;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.jade-product-card__body {
    padding: 18px 4px 0;
}

.jade-product-card__category {
    margin-bottom: 7px;
    color: #a08d7d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jade-product-card__title {
    margin: 0 !important;
    min-height: 2.45em;
    font-size: 17px !important;
    line-height: 1.23 !important;
    letter-spacing: -.015em;
    font-weight: 500 !important;
}

.jade-product-card__title a {
    color: #29221d;
    text-decoration: none;
}

.jade-product-card__title a:hover {
    color: #9b7352;
}

.jade-product-card__price {
    margin-top: 10px;
    color: #6d5038;
    font-size: 15px;
    font-weight: 700;
}

.jade-product-card__price del {
    margin-right: 5px;
    color: #a99d94;
    font-weight: 400;
}

.jade-product-card__price ins {
    text-decoration: none;
}

.jade-product-card__actions {
    margin-top: 15px;
}

.jade-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 100%;
    padding: 0 15px;
    border: 1px solid rgba(47, 38, 31, .13);
    border-radius: 999px;
    background: transparent;
    color: #342b24;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.jade-product-card__button:hover {
    background: #2b241f;
    border-color: #2b241f;
    color: #fff;
    transform: translateY(-1px);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.jade-category-pagination {
    margin-top: 64px;
}

.jade-category-pagination
.woocommerce-pagination {
    margin: 0;
}

.jade-category-pagination
.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.jade-category-pagination
.woocommerce-pagination
ul.page-numbers li {
    float: none !important;
    margin: 0 !important;
    border: 0 !important;
}

.jade-category-pagination
.page-numbers a,
.jade-category-pagination
.page-numbers span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid rgba(54, 43, 34, .1) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #5f5146 !important;
    text-decoration: none;
    font-size: 12px;
}

.jade-category-pagination
.page-numbers .current {
    background: #2b241f !important;
    border-color: #2b241f !important;
    color: #fff !important;
}


/* =========================================================
   VIDE
   ========================================================= */

.jade-category-empty {
    max-width: 620px;
    margin: 40px auto;
    padding: 70px 30px;
    text-align: center;
}

.jade-category-empty__mark {
    display: block;
    margin-bottom: 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 92px;
    line-height: .8;
    color: rgba(166, 124, 88, .2);
}

.jade-category-empty h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 500;
}

.jade-category-empty p {
    margin: 14px 0 24px;
    color: #746a61;
}

.jade-category-empty a {
    color: #72543e;
    font-weight: 700;
}


/* =========================================================
   CTA FINAL
   ========================================================= */

.jade-category-final {
    padding: 78px 0;
    background: #27211d;
    color: #fff;
}

.jade-category-final__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.jade-category-final .jade-category-kicker {
    color: #d4ae8a;
}

.jade-category-final h2 {
    margin: 0;
    max-width: 650px;
    color: #fff;
    font-size: clamp(35px, 4vw, 54px);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 500;
}

.jade-category-final h2 em {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    color: #d4ae8a;
}

.jade-category-final__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.jade-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.jade-category-btn--light {
    background: #fff;
    color: #342b25;
}

.jade-category-btn--outline {
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
}


/* =========================================================
   DESACTIVATION DES VIEILLES REGLES WOO SUR CETTE PAGE
   ========================================================= */

.jade-category-page
ul.products,
.jade-category-page
.products {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.jade-category-page
.product-small,
.jade-category-page
.col-inner,
.jade-category-page
.box {
    max-width: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .jade-subcategory-grid,
    .jade-products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}


@media (max-width: 900px) {

    .jade-category-hero__grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .jade-category-hero__visual {
        justify-content: flex-start;
    }

    .jade-category-hero__image,
    .jade-category-hero__monogram {
        width: min(100%, 500px);
    }

    .jade-category-section-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jade-subcategory-grid,
    .jade-products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .jade-products-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .jade-products-toolbar__right {
        width: 100%;
        justify-content: space-between;
    }

    .jade-category-final__inner {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 580px) {

    .jade-category-shell {
        width: min(100% - 28px, 1240px);
    }

    .jade-category-hero {
        padding: 48px 0 58px;
    }

    .jade-category-breadcrumb {
        margin-bottom: 26px;
        font-size: 9px;
    }

    .jade-category-hero h1 {
        font-size: clamp(39px, 12vw, 55px);
    }

    .jade-category-description {
        font-size: 14px;
        line-height: 1.75;
    }

    .jade-subcategories,
    .jade-category-products {
        padding: 68px 0 76px;
    }

    .jade-subcategory-grid {
        grid-template-columns: 1fr !important;
        gap: 38px;
    }

    .jade-products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 34px 12px !important;
    }

    .jade-product-card__media {
        border-radius: 15px;
    }

    .jade-product-card__media img {
        padding: 15px !important;
    }

    .jade-product-card__body {
        padding: 13px 1px 0;
    }

    .jade-product-card__category {
        font-size: 8px;
    }

    .jade-product-card__title {
        min-height: 0;
        font-size: 14px !important;
    }

    .jade-product-card__price {
        font-size: 13px;
    }

    .jade-product-card__button {
        min-height: 37px;
        padding: 0 8px;
        font-size: 9px;
    }

    .jade-products-toolbar__right {
        align-items: flex-start;
        flex-direction: column;
    }

    .jade-products-toolbar__right
    .woocommerce-ordering,
    .jade-products-toolbar__right
    .woocommerce-ordering select {
        width: 100%;
    }

    .jade-category-final {
        padding: 65px 0;
    }

    .jade-category-final__actions {
        width: 100%;
        flex-direction: column;
    }

    .jade-category-btn {
        width: 100%;
    }

}

/* JADE - BOUTONS CATEGORIES : TRAITS PLUS PRESENTS */

.jade-product-card__button {
    border-width: 2px;
}

.jade-category-btn--outline {
    border-width: 2px;
}

.jade-products-toolbar__right
.woocommerce-ordering select {
    border-width: 1.5px;
}

.jade-category-pagination
.page-numbers a,
.jade-category-pagination
.page-numbers span {
    border-width: 1.5px !important;
}


/* =========================================================
   JADE - HOVER PREMIUM CARTES
   ========================================================= */

/* Sous-catégories */
.jade-subcategory-card {
    transition:
        transform .28s ease,
        filter .28s ease;
}

.jade-subcategory-card:hover {
    transform: translateY(-3px);
}

.jade-subcategory-card__media {
    transition:
        box-shadow .32s ease,
        transform .32s ease;
}

.jade-subcategory-card:hover
.jade-subcategory-card__media {
    box-shadow:
        0 24px 54px rgba(57, 43, 31, .11);
}

.jade-subcategory-card__media img {
    transition:
        transform .5s cubic-bezier(.2,.7,.2,1);
}

.jade-subcategory-card:hover
.jade-subcategory-card__media img {
    transform: scale(1.035);
}


/* Produits */
.jade-product-card {
    transition:
        transform .28s ease;
}

.jade-product-card:hover {
    transform: translateY(-3px);
}

.jade-product-card__media {
    transition:
        box-shadow .32s ease;
}

.jade-product-card:hover
.jade-product-card__media {
    box-shadow:
        0 24px 54px rgba(55, 43, 32, .11);
}

.jade-product-card__media img {
    transition:
        transform .5s cubic-bezier(.2,.7,.2,1) !important;
}

.jade-product-card:hover
.jade-product-card__media img {
    transform: scale(1.035) !important;
}


/* Pas d'effet hover gênant sur écrans tactiles */
@media (hover: none) {

    .jade-subcategory-card:hover,
    .jade-product-card:hover {
        transform: none;
    }

    .jade-subcategory-card:hover
    .jade-subcategory-card__media img,
    .jade-product-card:hover
    .jade-product-card__media img {
        transform: none !important;
    }
}

