#catalog .category-subcategories {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px 20px;
  margin:0 0 24px;
  padding:14px;
  border:1px solid var(--shop-tint-border);
  border-radius:6px;
  background:white;
}
#catalog .category-subcategories[hidden] { display:none; }
#catalog .category-subcategory {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:6px;
  border-radius:5px;
  color:var(--shop-accent-hover);
  font-size:14px;
  line-height:1.35;
  text-decoration:none;
  white-space:normal;
  overflow-wrap:anywhere;
}
#catalog .category-subcategory:hover { background:var(--shop-tint); }
#catalog .category-subcategory:focus-visible { outline:2px solid var(--shop-accent); }
#catalog .category-subcategory-photo {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:72px;
  height:72px;
  padding:4px;
  border:1px solid var(--shop-tint-border);
  border-radius:4px;
  background:white;
  color:#6b8086;
  font-size:11px;
  line-height:1.2;
  text-align:center;
  overflow-wrap:anywhere;
}
#catalog .category-subcategory-photo.has-photo { border-color:transparent; padding:0; }
#catalog .category-subcategory-photo img { display:block; width:100%; height:100%; object-fit:contain; }
#storefrontCatalogMenu a.catalog-menu-section-link { display:block; color:inherit; font:inherit; text-decoration:none; white-space:normal; }
#storefrontCatalogMenu a.catalog-menu-section-link:hover { color:var(--shop-accent-hover); text-decoration:underline; }
@media (max-width:1100px) { #catalog .category-subcategories { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width:750px) { #catalog .category-subcategories { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; padding:8px; } }
@media (max-width:420px) { #catalog .category-subcategory { gap:8px; padding:4px; font-size:13px; } #catalog .category-subcategory-photo { width:54px; height:54px; font-size:10px; } }

/* Main category pages are navigation pages, not product listings. */
html.category-landing #catalog .filter-bar,
html.category-landing #parameterFilters,
html.category-landing #products,
html.category-landing #catalogNote,
html.category-landing #catalog .more-products,
html.category-landing #resultCount,
html.category-landing #catalogTitlePhoto{display:none!important}
html.category-landing #catalog .category-subcategories{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;border:0;background:transparent}
html.category-landing #catalog .category-subcategory{min-height:62px;padding:17px 20px;border:1px solid var(--shop-tint-border);border-radius:6px;background:var(--shop-tint);color:inherit;font-size:16px}
html.category-landing #catalog .category-subcategory:hover{color:var(--shop-accent-hover);border-color:var(--shop-accent)}
html.category-landing #catalog .category-subcategory-photo{display:none}
@media(max-width:650px){html.category-landing #catalog .category-subcategories{grid-template-columns:1fr}html.category-landing #catalog .category-subcategory{font-size:15px}}

/* Compact section lists with category names and quiet dividers. */
html.category-landing #catalog .category-subcategories{column-gap:36px;row-gap:0}
html.category-landing #catalog .category-subcategory{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;
 min-height:76px;padding:22px 0;border:0;border-bottom:1px solid var(--shop-tint-border);
 border-radius:0;background:transparent;color:var(--shop-accent-hover);
}
html.category-landing #catalog .category-subcategory-name{font-size:17px;line-height:1.4;font-weight:600}
html.category-landing #catalog .category-subcategory:hover{background:transparent;border-color:var(--shop-tint-border)}
html.category-landing #catalog .category-subcategory:hover .category-subcategory-name{text-decoration:underline}
@media(max-width:650px){html.category-landing #catalog .category-subcategory{min-height:64px;padding:18px 0}html.category-landing #catalog .category-subcategory-name{font-size:16px}}

/* Main sections show navigable child links, without nested anchors. */
html.category-landing #catalog .category-subcategory-group{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:22px 0;border-bottom:1px solid var(--shop-tint-border)}
html.category-landing #catalog .category-subcategory-group-title{color:var(--shop-accent-hover);font-size:17px;line-height:1.4;font-weight:600;text-decoration:none}
html.category-landing #catalog .category-subcategory-group ul{list-style:none;padding:0;margin:12px 0 0;font-size:14px;line-height:1.5}
html.category-landing #catalog .category-subcategory-group li{margin:0 0 7px}
html.category-landing #catalog .category-subcategory-group li a{color:inherit;text-decoration:none;overflow-wrap:anywhere}
html.category-landing #catalog .category-subcategory-group-more{display:inline-flex;align-items:center;justify-content:center;min-height:33px;padding:0 12px;margin-top:auto;border-radius:5px;background:var(--shop-accent);color:white;font:600 13px/1.3 Arial,sans-serif;text-decoration:none}
html.category-landing #catalog .category-subcategory-group ul:has(+.category-subcategory-group-more){margin-bottom:10px}
html.category-landing #catalog .category-subcategory-group a:not(.category-subcategory-group-more):hover,
html.category-landing #catalog .category-subcategory-group a:not(.category-subcategory-group-more):focus-visible{color:var(--shop-accent);text-decoration:underline;text-underline-offset:2px}
.filter-bar>label:has(#brand){display:none!important}
@media(max-width:650px){html.category-landing #catalog .category-subcategory-group{padding:20px 0}html.category-landing #catalog .category-subcategory-group-title{font-size:16px}}

/* Compact navigation groups on section and subcategory pages. */
html.category-landing #catalog .category-subcategories{
 grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 22px;align-items:stretch;
}
html.category-landing #catalog .category-subcategory-group{padding:12px 0 16px}
html.category-landing #catalog .category-subcategory-group-title{font-size:16px}
html.category-landing #catalog .category-subcategory-group ul{margin-top:9px;font-size:14px;line-height:1.4}
html.category-landing #catalog .category-subcategory-group li{margin-bottom:5px}
html.category-landing #catalog .category-subcategory-group li a{display:block;padding:3px 0}
html.category-landing #catalog .category-subcategory-group-more{min-height:34px;padding:6px 10px}
html.category-landing #catalog .category-subcategory{min-height:54px;padding:12px 0}
html.category-landing #catalog .category-subcategory-name{font-size:16px}
@media(max-width:1200px){
 html.category-landing #catalog .category-subcategories{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:18px}
}
@media(max-width:1000px){
 html.category-landing #catalog .category-subcategories{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
 html.category-landing #catalog .category-subcategories{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
 html.category-landing #catalog .category-subcategory-group{padding:10px 0 14px}
 html.category-landing #catalog .category-subcategory-group-title,
 html.category-landing #catalog .category-subcategory-name{font-size:14px}
 html.category-landing #catalog .category-subcategory-group ul{font-size:13px}
 html.category-landing #catalog .category-subcategory-group li a{padding:5px 0}
 html.category-landing #catalog .category-subcategory{min-height:48px;padding:10px 0}
}

/* Global navigation uses nowrap on small screens; category lists must wrap. */
#catalog .category-subcategories{white-space:normal}
html.category-landing #catalog .category-subcategory-group-title,
html.category-landing #catalog .category-subcategory-group ul,
html.category-landing #catalog .category-subcategory-group li,
html.category-landing #catalog .category-subcategory-group li a{
 min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
html.category-landing #catalog .category-subcategory-group ul{width:100%}
html.category-landing #catalog .category-subcategory-group-title{display:block}

/* Shared section pages follow the catalog menu's colors and group headings. */
html.category-landing #catalog .products-heading{
 padding-bottom:12px;border-bottom:2px solid var(--shop-accent);
}
html.category-landing #catalog .category-subcategory-group{border:0;padding:0 0 16px}
html.category-landing #catalog .category-subcategory-group-title{
 display:block;align-self:stretch;width:100%;padding:10px 12px;
 border-radius:5px;background:var(--shop-tint);color:#252c29;
 font-size:16px;font-weight:600;line-height:1.4;
}
html.category-landing #catalog .category-subcategory-group ul{
 padding:0 8px;margin-top:10px;color:#252c29;
}
html.category-landing #catalog .category-subcategory-group-more{
 justify-content:flex-start;align-self:flex-start;margin-left:8px;
 padding:6px 0;background:transparent;color:var(--shop-accent-hover);
 font-weight:400;text-decoration:underline;text-underline-offset:2px;
}
html.category-landing #catalog .category-subcategory-group-more:hover,
html.category-landing #catalog .category-subcategory-group-more:focus-visible{
 background:transparent;color:var(--shop-accent);
}
html.category-landing #catalog .category-subcategory{
 padding:10px 12px;border:0;border-radius:5px;background:var(--shop-tint);color:#252c29;
}
html.category-landing #catalog .category-subcategory:hover{background:var(--shop-tint);color:var(--shop-accent-hover)}
@media(max-width:650px){
 html.category-landing #catalog .category-subcategories{gap:16px 14px}
 html.category-landing #catalog .category-subcategory-group-title{font-size:14px;padding:10px 9px}
 html.category-landing #catalog .category-subcategory-group ul{padding:0 6px}
 html.category-landing #catalog .category-subcategory-group-more{margin-left:6px}
}

/* Keep each mobile section's action directly after its own list. */
@media(max-width:650px){
 html.category-landing #catalog .category-subcategories{align-items:start}
 html.category-landing #catalog .category-subcategory-group-more{margin-top:6px}
 html.category-landing #catalog .category-subcategory-group ul:has(+.category-subcategory-group-more){margin-bottom:0}
}

/* Neutral thumbnail when the category has no usable photograph. */
#catalog .category-subcategory-photo:not(.has-photo){
 background:#f3f4f5;border-color:#eceef0;color:#9ca3a8;
}
#catalog .category-subcategory-photo:not(.has-photo)::before{
 content:"";display:block;width:60%;height:60%;background:currentColor;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='26' height='22' rx='1'/%3E%3Ccircle cx='10' cy='12' r='2.5'/%3E%3Cpath d='m4 25 8-8 5 4 5-7 7 8'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media(max-width:650px){
 html:not(.category-landing) #catalog .category-subcategories{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px;
 }
 html:not(.category-landing) #catalog .category-subcategory{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  min-width:0;gap:7px;padding:8px 5px;text-align:center;
 }
 html:not(.category-landing) #catalog .category-subcategory-photo{
  width:36px;height:36px;padding:2px;flex:none;
 }
 html:not(.category-landing) #catalog .category-subcategory-name{
  display:block;min-width:0;width:100%;max-width:100%;
  white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:auto;
  font-size:13px;line-height:1.4;
 }
}

/* All photographic category tiles share one white, square image canvas. */
html:not(.category-landing) #catalog .category-subcategory-photo,
html:not(.category-landing) #catalog .category-subcategory-photo.has-photo{
 box-sizing:border-box;flex:0 0 72px;width:72px;height:72px;
 min-width:72px;min-height:72px;max-width:72px;max-height:72px;
 padding:6px;background:#fff;border:0;overflow:hidden;
}
html:not(.category-landing) #catalog .category-subcategory-photo img{
 display:block;box-sizing:border-box;width:100%;height:100%;
 max-width:100%;max-height:100%;object-fit:contain;object-position:center;
 background:#fff;
}
