/* Desktop-only navigation grouping. The existing mobile drawer stays intact. */
.grouped-navigation{display:none}
@media(min-width:1001px){
 .grouped-header .restored-header-main{position:relative;max-width:1440px;gap:32px;padding:24px 32px;min-height:100px}
 .grouped-header .restored-logo{flex-shrink:0;max-width:300px;font-size:26px;letter-spacing:.025em;overflow-wrap:normal}
 .grouped-header .restored-logo span{white-space:nowrap}
 .grouped-header .restored-navigation{display:none}
 .grouped-navigation{display:block;margin-left:auto;font-size:13px;letter-spacing:.05em}
 .grouped-categories,.grouped-group{position:static}
 .grouped-compact-toggle{display:none}
 .grouped-groups{display:flex;gap:25px;align-items:center;list-style:none;margin:0;padding:0}
 .grouped-groups>li{position:static}
 .grouped-navigation summary{cursor:pointer;list-style:none}
 .grouped-navigation summary::-webkit-details-marker{display:none}
 .grouped-group>summary,.grouped-direct{display:flex;gap:8px;align-items:center;padding:16px 0;white-space:nowrap;border-bottom:2px solid transparent}
 .grouped-group[open]>summary{border-color:currentColor}
 .grouped-group[open]>summary>span{transform:rotate(180deg)}
 .grouped-panel{position:absolute;top:100%;left:32px;right:32px;max-height:min(70vh,650px);overflow:auto;overscroll-behavior:contain;padding:28px 32px 36px;background:#fff;color:#292929;border:1px solid #e4e2de;box-shadow:0 20px 35px #29292918;z-index:50;animation:grouped-panel-in .18s ease-out;text-transform:none;letter-spacing:normal}
 .grouped-panel-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid #e7e5e1}
 .grouped-panel-heading>span{font-family:Georgia,serif;font-size:26px}
 .grouped-panel-heading>a{font-size:12px}
 .grouped-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 40px}
 .grouped-columns-wide{grid-template-columns:repeat(6,minmax(0,1fr));gap:22px}
 .grouped-column h2{font-family:inherit;font-size:14px;font-weight:600;margin:0 0 12px;letter-spacing:.025em}
 .grouped-column h2 a{display:flex;justify-content:space-between;gap:12px;padding:0 0 10px;border-bottom:1px solid #efeeeb}
 .grouped-column ul{list-style:none;padding:0;margin:0}
 .grouped-column li>a,.grouped-subbranch>summary,.grouped-subbranch>a{display:block;padding:7px 0;font-size:13px;line-height:1.5}
 .grouped-subbranch>summary{display:flex;justify-content:space-between;gap:10px}
 .grouped-subbranch>summary:after{content:'+'}
 .grouped-subbranch[open]>summary:after{content:'−'}
 .grouped-subbranch>ul{padding-left:14px;border-left:1px solid #e4e2de}
 .grouped-subbranch>a{font-size:12px;text-decoration:underline}
 .grouped-columns-single{display:block}
 .grouped-columns-single>.grouped-column>ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 40px}
 .grouped-navigation a:hover,.grouped-navigation a[aria-current=page]{color:var(--primary);text-decoration:underline;text-underline-offset:4px}
 .grouped-navigation :is(a,summary):focus-visible{outline:2px solid currentColor;outline-offset:4px}
 .grouped-header .restored-search-toggle{flex-shrink:0}
 /* Override header form's 100% cap, which otherwise uses the narrow icon as its container. */
 .grouped-header .restored-search-toggle .restored-search{width:360px;max-width:calc(100vw - 64px);z-index:60}
}
@media(min-width:1001px) and (max-width:1250px){
 .grouped-compact-toggle{display:flex;align-items:center;gap:12px;padding:16px 0}
 .grouped-categories>.grouped-groups{position:absolute;top:100%;left:24px;right:24px;background:white;color:#292929;padding:14px 24px;border:1px solid #e4e2de;gap:24px;z-index:50}
 .grouped-panel{top:100%;left:-1px;right:-1px;max-height:60vh}
 .grouped-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
}
@keyframes grouped-panel-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.grouped-panel{animation:none}}

@media(min-width:1001px){
 .grouped-header:not(.restored-header-kaira) .grouped-panel-heading>span{font-family:inherit;font-weight:600}
 .restored-header-furni.grouped-header .grouped-group[open]>summary{border-color:#f9bf29}
 .restored-header-furni.grouped-header .grouped-panel{border-top:3px solid #f9bf29;border-radius:0 0 12px 12px}
 .restored-header-stylish.grouped-header .grouped-panel{border-radius:0 0 16px 16px}
 .restored-header-ultras.grouped-header .grouped-panel{border-top:2px solid #292929}
 .grouped-columns-wide:has(>.grouped-column:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:1001px) and (max-width:1250px){
 .grouped-columns-wide:has(>.grouped-column:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}
