/* ==========================================================================
   Pages catégorie et miniatures produit : maquette validée (novembre 2026)
   Chargé après custom_2026.css (head.tpl). Les !important répondent aux
   règles plus anciennes à base d'id (#category ...) de custom*.css.
   ========================================================================== */

/* ---------- En-tête catégorie : titre centré + vignettes ---------- */
.block-category.mp-cat-head {
    margin-bottom: 20px !important;
}
.block-category.mp-cat-head h1.mp-cat-head__title {
    margin: 20px 0 20px 0 !important;
    font-size: 22px !important;
    line-height: 28px !important;
    text-align: center;
    text-transform: uppercase;
}

.mp-subcats-wrap {
    --mp-tile: 182px;
    --mp-gap: 20px;
    position: relative;
    max-width: calc(4 * var(--mp-tile) + 3 * var(--mp-gap));
    margin: 0 auto;
}
.mp-subcats {
    position: relative;
    display: flex;
    gap: var(--mp-gap);
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mp-subcats::-webkit-scrollbar {
    display: none;
}
.mp-subcats__item {
    flex: 0 0 var(--mp-tile);
    min-width: 0;
    scroll-snap-align: start;
}
/* Centrage sans couper la 1re vignette quand ça défile */
.mp-subcats__item:first-child { margin-left: auto; }
.mp-subcats__item:last-child { margin-right: auto; }

.mp-subcats__nav {
    position: absolute;
    top: calc(var(--mp-tile) * 5 / 8);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #212529;
    border-radius: 50%;
    background: #fff;
    color: #212529;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.mp-subcats__nav[hidden] {
    display: none !important;
}
.mp-subcats__nav--prev { left: -60px; }
.mp-subcats__nav--next { right: -60px; }
.mp-subcats__nav:hover:not(:disabled) {
    background: #212529;
    color: #fff;
}
.mp-subcats__nav:disabled {
    opacity: .25;
    cursor: default;
}
.mp-subcats__nav:focus-visible {
    outline: 2px solid #18494e;
    outline-offset: 2px;
}

.mp-subcat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #212529;
    text-decoration: none;
}
.mp-subcat:hover,
.mp-subcat:focus {
    color: #212529;
    text-decoration: none;
}
.mp-subcat__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eaf0ef;
}
.mp-subcat__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.mp-subcat__name {
    font-size: 15px;
    line-height: 20px;
    text-align: center;
    text-underline-offset: 3px;
}
.mp-subcat:hover .mp-subcat__name,
.mp-subcat.is-active .mp-subcat__name {
    text-decoration: underline;
}
.mp-subcat:hover .mp-subcat__img img {
    transform: scale(1.04);
}

@media (max-width: 991px) {
    .mp-subcats-wrap {
        --mp-tile: 140px;
        --mp-gap: 16px;
    }
    .mp-subcats__nav--prev { left: -50px; }
    .mp-subcats__nav--next { right: -50px; }
}
/* Mobile : pas la place pour les flèches, on fait glisser au doigt */
@media (max-width: 767px) {
    .mp-subcats__nav { display: none !important; }
    /* Mobile : marge de 20 px sur les bords (le conteneur du thème n'en a pas) */
    .mp-cat-head__title { padding: 0 20px; }
    .mp-subcats { padding: 0 20px; scroll-padding-inline: 20px; }
    .ad-filterbar { padding: 0 20px; }
    /* Grille produits : 2 colonnes calées à 20 px des deux bords (avant : 11 px à gauche, 4 px à droite) */
    #js-product-list .products { padding: 0 20px; justify-content: space-between; }
    #js-product-list .products .product-miniature {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
        margin-left: 0 !important; /* custom_2026.css est rechargé après ce fichier (margin-left: 9px) */
        padding-left: 0;
        padding-right: 0;
    }
}

/* ---------- Miniature produit : format 11:15 ---------- */
.mp-card-img {
    position: relative;
    overflow: hidden;
}
.mp-card-img .mp-card-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 11 / 15;
    overflow: hidden;
    background: #fff;
}
.mp-card-img .mp-card-thumb .mp-card-pic {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff;
}
.mp-card-img .mp-card-thumb .mp-card-pic img {
    display: block !important;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* ---------- Barre « Ajouter au panier » au survol ---------- */
.mp-card-img .mp-atc-form {
    position: static;
    margin: 0;
}
.mp-card-img .mp-atc-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); /* fin cadre noir à 10 %, sans décaler le texte */
    transform: translateY(100%);
    transition: transform .35s ease;
}
.mp-card-img:hover .mp-atc-bar,
.mp-card-img .mp-atc-bar:focus-visible {
    transform: translateY(0);
}
.mp-card-img .mp-atc-bar:focus-visible {
    outline: 2px solid #18494e;
    outline-offset: -4px;
}
.mp-card-img .mp-atc-bar:disabled {
    cursor: wait;
    opacity: .7;
}
@media (hover: none) {
    /* Écran tactile : bouton toujours visible, placé sous la photo au lieu de la recouvrir */
    .mp-card-img .mp-atc-bar {
        position: relative;
        transform: none;
    }
}

/* Nom de la carte : pas de hauteur réservée pour 2 lignes (thème : min-height 1.9rem), prix et description collés au nom */
.product-miniature .card-product .product__card-desc > .product-title {
    min-height: 0 !important; /* theme.css est chargé après ce fichier */
    margin-bottom: 0 !important;
}
@media (min-width: 768px) {
    .product-miniature .product__card-desc_short { margin-top: 6px !important; }
}

/* Mobile : icône panier à droite du nom (la barre sous la photo disparaît), prix dessous */
.mp-atc-icon { display: none; }
@media (max-width: 767px) {
    .mp-card-img .mp-atc-form .mp-atc-bar { display: none; }
    .product-miniature .product__card-desc {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 8px;
        row-gap: 6px; /* prix juste sous le nom */
        align-items: start;
        width: 100%;
    }
    .product-miniature .product__card-desc > .product-title {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }
    .product-miniature .product__card-desc > .product-price-and-shipping {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 0 !important;
        margin-left: 0 !important;
        text-align: left !important;
    }
    .mp-atc-icon {
        grid-column: 2;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: -10px -10px -10px 0; /* zone tactile de 40 px sans grandir la ligne du nom, icône calée sur le bord droit de la photo */
        padding: 0;
        border: 0;
        background: none;
        color: #161a1b;
        cursor: pointer;
    }
    .mp-atc-icon svg { width: 20px; height: auto; }
    .mp-atc-icon:focus-visible { outline: 2px solid #18494e; outline-offset: -6px; }
    .mp-atc-icon:disabled { cursor: wait; opacity: .5; }
}

/* Pro : choix du colisage sous la photo */
.mp-card-colisage {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
}
.mp-card-colisage .product-mp-colisage {
    margin: 0;
}

.product-miniature .card-product > .card-body {
    margin-top: 10px !important; /* texte près de la photo */
}
@media (min-width: 601px) {
    /* les 30 px retirés au-dessus passent sous la carte (espacement des rangées inchangé) ; sous 600 px, réglage de custom_2026 */
    .product-miniature .card-product > .card-body { margin-bottom: 30px; }
}

@media (max-width: 575px) {
    .mp-card-img .mp-atc-bar {
        height: 40px;
        font-size: 11px;
        letter-spacing: .5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-subcats { scroll-behavior: auto; }
    .mp-subcat__img img,
    .mp-card-img .mp-atc-bar {
        transition: none;
    }
}

/* ---------- Filtres ad_customcategory : bouton « Filtrer » + panneau droit ---------- */
.ad-filterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.ad-filterbar[hidden],
.ad-filters-panel[hidden],
.ad-filters-shade[hidden],
.ad-fgroup[hidden],
.ad-fopt[hidden] {
    display: none !important;
}
/* Page catégorie : plus de bouton Filtrer (il reste dans le bandeau au défilement), couleurs affichées comme à l'origine */
#ad-filterbar { display: none !important; }
.ad-colorbar { margin-bottom: 24px; }
.ad-colorbar[hidden], .ad-colorbar__group[hidden], .ad-colorbar__opt[hidden], .ad-colorbar__clear[hidden] { display: none !important; }
.ad-colorbar__title {
    margin: 0 0 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ad-colorbar__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ad-colorbar__opt {
    position: relative;
    display: block;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
}
.ad-colorbar__opt img {
    display: block;
    object-fit: cover;
    box-shadow: 0 1px 6px #ccc;
}
.ad-colorbar__opt.is-active { outline: 2px solid #18494e; outline-offset: 0; } /* cadre à 2 px de la vignette (bordure transparente) : plus visible */
.ad-colorbar__opt:focus-visible { outline: 2px solid #18494e; outline-offset: 2px; }
/* Nom de la couleur au survol (comme l'ancienne bulle) */
.ad-colorbar__opt::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 20;
    transform: translateX(-50%);
    padding: 3px 14px;
    border-radius: 7px;
    background: #18494e;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .22);
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}
@media (hover: hover) {
    .ad-colorbar__opt:hover::after { opacity: .98; }
}
.ad-colorbar__clear {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #18494e;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
@media (max-width: 767px) {
    .ad-colorbar { padding: 0 20px; }
}
/* Variante mobile : une seule ligne qui défile jusqu'aux bords de l'écran (classe ad-colorbar--scroll dans custom-filters.tpl).
   Sans la classe, les couleurs passent à la ligne comme à l'origine. */
@media (max-width: 767px) {
    .ad-colorbar--scroll .ad-colorbar__track {
        position: relative;
        margin: 0 -20px;
    }
    /* Dégradé blanc à droite : il reste des couleurs à faire défiler (classe has-more posée en JS) */
    .ad-colorbar--scroll .ad-colorbar__track::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 56px;
        background: linear-gradient(to right, rgba(254, 254, 254, 0), #fefefe 85%);
        pointer-events: none;
        opacity: 0;
        transition: opacity .2s ease;
    }
    .ad-colorbar--scroll .ad-colorbar__track.has-more::after { opacity: 1; }
    .ad-colorbar--scroll .ad-colorbar__items {
        flex-wrap: nowrap;
        margin: 0;
        padding: 4px 20px 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .ad-colorbar--scroll .ad-colorbar__items::-webkit-scrollbar { display: none; }
    .ad-colorbar--scroll .ad-colorbar__opt { flex: none; }
    .ad-colorbar--scroll .ad-colorbar__opt::after { content: none; } /* bulle de nom invisible mais elle allongeait le défilement */
}

.ad-filterbar__count {
    margin-left: auto;
    font-size: 13px;
    color: #6c757d;
}
.ad-filterbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: #212529;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.ad-filterbar__btn:hover span:first-child {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ad-filterbar__btn:focus-visible {
    outline: 2px solid #18494e;
    outline-offset: 2px;
}

html.ad-filters-open,
html.ad-filters-open body {
    overflow: hidden;
}
.ad-filters-shade {
    position: fixed;
    inset: 0;
    z-index: 2000000001; /* au-dessus de la bulle de chat (2000000000) */
    background: transparent; /* plus d'assombrissement du listing ; le voile reste cliquable pour fermer */
    opacity: 0;
    transition: opacity .35s ease;
}
.ad-filters-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2000000002;
    display: flex;
    flex-direction: column;
    width: 420px;
    max-width: 88vw;
    background: #fff;
    color: #212529;
    transform: translateX(100%);
    transition: transform .35s ease;
    outline: none;
}
html.ad-filters-open .ad-filters-shade { opacity: 1; }
html.ad-filters-open .ad-filters-panel { transform: none; }

.ad-filters-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}
.ad-filters-panel__title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ad-filters-panel__close {
    display: inline-flex;
    padding: 4px;
    border: 0;
    background: none;
    color: #212529;
    cursor: pointer;
}
.ad-filters-panel__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ad-fgroup {
    margin: 0;
    padding: 20px 24px;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    min-width: 0;
}
.ad-fgroup__title {
    float: left;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ad-fgroup__opts {
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ad-fgroup--declinaison .ad-fgroup__opts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* nuancier : 4 couleurs par ligne */
    gap: 20px 12px;
}

.ad-fopt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 6px 0;
    border: 0;
    background: none;
    color: #212529;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    cursor: pointer;
}
.ad-fopt:hover .ad-fopt__label,
.ad-fopt.is-active .ad-fopt__label {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ad-fopt.is-active { font-weight: 500; }
.ad-fopt:focus-visible {
    outline: 2px solid #18494e;
    outline-offset: 2px;
}
.ad-fopt__label { min-width: 0; }
.ad-fopt__dot {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1px solid #212529;
    border-radius: 50%;
}
.ad-fopt.is-active .ad-fopt__dot {
    box-shadow: inset 0 0 0 3px #fff;
    background: #18494e;
    border-color: #18494e;
}
/* Nuancier : échantillon carré, photo zoomée au centre pour que les couleurs se lisent, nom dessous */
.ad-fopt--swatch {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    font-size: 12px;
    line-height: 16px;
}
.ad-fopt__swatch {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 2px;
    background: #f4f1ec;
}
.ad-fopt__swatch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.8);
    transition: transform .4s ease;
}
.ad-fopt--swatch:hover .ad-fopt__swatch img { transform: scale(2.1); }
.ad-fopt.is-active .ad-fopt__swatch {
    outline: 1px solid #212529;
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .ad-fopt__swatch img { transition: none; }
}

.ad-filters-panel__foot {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e5e5e5;
}
.ad-filters-panel__reset,
.ad-filters-panel__see {
    height: 48px;
    padding: 0 12px;
    border: 1px solid #212529;
    border-radius: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.ad-filters-panel__reset {
    flex: 1;
    background: #fff;
    color: #212529;
}
.ad-filters-panel__reset:disabled {
    opacity: .4;
    cursor: default;
}
.ad-filters-panel__see {
    flex: 1.4;
    background: #212529;
    color: #fff;
}

@media (max-width: 575px) {
    .ad-filters-panel__head,
    .ad-fgroup,
    .ad-filters-panel__foot { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ad-filters-shade,
    .ad-filters-panel { transition: none; }
}

/* Fil d'Ariane masqué sur les pages catégorie et les pages Advanced Search 4 (/s-2/), gardé dans le HTML */
.mp-cat-head nav[data-depth],
.block-category-minimal nav[data-depth],
#module-pm_advancedsearch4-searchresults #wrapper > nav[data-depth] {
  display: none !important;
}

/* Nombre de produits de la barre Filtrer masqué */
.ad-filterbar__count {
  display: none !important;
}

/* Survol : vrai fondu enchaîné. La 1re photo reste affichée dessous et la 2e apparaît par-dessus
   (avant : la 1re s'effaçait en même temps et le fond blanc passait entre les deux = flash blanc) */
.mp-card-img .mp-card-thumb .firstPic,
.mp-card-img:hover .mp-card-thumb .firstPic {
    opacity: 1 !important;
    transition: none !important;
}
.mp-card-img .mp-card-thumb .secondPic {
    z-index: 1;
    background: transparent;
    opacity: 0 !important;
    transition: opacity .45s ease !important;
}
.mp-card-img:hover .mp-card-thumb .secondPic {
    opacity: 1 !important;
}

/* ---------- Bandeau collant sous le header : catégorie, entrées du menu, Filtrer ---------- */
.mp-stickynav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 999; /* sous le header (1000) : le bandeau glisse de dessous */
    background: #fff;
    border-bottom: 1px solid #ececec;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), opacity .25s ease, visibility 0s linear .35s;
}
.mp-stickynav.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), opacity .25s ease, visibility 0s;
}
.mp-stickynav__in {
    display: flex;
    align-items: baseline; /* polices différentes (titre / entrées) : même ligne de base */
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    min-height: 48px;
}
.mp-stickynav__title {
    flex: none;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #212529;
    white-space: nowrap;
}
.mp-stickynav__links {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mp-stickynav__links::-webkit-scrollbar { display: none; }
.mp-stickynav__links a {
    flex: none;
    padding: 14px 0;
    font-size: 13px;
    color: #212529;
    white-space: nowrap;
    text-decoration: none;
}
.mp-stickynav__links a:hover,
.mp-stickynav__links a.is-active {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.mp-stickynav__filter {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: #212529;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.mp-stickynav__filter[hidden] { display: none; }
/* Filtrer en icône seule à toutes les largeurs (le libellé reste lu via aria-label) */
.mp-stickynav__filter span:first-child { display: none; }
.mp-stickynav__filter { align-self: center; order: -1; } /* icône à gauche, avant le titre */
.mp-stickynav__filter:focus-visible,
.mp-stickynav__links a:focus-visible {
    outline: 2px solid #18494e;
    outline-offset: 2px;
}
@media (max-width: 991px) {
    /* Mobile et tablette : une seule ligne, marges réduites */
    .mp-stickynav__in { gap: 14px; padding: 0 16px; min-height: 44px; }
    .mp-stickynav__links { gap: 18px; }
    .mp-stickynav__links a { padding: 13px 0; }
}
@media (max-width: 767px) {
    .mp-stickynav__in { padding: 0 20px; }
    /* Titre long (plus de la moitié de la largeur, détecté en JS dans mp_category tiles.tpl) : icône Filtrer + titre
       en entier sur la 1re ligne, entrées du menu dessous (défilent jusqu'aux bords). Titre court : tout sur une ligne. */
    .mp-stickynav--stacked .mp-stickynav__in {
        flex-wrap: wrap;
        align-items: center;
        column-gap: 14px;
        row-gap: 0;
        padding: 10px 20px 0;
    }
    /* base 0 : le titre reste à droite de l'icône Filtrer et passe à la ligne sur lui-même (sinon il partait sous l'icône) */
    .mp-stickynav--stacked .mp-stickynav__title { flex: 1 1 0; min-width: 0; white-space: normal; }
    .mp-stickynav--stacked .mp-stickynav__links {
        flex: 0 0 calc(100% + 40px);
        order: 3;
        margin: 0 -20px;
        padding: 0 20px;
        scroll-padding-inline: 20px;
    }
    .mp-stickynav--stacked .mp-stickynav__links a { padding: 0px 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-stickynav, .mp-stickynav.is-visible { transition: none; }
}
