/* Collections and Units use the Handles page's header and shopping rail.
   Scoped here so other shopping pages keep their existing presentation. */
body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) .page-hero {
  padding:0!important;
}
body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) .page-hero>.container {
  width:var(--catalogue-rail)!important;
  max-width:1240px!important;
  padding:48px 0 42px!important;
  text-align:left!important;
}
body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) .page-hero :is(.eyebrow,h1,p) {
  text-align:left!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) .page-hero h1 {
  font-size:clamp(44px,5.5vw,72px)!important;
  max-width:none!important;
  white-space:normal!important;
}
/* Keep the complete, longer Collections description within the shared hero. */
body.collections-page:has(#rangeGrid) .page-hero p {
  width:100%!important;
  max-width:100%!important;
}
body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) main>.section:first-child {
  padding-top:0!important;
}
body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) :is(.collection-category-nav,.catalogue-category-nav) {
  width:100%!important;
  margin:var(--catalogue-control-gap) auto 0!important;
}
body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) :is(.collection-filter-panel,.aligned-shop-page-filters) {
  position:static!important;
  transform:none!important;
  width:100%!important;
  max-width:1240px!important;
  height:auto!important;
  min-height:92px!important;
  margin:var(--catalogue-control-gap) auto 24px!important;
}
body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) .collection-filter-panel>strong,
body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) .aligned-shop-page-filters::before {
  letter-spacing:.12em!important;
}
@media(max-width:680px) {
  /* Let retained copy wrap on narrow screens without clipping or overlap. */
  body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) .page-hero {
    height:auto!important;
    min-height:var(--catalogue-hero-h)!important;
    max-height:none!important;
  }
  body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) .page-hero>.container {
    padding:36px 0 32px!important;
  }
  body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) :is(.collection-category-nav,.catalogue-category-nav) {
    display:flex!important;
    overflow-x:auto!important;
  }
  body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) :is(.collection-category-nav,.catalogue-category-nav) button {
    flex:1 0 auto;
  }
}

@media(max-width:760px) {
  body.aligned-shop-page.catalogue-page:has(#category) .page-hero.catalogue-page-hero {
    height:220px!important;
    min-height:220px!important;
    max-height:220px!important;
  }
}

/* Doors use the same title and filter rail as the other shop pages. */
body:has(.doors-page) .doors-page-hero,
body:has(.doors-page) .doors-page-grid-wrap {
  width:100%!important;
  max-width:none!important;
}
body:has(.doors-page) .doors-page-hero-inner,
body:has(.doors-page) .doors-page-grid-wrap {
  width:var(--catalogue-rail)!important;
  max-width:1240px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body:has(.doors-page) .doors-page-heading {
  min-height:118px!important;
  margin:0 0 24px!important;
  align-items:flex-start!important;
}
body:has(.doors-page) .doors-filter-panel>strong {
  align-self:center!important;
  color:var(--editorial-muted)!important;
  font-size:11px!important;
  font-weight:700!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
@media(max-width:680px) {
  body:has(.doors-page) .doors-page-heading {
    min-height:0!important;
  }
}

body.aligned-shop-page:is(:has(#rangeGrid),.catalogue-page) main>.section>.container {
  width:var(--catalogue-rail)!important;
  max-width:1240px!important;
  display:flow-root;
}
body.aligned-shop-page.catalogue-page .aligned-shop-page-filters {
  padding:12px 14px!important;
  background:var(--catalogue-filter-bg)!important;
  border:1px solid var(--catalogue-filter-border)!important;
  border-top:3px solid var(--editorial-olive)!important;
  border-radius:0!important;
}
body.aligned-shop-page.catalogue-page .aligned-shop-page-filters .filter-group {
  display:grid;
  gap:6px;
  margin:0!important;
}
body.aligned-shop-page.catalogue-page .aligned-shop-page-filters select {
  height:40px!important;
  margin:0!important;
  background:var(--editorial-paper)!important;
}
@media(min-width:681px) {
  body.aligned-shop-page .catalogue-category-nav button {
    height:48px!important;
    min-height:48px!important;
    padding:4px 10px!important;
  }
}
body.aligned-shop-page.catalogue-page .aligned-shop-page-filters select {
  min-height:40px!important;
}
