/* Category hierarchy and filters share the left column; results use the available width. */
.woocommerce-section--catalog { padding-top:24px; }
.catalog-layout { display:grid; grid-template-columns:280px minmax(0,1fr); align-items:start; gap:36px; }
.catalog-layout.catalog-search--home { padding:0; margin-bottom:0; background:transparent; box-shadow:none; }
.catalog-sidebar, .catalog-main { min-width:0; }
.catalog-sidebar { border:1px solid var(--line); background:var(--white); }
.catalog-sidebar-controls > summary { display:none; }
.catalog-sidebar-controls__body { padding:22px; }
.catalog-category-nav { margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.catalog-category-nav h2 { margin:0 0 8px; font-size:1rem; }
.catalog-category-nav ul { list-style:none; margin:0; padding:0; }
.catalog-category-nav [data-catalog-view][hidden] { display:none; }
.catalog-category-nav a, .catalog-category-nav [data-catalog-selected] { display:block; padding:5px 8px; min-height:32px; font-size:.85rem; line-height:1.4; text-decoration:none; overflow-wrap:anywhere; }
.catalog-category-nav a:hover, .catalog-category-nav a[aria-current] { background:var(--mist); font-weight:700; }
.catalog-category-nav [data-catalog-selected] { background:var(--mist); color:var(--blue); font-weight:700; }
.catalog-category-nav__children a { padding-left:18px; }
.catalog-category-nav__more summary { padding:7px 8px; min-height:32px; color:var(--blue); font-size:.8rem; font-weight:700; cursor:pointer; }
.catalog-category-nav__more .catalog-category-nav__hide, .catalog-category-nav__more[open] .catalog-category-nav__show { display:none; }
.catalog-category-nav__more[open] .catalog-category-nav__hide { display:inline; }
.catalog-sidebar .catalog-search__heading { position:static; width:auto; height:auto; overflow:visible; clip-path:none; display:block; margin-bottom:18px; }
.catalog-sidebar .catalog-search__heading h2 { font-size:1.15rem; margin-bottom:12px; }
.catalog-sidebar .catalog-search__form { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.catalog-sidebar .catalog-search__field label { font-size:.82rem; }
.catalog-sidebar .catalog-search__field input, .catalog-sidebar .catalog-search__field select { width:100%; min-width:0; }
.catalog-sidebar .catalog-search__field--category { display:none; }
.catalog-sidebar .ds-feature-controls { grid-template-columns:minmax(0,1fr); }
.catalog-sidebar .ds-feature-note { font-size:.75rem; }
.catalog-sidebar .catalog-search__active { margin-bottom:0; }
.catalog-sidebar .catalog-search__chips { display:grid; gap:8px; }
.catalog-sidebar .catalog-search__chip { text-align:left; white-space:normal; overflow-wrap:anywhere; }
.catalog-result-toolbar { display:flex; justify-content:flex-end; margin-bottom:22px; }
.catalog-result-toolbar .catalog-search__field { grid-template-columns:auto minmax(170px,220px); align-items:center; gap:14px; }
.catalog-result-toolbar[hidden] { display:none; }
.catalog-path { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 20px; font-size:.82rem; }
.catalog-path [hidden] { display:none; }
.catalog-main .catalog-search__status:empty { display:none; }
.catalog-main .catalog-search__status { margin:0 0 20px; }
.catalog-main .catalog-heading { padding-top:0; }
.catalog-main [data-shop-home] { min-width:0; }
.catalog-main .shop-stage { grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); }
.catalog-category-nav a:focus-visible, .catalog-category-nav summary:focus-visible, .catalog-sidebar-controls > summary:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
@media(min-width:1680px) {
  .catalog-main ul.products { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:1439px) and (min-width:901px) {
  .catalog-main .shop-stage { grid-template-columns:1fr; grid-template-rows:460px auto auto; }
  .catalog-main .shop-stage__main { grid-row:auto; }
  .catalog-main .shop-stage__tile { min-height:190px; }
  .catalog-main .shop-departments ul { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .catalog-main .shop-products { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
  .catalog-category-nav a, .catalog-category-nav [data-catalog-selected], .catalog-category-nav__more summary { min-height:44px; padding-block:10px; }
  .catalog-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
  .catalog-sidebar-controls > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:14px 20px; color:var(--blue); font-weight:700; cursor:pointer; }
  .catalog-sidebar-controls > summary::after { content:'+'; font-size:1.5rem; }
  .catalog-sidebar-controls[open] > summary::after { content:'−'; }
  .catalog-sidebar-controls > summary::-webkit-details-marker { display:none; }
  .catalog-sidebar-controls__body { padding-top:12px; }
  .catalog-result-toolbar .catalog-search__field { grid-template-columns:minmax(0,1fr); }
}

[data-catalog-more][data-category-wide="true"] > summary { display:none; }
@media(min-width:901px) {
  .catalog-sidebar-controls:not([open]) > summary { display:block; padding:14px 20px; color:var(--blue); font-weight:700; cursor:pointer; }
}
