/* =========================================================
   JADE INSPIRATIONS
   FICHE PRODUIT 100 % SUR MESURE
   ========================================================= */

.jade-product-page {
    background: #f9f6f1;
    color: #27211c;
    overflow: hidden;
}

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


/* =========================================================
   TOP
   ========================================================= */

.jade-product-top {
    padding: 42px 0 90px;

    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(188, 154, 116, .12),
            transparent 30%
        ),
        #f8f4ee;
}

.jade-product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 38px;

    color: #9a897b;

    font-size: 10px;
    line-height: 1.5;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.jade-product-breadcrumb a {
    color: #77685b;
    text-decoration: none;
}

.jade-product-breadcrumb a:hover {
    color: #987052;
}


.jade-product-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(380px, .92fr);

    gap: clamp(50px, 7vw, 95px);

    align-items: start;
}


/* =========================================================
   GALERIE
   ========================================================= */

.jade-product-gallery {
    min-width: 0;
}

.jade-product-gallery
.woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.jade-product-gallery
.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}

.jade-product-gallery
.woocommerce-product-gallery__image {
    overflow: hidden;

    border-radius: 26px;

    background: #fff;

    box-shadow:
        0 26px 70px rgba(55, 42, 31, .08);
}

.jade-product-gallery
.woocommerce-product-gallery__image a {
    display: block;
}

.jade-product-gallery
.woocommerce-product-gallery__image img {
    display: block;

    width: 100% !important;
    height: auto !important;

    aspect-ratio: 1 / .95;

    object-fit: contain;

    padding: clamp(28px, 5vw, 62px);

    transition:
        transform .55s cubic-bezier(.2,.7,.2,1);
}

@media (hover: hover) {

    .jade-product-gallery
    .woocommerce-product-gallery__image:hover img {
        transform: scale(1.035);
    }

}


/* MINIATURES */

.jade-product-gallery
.flex-control-thumbs {
    display: grid !important;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;

    margin: 15px 0 0 !important;
    padding: 0 !important;
}

.jade-product-gallery
.flex-control-thumbs li {
    float: none !important;
    width: auto !important;

    margin: 0 !important;

    list-style: none;
}

.jade-product-gallery
.flex-control-thumbs img {
    width: 100% !important;

    aspect-ratio: 1;

    object-fit: contain;

    padding: 8px;

    border-radius: 12px;

    background: #fff;

    border: 1.5px solid transparent;

    opacity: .7;

    transition:
        opacity .2s ease,
        border-color .2s ease;
}

.jade-product-gallery
.flex-control-thumbs img.flex-active,
.jade-product-gallery
.flex-control-thumbs img:hover {
    opacity: 1;
    border-color: #b7906d;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.jade-product-summary {
    position: sticky;
    top: 32px;

    min-width: 0;

    padding-top: 18px;
}

.jade-product-eyebrow,
.jade-product-kicker {
    margin: 0 0 14px;

    color: #9b7453;

    font-size: 11px;
    line-height: 1.4;

    font-weight: 700;

    letter-spacing: .17em;
    text-transform: uppercase;
}

.jade-product-title {
    margin: 0;

    color: #28211c;

    font-size: clamp(
        38px,
        4.3vw,
        62px
    );

    line-height: 1.02;

    letter-spacing: -.04em;

    font-weight: 500;
}

.jade-product-rating {
    margin-top: 18px;
}

.jade-product-rating
.star-rating {
    float: none;
}

.jade-product-price {
    margin-top: 23px;

    color: #725239;

    font-size: 25px;
    line-height: 1.3;

    font-weight: 700;
}

.jade-product-price p.price {
    margin: 0 !important;

    color: inherit !important;

    font-size: inherit !important;
}

.jade-product-price del {
    color: #a99d93;
    font-size: .72em;
    font-weight: 400;
}

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

.jade-product-intro {
    max-width: 600px;

    margin-top: 24px;

    color: #6f655d;

    font-size: 15px;
    line-height: 1.8;
}

.jade-product-intro p {
    margin: 0 0 12px;
}


/* =========================================================
   CONFIANCE
   ========================================================= */

.jade-product-trust {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 28px;
}

.jade-product-trust > div {
    padding: 16px 17px;

    border-radius: 15px;

    background:
        rgba(255,255,255,.68);

    border:
        1px solid rgba(
            80,
            61,
            45,
            .08
        );
}

.jade-product-trust strong {
    display: block;

    margin-bottom: 4px;

    color: #41352c;

    font-size: 11px;
}

.jade-product-trust span {
    display: block;

    color: #8b7e73;

    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   ACHAT / VARIATIONS
   ========================================================= */

.jade-product-buy {
    margin-top: 30px;
}

.jade-product-buy
.cart {
    margin: 0 !important;
}

.jade-product-buy
.variations {
    width: 100% !important;

    margin: 0 0 20px !important;

    border: 0 !important;
}

.jade-product-buy
.variations tbody,
.jade-product-buy
.variations tr,
.jade-product-buy
.variations th,
.jade-product-buy
.variations td {
    display: block;

    width: 100%;

    border: 0 !important;
}

.jade-product-buy
.variations tr {
    margin-bottom: 15px;
}

.jade-product-buy
.variations th {
    padding: 0 0 7px !important;

    text-align: left;
}

.jade-product-buy
.variations label {
    color: #4b3e34;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .05em;
}

.jade-product-buy
.variations td {
    padding: 0 !important;
}

.jade-product-buy select {
    width: 100%;

    min-height: 50px;

    padding:
        0
        45px
        0
        17px;

    border:
        1.5px solid
        rgba(61, 47, 37, .16);

    border-radius: 13px;

    background: #fff;

    color: #40352c;

    font-size: 13px;

    outline: none;
}

.jade-product-buy select:focus {
    border-color: #aa805d;
}

.jade-product-buy
.reset_variations {
    display: inline-block;

    margin-top: 8px;

    color: #89684d;

    font-size: 11px;
}


/* VARIATION PRICE */

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

.jade-product-buy
.woocommerce-variation-price {
    margin-bottom: 14px;

    color: #725239;

    font-size: 20px;
    font-weight: 700;
}


/* QTY + BOUTON */

.jade-product-buy
.woocommerce-variation-add-to-cart,
.jade-product-buy
form.cart:not(.variations_form) {
    display: flex;

    gap: 10px;

    align-items: stretch;

    flex-wrap: wrap;
}

.jade-product-buy
.quantity {
    margin: 0 !important;
}

.jade-product-buy
.quantity .qty {
    width: 70px !important;
    height: 52px;

    padding: 0 8px;

    border:
        1.5px solid
        rgba(55, 43, 34, .15);

    border-radius: 999px;

    background: #fff;

    text-align: center;

    font-size: 13px;
}

.jade-product-buy
.single_add_to_cart_button {
    flex: 1;

    min-width: 210px;

    min-height: 52px !important;

    margin: 0 !important;

    padding: 0 26px !important;

    border: 2px solid #29221d !important;

    border-radius: 999px !important;

    background: #29221d !important;

    color: #fff !important;

    font-size: 12px !important;

    line-height: 1 !important;

    font-weight: 700 !important;

    letter-spacing: .035em;

    text-transform: none !important;

    box-shadow: none !important;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease !important;
}

.jade-product-buy
.single_add_to_cart_button:hover {
    background: #9e7654 !important;

    border-color: #9e7654 !important;

    transform: translateY(-2px);
}


/* STOCK */

.jade-product-buy
.stock {
    margin: 12px 0 !important;

    color: #6e8066 !important;

    font-size: 11px !important;

    font-weight: 600;
}

.jade-product-buy
.out-of-stock {
    color: #9e5e55 !important;
}


/* =========================================================
   META
   ========================================================= */

.jade-product-meta {
    display: flex;

    gap: 28px;

    flex-wrap: wrap;

    margin-top: 27px;
    padding-top: 21px;

    border-top:
        1px solid
        rgba(57, 45, 35, .09);
}

.jade-product-meta > div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.jade-product-meta span {
    color: #a29285;

    font-size: 9px;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.jade-product-meta strong,
.jade-product-meta a {
    color: #493b30;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   HISTOIRE / DESCRIPTION
   ========================================================= */

.jade-product-story {
    padding: 105px 0;

    background: #fffdfa;
}

.jade-product-story__grid {
    display: grid;

    grid-template-columns:
        minmax(260px, .75fr)
        minmax(0, 1.25fr);

    gap: 90px;

    align-items: start;
}

.jade-product-story h2,
.jade-product-section-head h2,
.jade-product-final h2 {
    margin: 0;

    color: #2b241f;

    font-size: clamp(
        36px,
        4.2vw,
        58px
    );

    line-height: 1.04;

    letter-spacing: -.035em;

    font-weight: 500;
}

.jade-product-story h2 em,
.jade-product-section-head h2 em,
.jade-product-final h2 em {
    display: block;

    color: #a87d59;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;
}

.jade-product-description {
    color: #685f57;

    font-size: 15px;
    line-height: 1.85;
}

.jade-product-description > *:first-child {
    margin-top: 0;
}

.jade-product-description h2,
.jade-product-description h3,
.jade-product-description h4 {
    margin:
        33px
        0
        13px;

    color: #302821;

    font-size: 25px;

    line-height: 1.2;

    font-weight: 500;
}

.jade-product-description img {
    max-width: 100%;
    height: auto;

    border-radius: 18px;
}


/* =========================================================
   DETAILS / TABS
   ========================================================= */

.jade-product-details {
    padding: 100px 0;

    background: #f6f1ea;
}

.jade-product-section-head {
    display: grid;

    grid-template-columns:
        1fr
        minmax(250px, 410px);

    gap: 60px;

    align-items: end;

    margin-bottom: 42px;
}

.jade-product-section-head > p {
    margin: 0;

    color: #766b61;

    line-height: 1.75;
}


/* TABS Woo customisées */

.jade-product-tabs
.woocommerce-tabs {
    margin: 0 !important;
}

.jade-product-tabs
ul.tabs {
    display: flex !important;

    gap: 9px;

    margin: 0 0 25px !important;
    padding: 0 !important;

    border: 0 !important;

    list-style: none !important;
}

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

.jade-product-tabs
ul.tabs li {
    margin: 0 !important;

    padding: 0 !important;

    border:
        1.5px solid
        rgba(60, 47, 37, .12) !important;

    border-radius: 999px !important;

    background: transparent !important;
}

.jade-product-tabs
ul.tabs li::before,
.jade-product-tabs
ul.tabs li::after {
    display: none !important;
}

.jade-product-tabs
ul.tabs li a {
    display: block;

    padding: 12px 19px !important;

    color: #66574b !important;

    font-size: 11px;

    font-weight: 700 !important;

    text-decoration: none !important;
}

.jade-product-tabs
ul.tabs li.active {
    background: #29221d !important;

    border-color: #29221d !important;
}

.jade-product-tabs
ul.tabs li.active a {
    color: #fff !important;
}

.jade-product-tabs
.woocommerce-Tabs-panel {
    margin: 0 !important;

    padding: 34px !important;

    border-radius: 20px;

    background: #fff;

    color: #685f57;

    line-height: 1.8;

    box-shadow:
        0 15px 42px
        rgba(54, 42, 31, .05);
}

.jade-product-tabs
.woocommerce-Tabs-panel > h2:first-child {
    display: none;
}


/* =========================================================
   RELATED
   ========================================================= */

.jade-product-related {
    padding: 105px 0 115px;

    background: #fffdfa;
}

.jade-product-section-link {
    display: inline-flex;

    gap: 9px;

    align-items: center;

    color: #73553e;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;
}

.jade-product-section-link span {
    transition: transform .2s ease;
}

.jade-product-section-link:hover span {
    transform: translateX(4px);
}

.jade-related-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;
}

.jade-related-card {
    min-width: 0;

    transition:
        transform .28s ease;
}

.jade-related-card__media {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 1.08;

    overflow: hidden;

    border-radius: 19px;

    background: #fff;

    box-shadow:
        0 16px 40px
        rgba(54, 42, 31, .06);

    transition:
        box-shadow .3s ease;
}

.jade-related-card__media img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain;

    padding: 24px;

    transform: scale(.94);

    transition:
        transform .5s
        cubic-bezier(.2,.7,.2,1);
}

@media (hover: hover) {

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

    .jade-related-card:hover
    .jade-related-card__media {
        box-shadow:
            0 23px 55px
            rgba(54,42,31,.1);
    }

    .jade-related-card:hover
    .jade-related-card__media img {
        transform: scale(1.03);
    }

}

.jade-related-card__body {
    padding: 17px 3px 0;
}

.jade-related-card__body > p {
    margin: 0 0 6px;

    color: #a08e7e;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.jade-related-card h3 {
    margin: 0;

    font-size: 17px;

    line-height: 1.25;

    font-weight: 500;
}

.jade-related-card h3 a {
    color: #2c2520;

    text-decoration: none;
}

.jade-related-card__price {
    margin-top: 8px;

    color: #75553d;

    font-size: 14px;

    font-weight: 700;
}

.jade-related-card__link {
    display: inline-flex;

    gap: 7px;

    margin-top: 12px;

    color: #72543e;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;
}


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

.jade-product-final {
    padding: 80px 0;

    background: #28211d;

    color: #fff;
}

.jade-product-final__inner {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 60px;
}

.jade-product-final .jade-product-kicker {
    color: #d6b18d;
}

.jade-product-final h2 {
    max-width: 680px;

    color: #fff;
}

.jade-product-final h2 em {
    color: #d6b18d;
}

.jade-product-final__actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.jade-product-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 49px;

    padding: 0 22px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;
}

.jade-product-btn--light {
    background: #fff;

    color: #352b24;
}

.jade-product-btn--outline {
    border:
        2px solid
        rgba(255,255,255,.35);

    color: #fff;
}


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

@media (max-width: 980px) {

    .jade-product-main {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .jade-product-summary {
        position: static;

        padding-top: 0;
    }

    .jade-product-story__grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .jade-related-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .jade-product-section-head {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .jade-product-final__inner {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 620px) {

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

    .jade-product-top {
        padding: 30px 0 64px;
    }

    .jade-product-breadcrumb {
        margin-bottom: 27px;

        font-size: 8.5px;
    }

    .jade-product-title {
        font-size: clamp(
            34px,
            11vw,
            48px
        );
    }

    .jade-product-gallery
    .woocommerce-product-gallery__image {
        border-radius: 19px;
    }

    .jade-product-gallery
    .woocommerce-product-gallery__image img {
        padding: 24px;
    }

    .jade-product-gallery
    .flex-control-thumbs {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }

    .jade-product-trust {
        grid-template-columns: 1fr;
    }

    .jade-product-buy
    .woocommerce-variation-add-to-cart,
    .jade-product-buy
    form.cart:not(.variations_form) {
        align-items: stretch;
    }

    .jade-product-buy
    .single_add_to_cart_button {
        min-width: 0;
    }

    .jade-product-story,
    .jade-product-details,
    .jade-product-related {
        padding: 72px 0;
    }

    .jade-product-tabs
    ul.tabs {
        overflow-x: auto;

        padding-bottom: 4px !important;
    }

    .jade-product-tabs
    ul.tabs li {
        flex: 0 0 auto;
    }

    .jade-product-tabs
    .woocommerce-Tabs-panel {
        padding: 24px 18px !important;
    }

    .jade-related-grid {
        gap: 35px 12px;
    }

    .jade-related-card__media img {
        padding: 15px;
    }

    .jade-related-card h3 {
        font-size: 14px;
    }

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

    .jade-product-final__actions {
        width: 100%;

        flex-direction: column;
    }

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

}

/* =========================================================
   JADE PRODUCT INTRO - ENCADRE PREMIUM
   ========================================================= */

.jade-product-intro {
    position: relative;

    max-width: 620px;

    margin-top: 24px;
    padding: 20px 22px 20px 24px;

    border: 1.5px solid rgba(126, 91, 62, .12);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.82) 0%,
            rgba(248,243,236,.92) 100%
        );

    box-shadow:
        0 12px 30px rgba(66, 48, 33, .05);

    color: #645b53;

    font-size: 15px;
    line-height: 1.8;
}

.jade-product-intro::before {
    content: "";

    position: absolute;

    top: 18px;
    bottom: 18px;
    left: 0;

    width: 3px;

    border-radius: 0 3px 3px 0;

    background: #b88c66;
}

.jade-product-intro p {
    margin: 0 0 12px;
}

.jade-product-intro p:last-child {
    margin-bottom: 0;
}

.jade-product-intro strong {
    color: #3f342b;
    font-weight: 700;
}

.jade-product-intro a {
    color: #8b6547;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (max-width: 620px) {

    .jade-product-intro {
        padding: 18px 18px 18px 21px;
        border-radius: 15px;
        font-size: 14px;
    }

    .jade-product-intro::before {
        top: 15px;
        bottom: 15px;
    }
}

