/* Marque-moi — css_catalog.css. Généré depuis le CSS vérifié du 4 octobre 2026. */
body:is(.tax-product_cat, .woocommerce-shop) {
    --mm-collection-image: none;
    --mm-collection-image-position: right center;
    --mm-collection-card-width: calc((100% - 72px) / 4);
}

body.tax-product_cat.term-girl-attitude {
    --mm-collection-image: url("https://marque-moi.com/wp-content/uploads/2026/09/Girl_Attitude.webp");
}

body.tax-product_cat.term-love-mom {
    --mm-collection-image: url("https://marque-moi.com/wp-content/uploads/2026/09/love_mom.webp");
}

body.tax-product_cat.term-pas-pour-les-coinces {
    --mm-collection-image: url("https://marque-moi.com/wp-content/uploads/2026/09/pas_pour_les_coinces.webp");
    /* Cadrage sur le haut du geste lorsque le bandeau est très large. */
    --mm-collection-image-position: right top;
}

body.tax-product_cat.term-rugby-spirit {
    --mm-collection-image: url("https://marque-moi.com/wp-content/uploads/2026/09/rugby_spirit.webp");
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-site-blocks > :is(main:not(.mm-coming-soon__hero), .wp-block-group:has(> .wp-block-woocommerce-product-collection), .wp-block-group:has(> .wp-block-woocommerce-legacy-template), .wp-block-group:has(h1.wp-block-query-title, h1.woocommerce-products-header__title)) {
    --wp--style--global--content-size: 1440px;
    --wp--style--global--wide-size: 1440px;
    display: flow-root;
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 32px clamp(16px, 3vw, 40px) 64px !important;
    background: var(--mm-white);
    color: var(--mm-black);
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-site-blocks > :is(main:not(.mm-coming-soon__hero), .wp-block-group:has(> .wp-block-woocommerce-product-collection), .wp-block-group:has(> .wp-block-woocommerce-legacy-template), .wp-block-group:has(h1.wp-block-query-title, h1.woocommerce-products-header__title)) > *,
body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-legacy-template {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-legacy-template {
    width: 100%;
    box-sizing: border-box;
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-site-blocks > :is(main:not(.mm-coming-soon__hero), .wp-block-group:has(> .wp-block-woocommerce-product-collection), .wp-block-group:has(> .wp-block-woocommerce-legacy-template), .wp-block-group:has(h1.wp-block-query-title, h1.woocommerce-products-header__title)) + :is(footer, .wp-block-template-part) {
    margin-top: 0 !important;
}

body:is(.tax-product_cat, .woocommerce-shop) .woocommerce-breadcrumb {
    margin: 0 0 24px !important;
    color: #5c564d;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

body:is(.tax-product_cat, .woocommerce-shop) .woocommerce-breadcrumb a {
    color: var(--mm-black);
    text-underline-offset: 3px;
}

body:is(.tax-product_cat, .woocommerce-shop) .woocommerce-products-header {
    margin-bottom: 28px;
}

body.woocommerce-shop :is(h1.woocommerce-products-header__title, h1.wp-block-query-title) {
    width: 100%;
    max-width: 1440px !important;
    box-sizing: border-box;
    margin: 0 0 28px !important;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--mm-gold);
    color: var(--mm-black) !important;
    font-family: var(--wp--preset--font-family--oswald, sans-serif);
    font-size: clamp(34px, 3.5vw, 52px) !important;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
}

body.tax-product_cat :is(h1.woocommerce-products-header__title, h1.wp-block-query-title) {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    max-width: 1440px !important;
    min-height: 220px;
    box-sizing: border-box;
    margin: 0 auto 24px !important;
    /* Le pourcentage dépend du parent : le plafonner protège le titre
       quand le bandeau atteint sa largeur maximale sur grand écran. */
    padding: 32px min(54%, 760px) 32px 36px;
    border: 1px solid rgba(224, 189, 115, 0.35);
    border-radius: 10px;
    background: var(--mm-black);
    color: var(--mm-white) !important;
    font-family: var(--wp--preset--font-family--oswald, sans-serif);
    font-size: clamp(30px, 3vw, 48px) !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

body.tax-product_cat :is(h1.woocommerce-products-header__title, h1.wp-block-query-title)::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: 58%;
    height: 100%;
    background-image: linear-gradient(90deg, var(--mm-black), rgba(17, 17, 17, 0) 35%), var(--mm-collection-image);
    background-size: 100% 100%, cover;
    background-position: center, var(--mm-collection-image-position);
    background-repeat: no-repeat;
    pointer-events: none;
}

body.tax-product_cat :is(.term-description, .wp-block-term-description) {
    max-width: 840px;
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.7;
}

body:is(.tax-product_cat, .woocommerce-shop) .woocommerce-result-count {
    margin: 0 0 24px !important;
    padding: 12px 0;
    color: #5c564d;
    font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif);
    font-size: 14px;
    line-height: 1.5;
}

body:is(.tax-product_cat, .woocommerce-shop) .woocommerce-ordering {
    width: 260px;
    max-width: 100%;
    margin: 0 0 24px auto !important;
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-block-group.alignwide:has(> .wp-block-woocommerce-catalog-sorting) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 28px !important;
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-catalog-sorting {
    flex: 0 1 260px;
    min-width: 0;
    max-width: 100%;
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-product-results-count .woocommerce-result-count,
body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-catalog-sorting .woocommerce-ordering {
    float: none;
    margin: 0 !important;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(.woocommerce-ordering, .wp-block-woocommerce-catalog-sorting) select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 11px 40px 11px 14px;
    border: 1px solid rgba(17, 17, 17, 0.22);
    border-radius: 6px;
    background: var(--mm-beige) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
    color: var(--mm-black);
    font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif);
    font-size: 15px;
    line-height: 1.4;
    appearance: none;
    cursor: pointer;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products:has(> li.product:not(.product-category)), .wc-block-product-template) {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    clear: both;
    gap: 36px 24px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

body:is(.tax-product_cat, .woocommerce-shop) ul.products:has(> li.product:not(.product-category))::before,
body:is(.tax-product_cat, .woocommerce-shop) ul.products:has(> li.product:not(.product-category))::after,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) ul.products:has(> li.product:not(.product-category))::before,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) ul.products:has(> li.product:not(.product-category))::after {
    display: none !important;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products > li.product:not(.product-category), .wc-block-product-template > .wc-block-product) {
    display: flex !important;
    flex-direction: column;
    float: none !important;
    flex: 0 0 var(--mm-collection-card-width) !important;
    width: var(--mm-collection-card-width) !important;
    min-width: 0;
    max-width: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(224, 189, 115, 0.65);
    border-radius: 10px;
    background: #fff;
    color: var(--mm-black);
    text-align: center;
}

body:is(.tax-product_cat, .woocommerce-shop) .wc-block-product-template > .wc-block-product > .wp-block-group {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    background: transparent !important;
}

body:is(.tax-product_cat, .woocommerce-shop) .wc-block-product-template > .wc-block-product > .wp-block-group > .wp-block-group,
body:is(.tax-product_cat, .woocommerce-shop) .wc-block-product-template > .wc-block-product > .wp-block-group > .wp-block-group > .wp-block-group,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) .wc-block-product-template > .wc-block-product > .wp-block-group > .wp-block-group,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) .wc-block-product-template > .wc-block-product > .wp-block-group > .wp-block-group > .wp-block-group {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Un seul retrait pour le contenu de la carte, sans cumuler les groupes imbriqués. */
body:is(.tax-product_cat, .woocommerce-shop) .wc-block-product-template > .wc-block-product > .wp-block-group > .wp-block-group {
    padding: 0 clamp(6px, 1vw, 14px) 12px !important;
}

body:is(.tax-product_cat, .woocommerce-shop) ul.products > li.product > .woocommerce-loop-product__link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-product-image {
    width: 100%;
    margin: 0 0 16px !important;
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-product-image a,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) .wp-block-woocommerce-product-image a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products > li.product:not(.product-category) a img, .wp-block-woocommerce-product-image img),
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) :is(ul.products > li.product:not(.product-category) a img, .wp-block-woocommerce-product-image img) {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    border-radius: 8px;
    background: var(--mm-beige);
}

body:is(.tax-product_cat, .woocommerce-shop) ul.products > li.product:not(.product-category) a img,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) ul.products > li.product:not(.product-category) a img {
    margin: 0 0 16px !important;
}

/* L'image occupe le haut du cadre ; les contours de focus restent visibles. */
body:is(.tax-product_cat, .woocommerce-shop) :is(.wp-block-woocommerce-product-image a, .wp-block-woocommerce-product-image img, ul.products > li.product:not(.product-category) a img) {
    border-radius: 9px 9px 0 0;
}

/* Même respiration pour les éventuelles cartes WooCommerce classiques. */
body:is(.tax-product_cat, .woocommerce-shop) ul.products > li.product:not(.product-category) .woocommerce-loop-product__link > :is(.woocommerce-loop-product__title, .price) {
    box-sizing: border-box;
    padding-inline: clamp(6px, 1vw, 14px) !important;
}

body:is(.tax-product_cat, .woocommerce-shop) ul.products > li.product:not(.product-category) > .button {
    margin-bottom: 12px !important;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(.woocommerce-loop-product__title, .wc-block-product .wp-block-post-title) {
    display: block !important;
    flex: 1 0 auto;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: var(--mm-black) !important;
    font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif);
    font-size: 16px !important;
    font-weight: 650;
    line-height: 1.5 !important;
    text-align: center !important;
    overflow-wrap: anywhere;
}

body:is(.tax-product_cat, .woocommerce-shop) .wc-block-product .wp-block-post-title a,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) .wc-block-product .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
}

body:is(.tax-product_cat, .woocommerce-shop) .woocommerce-loop-product__link:hover .woocommerce-loop-product__title,
body:is(.tax-product_cat, .woocommerce-shop) .wc-block-product .wp-block-post-title a:hover,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) .woocommerce-loop-product__link:hover .woocommerce-loop-product__title,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) .wc-block-product .wp-block-post-title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body:is(.tax-product_cat, .woocommerce-shop) .mm-rating-line {
    flex: 0 0 auto;
    min-height: 28px !important;
    margin: 0 0 14px !important;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products > li.product .price, .wp-block-woocommerce-product-price) {
    flex: 0 0 auto;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-product-price,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) .wp-block-woocommerce-product-price {
    justify-content: center !important;
    width: 100%;
    text-align: center !important;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products > li.product .price, .wc-block-components-product-price) {
    color: var(--mm-black);
    font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif);
    font-size: 16px !important;
    font-weight: 650;
    line-height: 1.5;
    text-align: center !important;
}

body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-product-button {
    width: 100%;
    margin: 14px 0 0 !important;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products > li.product > .button, .wc-block-components-product-button__button) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 88% !important;
    align-self: center;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: 46px;
    box-sizing: border-box;
    padding: 12px 14px !important;
    border: 1px solid var(--mm-gold) !important;
    border-radius: 16px !important;
    background: var(--mm-gold) !important;
    color: var(--mm-black) !important;
    font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif);
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
    transition: background-color 0.2s ease;
}

body:is(.tax-product_cat, .woocommerce-shop) ul.products > li.product > .button {
    margin: 14px auto 0 !important;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products > li.product > .button, .wc-block-components-product-button__button):hover,
body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) :is(ul.products > li.product > .button, .wc-block-components-product-button__button):hover {
    background: var(--mm-beige) !important;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(.wp-block-woocommerce-product-collection, .wp-block-woocommerce-legacy-template, .woocommerce-breadcrumb, .woocommerce-ordering, .wp-block-woocommerce-catalog-sorting) :is(a, button, select):focus-visible {
    outline: 3px solid var(--mm-black) !important;
    outline-offset: 4px;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(.woocommerce-pagination, .wp-block-query-pagination) {
    margin-top: 40px !important;
    text-align: center;
}

body:is(.tax-product_cat, .woocommerce-shop) .woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border: 0;
}

body:is(.tax-product_cat, .woocommerce-shop) .woocommerce-pagination ul.page-numbers li {
    float: none;
    border: 0;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(.woocommerce-pagination, .wp-block-query-pagination) :is(a, span.current) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 6px;
    background: var(--mm-beige);
    color: var(--mm-black);
    line-height: 1.4;
    text-decoration: none;
}

body:is(.tax-product_cat, .woocommerce-shop) :is(.woocommerce-pagination, .wp-block-query-pagination) :is(a:hover, span.current) {
    border-color: var(--mm-gold);
    background: var(--mm-gold);
}

@media (max-width: 991px) {
    body:is(.tax-product_cat, .woocommerce-shop) {
        --mm-collection-card-width: calc((100% - 48px) / 3);
    }
}

@media (max-width: 767px) {
    body:is(.tax-product_cat, .woocommerce-shop) {
        --mm-collection-card-width: calc((100% - 24px) / 2);
    }
    body:is(.tax-product_cat, .woocommerce-shop) .wp-site-blocks > :is(main:not(.mm-coming-soon__hero), .wp-block-group:has(> .wp-block-woocommerce-product-collection), .wp-block-group:has(> .wp-block-woocommerce-legacy-template), .wp-block-group:has(h1.wp-block-query-title, h1.woocommerce-products-header__title)) {
        padding-top: 24px !important;
        padding-bottom: 40px !important;
    }
    body.tax-product_cat :is(h1.woocommerce-products-header__title, h1.wp-block-query-title) {
        min-height: 180px;
        padding: 24px 38% 24px 20px;
        font-size: clamp(28px, 5vw, 36px) !important;
    }
    body.tax-product_cat :is(h1.woocommerce-products-header__title, h1.wp-block-query-title)::before {
        width: 100%;
        background-image: linear-gradient(90deg, var(--mm-black) 5%, rgba(17, 17, 17, 0.86) 35%, rgba(17, 17, 17, 0.08) 75%), var(--mm-collection-image);
    }
    body:is(.tax-product_cat, .woocommerce-shop) :is(.woocommerce-loop-product__title, .wc-block-product .wp-block-post-title) {
        font-size: 14px !important;
    }
}

@media (max-width: 479px) {
    body:is(.tax-product_cat, .woocommerce-shop) {
        --mm-collection-card-width: calc((100% - 12px) / 2);
    }
    body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-catalog-sorting {
        flex-basis: 100%;
        width: 100%;
    }
    body:is(.tax-product_cat, .woocommerce-shop) :is(.woocommerce-result-count, .woocommerce-ordering) {
        float: none;
        width: 100%;
    }
    body:is(.tax-product_cat, .woocommerce-shop) .woocommerce-result-count {
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 14px !important;
    }
    /* Boutique et catégories : deux produits par rangée sur petit écran. */
    body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products:has(> li.product:not(.product-category)), .wc-block-product-template) {
        gap: 28px 12px !important;
    }
    body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products > li.product .price, .wc-block-components-product-price) {
        font-size: 14px !important;
    }
    body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products > li.product > .button, .wc-block-components-product-button__button) {
        width: 100% !important;
        padding: 10px 6px !important;
        font-size: 13px !important;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:is(.tax-product_cat, .woocommerce-shop) :is(ul.products > li.product > .button, .wc-block-components-product-button__button) {
        transition: none;
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body.home main .mm-best-sellers .wp-block-woocommerce-product-image img,
    body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-product-image img,
    body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) .wp-block-woocommerce-product-image img {
        transform-origin: center center;
        transition: transform 0.25s ease;
    }
    body.home main .mm-best-sellers .wp-block-woocommerce-product-image a:hover img,
    body:is(.tax-product_cat, .woocommerce-shop) .wp-block-woocommerce-product-image a:hover img,
    body.single-product main :is(.wp-block-woocommerce-product-collection, .up-sells) .wp-block-woocommerce-product-image a:hover img {
        transform: scale(1.04);
    }
}
