.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); }
}
