/* Product browsing: compact tools, one image per family and consistent choices. */
body.inner-page.catalog-select-layout .catalog-hero { min-height: 0; background: #fff; color: var(--ink); border: 0; }
body.catalog-select-layout .catalog-hero .page-hero-content { padding-block: 22px 28px; }
body.catalog-select-layout .catalog-hero h1 { margin: 0 0 10px; max-width: 900px; font-size: 40px; line-height: 1.15; letter-spacing: 0; }
body.catalog-select-layout .catalog-hero .eyebrow { display: none; }
body.catalog-select-layout .catalog-hero .page-lede { margin: 0; max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.catalog-heading-layout { display: grid; grid-template-columns: 1fr minmax(320px, .85fr); gap: 48px; align-items: center; }
body.catalog-select-layout .directory-search { width: 100%; max-width: none; margin: 0; }
body.catalog-select-layout .directory-search label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
body.catalog-select-layout .directory-search-controls { position: relative; display: flex; }
body.catalog-select-layout .directory-search-controls::before { content: ''; position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: var(--muted); mask: url('assets/icons/search.svg') center/contain no-repeat; pointer-events: none; }
body.catalog-select-layout .directory-search input { flex: 1; min-width: 0; width: 100%; min-height: 50px; padding: 12px 52px 12px 44px; border: 1px solid var(--control-border); border-radius: var(--control-radius); background: white; color: var(--ink); font: 400 15px/1.5 var(--display); box-shadow: none; }
body.catalog-select-layout .directory-search input::-webkit-search-cancel-button { appearance: none; }
body.catalog-select-layout [data-directory-clear] { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; min-height: 42px; padding: 0; border: 0; border-radius: 5px; background: var(--paper); color: var(--ink); font-size: 0; cursor: pointer; }
body.catalog-select-layout [data-directory-clear]::before { content: ''; width: 18px; height: 18px; background: currentColor; mask: url('assets/icons/x.svg') center/contain no-repeat; }
body.catalog-select-layout [data-directory-clear][hidden], body.catalog-select-layout [hidden] { display: none !important; }
body.catalog-select-layout .directory-search .catalog-count { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
body.catalog-select-layout :is(input,select,button):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
body.inner-page.page-type-directory .directory-brief { background: #fff; padding-block: 12px 64px; }
.catalog-workspace { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 42px; align-items: start; }
.catalog-sidebar { position: sticky; top: 110px; }
.catalog-sidebar-title { font-size: 14px; font-weight: 650; margin-bottom: 14px; }
body.page-type-directory .catalog-category-links { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; border: 0; }
body.page-type-directory .catalog-category-links a { min-height: 42px; padding: 9px 0; border: 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.55; white-space: normal; }
body.page-type-directory .catalog-category-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.catalog-sidebar-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.catalog-areas-toggle, .catalog-group-toggle { display: none; }
.catalog-main { min-width: 0; }
.catalog-search-empty { max-width: 36rem; padding: 28px 0 36px; animation: catalog-search-enter .16s ease-out; }
body.catalog-select-layout .catalog-search-empty h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.25; letter-spacing: 0; }
.catalog-search-empty p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.catalog-search-empty-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.catalog-search-empty-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.catalog-search-empty-actions .button { min-width: 0; max-width: 100%; white-space: normal; }
body.catalog-select-layout .catalog-search-empty:not([hidden]) ~ .directory-note { display: none; }
.catalog-search-reset { display: inline-flex; align-items: center; min-height: 44px; margin: 12px 0 0; padding: 0; border: 0; background: transparent; color: var(--muted); font: 500 13px/1.5 var(--display); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.catalog-search-reset:hover { color: var(--accent); }
.catalog-search-empty { scroll-margin-top: 110px; }
/* Keep the channel's appearance when its launcher first reviews a long inquiry. */
.header-cta[aria-controls="catalog-search-empty"] { display: inline-flex !important; flex: 0 0 auto; justify-content: center; gap: 9px; min-height: 44px; margin-left: 0; padding: 10px 15px; border: 1px solid #176a53; border-radius: 4px; background: #176a53; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; text-decoration: none; }
.header-cta[aria-controls="catalog-search-empty"]:is(:hover,:focus-visible) { border-color: #10513f; background: #10513f; color: #fff; }
.header-cta[aria-controls="catalog-search-empty"]::before { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; -webkit-mask: url('assets/icons/whatsapp.svg') center/contain no-repeat; mask: url('assets/icons/whatsapp.svg') center/contain no-repeat; content: ""; }
@media(max-width:1279px) {
 .header-inner .header-cta[aria-controls="catalog-search-empty"] { width: 44px; height: 44px; min-height: 44px; margin-left: auto; padding: 0; font-size: 0; }
 .header-cta[aria-controls="catalog-search-empty"]::before { flex-basis: 21px; width: 21px; height: 21px; }
}
.catalog-search-draft { margin-top: 22px; }
.catalog-search-draft label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.catalog-search-draft textarea { display: block; width: 100%; min-width: 0; padding: 12px; border: 1px solid #b5c6be; border-radius: 3px; background: #fff; color: var(--ink); font: 12px/1.7 var(--display); resize: vertical; }
.catalog-search-draft textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.catalog-search-tools { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 8px; }
.catalog-search-tools button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent); font: 500 13px/1.5 var(--display); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.catalog-search-tools button::before { content: ""; width: 16px; height: 16px; background: currentColor; }
[data-catalog-search-copy]::before { mask: url("assets/icons/copy.svg") center/contain no-repeat; }
[data-catalog-search-download]::before { mask: url("assets/icons/download.svg") center/contain no-repeat; }
.catalog-search-draft [data-catalog-search-status] { margin: 8px 0 0; font-size: 12px; }
@keyframes catalog-search-enter { from { opacity: 0; } to { opacity: 1; } }
body.inner-page.page-type-directory .directory-grid { display: block; border: 0; background: transparent; }
body.inner-page.page-type-directory .directory-group { display: block; padding: 0 0 42px; margin: 0 0 28px; border: 0; border-bottom: 1px solid var(--line); }
body.inner-page.page-type-directory .directory-group:nth-child(even) { padding-left: 0; border-left: 0; }
body.inner-page.page-type-directory .directory-group h3 { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; font-size: 21px; line-height: 1.4; }
body.inner-page.page-type-directory .directory-group h3 a { color: var(--ink); text-decoration: none; }
body.catalog-select-layout .directory-table-wrap { overflow: visible; border: 0; }
body.inner-page.catalog-select-layout .directory-table { display: block; width: 100%; min-width: 0; border: 0; }
body.catalog-select-layout .directory-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.catalog-select-layout .directory-table tbody { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; }
body.inner-page.catalog-select-layout .directory-table tr { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: white; overflow: visible; }
body.inner-page.catalog-select-layout .directory-table tr:hover { background: white; transform: none; box-shadow: none; }
body.inner-page.catalog-select-layout .directory-table td { position: static; display: block; width: 100%; height: auto; min-width: 0; padding: 0; border: 0; background: transparent; clip-path: none; overflow: visible; white-space: normal; font-size: 13px; text-align: left; }
body.inner-page.catalog-select-layout .directory-table tbody tr:hover td { background: transparent; }
body.inner-page.catalog-select-layout .directory-table td::before { display: none; }
.catalog-product-media { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--paper); }
.catalog-product-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.catalog-product-media:hover img { transform: scale(1.025); }
body.catalog-select-layout .directory-table .directory-product-detail:not(.catalog-product-media) { display: block; margin: 15px 0 0; color: var(--ink); font-size: 17px; font-weight: 650; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
body.catalog-select-layout .directory-table .directory-product-detail:hover { color: var(--accent); }
.catalog-option-count { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.catalog-retail-price { min-height: 50px; margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; align-content: start; column-gap: 7px; }
.catalog-retail-price .retail-price-value { color: var(--ink); font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.catalog-retail-price .retail-price-unit { color: var(--muted); font-size: 11px; }
body.inner-page.catalog-select-layout .directory-table td:nth-child(2) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
body.inner-page.catalog-select-layout .directory-table td:nth-child(3) { margin-top: auto; padding-top: 14px; }
body.inner-page.catalog-select-layout .directory-table td:nth-child(4) { padding-top: 9px; font-size: 12px; color: var(--muted); }
.catalog-spec-select { appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 46px; padding: 11px 34px 11px 12px; border: 1px solid var(--control-border); border-radius: var(--control-radius); background: #fff url('assets/icons/chevron-down.svg') no-repeat right 11px center/16px; color: var(--ink); font: 500 13px/1.5 var(--display); cursor: pointer; }
.catalog-spec-select:hover { border-color: var(--accent); }
.catalog-selection-note { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.catalog-selection-note[hidden] { display: none; }
body.inner-page.catalog-select-layout .directory-table td[data-directory-inquiry] { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; margin-top: 13px; padding: 0; }
body.catalog-select-layout .directory-table td[data-directory-inquiry] .directory-item-quote { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: var(--control-radius); color: var(--accent); background: white; font-size: 13px; font-weight: 650; text-decoration: none; }
body.catalog-select-layout .directory-table td[data-directory-inquiry] .directory-item-quote:hover { background: var(--accent); border-color: var(--accent); color: white; }
body.catalog-select-layout .directory-table .shortlist-select { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 5px 0; margin: 0; font-size: 12px; font-weight: 500; }
body.catalog-select-layout .directory-table tr.is-selected { outline: 2px solid var(--accent); outline-offset: 7px; border-radius: 3px; }
body.catalog-select-layout .shortlist-bar { position: sticky; top: 83px; z-index: 12; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 22px; padding: 8px 0; border-color: var(--line); background: #fff; }
body.catalog-select-layout .shortlist-bar #shortlist-count { display: inline; margin: 0; }
body.catalog-select-layout .shortlist-bar a { margin-left: auto; white-space: nowrap; }
.catalog-product-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; aspect-ratio: 1; padding: 20px; background: var(--paper); color: var(--muted); }
.catalog-placeholder-icon { display: block; flex: 0 0 30px; width: 30px; height: 30px; background: #9bada4; mask: url("assets/icons/image.svg") center/contain no-repeat; }
.catalog-product-placeholder span { font-size: 11px; }
.catalog-product-placeholder small { font-size: 12px; }
.catalog-anchor,[data-product-row] { scroll-margin-top: 110px; }
.catalog-spec-fallback { font-size: 12px; margin-top: 12px; }
.catalog-spec-fallback ul { padding-left: 18px; }
html[data-catalog-products-ready='true'] .catalog-spec-fallback { display: none; }
body.catalog-select-layout .catalog-category-products { padding-top: 14px; }
body.catalog-select-layout .directory-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 22px; padding-top: 0; }
@media(max-width:1100px) {
 body.catalog-select-layout .shortlist-bar { top: 77px; }
}
@media(max-width:1000px) {
 .catalog-workspace { grid-template-columns: 180px minmax(0,1fr); gap: 28px; }
 body.catalog-select-layout .directory-table tbody { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; }
 .catalog-heading-layout { gap: 24px; }
}
@media(max-width:760px) {
 body.catalog-select-layout .shortlist-bar { top: 71px; }
 body.catalog-select-layout .catalog-hero .page-hero-content { padding-block: 16px 22px; }
 body.catalog-select-layout .catalog-hero h1 { font-size: 32px; margin-bottom: 8px; }
 body.catalog-select-layout .catalog-hero .page-lede { font-size: 13px; }
 .catalog-heading-layout { grid-template-columns: 1fr; gap: 20px; }
 body.catalog-select-layout .directory-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 body.catalog-select-layout .directory-search input { min-height: 48px; font-size: 16px; }
 body.inner-page.page-type-directory .directory-brief { padding-top: 0; }
 .catalog-workspace { display: block; }
 .catalog-sidebar { position: static; }
 .catalog-sidebar-title { display: none; }
 .catalog-sidebar-note { margin: 12px 0 22px; padding: 0; border: 0; font-size: 11px; }
 .catalog-areas-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 9px 0; border: 0; border-block: 1px solid var(--line); background: white; color: var(--ink); font: 600 13px/1.5 var(--display); cursor: pointer; }
 .catalog-areas-toggle span,.catalog-group-toggle::after { content: ''; display: block; width: 17px; height: 17px; font-size: 0; background: currentColor; mask: url('assets/icons/chevron-down.svg') center/contain no-repeat; }
 .catalog-areas-toggle[aria-expanded='true'] span,.catalog-group-toggle[aria-expanded='true']::after { transform: rotate(180deg); }
 body.page-type-directory .catalog-category-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding-top: 12px; }
 body.page-type-directory .catalog-category-links.is-collapsed { display: none; }
 body.page-type-directory .catalog-category-links a { font-size: 12px; }
 body.inner-page.page-type-directory .directory-group { margin-bottom: 22px; padding-bottom: 24px; }
 body.inner-page.page-type-directory .directory-group h3 { margin-bottom: 16px; font-size: 17px; }
 .catalog-group-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; min-height: 40px; border: 0; background: white; color: var(--muted); font-size: 0; cursor: pointer; }
 .directory-group.is-collapsed .directory-table-wrap { display: none; }
 body.catalog-select-layout .directory-table tbody { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 16px; }
 html[data-catalog-single-result='true'] body.catalog-select-layout .directory-table tbody { grid-template-columns: minmax(0,1fr); }
 body.catalog-select-layout .directory-table .directory-product-detail:not(.catalog-product-media) { margin-top: 11px; font-size: 15px; }
 .catalog-option-count { font-size: 11px; }
 .catalog-retail-price .retail-price-value { font-size: 15px; }
 .catalog-spec-select { font-size: 16px; padding-left: 9px; padding-right: 28px; background-position: right 8px center; }
 body.catalog-select-layout .directory-table td[data-directory-inquiry] .directory-item-quote { min-width: 0; padding-inline: 10px; font-size: 12px; }
 body.catalog-select-layout .directory-table .shortlist-select { font-size: 12px; gap: 4px; }
}
@media(max-width:370px) {
 body.catalog-select-layout .directory-table tbody { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:350px) {
 body.catalog-select-layout .directory-table tbody { gap: 24px 12px; }
 body.catalog-select-layout .directory-table td[data-directory-inquiry] .directory-item-quote { font-size: 11px; padding-inline: 8px; }
 body.catalog-select-layout .directory-table .shortlist-select { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { .catalog-product-media img { transition: none; } .catalog-search-empty { animation: none; } }

/* Visual hierarchy pass: search and product choices should read as one
   procurement workspace, with stable type and aligned controls. */
body.catalog-select-layout .catalog-hero h1 {
  font-size: 40px;
  letter-spacing: 0;
}
body.catalog-select-layout .catalog-heading-layout {
  align-items: start;
}
body.catalog-select-layout .directory-search input {
  border-radius: 6px;
}
body.catalog-select-layout .directory-group h3,
body.catalog-select-layout .directory-table .directory-product-detail:not(.catalog-product-media) {
  letter-spacing: 0;
}
body.catalog-select-layout .directory-table .directory-product-detail:not(.catalog-product-media) {
  min-height: 48px;
}
body.catalog-select-layout .directory-group h3 {
  min-height: 30px;
}
body.catalog-select-layout .directory-table tbody {
  align-items: stretch;
}
body.catalog-select-layout .directory-table tr {
  align-self: stretch;
}
body.catalog-select-layout .catalog-search-empty h2 {
  font-size: 28px;
  letter-spacing: 0;
}
body.catalog-select-layout .catalog-product-media {
  border-radius: 6px;
}
body.catalog-select-layout .catalog-spec-select {
  border-radius: 6px;
}
body.catalog-select-layout .directory-table td[data-directory-inquiry] .directory-item-quote {
  min-height: 46px;
  border-radius: 6px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}
body.catalog-select-layout .directory-table td[data-directory-inquiry] .directory-item-quote:hover,
body.catalog-select-layout .directory-table td[data-directory-inquiry] .directory-item-quote:focus-visible {
  background: #0b4e3c;
  border-color: #0b4e3c;
  color: #fff;
}
body.catalog-select-layout .directory-table tr.is-selected {
  outline-offset: 5px;
}

@media (max-width: 760px) {
  body.catalog-select-layout .catalog-hero h1 {
    font-size: 30px;
  }
  body.catalog-select-layout .catalog-heading-layout {
    gap: 16px;
  }
  body.catalog-select-layout .directory-table tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  body.catalog-select-layout .directory-table .directory-product-detail:not(.catalog-product-media) {
    min-height: 42px;
  }
  body.catalog-select-layout .catalog-search-empty h2 {
    font-size: 23px;
  }
  body.catalog-select-layout .directory-table td[data-directory-inquiry] .directory-item-quote {
    min-height: 44px;
    padding-inline: 12px;
  }
}

/* A precise search deserves a complete result, with its choices beside the
   image. Keep the table cells and their reading order intact. */
html[data-catalog-single-result='true'] body.catalog-select-layout .catalog-product-media img {
  object-fit: contain;
  transform: none;
}
@media (min-width: 761px) {
  html[data-catalog-single-result='true'] body.catalog-select-layout .directory-table tbody {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-catalog-single-result='true'] body.inner-page.catalog-select-layout .directory-table tr {
    --result-image-width: min(40%, 340px);
    --result-gap: clamp(24px, 3vw, 40px);
    position: relative;
    min-height: 340px;
    max-width: 900px;
  }
  html[data-catalog-single-result='true'] body.inner-page.catalog-select-layout .directory-table td:first-child {
    padding-left: calc(var(--result-image-width) + var(--result-gap));
  }
  html[data-catalog-single-result='true'] body.catalog-select-layout .catalog-product-media {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--result-image-width);
    margin: 0;
  }
  html[data-catalog-single-result='true'] body.catalog-select-layout .directory-table .directory-product-detail:not(.catalog-product-media) {
    min-height: 0;
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
  }
  html[data-catalog-single-result='true'] .catalog-option-count {
    margin-top: 8px;
    font-size: 13px;
  }
  html[data-catalog-single-result='true'] .catalog-retail-price {
    min-height: 0;
    margin-top: 20px;
  }
  html[data-catalog-single-result='true'] .catalog-retail-price .retail-price-value {
    font-size: 23px;
  }
  html[data-catalog-single-result='true'] body.inner-page.catalog-select-layout .directory-table td:nth-child(n+3) {
    width: calc(100% - var(--result-image-width) - var(--result-gap));
    margin-left: calc(var(--result-image-width) + var(--result-gap));
  }
  html[data-catalog-single-result='true'] body.inner-page.catalog-select-layout .directory-table td:nth-child(3) {
    margin-top: 20px;
    padding-top: 0;
  }
  html[data-catalog-single-result='true'] body.inner-page.catalog-select-layout .directory-table td[data-directory-inquiry] {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  html[data-catalog-single-result='true'] body.inner-page.catalog-select-layout .directory-table tr {
    min-height: 280px;
    --result-gap: 24px;
  }
  html[data-catalog-single-result='true'] body.catalog-select-layout .directory-table .directory-product-detail:not(.catalog-product-media) {
    font-size: 22px;
  }
}

@media (max-width: 760px) {
  .catalog-sidebar {
    margin-bottom: 18px;
  }
  .catalog-category-links.is-collapsed ~ .catalog-sidebar-note {
    display: none;
  }
  html[data-catalog-single-result='true'] body.inner-page.catalog-select-layout .directory-table td:first-child {
    position: relative;
    min-height: 140px;
    padding-left: 140px;
  }
  html[data-catalog-single-result='true'] body.catalog-select-layout .catalog-product-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    margin: 0;
  }
  html[data-catalog-single-result='true'] body.catalog-select-layout .directory-table .directory-product-detail:not(.catalog-product-media) {
    min-height: 0;
    margin: 0;
    font-size: 20px;
  }
  html[data-catalog-single-result='true'] .catalog-retail-price {
    min-height: 0;
    margin-top: 12px;
  }
  html[data-catalog-single-result='true'] body.inner-page.catalog-select-layout .directory-table td:nth-child(3) {
    margin-top: 0;
  }
}

/* Desktop directory groups are collapsible as well: the first category opens,
   the rest show a count and an explicit toggle. This keeps the catalog page
   short without removing any product from the document. */
.catalog-group-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; min-height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 0; cursor: pointer; }
.catalog-group-toggle::after { content: ''; display: block; width: 17px; height: 17px; background: currentColor; mask: url('assets/icons/chevron-down.svg') center/contain no-repeat; }
.catalog-group-toggle[aria-expanded='true']::after { transform: rotate(180deg); }
.directory-group.is-collapsed .directory-table-wrap { display: none; }
