.woocommerce-loop-product__title > .mpcb-brand,
.woocommerce-loop-product__title > .mpcb-product-name {
    display: block;
}
/* Home Selections has a fixed title box sized for the previous single heading. */
html body.home #page_content .hp-selections .slick-slide li.product .woocommerce-loop-product__title:has(> .mpcb-brand) {
    display:block!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    white-space:normal!important;
    -webkit-line-clamp:unset!important;
}
@media (min-width:1025px), (min-width:768px) and (max-width:1024px) and (min-height:600px) {
    html body.home #page_content .hp-selections .slick-slide li.product .woocommerce-loop-product__title:has(> .mpcb-brand) {
        min-height:5.5em!important;
    }
}
.woocommerce-loop-product__title > .mpcb-brand {
    font-size: .84em;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: .22em;
}
.woocommerce-loop-product__title > .mpcb-product-name {
    font-weight: 400;
    line-height: 1.38;
    text-transform: none;
    letter-spacing: normal;
}
.mpcb-browse { min-width: 0; clear: both; margin: .8rem 0 0; }
.mpcb-rail { display:flex; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; padding:2px 1px 8px; scrollbar-width:thin; }
.mpcb-type { flex:0 0 clamp(88px,10.7vw,136px); min-width:0; color:inherit; scroll-snap-align:start; font-size:13px; line-height:1.35; text-decoration:none; }
.mpcb-type-photo { display:block; position:relative; isolation:isolate; background:#f2f1ef; }
.mpcb-type-photo img { display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; background:transparent; filter:brightness(1.05) contrast(1.04); mix-blend-mode:multiply; }
.mpcb-type-name { display:block; padding:.45rem 0 .1rem; text-align:center; }
.mpcb-type[aria-current] .mpcb-type-photo::after { content:""; position:absolute; inset:0; border:1px solid #b8b5b1; pointer-events:none; }
.mpcb-rail .mpcb-type:focus-visible { outline:2px solid #575451; outline-offset:-1px; }
.mpcb-type[aria-current] .mpcb-type-name, .mpcb-all[aria-current], .mpcb-model-menu [aria-current] { text-decoration:underline; text-underline-offset:3px; }
.mpcb-chips { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:8px 0; font-size:13px; }
.mpcb-chips:has(> [data-mpcb-designer-chips]:only-child:empty) { display:none; }
.mpcb-chip,.mpcb-all,.mpcb-model-menu summary { padding:6px 9px; color:inherit; }
.mpcb-all { padding-left:0; }
.mpcb-chip { background:#f3f3f2; text-decoration:none; }
.mpcb-chip span { margin-left:.28em; }
.mpcb-model-menu { position:relative; }
.mpcb-model-menu summary { cursor:pointer; }
.mpcb-model-menu ul { position:absolute; top:100%; left:0; max-height:250px; overflow:auto; background:#fff; color:#222; min-width:135px; padding:7px 12px; margin:0; z-index:9; border:1px solid #dededb; list-style:none; }
.mpcb-model-menu li { margin:0; list-style:none; }
.mpcb-model-menu a { display:block; padding:5px 0; color:inherit; }
@media (max-width:767px) {
    .mpcb-type { flex-basis:clamp(86px,25vw,128px); font-size:12px; }
    .mpcb-rail { gap:7px; }
}

/* Tint only the catalogue navigation photos. The active border shares this layer. */
.mpcb-rail .mpcb-type-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.10);
    pointer-events: none;
}

/* Every category row uses the same photo ratio and caption line, including wrapped names. */
.mpcb-rail { align-items:stretch; }
.mpcb-rail .mpcb-type { display:flex; flex-direction:column; container:mpcb-category-tile / inline-size; }
.mpcb-rail .mpcb-type-photo { flex:none; width:100%; aspect-ratio:4/5; }
.mpcb-rail .mpcb-type-photo img { position:absolute; inset:0; width:100%; height:100%; }
.mpcb-rail .mpcb-type-name { flex:1 0 auto; box-sizing:border-box; min-height:calc(5.4em + .55rem); overflow-wrap:anywhere; }
@container mpcb-category-tile (min-width:6.85em) {
    .mpcb-rail .mpcb-type-name { min-height:calc(4.05em + .55rem); }
}
@container mpcb-category-tile (min-width:8.20em) {
    .mpcb-rail .mpcb-type-name { min-height:calc(2.7em + .55rem); }
}

/* Soften the photographic ground on these two approved accessory covers. */
.mpcb-rail .mpcb-type-photo[data-mpcb-studio="charms"] { --mpcb-paper-mask:url("studio-masks/charms.svg"); }
.mpcb-rail .mpcb-type-photo[data-mpcb-studio="belts"] { --mpcb-paper-mask:url("studio-masks/belts.svg"); }
@supports ((-webkit-mask-image:linear-gradient(black, transparent)) or (mask-image:linear-gradient(black, transparent))) {
    .mpcb-rail .mpcb-type-photo[data-mpcb-studio]::before {
        content:"";
        position:absolute;
        inset:0;
        z-index:1;
        pointer-events:none;
        background:#f2f1ef;
        -webkit-mask:var(--mpcb-paper-mask) center / 100% 100% no-repeat;
        mask:var(--mpcb-paper-mask) center / 100% 100% no-repeat;
    }
    .mpcb-rail .mpcb-type-photo[data-mpcb-studio]::after { z-index:2; }
}

/* Only the native, attachment-verified compact covers use these photo coordinates. */
.mpcb-rail .mpcb-type-photo:has(> img[data-mpcb-sized]) { overflow:hidden; }
.mpcb-rail .mpcb-type-photo img[data-mpcb-sized] {
    inset:auto;
    left:var(--mpcb-x);
    top:var(--mpcb-y);
    width:var(--mpcb-w);
    height:var(--mpcb-h);
    max-width:none;
    max-height:none;
    aspect-ratio:auto;
    object-fit:fill;
    --mpcb-paper-x:linear-gradient(to right,transparent,#000 var(--mpcb-feather-left),#000 calc(100% - var(--mpcb-feather-right)),transparent);
    --mpcb-paper-y:linear-gradient(to bottom,transparent,#000 var(--mpcb-feather-top),#000 calc(100% - var(--mpcb-feather-bottom)),transparent);
    -webkit-mask-image:var(--mpcb-paper-x),var(--mpcb-paper-y);
    -webkit-mask-composite:source-in;
    mask-image:var(--mpcb-paper-x),var(--mpcb-paper-y);
    mask-composite:intersect;
}

.mpcb-rail img[data-mpcb-sized="accessories/eyewear"] { --mpcb-x:2.1989%; --mpcb-y:14.9745%; --mpcb-w:90.5109%; --mpcb-h:90.5109%; --mpcb-feather-left:8.125%; --mpcb-feather-right:3.3125%; --mpcb-feather-top:22%; --mpcb-feather-bottom:19.5%; }
.mpcb-rail img[data-mpcb-sized="accessories/wallets"] { --mpcb-x:9.7%; --mpcb-y:22.8067%; --mpcb-w:82.6667%; --mpcb-h:82.6667%; --mpcb-feather-left:0.8125%; --mpcb-feather-right:3.3125%; --mpcb-feather-top:22%; --mpcb-feather-bottom:22%; }
.mpcb-rail img[data-mpcb-sized="accessories/hats"] { --mpcb-x:5.8304%; --mpcb-y:19.0664%; --mpcb-w:86.7133%; --mpcb-h:86.7133%; --mpcb-feather-left:5.1875%; --mpcb-feather-right:3.3125%; --mpcb-feather-top:14%; --mpcb-feather-bottom:21%; }
.mpcb-rail img[data-mpcb-sized="accessories/footwear"] { --mpcb-x:6.9444%; --mpcb-y:13.0417%; --mpcb-w:86.1111%; --mpcb-h:86.1111%; --mpcb-feather-left:3.9375%; --mpcb-feather-right:3.9375%; --mpcb-feather-top:16%; --mpcb-feather-bottom:13%; }
.mpcb-rail img[data-mpcb-sized="accessories/other"] { --mpcb-x:11.828%; --mpcb-y:5.5376%; --mpcb-w:76.3441%; --mpcb-h:81.4337%; --mpcb-feather-left:0.375%; --mpcb-feather-right:0.375%; --mpcb-feather-top:4.6875%; --mpcb-feather-bottom:0.4688%; }
.mpcb-rail img[data-mpcb-sized="bags/top-handle"] { --mpcb-x:4.9764%; --mpcb-y:6.0943%; --mpcb-w:86.7925%; --mpcb-h:86.7925%; --mpcb-feather-left:8.125%; --mpcb-feather-right:4.5625%; --mpcb-feather-top:3%; --mpcb-feather-bottom:8.5%; }
.mpcb-rail img[data-mpcb-sized="shoes/boots"] { --mpcb-x:8.0651%; --mpcb-y:7.2534%; --mpcb-w:84.9315%; --mpcb-h:84.9315%; --mpcb-feather-left:2.6875%; --mpcb-feather-right:3.9375%; --mpcb-feather-top:21.5%; --mpcb-feather-bottom:14.5%; }
.mpcb-rail img[data-mpcb-sized="shoes/loafers"] { --mpcb-x:6.8838%; --mpcb-y:16.3028%; --mpcb-w:87.3239%; --mpcb-h:87.3239%; --mpcb-feather-left:3.9375%; --mpcb-feather-right:5.1875%; --mpcb-feather-top:22%; --mpcb-feather-bottom:27%; }
.mpcb-rail img[data-mpcb-sized="shoes/sneakers"] { --mpcb-x:7.5086%; --mpcb-y:18.1276%; --mpcb-w:85.5172%; --mpcb-h:85.5172%; --mpcb-feather-left:3.3125%; --mpcb-feather-right:3.9375%; --mpcb-feather-top:20.5%; --mpcb-feather-bottom:27.5%; }
.mpcb-rail img[data-mpcb-sized="shoes/pumps"] { --mpcb-x:5.6745%; --mpcb-y:8.8237%; --mpcb-w:89.2086%; --mpcb-h:89.2086%; --mpcb-feather-left:5.1875%; --mpcb-feather-right:5.8125%; --mpcb-feather-top:22%; --mpcb-feather-bottom:20%; }
.mpcb-rail img[data-mpcb-sized="shoes/sandals"] { --mpcb-x:6.8838%; --mpcb-y:13.2465%; --mpcb-w:87.3239%; --mpcb-h:87.3239%; --mpcb-feather-left:3.9375%; --mpcb-feather-right:5.1875%; --mpcb-feather-top:22%; --mpcb-feather-bottom:23.5%; }
.mpcb-rail img[data-mpcb-sized="shoes/slides"] { --mpcb-x:6.4397%; --mpcb-y:21.7621%; --mpcb-w:85.5172%; --mpcb-h:85.5172%; --mpcb-feather-left:4.5625%; --mpcb-feather-right:2.6875%; --mpcb-feather-top:22%; --mpcb-feather-bottom:27.5%; }
.mpcb-rail img[data-mpcb-sized="shoes/ballet"] { --mpcb-x:7.5595%; --mpcb-y:17.4048%; --mpcb-w:84.3537%; --mpcb-h:84.3537%; --mpcb-feather-left:3.3125%; --mpcb-feather-right:2.6875%; --mpcb-feather-top:22%; --mpcb-feather-bottom:26%; }
.mpcb-rail img[data-mpcb-sized="shoes/lace-ups"] { --mpcb-x:8.6667%; --mpcb-y:18.94%; --mpcb-w:82.6667%; --mpcb-h:82.6667%; --mpcb-feather-left:2.0625%; --mpcb-feather-right:2.0625%; --mpcb-feather-top:20%; --mpcb-feather-bottom:26.5%; }

/* Keep the fan's lower-right paper corner level with the surrounding studio field. */
.mpcb-rail .mpcb-type-photo img[data-mpcb-sized="accessories/other"] {
    --mpcb-corner:radial-gradient(ellipse 32% 28% at 100% 100%,transparent 64%,#000 100%);
    -webkit-mask-image:var(--mpcb-paper-x),var(--mpcb-paper-y),var(--mpcb-corner);
    mask-image:var(--mpcb-paper-x),var(--mpcb-paper-y),var(--mpcb-corner);
}

