/*
 * FM AFLIWA — FICHE PRODUIT
 * Reproduction fine de la maquette officielle.
 */

:root {
    --fm-pink: #e6007e;
    --fm-pink-dark: #cc006f;
    --fm-text: #17191d;
    --fm-muted: #70757d;
    --fm-border: #e7e8eb;
    --fm-soft: #f8f9fb;
    --fm-green: #19965a;
    --fm-green-bg: #edf9f2;
    --fm-radius: 8px;
}


/* ============================================================
   BASE
   ============================================================ */

.fm-afliwa-product-page,
.fm-afliwa-product-page * {
    box-sizing: border-box;
}

.fm-afliwa-product-page {
    width: 100%;
    background: #fff;
    color: var(--fm-text);
    font-family: inherit;
}

.fm-afliwa-product-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.fm-afliwa-product-page button,
.fm-afliwa-product-page input {
    font-family: inherit;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */

.fm-afliwa-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    font-size: 13px;
    color: #7c8087;
    white-space: nowrap;
    overflow: hidden;
}

.fm-afliwa-breadcrumb a {
    color: #73777e;
    text-decoration: none;
}

.fm-afliwa-breadcrumb a:hover {
    color: var(--fm-pink);
}

.fm-afliwa-breadcrumb span {
    color: #b5b8bd;
}

.fm-afliwa-breadcrumb strong {
    color: #25282d;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
   BLOC PRINCIPAL
   ============================================================ */

.fm-afliwa-product-main {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    padding-bottom: 22px;
}


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

.fm-afliwa-gallery-column {
    min-width: 0;
}

.fm-afliwa-gallery-shell {
    position: relative;
    width: 100%;
}

.fm-afliwa-sale-badge {
    position: absolute;
    z-index: 8;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 7px;
    background: var(--fm-pink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.fm-afliwa-gallery-layout {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.fm-afliwa-thumbs {
    display: flex;
    gap: 9px;
}

.fm-afliwa-thumbs-side {
    flex-direction: column;
}

.fm-afliwa-thumb {
    position: relative;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    padding: 5px;
    border: 1px solid #e5e6e9;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.fm-afliwa-thumb:hover {
    border-color: #c7c9ce;
    transform: translateY(-1px);
}

.fm-afliwa-thumb.is-active {
    border: 2px solid var(--fm-pink);
    padding: 4px;
    box-shadow: 0 0 0 2px rgba(230, 0, 126, .07);
}

.fm-afliwa-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fm-afliwa-main-image-wrap {
    position: relative;
    min-width: 0;
    height: 430px;
    border: 1px solid #e3e5e8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-afliwa-main-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.fm-afliwa-zoom-button {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid #e1e3e6;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #202329;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition:
        color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.fm-afliwa-zoom-button:hover {
    color: var(--fm-pink);
    border-color: var(--fm-pink);
    box-shadow: 0 5px 18px rgba(20,20,20,.08);
}

.fm-afliwa-zoom-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fm-afliwa-no-image {
    color: #9a9da3;
    font-size: 14px;
}

.fm-afliwa-thumbs-bottom {
    margin-left: 100px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.fm-afliwa-thumbs-bottom .fm-afliwa-thumb {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
}


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

.fm-afliwa-summary {
    min-width: 0;
    padding-top: 2px;
}

.fm-afliwa-brand {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--fm-muted);
}

.fm-afliwa-brand strong {
    color: #30343a;
    font-weight: 700;
}

.fm-afliwa-product-title {
    margin: 0 0 10px;
    color: #111318;
    font-size: clamp(34px, 3vw, 43px);
    line-height: 1.06;
    letter-spacing: -1.25px;
    font-weight: 800;
}

.fm-afliwa-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 27px;
    margin-bottom: 13px;
}

.fm-afliwa-stars {
    display: inline-flex;
    gap: 1px;
    color: #f2a900;
    font-size: 21px;
    line-height: 1;
}

.fm-afliwa-stars span {
    color: #f0a800;
}

.fm-afliwa-stars span.is-filled {
    color: #f0a800;
}

.fm-afliwa-review-text {
    font-size: 12px;
    color: #60656c;
}

.fm-afliwa-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 13px;
}

.fm-afliwa-current-price {
    color: var(--fm-pink);
    font-size: 29px;
    line-height: 1;
    font-weight: 800;
}

.fm-afliwa-current-price .woocommerce-Price-currencySymbol {
    margin-left: 2px;
}

.fm-afliwa-old-price {
    color: #92969c;
    font-size: 16px;
    font-weight: 500;
}

.fm-afliwa-discount {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    background: #f6e5ef;
    color: var(--fm-pink);
    font-size: 12px;
    font-weight: 800;
}

.fm-afliwa-short-description {
    max-width: 620px;
    margin-bottom: 18px;
    color: #474b51;
    font-size: 14px;
    line-height: 1.72;
}

.fm-afliwa-short-description p {
    margin: 0 0 9px;
}

.fm-afliwa-short-description p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   STOCK
   ============================================================ */

.fm-afliwa-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin-bottom: 13px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--fm-green-bg);
    color: var(--fm-green);
    font-size: 13px;
    font-weight: 700;
}

.fm-afliwa-stock.out {
    background: #fff0f0;
    color: #d33c3c;
}

.fm-afliwa-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}


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

.fm-afliwa-buy-area {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}

.fm-afliwa-buy-area form.cart {
    display: flex !important;
    align-items: stretch;
    flex: 1;
    gap: 12px;
    margin: 0 !important;
}

.fm-afliwa-buy-area .quantity {
    display: flex !important;
    align-items: stretch;
    margin: 0 !important;
    min-width: 92px;
}

.fm-afliwa-buy-area .quantity .qty {
    width: 92px !important;
    min-height: 53px !important;
    margin: 0 !important;
    border: 1px solid #e1e3e6 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #202329 !important;
    text-align: center;
    font-size: 14px !important;
    box-shadow: none !important;
}

.fm-afliwa-buy-area button.single_add_to_cart_button,
.fm-afliwa-variation-area button.single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 53px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: var(--fm-pink) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .1px;
    box-shadow: none !important;
    transition:
        background .18s ease,
        transform .18s ease;
}

.fm-afliwa-buy-area button.single_add_to_cart_button:hover,
.fm-afliwa-variation-area button.single_add_to_cart_button:hover {
    background: var(--fm-pink-dark) !important;
    transform: translateY(-1px);
}

.fm-afliwa-heart {
    flex: 0 0 53px;
    width: 53px;
    min-height: 53px;
    border: 1px solid #e0e2e5;
    border-radius: 7px;
    background: #fff;
    color: #50545a;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition:
        color .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.fm-afliwa-heart:hover,
.fm-afliwa-heart.is-active {
    color: var(--fm-pink);
    border-color: var(--fm-pink);
}

.fm-afliwa-heart.is-active {
    background: #fff5fa;
}

.fm-afliwa-heart svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   VARIATION AREA
   ============================================================ */

.fm-afliwa-variation-area {
    margin: 3px 0 14px;
}

.fm-afliwa-variation-area form.variations_form {
    margin: 0 !important;
}

.fm-afliwa-variation-area table.variations {
    width: 100%;
    margin: 0 0 10px !important;
    border: 0 !important;
}

.fm-afliwa-variation-area table.variations tr,
.fm-afliwa-variation-area table.variations td,
.fm-afliwa-variation-area table.variations th {
    display: block;
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
}

.fm-afliwa-variation-area table.variations tr {
    margin-bottom: 15px;
}

.fm-afliwa-variation-area table.variations label {
    display: block;
    margin-bottom: 9px;
    color: #25292e;
    font-size: 13px;
    font-weight: 700;
}

.fm-afliwa-variation-area .reset_variations {
    font-size: 11px;
    color: var(--fm-pink);
}

.fm-afliwa-variation-area .single_variation_wrap {
    margin-top: 7px;
}

.fm-afliwa-variation-area .single_variation {
    margin-bottom: 12px;
}

.fm-afliwa-variation-area .woocommerce-variation-price {
    color: var(--fm-pink);
    font-size: 23px;
    font-weight: 800;
}

.fm-afliwa-variation-area .woocommerce-variation-availability {
    margin: 8px 0 12px;
}

.fm-afliwa-variation-area .stock {
    color: var(--fm-green);
    font-weight: 700;
}


/* ============================================================
   TRUST
   ============================================================ */

.fm-afliwa-trust {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    align-items: center;
    min-height: 67px;
    border-top: 1px solid #e6e7e9;
    border-bottom: 1px solid #e6e7e9;
}

.fm-afliwa-trust-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 10px 12px;
}

.fm-afliwa-trust-icon {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    color: var(--fm-pink);
}

.fm-afliwa-trust-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fm-afliwa-trust-item strong {
    display: block;
    color: #272b30;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

.fm-afliwa-trust-item small {
    display: block;
    margin-top: 4px;
    color: #858a91;
    font-size: 10px;
    line-height: 1.25;
}

.fm-afliwa-trust-separator {
    width: 1px;
    height: 34px;
    background: #e1e3e6;
}


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

.fm-afliwa-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    color: #757a81;
    font-size: 11px;
}

.fm-afliwa-meta strong {
    color: #24282d;
}

.fm-afliwa-meta i {
    width: 1px;
    height: 13px;
    background: #dfe1e4;
}

.fm-afliwa-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fm-afliwa-share-button {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f5f7;
    color: #4b5056;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 11px;
    transition:
        background .18s ease,
        color .18s ease;
}

.fm-afliwa-share-button:hover,
.fm-afliwa-share-button.is-copied {
    background: #fff0f7;
    color: var(--fm-pink);
}

.fm-afliwa-share-button svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


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

.fm-afliwa-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 295px;
    gap: 0;
    margin-top: 30px;
    border: 1px solid #e4e5e8;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.fm-afliwa-details-content {
    min-width: 0;
}

.fm-afliwa-tabs {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e3e5e8;
}

.fm-afliwa-tabs button {
    position: relative;
    min-height: 52px;
    padding: 0 21px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: #fff;
    color: #33373d;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.fm-afliwa-tabs button:hover {
    color: var(--fm-pink);
}

.fm-afliwa-tabs button.is-active {
    color: var(--fm-pink);
    border-bottom-color: var(--fm-pink);
}

.fm-afliwa-panel {
    display: none;
    padding: 24px 22px;
    color: #4a4e54;
    font-size: 13px;
    line-height: 1.75;
}

.fm-afliwa-panel.is-active {
    display: block;
}

.fm-afliwa-panel p:first-child {
    margin-top: 0;
}

.fm-afliwa-panel p:last-child {
    margin-bottom: 0;
}

.fm-afliwa-panel img {
    max-width: 100%;
    height: auto;
}

.fm-afliwa-specifications {
    display: grid;
    gap: 0;
}

.fm-afliwa-spec-row {
    display: grid;
    grid-template-columns: minmax(150px, 35%) 1fr;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #eef0f2;
}

.fm-afliwa-spec-row:first-child {
    padding-top: 0;
}

.fm-afliwa-spec-row strong {
    color: #272b30;
}

.fm-afliwa-spec-row span {
    color: #6d7279;
}


/* ============================================================
   POINTS FORTS
   ============================================================ */

.fm-afliwa-features {
    border-left: 1px solid #e4e5e8;
    padding: 22px 17px;
    background: #fafbfc;
}

.fm-afliwa-features-inner {
    display: grid;
    gap: 4px;
}

.fm-afliwa-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 65px;
    padding: 7px 9px;
}

.fm-afliwa-feature-icon {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-right: 1px solid #e3e4e7;
    color: var(--fm-pink);
    display: grid;
    place-items: center;
    padding-right: 10px;
}

.fm-afliwa-feature-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fm-afliwa-feature-copy {
    min-width: 0;
}

.fm-afliwa-feature-copy strong {
    display: block;
    color: #2c3035;
    font-size: 12px;
    font-weight: 750;
}

.fm-afliwa-feature-copy small {
    display: block;
    margin-top: 4px;
    color: #8a8f96;
    font-size: 10px;
    line-height: 1.35;
}

.fm-afliwa-feature-empty {
    min-height: 95px;
}


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

.fm-afliwa-related {
    padding: 30px 0 42px;
}

.fm-afliwa-related-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.fm-afliwa-related-heading > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fm-afliwa-related-heading > div > span {
    width: 38px;
    height: 3px;
    background: var(--fm-pink);
}

.fm-afliwa-related-heading h2 {
    margin: 0;
    color: #1b1e23;
    font-size: 24px;
    font-weight: 800;
}

.fm-afliwa-related-heading > a {
    color: var(--fm-pink);
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.fm-afliwa-related-heading > a b {
    margin-left: 5px;
    font-size: 16px;
}

.fm-afliwa-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.fm-afliwa-related-card {
    min-width: 0;
    border: 1px solid #e5e6e8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition:
        box-shadow .18s ease,
        transform .18s ease;
}

.fm-afliwa-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20,20,20,.07);
}

.fm-afliwa-related-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 14px;
    background: #fff;
}

.fm-afliwa-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fm-afliwa-related-body {
    padding: 0 14px 13px;
}

.fm-afliwa-related-name {
    display: block;
    min-height: 39px;
    color: #25292e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.fm-afliwa-related-name:hover {
    color: var(--fm-pink);
}

.fm-afliwa-related-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.fm-afliwa-related-footer strong {
    color: var(--fm-pink);
    font-size: 16px;
    font-weight: 800;
}

.fm-afliwa-related-cart {
    width: 34px;
    height: 34px;
    border: 1px solid #f2b5d5;
    border-radius: 7px;
    color: var(--fm-pink);
    display: grid;
    place-items: center;
    text-decoration: none;
}

.fm-afliwa-related-cart:hover {
    color: #fff;
    background: var(--fm-pink);
}

.fm-afliwa-related-cart svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fm-afliwa-no-related,
.fm-afliwa-product-error {
    color: #777c83;
    font-size: 14px;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */

.fm-afliwa-no-scroll {
    overflow: hidden !important;
}

.fm-afliwa-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(12,14,18,.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.fm-afliwa-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fm-afliwa-lightbox-image {
    display: block;
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    object-fit: contain;
}

.fm-afliwa-lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}


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

@media (max-width: 1050px) {

    .fm-afliwa-product-container {
        width: min(100% - 32px, 900px);
    }

    .fm-afliwa-product-main {
        gap: 25px;
    }

    .fm-afliwa-product-title {
        font-size: 34px;
    }

    .fm-afliwa-details {
        grid-template-columns: 1fr 260px;
    }

}

@media (max-width: 820px) {

    .fm-afliwa-product-container {
        width: min(100% - 24px, 680px);
    }

    .fm-afliwa-product-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fm-afliwa-main-image-wrap {
        height: min(76vw, 520px);
    }

    .fm-afliwa-details {
        grid-template-columns: 1fr;
    }

    .fm-afliwa-features {
        border-left: 0;
        border-top: 1px solid #e4e5e8;
    }

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

}

@media (max-width: 560px) {

    .fm-afliwa-product-container {
        width: calc(100% - 20px);
    }

    .fm-afliwa-breadcrumb {
        min-height: 45px;
        font-size: 11px;
    }

    .fm-afliwa-gallery-layout {
        grid-template-columns: 1fr;
    }

    .fm-afliwa-thumbs-side {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .fm-afliwa-thumb {
        flex: 0 0 67px;
        width: 67px;
        height: 67px;
    }

    .fm-afliwa-main-image-wrap {
        order: 1;
        height: 82vw;
        max-height: 430px;
    }

    .fm-afliwa-thumbs-bottom {
        margin-left: 0;
    }

    .fm-afliwa-product-title {
        font-size: 29px;
        letter-spacing: -.7px;
    }

    .fm-afliwa-current-price {
        font-size: 25px;
    }

    .fm-afliwa-short-description {
        font-size: 13px;
    }

    .fm-afliwa-buy-area {
        gap: 8px;
    }

    .fm-afliwa-buy-area form.cart {
        gap: 8px;
    }

    .fm-afliwa-buy-area .quantity,
    .fm-afliwa-buy-area .quantity .qty {
        min-width: 76px !important;
        width: 76px !important;
    }

    .fm-afliwa-buy-area button.single_add_to_cart_button {
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .fm-afliwa-heart {
        flex-basis: 48px;
        width: 48px;
        min-height: 48px;
    }

    .fm-afliwa-trust {
        grid-template-columns: 1fr;
        padding: 7px 0;
    }

    .fm-afliwa-trust-separator {
        display: none;
    }

    .fm-afliwa-trust-item {
        padding: 8px 4px;
    }

    .fm-afliwa-meta {
        line-height: 1.7;
    }

    .fm-afliwa-tabs {
        overflow-x: auto;
    }

    .fm-afliwa-tabs button {
        flex: 0 0 auto;
        padding: 0 14px;
    }

    .fm-afliwa-panel {
        padding: 19px 15px;
    }

    .fm-afliwa-related-heading {
        align-items: flex-end;
    }

    .fm-afliwa-related-heading h2 {
        font-size: 20px;
    }

    .fm-afliwa-related-heading > a {
        font-size: 10px;
    }

    .fm-afliwa-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .fm-afliwa-related-image {
        height: 135px;
        padding: 9px;
    }

    .fm-afliwa-related-body {
        padding: 0 9px 10px;
    }

    .fm-afliwa-related-name {
        font-size: 11px;
    }

}



/* ============================================================
   FM AFLIWA — CORRECTION FINALE MAQUETTE PRODUIT
   Galerie + panier
   ============================================================ */

/* ---------- GALERIE ---------- */

.fm-afliwa-gallery-shell {
    position: relative !important;
}

.fm-afliwa-gallery-layout {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
    align-items: start !important;
}

.fm-afliwa-gallery-layout > .fm-afliwa-thumbs-side {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 82px !important;
    min-width: 82px !important;
}

.fm-afliwa-gallery-layout > .fm-afliwa-main-image-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.fm-afliwa-gallery-layout > .fm-afliwa-thumbs-bottom {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;

    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;

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

.fm-afliwa-thumbs-bottom button,
.fm-afliwa-thumbs-bottom a {
    flex: 0 0 68px !important;
    width: 68px !important;
    height: 68px !important;
}

.fm-afliwa-thumbs-bottom img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* ---------- ZONE ACHAT ---------- */

.fm-afliwa-buy-area {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) 56px !important;
    gap: 12px !important;
    align-items: center !important;
    margin-top: 14px !important;
}

.fm-afliwa-buy-area form.cart {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Quantité */

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 112px !important;
    min-width: 112px !important;
    height: 54px !important;

    display: grid !important;
    grid-template-columns: 36px 40px 36px !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    background: #fff !important;
    overflow: hidden !important;
}

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 40px !important;
    height: 52px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;

    -moz-appearance: textfield !important;
}

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty::-webkit-outer-spin-button,
.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.fm-afliwa-qty-minus,
.fm-afliwa-qty-plus {
    width: 36px !important;
    height: 52px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: #fff !important;

    color: #333 !important;
    font-size: 20px !important;
    line-height: 52px !important;
    text-align: center !important;

    cursor: pointer !important;
}

.fm-afliwa-qty-minus {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.fm-afliwa-qty-plus {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

.fm-afliwa-qty-minus:hover,
.fm-afliwa-qty-plus:hover {
    background: #f7f7f7 !important;
    color: #e6007e !important;
}

/* ---------- BOUTON PANIER ---------- */

.fm-afliwa-buy-area form.cart .single_add_to_cart_button {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;

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

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: #e6007e !important;
    color: #fff !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    cursor: pointer !important;
}

.fm-afliwa-buy-area form.cart .single_add_to_cart_button:hover {
    background: #c9006d !important;
}

/* ---------- COEUR ---------- */

.fm-afliwa-buy-area > .fm-afliwa-heart {
    grid-column: 3 !important;
    grid-row: 1 !important;

    width: 56px !important;
    height: 54px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid #dedede !important;
    border-radius: 8px !important;

    background: #fff !important;
    color: #333 !important;

    font-size: 23px !important;
    line-height: 1 !important;

    cursor: pointer !important;
}

.fm-afliwa-buy-area > .fm-afliwa-heart:hover {
    border-color: #e6007e !important;
    color: #e6007e !important;
}

/* ---------- MOBILE ---------- */

@media (max-width: 767px) {

    .fm-afliwa-gallery-layout {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        column-gap: 10px !important;
        row-gap: 10px !important;
    }

    .fm-afliwa-gallery-layout > .fm-afliwa-thumbs-side {
        width: 64px !important;
        min-width: 64px !important;
    }

    .fm-afliwa-thumbs-bottom {
        gap: 7px !important;
    }

    .fm-afliwa-thumbs-bottom button,
    .fm-afliwa-thumbs-bottom a {
        flex-basis: 54px !important;
        width: 54px !important;
        height: 54px !important;
    }

    .fm-afliwa-buy-area {
        grid-template-columns: 96px minmax(0, 1fr) 48px !important;
        gap: 8px !important;
    }

    .fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control {
        width: 96px !important;
        min-width: 96px !important;
        grid-template-columns: 30px 36px 30px !important;
    }

    .fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty {
        width: 36px !important;
    }

    .fm-afliwa-qty-minus,
    .fm-afliwa-qty-plus {
        width: 30px !important;
    }

    .fm-afliwa-buy-area form.cart .single_add_to_cart_button {
        padding: 0 10px !important;
        font-size: 13px !important;
    }

    .fm-afliwa-buy-area > .fm-afliwa-heart {
        width: 48px !important;
    }
}




/* ============================================================
   FM AFLIWA — CORRECTIF FINAL GALERIE
   ============================================================ */

.fm-afliwa-gallery-layout {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
    align-items: start !important;
}

.fm-afliwa-gallery-layout > .fm-afliwa-thumbs-side {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 82px !important;
    min-width: 82px !important;
}

.fm-afliwa-gallery-layout > .fm-afliwa-main-image-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.fm-afliwa-gallery-layout > .fm-afliwa-thumbs-bottom {
    grid-column: 2 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 10px !important;

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

.fm-afliwa-gallery-layout > .fm-afliwa-thumbs-bottom button,
.fm-afliwa-gallery-layout > .fm-afliwa-thumbs-bottom a {
    flex: 0 0 68px !important;
    width: 68px !important;
    height: 68px !important;
}

.fm-afliwa-gallery-layout > .fm-afliwa-thumbs-bottom img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .fm-afliwa-gallery-layout {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        column-gap: 10px !important;
        row-gap: 10px !important;
    }

    .fm-afliwa-gallery-layout > .fm-afliwa-thumbs-side {
        width: 64px !important;
        min-width: 64px !important;
    }

    .fm-afliwa-gallery-layout > .fm-afliwa-thumbs-bottom {
        gap: 7px !important;
    }

    .fm-afliwa-gallery-layout > .fm-afliwa-thumbs-bottom button,
    .fm-afliwa-gallery-layout > .fm-afliwa-thumbs-bottom a {
        flex-basis: 54px !important;
        width: 54px !important;
        height: 54px !important;
    }
}




/* ============================================================
   FM AFLIWA — CORRECTION FINALE IMAGES + QUANTITE
   ============================================================ */


/* ============================================================
   1. IMAGE PRINCIPALE PRODUIT
   IMPORTANT : AFFICHER L'IMAGE ENTIÈREMENT
   ============================================================ */

.fm-afliwa-main-image-wrap {
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
}

.fm-afliwa-main-image-wrap img {
    display: block !important;

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

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

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
}


/* ============================================================
   2. MINIATURES DE LA GALERIE
   ============================================================ */

.fm-afliwa-thumbs-side img,
.fm-afliwa-thumbs-bottom img {
    object-fit: contain !important;
    object-position: center center !important;

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

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

    display: block !important;

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


/* ============================================================
   3. IMAGES DES PRODUITS SIMILAIRES
   Elles doivent rester entièrement visibles dans leur carré.
   ============================================================ */

.fm-afliwa-related-products img,
.fm-afliwa-related-product img,
.fm-afliwa-related-card img,
.fm-afliwa-related-image img,
.fm-afliwa-related-card-image img,
.fm-afliwa-similar-products img,
.fm-afliwa-similar-product img,
.fm-afliwa-products-similar img {
    width: 100% !important;
    height: 100% !important;

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

    object-fit: contain !important;
    object-position: center center !important;

    display: block !important;

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

    transform: none !important;
}


/* Les conteneurs d'images similaires ne doivent jamais
   couper l'image */

.fm-afliwa-related-products .fm-afliwa-product-image,
.fm-afliwa-related-products .product-image,
.fm-afliwa-related-product .product-image,
.fm-afliwa-related-card .product-image,
.fm-afliwa-related-image,
.fm-afliwa-related-card-image,
.fm-afliwa-similar-image {
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
}


/* ============================================================
   4. QUANTITÉ — NOUVEAU DESIGN
   Trois éléments distincts :
       [ − ]   [ 1 ]   [ + ]
   ============================================================ */

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control {

    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 112px !important;
    min-width: 112px !important;
    height: 54px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    overflow: visible !important;
}


/* Bouton moins */

.fm-afliwa-buy-area form.cart .fm-afliwa-qty-minus {

    width: 34px !important;
    min-width: 34px !important;
    height: 42px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dedede !important;
    border-radius: 7px !important;

    background: #fff !important;

    color: #222 !important;

    font-size: 19px !important;
    font-weight: 500 !important;
    line-height: 1 !important;

    cursor: pointer !important;
}


/* Quantité centrale */

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty {

    width: 38px !important;
    min-width: 38px !important;
    height: 42px !important;

    display: flex !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dedede !important;
    border-radius: 7px !important;

    background: #fff !important;

    color: #222 !important;

    text-align: center !important;

    font-size: 15px !important;
    font-weight: 600 !important;

    outline: none !important;
    box-shadow: none !important;

    -moz-appearance: textfield !important;
}


/* Supprimer les flèches natives */

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty::-webkit-inner-spin-button,
.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}


/* Bouton plus */

.fm-afliwa-buy-area form.cart .fm-afliwa-qty-plus {

    width: 34px !important;
    min-width: 34px !important;
    height: 42px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dedede !important;
    border-radius: 7px !important;

    background: #fff !important;

    color: #222 !important;

    font-size: 19px !important;
    font-weight: 500 !important;
    line-height: 1 !important;

    cursor: pointer !important;
}


/* Hover discret */

.fm-afliwa-buy-area form.cart .fm-afliwa-qty-minus:hover,
.fm-afliwa-buy-area form.cart .fm-afliwa-qty-plus:hover {

    border-color: #e6007e !important;
    color: #e6007e !important;
    background: #fff !important;
}


/* Focus quantité */

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty:focus {

    border-color: #e6007e !important;
    box-shadow: 0 0 0 1px rgba(230, 0, 126, .10) !important;
}


/* ============================================================
   5. MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .fm-afliwa-main-image-wrap img {
        object-fit: contain !important;
    }

    .fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control {

        width: 96px !important;
        min-width: 96px !important;

        gap: 5px !important;
    }

    .fm-afliwa-buy-area form.cart .fm-afliwa-qty-minus,
    .fm-afliwa-buy-area form.cart .fm-afliwa-qty-plus {

        width: 30px !important;
        min-width: 30px !important;
        height: 40px !important;
    }

    .fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty {

        width: 34px !important;
        min-width: 34px !important;
        height: 40px !important;
    }
}




/* ============================================================
   FM AFLIWA — CORRECTION QUANTITE + PRODUITS SIMILAIRES
   ============================================================ */


/* ============================================================
   1. CONTROLE QUANTITE
   Trois éléments STRICTEMENT identiques :
   [ − ] [ 1 ] [ + ]
   ============================================================ */

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control {

    width: 132px !important;
    min-width: 132px !important;
    height: 42px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;

    overflow: visible !important;
}


/* Les 3 cases ont EXACTEMENT la même taille */

.fm-afliwa-buy-area form.cart .fm-afliwa-qty-minus,
.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty,
.fm-afliwa-buy-area form.cart .fm-afliwa-qty-plus {

    box-sizing: border-box !important;

    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;

    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dcdcdc !important;
    border-radius: 7px !important;

    background: #ffffff !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #222222 !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    line-height: 40px !important;
}


/* Moins */

.fm-afliwa-buy-area form.cart .fm-afliwa-qty-minus {
    flex: 0 0 40px !important;
    cursor: pointer !important;
}


/* Nombre */

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty {

    flex: 0 0 40px !important;

    text-align: center !important;

    appearance: textfield !important;
    -moz-appearance: textfield !important;

    outline: none !important;
    box-shadow: none !important;

    opacity: 1 !important;
    visibility: visible !important;
    color: #222 !important;
}


/* Supprimer les flèches natives */

.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty::-webkit-inner-spin-button,
.fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}


/* Plus */

.fm-afliwa-buy-area form.cart .fm-afliwa-qty-plus {
    flex: 0 0 40px !important;
    cursor: pointer !important;
}


/* Hover */

.fm-afliwa-buy-area form.cart .fm-afliwa-qty-minus:hover,
.fm-afliwa-buy-area form.cart .fm-afliwa-qty-plus:hover {

    border-color: #e6007e !important;
    color: #e6007e !important;
    background: #fff !important;
}


/* ============================================================
   2. PRODUITS SIMILAIRES
   Aucune image ne doit être coupée.
   ============================================================ */

/* Conteneurs d'images */

.fm-afliwa-related-products .fm-afliwa-product-image,
.fm-afliwa-related-products .product-image,
.fm-afliwa-related-products .fm-afliwa-related-image,
.fm-afliwa-related-products .fm-afliwa-related-card-image,
.fm-afliwa-related-product .product-image,
.fm-afliwa-related-card .product-image,
.fm-afliwa-related-image,
.fm-afliwa-related-card-image,
.fm-afliwa-similar-image {

    overflow: hidden !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #fff !important;
}


/* Images */

.fm-afliwa-related-products img,
.fm-afliwa-related-product img,
.fm-afliwa-related-card img,
.fm-afliwa-related-image img,
.fm-afliwa-related-card-image img,
.fm-afliwa-similar-image img,
.fm-afliwa-similar-products img {

    display: block !important;

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

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

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 !important;

    padding: 8px !important;

    transform: none !important;
}


/* ============================================================
   3. CAS DES CARTES WOOCOMMERCE / STRUCTURES NATIVES
   ============================================================ */

.fm-afliwa-related-products li img,
.fm-afliwa-related-grid li img,
.fm-afliwa-related-grid .product img,
.fm-afliwa-products-related img {

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

    object-fit: contain !important;
    object-position: center center !important;

    padding: 8px !important;

    transform: none !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control {

        width: 126px !important;
        min-width: 126px !important;

        gap: 5px !important;
    }

    .fm-afliwa-buy-area form.cart .fm-afliwa-qty-minus,
    .fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty,
    .fm-afliwa-buy-area form.cart .fm-afliwa-qty-plus {

        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;

        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }

    .fm-afliwa-buy-area form.cart .quantity.fm-afliwa-qty-control input.qty {
        flex-basis: 38px !important;
    }

    .fm-afliwa-buy-area form.cart .fm-afliwa-qty-minus,
    .fm-afliwa-buy-area form.cart .fm-afliwa-qty-plus {
        flex-basis: 38px !important;
    }
}




/* ============================================================
   FM AFLIWA — CONTROLE QUANTITE DEFINITIF
   ============================================================ */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control {

    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;

    height: 42px !important;
    min-height: 42px !important;

    display: flex !important;
    flex-direction: row !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    overflow: visible !important;
}


/*
 * LES TROIS CASES SONT STRICTEMENT IDENTIQUES
 */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-minus,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
input.qty,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-plus {

    box-sizing: border-box !important;

    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;

    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;

    flex: 0 0 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #d8d8d8 !important;
    border-radius: 7px !important;

    background: #fff !important;

    color: #222 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    line-height: 40px !important;

    opacity: 1 !important;
    visibility: visible !important;
}


/*
 * CHAMP NUMERIQUE
 */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
input.qty {

    text-align: center !important;

    appearance: textfield !important;
    -moz-appearance: textfield !important;

    outline: none !important;
    box-shadow: none !important;

    display: flex !important;

    visibility: visible !important;
    opacity: 1 !important;

    color: #222 !important;

    background: #fff !important;
}


/*
 * Supprimer les flèches natives
 */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
input.qty::-webkit-inner-spin-button,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
input.qty::-webkit-outer-spin-button {

    -webkit-appearance: none !important;
    margin: 0 !important;
}


/*
 * BOUTONS
 */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-minus,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-plus {

    cursor: pointer !important;
}


/*
 * HOVER
 */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-minus:hover,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-plus:hover {

    border-color: #e6007e !important;
    color: #e6007e !important;

    background: #fff !important;
}


/*
 * MOBILE
 */

@media (max-width: 767px) {

    .fm-afliwa-buy-area form.cart
    .quantity.fm-afliwa-qty-control {

        width: 126px !important;
        min-width: 126px !important;
        max-width: 126px !important;

        gap: 5px !important;
    }

    .fm-afliwa-buy-area form.cart
    .quantity.fm-afliwa-qty-control
    .fm-afliwa-qty-minus,

    .fm-afliwa-buy-area form.cart
    .quantity.fm-afliwa-qty-control
    input.qty,

    .fm-afliwa-buy-area form.cart
    .quantity.fm-afliwa-qty-control
    .fm-afliwa-qty-plus {

        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;

        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;

        flex-basis: 38px !important;

        line-height: 38px !important;
    }
}




/* ============================================================
   FM AFLIWA — DIMENSIONS FINALES DU BLOC D'ACHAT
   Tous les éléments ont exactement la même hauteur.
   ============================================================ */


/* Hauteur de référence du bouton Ajouter au panier */
.fm-afliwa-buy-area form.cart .single_add_to_cart_button {

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    box-sizing: border-box !important;
}


/* ============================================================
   QUANTITÉ
   ============================================================ */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control {

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;

    display: flex !important;

    flex-direction: row !important;
    align-items: center !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    box-sizing: border-box !important;
}


/* ============================================================
   LES 3 CASES : MÊME LARGEUR + MÊME HAUTEUR
   ============================================================ */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-minus,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
input.qty,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-plus {

    box-sizing: border-box !important;

    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    flex: 0 0 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dedede !important;
    border-radius: 7px !important;

    background: #fff !important;

    display: flex !important;

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

    color: #222 !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    line-height: 1 !important;
}


/* ------------------------------------------------------------
   Champ quantité
   ------------------------------------------------------------ */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
input.qty {

    text-align: center !important;

    appearance: textfield !important;
    -moz-appearance: textfield !important;

    outline: none !important;
    box-shadow: none !important;

    opacity: 1 !important;
    visibility: visible !important;
}


/* Retirer les flèches natives */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
input.qty::-webkit-inner-spin-button,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
input.qty::-webkit-outer-spin-button {

    -webkit-appearance: none !important;
    margin: 0 !important;
}


/* ------------------------------------------------------------
   Boutons + et -
   ------------------------------------------------------------ */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-minus,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-plus {

    cursor: pointer !important;
}


/* Hover */

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-minus:hover,

.fm-afliwa-buy-area form.cart
.quantity.fm-afliwa-qty-control
.fm-afliwa-qty-plus:hover {

    border-color: #e6007e !important;
    color: #e6007e !important;

    background: #fff !important;
}


/* ============================================================
   BOUTON FAVORIS
   EXACTEMENT LA MÊME HAUTEUR
   ============================================================ */

.fm-afliwa-buy-area > .fm-afliwa-heart {

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;
}


/* ============================================================
   ALIGNEMENT VERTICAL GLOBAL
   ============================================================ */

.fm-afliwa-buy-area {

    align-items: center !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .fm-afliwa-buy-area form.cart
    .quantity.fm-afliwa-qty-control {

        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }

    .fm-afliwa-buy-area form.cart
    .quantity.fm-afliwa-qty-control
    .fm-afliwa-qty-minus,

    .fm-afliwa-buy-area form.cart
    .quantity.fm-afliwa-qty-control
    input.qty,

    .fm-afliwa-buy-area form.cart
    .quantity.fm-afliwa-qty-control
    .fm-afliwa-qty-plus {

        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }

    .fm-afliwa-buy-area form.cart
    .single_add_to_cart_button {

        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }

    .fm-afliwa-buy-area > .fm-afliwa-heart {

        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }
}




/* ============================================================
   FM AFLIWA — MINIATURES GALERIE PRODUIT
   Aucun recadrage des images
   ============================================================ */


/* ------------------------------------------------------------
   CONTENEUR DES MINIATURES GAUCHE
   ------------------------------------------------------------ */

.fm-afliwa-thumbs-side {

    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    gap: 10px !important;

    overflow: visible !important;

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


/* ------------------------------------------------------------
   CHAQUE CADRE DE MINIATURE
   ------------------------------------------------------------ */

.fm-afliwa-thumbs-side button,
.fm-afliwa-thumbs-side a {

    box-sizing: border-box !important;

    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;

    height: 94px !important;
    min-height: 94px !important;
    max-height: 94px !important;

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

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    background: #fff !important;

    border: 1px solid #e1e1e1 !important;
    border-radius: 8px !important;

    box-shadow: none !important;

    line-height: 0 !important;
}


/* ------------------------------------------------------------
   MINIATURE SÉLECTIONNÉE
   ------------------------------------------------------------ */

.fm-afliwa-thumbs-side button.active,
.fm-afliwa-thumbs-side button.is-active,
.fm-afliwa-thumbs-side button.selected,
.fm-afliwa-thumbs-side a.active,
.fm-afliwa-thumbs-side a.is-active,
.fm-afliwa-thumbs-side a.selected {

    border: 2px solid #e6007e !important;

    padding: 4px !important;
}


/* ------------------------------------------------------------
   IMAGE DANS LE CADRE
   IMPORTANT :
   width/height AUTO pour conserver les proportions.
   ------------------------------------------------------------ */

.fm-afliwa-thumbs-side button img,
.fm-afliwa-thumbs-side a img {

    display: block !important;

    width: auto !important;
    height: auto !important;

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

    min-width: 0 !important;
    min-height: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;

    aspect-ratio: auto !important;

    margin: auto !important;
    padding: 0 !important;

    transform: none !important;

    border-radius: 4px !important;
}


/* ------------------------------------------------------------
   SI WORDPRESS AJOUTE DES DIMENSIONS INLINE
   ------------------------------------------------------------ */

.fm-afliwa-thumbs-side img[width],
.fm-afliwa-thumbs-side img[height] {

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 100% !important;
}


/* ------------------------------------------------------------
   SUPPRESSION DES RECADRAGES POTENTIELS
   ------------------------------------------------------------ */

.fm-afliwa-thumbs-side .thumbnail,
.fm-afliwa-thumbs-side .thumb,
.fm-afliwa-thumbs-side .woocommerce-product-gallery__image {

    width: 94px !important;
    height: 94px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

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


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 767px) {

    .fm-afliwa-thumbs-side {

        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;

        gap: 8px !important;
    }

    .fm-afliwa-thumbs-side button,
    .fm-afliwa-thumbs-side a {

        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;

        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;

        padding: 4px !important;
    }

    .fm-afliwa-thumbs-side .thumbnail,
    .fm-afliwa-thumbs-side .thumb,
    .fm-afliwa-thumbs-side .woocommerce-product-gallery__image {

        width: 64px !important;
        height: 64px !important;

        padding: 4px !important;
    }

    .fm-afliwa-thumbs-side img {

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

        width: auto !important;
        height: auto !important;

        object-fit: contain !important;
    }
}




/* ============================================================
   FM AFLIWA — MINIATURES SANS AUCUN RECADRAGE
   CORRECTIF FINAL
   ============================================================ */


/*
 * COLONNE DES MINIATURES
 */

.fm-afliwa-thumbs-side {

    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;

    height: auto !important;
    max-height: none !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    gap: 10px !important;

    overflow: visible !important;
}


/*
 * CHAQUE MINIATURE
 */

.fm-afliwa-thumbs-side > * {

    position: relative !important;

    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;

    height: 94px !important;
    min-height: 94px !important;
    max-height: 94px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

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

    background: #fff !important;

    border: 1px solid #e1e1e1 !important;
    border-radius: 8px !important;

    line-height: 0 !important;
}


/*
 * TOUS LES CONTENEURS INTERNES
 *
 * On neutralise les règles qui peuvent imposer
 * un recadrage carré à l'image.
 */

.fm-afliwa-thumbs-side > * > *,
.fm-afliwa-thumbs-side > * > * > *,
.fm-afliwa-thumbs-side > * > * > * > * {

    box-sizing: border-box !important;

    overflow: visible !important;

    display: flex !important;

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

    background: transparent !important;

    max-width: 100% !important;
    max-height: 100% !important;
}


/*
 * IMAGE :
 *
 * IMPORTANT :
 * on ne lui impose PAS 100% de largeur/hauteur.
 *
 * Elle conserve donc son ratio original.
 */

.fm-afliwa-thumbs-side img {

    display: block !important;

    width: auto !important;
    height: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 84px !important;
    max-height: 84px !important;

    object-fit: contain !important;
    object-position: center center !important;

    aspect-ratio: auto !important;

    margin: auto !important;
    padding: 0 !important;

    transform: none !important;

    position: static !important;
}


/*
 * ANNULER LES DIMENSIONS HTML width/height
 * ajoutées par WordPress.
 */

.fm-afliwa-thumbs-side img[width],
.fm-afliwa-thumbs-side img[height] {

    width: auto !important;
    height: auto !important;

    max-width: 84px !important;
    max-height: 84px !important;
}


/*
 * ÉVENTUELLE IMAGE EN BACKGROUND
 */

.fm-afliwa-thumbs-side [style*="background-image"] {

    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}


/*
 * MINIATURE ACTIVE
 */

.fm-afliwa-thumbs-side .active,
.fm-afliwa-thumbs-side .is-active,
.fm-afliwa-thumbs-side .selected {

    border-color: #e6007e !important;
}


/*
 * IMPORTANT :
 * si un élément interne possède une largeur/hauteur 100%,
 * on empêche le recadrage mais on conserve son centrage.
 */

.fm-afliwa-thumbs-side figure,
.fm-afliwa-thumbs-side .thumbnail,
.fm-afliwa-thumbs-side .thumb,
.fm-afliwa-thumbs-side .woocommerce-product-gallery__image {

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

    min-width: 0 !important;
    min-height: 0 !important;

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

    display: flex !important;

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

    overflow: hidden !important;

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


/*
 * MOBILE
 */

@media (max-width: 767px) {

    .fm-afliwa-thumbs-side {

        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
    }

    .fm-afliwa-thumbs-side > * {

        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;

        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;

        padding: 3px !important;
    }

    .fm-afliwa-thumbs-side img {

        width: auto !important;
        height: auto !important;

        max-width: 58px !important;
        max-height: 58px !important;

        object-fit: contain !important;
    }
}



/* FMA-SP-VAR-MOBILE-FIX-START */
@media (max-width: 767px) {
    .fm-afliwa-variation-area form.variations_form .woocommerce-variation-add-to-cart,
    .fm-afliwa-variation-area .single_variation_wrap .woocommerce-variation-add-to-cart {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .fm-afliwa-variation-area .quantity,
    .fm-afliwa-variation-area .quantity.fm-afliwa-qty-control {
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        margin: 0 !important;
    }
    .fm-afliwa-variation-area .quantity.fm-afliwa-qty-control .fm-afliwa-qty-minus,
    .fm-afliwa-variation-area .quantity.fm-afliwa-qty-control input.qty,
    .fm-afliwa-variation-area .quantity.fm-afliwa-qty-control .fm-afliwa-qty-plus {
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }
    .fm-afliwa-variation-area .quantity input.qty:not(.fm-afliwa-qty-control input.qty) {
        width: 68px !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }
    .fm-afliwa-variation-area button.single_add_to_cart_button {
        flex: 1 1 auto !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }
}
/* FMA-SP-VAR-MOBILE-FIX-END */
