/* Kalimbatorium: brand pages only. Existing Porto catalog actions remain native. */
body.mpbrand-index-view #maincontent,
body.mpbrand-index-index #maincontent { color:#d0d0d0; }
body.mpbrand-index-view #maincontent .page-title,
body.mpbrand-index-index #maincontent .page-title { color:#f3f3f3; font-size:30px; line-height:1.2; font-weight:600; margin:0 0 18px; }
body.mpbrand-index-view .mpbrand-view { margin:0 0 28px; }
body.mpbrand-index-view .brand-information { margin:0; padding:0; }
body.mpbrand-index-view .brand-information .brand-detail {
 display:grid; grid-template-columns:120px minmax(0,1fr); gap:8px 26px;
 grid-template-areas:"logo title" "logo copy"; align-items:start;
 padding:22px 24px; margin:0; background:#181b1b; border:1px solid #343d3c; border-radius:12px;
}
body.mpbrand-index-view .brand-detail:before,
body.mpbrand-index-view .brand-detail:after { display:none; }
body.mpbrand-index-view .brand-detail .brand-image-container {
 grid-area:logo; float:none; width:120px; margin:0; padding:0; display:flex; align-items:center; justify-content:center; min-height:90px;
}
body.mpbrand-index-view .brand-information .brand-detail .brand-image-photo {
 width:auto!important; height:auto!important; max-width:120px; max-height:104px; object-fit:contain; margin:0;
}
body.mpbrand-index-view #maincontent .brand-detail .page-title { grid-area:title; margin:0; font-size:30px; }
body.mpbrand-index-view .brand-detail .brand-description-container { grid-area:copy; width:auto; min-width:0; margin:0; padding:0; float:none; }
body.mpbrand-index-view .brand-detail.klb-brand-no-logo { grid-template-columns:minmax(0,1fr); grid-template-areas:"title" "copy"; }
body.mpbrand-index-view .brand-description,
body.mpbrand-index-view .klb-brand-intro { font-size:15px; line-height:1.65; color:#d0d0d0; max-width:850px; margin:0; }
body.mpbrand-index-view .brand-description p { color:inherit; font-size:inherit; line-height:inherit; margin:0 0 12px; }
body.mpbrand-index-view .brand-description p:last-child { margin-bottom:0; }
body.mpbrand-index-view .brand-description a { color:#8cd2cb; text-decoration:underline; }
body.mpbrand-index-view .klb-brand-more {
 display:inline-flex; align-items:center; min-height:44px; padding:8px 0; margin:4px 0 -6px;
 color:#8cd2cb; background:transparent; border:0; border-radius:0; box-shadow:none; font:inherit; font-size:14px; font-weight:600; cursor:pointer;
}
body.mpbrand-index-view .klb-brand-more:after { content:"+"; margin-left:9px; font-size:20px; font-weight:400; }
body.mpbrand-index-view .klb-brand-more[aria-expanded="true"]:after { content:"−"; }
body.mpbrand-index-view .klb-brand-back { display:inline-flex; align-items:center; min-height:36px; margin:0 0 8px; color:#8cd2cb; font-size:13px; }
body.mpbrand-index-view .klb-brand-back:before { content:"←"; margin-right:7px; }
body.mpbrand-index-view .brand-detail [hidden],
body.mpbrand-index-index .klb-brand-placeholder,
body.mpbrand-index-index .klb-brand-static .brand-carousel { display:none!important; }
/* Keep filters at the beginning of the sidebar, without competing brand widgets. */
body.mpbrand-index-view .sidebar .block-brand-feature,
body.mpbrand-index-view .sidebar .block-brand-thumbnail,
body.mpbrand-index-view .sidebar .side-custom-block > .sidebar-title,
body.mpbrand-index-view .sidebar .sidebar-filterproducts { display:none!important; }
body.mpbrand-index-view .sidebar .side-custom-block > p { color:#bfc8c6!important; }
body.mpbrand-index-view .sidebar #layered-filter-block-container { margin-top:0; }
body.mpbrand-index-view .sidebar .filter-options-title { color:#eee; }
body.mpbrand-index-view .sidebar .filter-options-content,
body.mpbrand-index-view .sidebar .filter-options-content a { color:#c9cece; }
body.mpbrand-index-view #layer-product-list .toolbar { background:transparent; color:#c9cece; }
body.mpbrand-index-view #layer-product-list .sorter-options { color:#eee; background-color:#242929; border-color:#45504f; }
body.mpbrand-index-view #layer-product-list .sorter-action:before { color:#c9cece; }
body.mpbrand-index-view #layer-product-list .product-item-name { min-height:2.8em; }
body.mpbrand-index-view #layer-product-list .product-item-name a {
 display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
 white-space:normal!important; overflow:hidden; text-overflow:ellipsis; line-height:1.4; color:#eee;
}
/* Brand directory: compact dark search and static featured cards. */
body.mpbrand-index-index #maincontent > .page-title-wrapper { display:block!important; }
body.mpbrand-index-index .block-brand-search { padding:0!important; margin:0 0 22px!important; background:transparent!important; }
body.mpbrand-index-index .block-brand-search .block-title { display:none; }
body.mpbrand-index-index .block-brand-search .block-content { margin:0; padding:0; }
body.mpbrand-index-index .mp-searchbox { position:relative; width:100%!important; max-width:620px; margin:0!important; }
body.mpbrand-index-index #mp-search {
 width:100%; height:48px!important; padding:0 56px 0 15px!important; border:1px solid #465452!important;
 border-radius:8px!important; background:#202525!important; color:#f0f0f0!important; font-size:16px; box-sizing:border-box;
}
body.mpbrand-index-index #mp-search::placeholder { color:#b5bfbd; opacity:1; }
body.mpbrand-index-index #mp-brand-search-button {
 position:absolute; top:0!important; right:0!important; left:auto; width:48px!important; height:48px!important;
 margin:0!important; padding:0!important; border:0; background:transparent!important; color:#8cd2cb!important; box-shadow:none; font-size:22px;
}
body.mpbrand-index-index .block-brand-feature { margin:0 0 24px; }
body.mpbrand-index-index .block-brand-feature > .block-title { text-align:left!important; margin:0 0 12px; }
body.mpbrand-index-index #block-feature-brand-heading { color:#dce5e3; font-size:16px; font-weight:600; }
body.mpbrand-index-index .klb-brand-featured { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
body.mpbrand-index-index .klb-brand-featured-card {
 display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-width:0; padding:16px 8px;
 background:#1a1e1d; border:1px solid #35403e; border-radius:9px; color:#eee; text-align:center; font-size:14px;
}
body.mpbrand-index-index .klb-brand-featured-card img { display:block; width:auto; height:68px; max-width:100%; object-fit:contain; }
body.mpbrand-index-index .block-brand-list { margin:22px 0 0!important; padding-top:18px!important; border-top:1px solid #343d3c!important; }
body.mpbrand-index-index .brand-options { display:flex; flex-wrap:wrap; gap:4px; padding:0; margin:0 0 18px; width:100%; float:none; }
body.mpbrand-index-index .brand-options li { margin:0!important; padding:0!important; float:none!important; border:0!important; }
body.mpbrand-index-index .brand-options li.disabled { display:none; }
body.mpbrand-index-index .brand-options a {
 display:flex; align-items:center; justify-content:center; min-width:34px; min-height:36px; padding:4px 8px!important;
 box-sizing:border-box; border:1px solid #3a4442!important; border-radius:5px; background:transparent!important; color:#c4cecc!important; font-size:13px;
}
body.mpbrand-index-index .brand-options .active a,
body.mpbrand-index-index .brand-options a.mixitup-control-active { background:#30534f!important; border-color:#76bcb3!important; color:#fff!important; }
body.mpbrand-index-index .block-brand-list .brand-list-content > .product-items { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0!important; padding:0!important; }
body.mpbrand-index-index .block-brand-list .brand-list-content .product-item { width:auto!important; margin:0!important; padding:0!important; float:none!important; min-width:0; }
body.mpbrand-index-index .block-brand-list .brand-name-type-label-only { padding:0!important; margin:0!important; }
body.mpbrand-index-index .block-brand-list .product-item-name { display:block; padding:0; margin:0!important; font-weight:400; }
body.mpbrand-index-index .block-brand-list .product-item-link {
 display:flex!important; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:54px; padding:12px 14px!important; margin:0;
 float:none!important; border:1px solid #343d3c; border-radius:7px; background:#181c1b; color:#e5e9e8; white-space:normal!important; box-sizing:border-box;
}
body.mpbrand-index-index .block-brand-list .product-item-link:after { content:"→"; color:#86b9b2; }
body.mpbrand-index-index .klb-brand-featured-card:hover,
body.mpbrand-index-index .block-brand-list .product-item-link:hover { border-color:#76bcb3; background:#232e2b; text-decoration:none; }
body.mpbrand-index-view .klb-brand-more:focus-visible,
body.mpbrand-index-view .klb-brand-back:focus-visible,
body.mpbrand-index-index #mp-search:focus-visible,
body.mpbrand-index-index #mp-brand-search-button:focus-visible,
body.mpbrand-index-index .brand-options a:focus-visible,
body.mpbrand-index-index .klb-brand-featured-card:focus-visible,
body.mpbrand-index-index .block-brand-list .product-item-link:focus-visible { outline:2px solid #9bddd4; outline-offset:3px; }
@media (max-width:991px) {
 body.mpbrand-index-index .klb-brand-featured { grid-template-columns:repeat(3,minmax(0,1fr)); }
 body.mpbrand-index-index .block-brand-list .brand-list-content > .product-items { grid-template-columns:repeat(3,minmax(0,1fr)); }
 body.mpbrand-index-view .brand-information .brand-detail { padding:18px; column-gap:20px; }
}
@media (max-width:600px) {
 body.mpbrand-index-view .mpbrand-view { margin-bottom:18px; }
 body.mpbrand-index-view .brand-information .brand-detail { grid-template-columns:70px minmax(0,1fr); grid-template-areas:"logo title" "copy copy"; gap:14px; padding:16px; }
 body.mpbrand-index-view .brand-information .brand-detail.klb-brand-no-logo { grid-template-columns:minmax(0,1fr); grid-template-areas:"title" "copy"; }
 body.mpbrand-index-view .brand-detail .brand-image-container { width:70px; min-height:56px; align-self:center; }
 body.mpbrand-index-view .brand-information .brand-detail .brand-image-photo { max-width:70px; max-height:62px; }
 body.mpbrand-index-view #maincontent .brand-detail .page-title { font-size:24px; align-self:center; }
 body.mpbrand-index-view .brand-description,body.mpbrand-index-view .klb-brand-intro { font-size:14px; line-height:1.6; }
 body.mpbrand-index-index #maincontent .page-title { font-size:27px; }
 body.mpbrand-index-index .klb-brand-featured { gap:8px; }
 body.mpbrand-index-index .klb-brand-featured-card { padding:12px 5px; gap:8px; font-size:12px; }
 body.mpbrand-index-index .klb-brand-featured-card img { max-width:82px; height:54px; }
 body.mpbrand-index-index .block-brand-list .brand-list-content > .product-items { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 body.mpbrand-index-index .brand-options a { min-width:40px; min-height:44px; }
 body.mpbrand-index-index .block-brand-list .product-item-link { padding:11px!important; font-size:14px; }
}
@media print {
 body.mpbrand-index-view .brand-detail .brand-description[hidden] { display:block!important; }
 body.mpbrand-index-view .klb-brand-intro,body.mpbrand-index-view .klb-brand-more { display:none!important; }
}
