/* All products: compact categories, bounded brand rail, linked brand detail. */
.mega-content.brand-menu-mode{display:grid;grid-template-columns:236px minmax(245px,1fr) minmax(0,1.85fr);height:min(510px,calc(100dvh - var(--panel-top,150px) - 88px));min-height:0;overflow:hidden;background:#fff;color:var(--ink,#10294e)}
.brand-menu-mode a,.brand-menu-mode button,.brand-menu-mode a:hover,.brand-menu-mode button:hover{color:inherit;text-decoration:none}
.brand-menu-mode button{font:inherit;border:0;cursor:pointer}
.brand-menu-categories,.brand-menu-brands,.brand-menu-detail{min-width:0;min-height:0;padding:15px 16px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aac5e3 #f6f9fd}
.brand-menu-categories{overflow-y:auto;border-right:1px solid #e2eaf6}
.brand-menu-brands{display:flex;flex-direction:column;border-right:1px solid #e2eaf6;padding-bottom:0;overflow:hidden}
.brand-menu-detail{overflow-y:auto;padding:17px 23px 22px}
.brand-menu-label{margin:0 0 10px;padding:0 7px;font-size:10px;font-weight:700;line-height:1.5;letter-spacing:.9px;text-transform:uppercase;color:#71829d}
.brand-menu-root-row,.brand-menu-brand-row{display:grid;grid-template-columns:36px minmax(0,1fr) 12px;align-items:center;width:100%;gap:10px;min-height:52px;padding:6px 8px;border-radius:7px;background:#fff;text-align:left}
.brand-menu-root-row .menu-art{width:34px;height:36px}
.brand-menu-root-row b{display:block;font-size:12px;font-weight:650;line-height:1.3}
.brand-menu-root-row small{display:block;margin-top:3px;font-size:9px;color:#617999;font-weight:400}
.brand-menu-root-row[aria-pressed=true],.brand-menu-brand-row[aria-pressed=true]{background:#eaf3ff;color:#092e6c}
.brand-menu-root-row:hover,.brand-menu-brand-row:hover,.brand-menu-category-link:hover{background:#f0f6ff;color:#073da5}
.brand-menu-root-row:focus-visible,.brand-menu-brand-row:focus-visible,.brand-menu-mode a:focus-visible{outline:2px solid #2174dd;outline-offset:-2px}
.brand-menu-chevron{display:block;font-size:21px;font-weight:400;color:#6c8aae;line-height:1}
.brand-menu-brand-list{flex:1;min-height:0;overflow-y:auto;padding:0 3px 5px 0;scrollbar-width:thin;scrollbar-color:#aac5e3 #f6f9fd;overscroll-behavior:contain}
.brand-menu-brand-row{grid-template-columns:39px minmax(0,1fr) 12px;min-height:48px;padding:5px 8px;gap:10px}
.brand-menu-logo{display:flex;align-items:center;justify-content:center;min-width:0;width:36px;height:36px;padding:3px;border:1px solid #e2eaf6;border-radius:7px;background:#fff;overflow:hidden}
.brand-menu-logo img{display:block;width:100%;height:100%;object-fit:contain}
.brand-menu-logo>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-align:center;font-size:6px;line-height:1.15;font-weight:750;overflow-wrap:anywhere;color:#17385d}
.brand-menu-brand-name{display:block;min-width:0;font-size:12px;line-height:1.35}
.brand-menu-brand-name b{font-weight:650;overflow-wrap:anywhere}
.brand-menu-brand-name small{font-size:10px;font-weight:400;color:#617999;white-space:nowrap}
.brand-menu-mode .brand-menu-all{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;min-height:45px;margin-top:5px;padding:9px 9px;border-top:1px solid #e2eaf6;background:#fff;color:#073da5;font-size:12px;font-weight:700}
.brand-menu-mode .brand-menu-all:hover{background:#f1f7ff;color:#092e6c}
.brand-menu-brand-heading{margin:0 0 7px;font-size:20px;line-height:1.25;font-weight:700;overflow-wrap:anywhere}
.brand-menu-brand-heading a:hover{color:#073da5}
.brand-menu-mode .brand-menu-overview{display:inline-flex;align-items:center;gap:12px;font-size:11px;line-height:1.4;color:#073da5}
.brand-menu-root-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;margin-top:15px}
.brand-menu-category-link{display:grid;grid-template-columns:34px minmax(0,1fr) 11px;align-items:center;gap:8px;min-height:53px;padding:6px;border-radius:6px}
.brand-menu-category-link .menu-art{width:32px;height:37px}
.brand-menu-category-link b{display:block;font-size:12px;line-height:1.3;font-weight:650}
.brand-menu-category-link small{display:block;font-size:9px;line-height:1.4;margin-top:3px;color:#617999}
.brand-menu-branch-label{border-top:1px solid #e7edf6;margin-top:16px;padding:13px 6px 0}
.brand-menu-branch-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px}
.brand-menu-mode .brand-menu-deals{display:flex;align-items:center;gap:10px;margin-top:15px;min-height:46px;padding:8px 12px;border-radius:6px;background:#fff2e9;color:#173658;font-size:11px;font-weight:650}
.brand-menu-deals .menu-art{width:27px;height:29px}.brand-menu-deals .brand-menu-chevron{margin-left:auto}
.brand-menu-mode .brand-menu-deals:hover{background:#ffe1cc}
.brand-menu-mode .brand-menu-bottom-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin:10px 0 0;padding:8px 9px;border-radius:6px;color:#073da5;font-size:11px;font-weight:650}
.brand-menu-bottom-link:hover{background:#f0f6ff}
.brand-menu-mode .brand-menu-bottom-deals{margin-top:4px;background:#fff2e9;color:#173658}
.brand-menu-mode .brand-menu-bottom-deals:hover{background:#ffe1cc}
.brand-menu-status,.brand-menu-empty{font-size:12px;color:#5a7496;padding:12px;margin:0;line-height:1.6}
.brand-menu-status{grid-column:1/-1}
.brand-menu-retry{align-self:start;margin:0 16px 15px;padding:10px 14px;border-radius:6px;background:#edf4ff;color:#073da5}
@media(min-width:1100px) and (max-width:1240px){.mega-content.brand-menu-mode{grid-template-columns:210px 250px minmax(0,1fr)}.brand-menu-categories,.brand-menu-brands{padding-left:10px;padding-right:10px}.brand-menu-detail{padding-left:15px;padding-right:15px}.brand-menu-root-links,.brand-menu-branch-links{gap:4px}.brand-menu-category-link b{font-size:11px}}
@media(prefers-reduced-motion:reduce){.brand-menu-mode *{scroll-behavior:auto}}

/* Desktop menu: shared intrinsic rail width, independent full-height scroll panes. */
@media(min-width:1100px){
 .mega-shell:not(.mobile-menu-proposal .mega-shell){height:calc(100dvh - var(--panel-top) - 12px);max-height:calc(100dvh - var(--panel-top) - 12px)}
 .mega-heading{flex:0 0 auto}
 .mega-content:not(.root-mode){grid-template-columns:var(--menu-left-width, max-content) minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:auto;flex:1;min-height:0;overflow:hidden}
 .mega-content.brand-menu-mode{grid-template-columns:var(--menu-left-width, max-content) minmax(220px,1fr) minmax(0,1.85fr);height:auto}
 .menu-rail,.brand-menu-categories{min-width:0;min-height:0;max-height:none;overflow:visible;padding:8px 10px 12px 16px}
 .menu-rail{gap:2px}
 .menu-rail>.branch{zoom:1;min-width:0;width:100%;min-height:0;flex:0 1 auto;padding:5px;gap:6px}
 .menu-rail .branch-name{min-width:0;font-size:14.3px;white-space:nowrap;overflow-wrap:normal}
 .menu-rail .branch-count{font-size:12.1px;white-space:nowrap}
 .menu-rail .branch .menu-art{width:34.1px;height:36.3px;flex:0 0 34.1px}
 .menu-rail .branch svg{width:14.3px;height:14.3px;flex:0 0 14.3px}
 .brand-menu-categories>*{zoom:1}
 .brand-menu-root-row{min-width:0;grid-template-columns:37.4px minmax(0,1fr) 13px;gap:8px;min-height:57.2px;padding:6px 7px}
 .brand-menu-root-row b{font-size:13.2px;white-space:nowrap}.brand-menu-root-row small{font-size:9.9px;white-space:nowrap}
 .brand-menu-root-row .menu-art{width:37.4px;height:39.6px}
 .brand-menu-categories .brand-menu-label{font-size:11px}
 .brand-menu-categories .brand-menu-bottom-link{font-size:12.1px;white-space:nowrap}
 .mega-detail,.brand-menu-detail{min-height:0;max-height:none;height:auto;overflow:auto}
 .brand-menu-brands{min-height:0;max-height:none}
 .brand-menu-brand-list{width:auto;max-width:100%}
 .menu-measure{position:fixed;inset:0 auto auto 0;visibility:hidden;pointer-events:none;width:max-content!important;max-width:none;max-height:none;contain:layout style}
 .menu-measure>.branch{width:max-content;flex:none}.menu-measure .branch-name{flex:none}
}
@media(min-width:1100px){
 .mega-detail .leaf-grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));max-width:none}
 .brand-menu-root-links,.brand-menu-branch-links{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
}
