/* Shop / category / brand / search results */
.shop-head { padding: var(--s5) 0 var(--s4); }
.shop-head .sign { margin: 6px 0 10px; }
.shop-head p { color: var(--muted); max-width: 62ch; margin: 8px 0 0; }
.brand-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); align-items: center; }
.brand-head .logo { width: 96px; height: 96px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--sign); color: var(--core); text-shadow: var(--glow-xs); font-size: 1.4rem; text-align: center; padding: 8px; line-height: 1.1; }
/* 0.5.33 (Shane, 3 Oct: "this is a bi squashed, add a line or 2 above the text SHOP"): 48px between the shelf cards
   and the page title / filters; 24px on phones, where the cards scroll sideways. */
.child-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: var(--s5) 0 var(--s7); }
.child-cats .board { min-height: 110px; padding: 14px 16px 12px; }
.child-cats .board .c { font-size: 1.6rem; }
.child-cats .board .t { font-size: 1.05rem; }
@media (max-width: 900px) { .child-cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-bottom: var(--s5); } .child-cats .board { scroll-snap-align: start; } }

.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.catalog-results { min-width: 0; }
.catalog-filters { display: flex; flex-direction: column; }
.catalog-filter-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 16px; }
.catalog-filter-actions .btn { width: 100%; }
.js .catalog-filter-apply { display: none; }
.js .catalog-filter-actions { grid-template-columns: 1fr; }
.yebodesk-mobile-filters { display: none; margin: 0 0 var(--s4); gap: 7px; }
.yebodesk-mobile-filters svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.catalog-results > .woocommerce-products-header { padding-top: 0; }
.catalog-results .active-filters { clear: both; }
.catalog-results .active-filters .chip { min-height: 34px; display: inline-flex; align-items: center; }
.facets { position: sticky; top: calc(var(--header-h, 120px) + 16px); display: flex; flex-direction: column; }
.facet { border-top: 1px solid var(--line); }
.facet:last-child { border-bottom: 1px solid var(--line); }
.facet summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-weight: 600; font-size: var(--fs-sm); min-height: var(--tap); }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; color: var(--brass); }
.facet[open] summary::after { content: "−"; }
.facet .facet-body { padding: 0 0 12px; display: flex; flex-direction: column; }
.facet .check { min-height: 38px; padding: 4px 0; }
.facet .more { color: var(--brass); font-size: var(--fs-xs); font-weight: 600; padding: 6px 0; text-align: left; }
.facet .range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 6px; }
.facet .range .input { min-height: 38px; padding: 0 10px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.toolbar .count { font-size: var(--fs-sm); color: var(--muted); }
.toolbar .count b { color: var(--cream); font-weight: 600; }
.toolbar .sort { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); }
.toolbar .sort .select { min-height: 38px; width: auto; padding-right: 34px; font-size: var(--fs-sm); }
.toolbar .filters-btn { display: none; }
.active-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s4); }
.active-filters .lbl { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: var(--s6); }
.shop-foot .count { font-size: var(--fs-sm); color: var(--muted); }
.search-head .query { font-family: var(--sign); color: var(--core); text-shadow: var(--glow-xs); }

/* mobile filter sheet */
.sheet .sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--s4) 10px; border-bottom: 1px solid var(--line); }
.sheet .sheet-head h2 { font-size: 1.3rem; }
.sheet .sheet-body { overflow-y: auto; padding: 0 var(--s4); }
.sheet .sheet-foot { padding: var(--s4); border-top: 1px solid var(--line); display: flex; gap: 10px; background: var(--glass); }
.sheet .sheet-foot .btn { flex: 1; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .facets.desktop { display: none; }
  .toolbar .filters-btn { display: inline-flex; }
  .yebodesk-mobile-filters { display: inline-flex; }
  .toolbar .sort span { display: none; }
  .catalog-results .woocommerce-result-count { float: none; }
  .catalog-results .woocommerce-ordering { float: none; }
  #yebodeskFilterSheet .sheet-body.facets { position: static; display: block; }
  #yebodeskFilterSheet .catalog-filters { padding-bottom: var(--s5); }
}
@media (min-width: 901px) { .sheet { display: none; } }

/* 0.5.36 (Shane, 3 Oct: "Remove pagination on all shop pages on JJ"): products load as you scroll
   (assets/js/infinite-scroll.js). The numbered pagination stays in the HTML for search engines and visitors without
   JavaScript; it is hidden once the script runs. */
.yd-infinite nav.woocommerce-pagination { display: none !important; }
.yd-more { display: grid; justify-items: center; gap: 10px; margin: var(--s6) 0 var(--s4); text-align: center; }
.yd-more__btn[hidden] { display: none; }
.yd-more__status { margin: 0; min-height: 1.2em; color: var(--muted); font-size: var(--fs-sm); }
.yd-more.is-loading .yd-more__btn { opacity: .7; cursor: progress; }
.yd-more.is-done .yd-more__status { color: var(--cream-2); }
