.ds-product-layout,
.editorial-layout.editorial-layout--categories { display:grid; grid-template-columns:270px minmax(0,1fr); gap:40px; align-items:start; }
.ds-product-layout__content { min-width:0; }
.ds-category-sidebar { min-width:0; position:sticky; top:calc(var(--ds-header-bottom, 152px) + 16px); }
.ds-category-navigation { border:1px solid var(--line); background:#fff; }
.ds-category-navigation > summary { display:none; }
.ds-category-navigation__body { padding:18px 14px; }
.ds-category-compact-root { display:block; padding:10px 12px 14px; margin-bottom:8px; border-bottom:1px solid var(--line); font-size:.95rem; font-weight:700; text-decoration:none; color:var(--navy); }
.ds-category-compact-path,
.ds-category-compact-children { list-style:none; padding:0; margin:0; }
.ds-category-compact-path li,
.ds-category-compact-children li { margin:0; }
.ds-category-compact-link { display:block; padding:10px 12px; min-height:42px; font-size:.9rem; line-height:1.45; color:var(--ink); text-decoration:none; overflow-wrap:anywhere; }
a.ds-category-compact-link:hover,
.ds-category-compact-root:hover { color:var(--blue); background:var(--mist); }
.ds-category-compact-path [aria-current="page"] { background:var(--mist); color:var(--blue); font-weight:750; border-left:3px solid var(--blue); }
.ds-category-compact-children { padding-left:12px; }
.ds-category-compact-more > summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:42px; padding:10px 12px 10px 24px; cursor:pointer; list-style:none; color:var(--blue); font-size:.86rem; font-weight:700; }
.ds-category-compact-more > summary::-webkit-details-marker { display:none; }
.ds-category-compact-more > summary:hover { background:var(--mist); }
.ds-category-compact-collapse { display:none; }
.ds-category-compact-more[open] > summary .ds-category-compact-expand { display:none; }
.ds-category-compact-more[open] > summary .ds-category-compact-collapse { display:inline; }
.ds-category-compact-chevron { transition:transform .15s; }
.ds-category-compact-more[open] > summary .ds-category-compact-chevron { transform:rotate(180deg); }
.ds-category-sidebar a:focus-visible,
.ds-category-sidebar summary:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.editorial-layout--categories .editorial-copy > p,
.editorial-layout--categories .editorial-copy > ul,
.editorial-layout--categories .editorial-copy > ol,
.ds-product-layout__content > .prose > p,
.ds-product-layout__content > .prose > ul,
.ds-product-layout__content > .prose > ol { max-width:78ch; }
.ds-product-layout .product-grid { width:100%; }
@media(min-width:901px) {
  .ds-category-sidebar, .editorial-sidebar, .catalog-sidebar, .detail-aside {
    position:sticky; top:calc(var(--ds-header-bottom, 152px) + 16px); align-self:start;
    max-height:calc(100dvh - var(--ds-header-bottom, 152px) - 32px);
    overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable;
  }
  .editorial-sidebar .ds-category-sidebar { position:static; max-height:none; overflow:visible; }
}
@media(max-width:1100px) {
  .ds-product-layout,
  .editorial-layout.editorial-layout--categories { grid-template-columns:235px minmax(0,1fr); gap:26px; }
}
@media(max-width:900px) {
  .ds-product-layout,
  .editorial-layout.editorial-layout--categories { grid-template-columns:1fr; gap:24px; }
  .ds-category-sidebar, .editorial-sidebar, .catalog-sidebar, .detail-aside { position:static; top:auto; max-height:none; overflow:visible; }
  .ds-category-navigation > summary { display:flex; align-items:center; justify-content:space-between; padding:15px 18px; min-height:48px; cursor:pointer; font-weight:700; color:var(--blue); list-style:none; }
  .ds-category-navigation > summary::-webkit-details-marker { display:none; }
  .ds-category-navigation[open] > summary { border-bottom:1px solid var(--line); }
}

/* Hide only an automatically expanded child-list control, never its links. */
.ds-category-compact-more[data-category-wide="true"] > summary { display:none; }
@media(min-width:901px) {
  .ds-category-navigation:not([open]) > summary { display:block; padding:15px 18px; color:var(--blue); font-weight:700; cursor:pointer; }
}
