/* One bounded catalogue layout for results, controls, chips and pagination. */
html:has(#hfj-catalogue),body.woocommerce.archive { overflow-x:clip; }
#hfj-catalogue { position:relative; clear:both; width:100%; padding-top:24px; --hfj-visible-header:0px; --hfj-controls-height:80px; }
#hfj-catalogue-results { position:relative; width:calc(100% - 48px); max-width:1600px; margin:0 auto; min-height:220px; scroll-margin-top:calc(var(--hfj-visible-header) + var(--hfj-controls-height) + 16px); }
#hfj-catalogue-results>ul.products { width:100%!important; max-width:none!important; margin:0 0 40px!important; }
#hfj-catalogue-results>.hfj-shop-toolbar { width:100%!important; max-width:none!important; margin:0 0 24px!important; }
#hfj-catalogue-results>.hfj-empty-results { width:100%; max-width:none; margin:24px 0 48px; }
#hfj-catalogue .hfj-filter-chips { box-sizing:border-box; width:calc(100% - 48px); max-width:1600px; margin:0 auto 20px; gap:8px; padding:0; }
#hfj-catalogue .hfj-filter-chips[hidden] { display:none; }
#hfj-catalogue .hfj-filter-chips a { display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:7px 12px; border-radius:20px; color:#393633; background:var(--hfj-surface); font-size:12px; line-height:20px; text-decoration:none; }
#hfj-catalogue .hfj-filter-chips a:hover,#hfj-catalogue .hfj-filter-chips a:focus-visible { background:var(--hfj-surface); border-color:#444444; }
/* Sort belongs to the same visual family as the segmented view switch. */
body.woocommerce #hfj-catalogue .woocommerce-ordering { margin:0; min-width:0; --hfj-control-focus-ring:var(--hfj-accent); --hfj-control-focus-border:var(--hfj-accent); }
body.woocommerce #hfj-catalogue .woocommerce-ordering select {
  appearance:none; width:100%; min-width:220px; min-height:44px; height:44px;
  padding:10px 44px 10px 14px; border:1px solid var(--hfj-line); border-radius:3px;
  background-color:var(--hfj-cream); color:var(--hfj-ink); box-shadow:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f1b18' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:16px;
  font:400 13px/22px var(--hfj-font,Arial,sans-serif); text-transform:none; letter-spacing:0; cursor:pointer;
  transition:border-color 160ms ease,background-color 160ms ease;
}
body.woocommerce #hfj-catalogue .woocommerce-ordering select:hover { border-color:var(--hfj-accent); background-color:var(--hfj-paper); }
body.woocommerce #hfj-catalogue .woocommerce-ordering select:focus-visible { background-color:var(--hfj-paper); }
@media(prefers-reduced-motion:reduce) { body.woocommerce #hfj-catalogue .woocommerce-ordering select { transition:none; } }
/* Standard links remain available when AJAX or JavaScript is unavailable. */
body.woocommerce #hfj-catalogue .woocommerce-pagination { clear:both; width:100%; margin:28px 0 56px!important; padding:0; text-align:center; background:transparent!important; border:0; }
body.woocommerce #hfj-catalogue .woocommerce-pagination ul { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:8px; border:0; margin:0; padding:0; list-style:none; }
body.woocommerce #hfj-catalogue .woocommerce-pagination li { display:block; float:none; border:0; margin:0; padding:0; background:transparent!important; }
body.woocommerce #hfj-catalogue .woocommerce-pagination ul { background:transparent!important; }
body.woocommerce #hfj-catalogue .woocommerce-pagination .page-numbers>li>:is(a,span) { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:10px 14px; border:1px solid var(--hfj-line); border-radius:3px; background:transparent!important; color:#393633; font:500 13px/22px var(--hfj-font,Arial,sans-serif); text-decoration:none!important; transform:none!important; }
body.woocommerce #hfj-catalogue .woocommerce-pagination .page-numbers>li>a:is(:hover,:focus,:active) { background:var(--hfj-surface)!important; border-color:#444444; color:#111111; }
body.woocommerce #hfj-catalogue .woocommerce-pagination .page-numbers>li>.current { background:var(--hfj-action)!important; border-color:var(--hfj-action); color:#fff; }
body.woocommerce #hfj-catalogue .woocommerce-pagination .dots { background:transparent; border-color:transparent; min-width:24px; padding-inline:2px; }
#hfj-catalogue-results[aria-busy=true]>:not(.hfj-catalogue-loading) { opacity:.3; pointer-events:none; }
.hfj-catalogue-loading { position:absolute; z-index:10; inset:40px 0 auto; min-height:160px; padding:20px; background:transparent; border:0; pointer-events:none; }
.hfj-catalogue-error { width:calc(100% - 48px); max-width:1600px; margin:0 auto 20px; padding:20px; border:1px solid #b86b54; border-radius:4px; background:var(--hfj-surface); }
.hfj-catalogue-error[hidden] { display:none; }
.hfj-catalogue-error p { margin:0 0 12px; }
.hfj-catalogue-error a { display:inline-flex; padding:12px; color:#393633; text-underline-offset:4px; }
.hfj-filter-open-count { display:inline-grid; place-items:center; min-width:24px; height:24px; padding:0 5px; border-radius:20px; color:#393633; background:#ffffff; font-size:12px; }
.hfj-filter-open-count[hidden] { display:none; }

#hfj-catalogue :is(.hfj-filter-panel,.hfj-catalogue-bar) :is(button,summary,a,select):is(:hover,:focus,:active) { transform:none!important; }
@media(max-width:1023px) {
  #hfj-catalogue-results,#hfj-catalogue .hfj-filter-chips,.hfj-catalogue-error { width:calc(100% - 32px); }
  .hfj-js #hfj-catalogue .hfj-catalogue-bar { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr); align-items:center; gap:8px; position:sticky; top:calc(var(--hfj-visible-header) + 8px); z-index:55; width:calc(100% - 32px); margin:0 auto 16px; padding:0; background:transparent; border:0; box-shadow:none; }
  .hfj-js #hfj-catalogue .hfj-catalogue-bar:not(:has(.woocommerce-ordering)) { grid-template-columns:1fr; }
  .hfj-js #hfj-catalogue .hfj-filter-open { position:static; display:flex!important; justify-content:center; width:100%; min-width:0; min-height:46px; margin:0; gap:6px; padding:10px 8px; border-radius:4px; background:var(--hfj-action); color:#fff!important; border:1px solid transparent; box-shadow:none; font-size:12px; letter-spacing:0; }
  .hfj-js #hfj-catalogue .hfj-filter-open:is(:hover,:focus-visible) { background:var(--hfj-action-hover); }
  #hfj-catalogue .hfj-filter-open .hfj-icon { font-size:19px; }
  #hfj-catalogue .hfj-filter-open-count { min-width:20px; height:20px; font-size:10px; }
  .hfj-js #hfj-catalogue .hfj-filter-panel.is-open { z-index:100000; inset:max(8px,env(safe-area-inset-top)) 8px 8px auto; width:min(420px,calc(100% - 16px)); height:calc(100dvh - max(8px,env(safe-area-inset-top)) - 8px); border:1px solid var(--hfj-line); border-radius:10px; }
  #hfj-catalogue .hfj-filter-heading { padding:18px 20px; background:#ffffff; }
  #hfj-catalogue .hfj-filter-panel.is-open .hfj-filter-options { padding:0 20px; }
  #hfj-catalogue .hfj-filter-panel summary { min-height:54px; font-weight:500; }
  #hfj-catalogue .hfj-filter-option { border-radius:4px; }
  #hfj-catalogue .hfj-filter-buttons { padding:12px 20px; gap:16px; box-shadow:0 -3px 12px #1f1b1806; }
  body.woocommerce #hfj-catalogue .hfj-catalogue-bar .woocommerce-ordering { width:100%; min-width:0; float:none; }
  body.woocommerce #hfj-catalogue .woocommerce-ordering select { min-width:0; padding:10px 28px 10px 10px; min-height:46px; font-size:12px; background-position:right 8px center; }
  body.woocommerce #hfj-catalogue .hfj-shop-toolbar { display:flex!important; flex-direction:row; flex-wrap:nowrap; justify-content:space-between; align-items:center; gap:8px; }
  body.woocommerce #hfj-catalogue .hfj-shop-controls { width:auto; gap:0; }
  body.woocommerce #hfj-catalogue .woocommerce-result-count { margin:0; text-align:left; font-size:10px; letter-spacing:.06em; }
  #hfj-catalogue .hfj-filter-chips a { min-height:40px; }
}

/* Enhanced desktop toolbar contains sibling filter and sorting forms. */

@media(max-width:1023px) {
  #hfj-catalogue .hfj-catalogue-display { width:100%; min-width:0; }
  #hfj-catalogue .hfj-catalogue-display .hfj-product-view-toggle { display:none; }
}

#hfj-catalogue .hfj-filter-search { margin:0; min-width:0; }
#hfj-catalogue .hfj-filter-search>span { display:block; font-size:10px; line-height:1.4; margin-bottom:6px; color:#666; }
#hfj-catalogue .hfj-filter-search input { width:100%; min-width:0; height:44px; padding:10px; margin:0; border:1px solid var(--hfj-line); background:#fff; font-size:12px; border-radius:3px; }


@media(max-width:1023px) { #hfj-catalogue .hfj-filter-search { display:block; width:100%; margin:16px 0; } }

/* Compact browsing controls with right-aligned stock counts. */
#hfj-catalogue .hfj-filter-panel summary { border:1px solid var(--hfj-line); border-radius:4px; background:white; padding:10px 12px; }
#hfj-catalogue .hfj-filter-panel summary:hover { background:var(--hfj-surface); border-color:#888; }
#hfj-catalogue .hfj-filter-panel details[open] summary { border-color:var(--hfj-action); }
#hfj-catalogue .hfj-filter-option { display:flex; gap:10px; align-items:center; }
#hfj-catalogue .hfj-facet-stock { margin-left:auto; color:#666; font-variant-numeric:tabular-nums; font-size:11px; }
#hfj-catalogue .hfj-filter-option:hover { background:var(--hfj-surface); }
#hfj-catalogue .hfj-filter-search input:hover { border-color:#888; }

@media(max-width:1023px) { #hfj-catalogue .hfj-filter-panel summary { border:0; border-radius:0; padding:16px 12px; } }


@media(min-width:1024px) {
 body #hfj-catalogue { display:grid; grid-template-columns:240px minmax(0,1fr); grid-template-rows:auto auto auto 1fr; align-items:start; column-gap:32px; width:calc(100% - 48px); max-width:1600px; margin:0 auto 48px; }
 #hfj-catalogue .hfj-filter-panel { grid-column:1; grid-row:2/6; position:sticky; top:calc(var(--hfj-visible-header) + 8px); width:240px; box-sizing:border-box; min-height:0; height:auto; max-height:calc(100dvh - var(--hfj-visible-header) - 24px); overflow-x:hidden; overflow-y:auto; margin:0; border:1px solid #e5e5e5; padding:16px; background:white; scrollbar-width:thin; box-shadow:none; border-radius:3px; z-index:4; }
 #hfj-catalogue .hfj-filter-panel form,#hfj-catalogue .hfj-filter-options { display:block; width:100%; padding:0; }
 #hfj-catalogue .hfj-filter-heading { display:block; position:static; width:auto; height:auto; clip-path:none; overflow:visible; margin:0; padding:0 0 16px; }
 #hfj-catalogue .hfj-filter-heading h2 { font:500 16px/1.5 var(--hfj-font); }
 #hfj-catalogue .hfj-filter-heading .hfj-eyebrow,#hfj-catalogue .hfj-filter-close,#hfj-catalogue .hfj-filter-open { display:none!important; }
 #hfj-catalogue .hfj-filter-options>details { display:block; width:100%; border:0; border-top:1px solid var(--hfj-line); }
 #hfj-catalogue .hfj-filter-panel summary { min-height:50px; padding:12px; border:0; border-radius:0; background:transparent; font-size:13px; }
 #hfj-catalogue .hfj-filter-panel details fieldset { position:static; width:100%; min-width:0; max-height:none; overflow:visible; padding:0 0 12px; margin:0; border:0; box-shadow:none; background:transparent; }
 #hfj-catalogue .hfj-filter-search { display:block; width:100%; margin:0 0 16px; }
 #hfj-catalogue .hfj-filter-price { width:100%; margin:16px 0; padding:0; border:0; }
 #hfj-catalogue .hfj-filter-price legend { position:static; clip-path:none; width:100%; height:auto; font-size:13px; margin-bottom:12px; }
 #hfj-catalogue .hfj-filter-price label { font-size:11px; }
 #hfj-catalogue .hfj-filter-price input { width:100%; height:44px; padding:8px; }
 #hfj-catalogue .hfj-filter-buttons { display:flex; flex-wrap:wrap; position:static; padding:0; margin:16px 0; box-shadow:none; }
 #hfj-catalogue.hfj-catalogue-enhanced .hfj-filter-buttons button[type=submit] { display:none; }
 #hfj-catalogue .hfj-filter-buttons a { padding:8px 0; font-size:13px; background:transparent; border:0; }
 #hfj-catalogue .hfj-catalogue-bar { grid-column:2; grid-row:2; position:static; display:flex; align-items:center; gap:16px; justify-content:space-between; width:100%; margin:0 0 16px; padding:0; background:transparent; border:0; box-shadow:none; }
 #hfj-catalogue .hfj-catalogue-display { display:flex; gap:12px; align-items:center; }
 #hfj-catalogue .hfj-catalogue-display .hfj-product-view-toggle { display:flex; }
 #hfj-catalogue .hfj-filter-chips { grid-column:2; grid-row:3; width:100%; margin:0 0 16px; }
 #hfj-catalogue-results { grid-column:2; grid-row:4; width:100%; margin:0; min-width:0; }
 #hfj-catalogue .hfj-catalogue-error { grid-column:2; width:100%; }
 body:not(.hfj-products-view-list) #hfj-catalogue-results ul.products { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:28px 20px!important; }
 body:not(.hfj-products-view-list) #hfj-catalogue-results ul.products li.product { width:100%!important; margin:0!important; min-width:0; }
}
@media(min-width:1440px) { body:not(.hfj-products-view-list) #hfj-catalogue-results ul.products { grid-template-columns:repeat(4,minmax(0,1fr))!important; } }


body #hfj-catalogue>.woocommerce-products-header { box-sizing:border-box; width:100%; margin:0; padding:0 0 20px; min-width:0; text-align:center; }
body #hfj-catalogue>.woocommerce-products-header .woocommerce-products-header__title { width:100%; box-sizing:border-box; text-align:center; font-size:clamp(30px,3.4vw,46px); margin:0 0 18px; }
body #hfj-catalogue>.woocommerce-products-header .woocommerce-products-header__title::after { content:''; position:static; transform:none; display:block; width:48px; height:1px; margin:12px auto 0; background:#ad8c5e; }
#hfj-catalogue .hfj-category-browse { margin:16px 0 0; }
#hfj-catalogue .hfj-category-browse__list { width:max-content; max-width:100%; margin-inline:auto; box-sizing:border-box; overflow-x:auto; flex-wrap:nowrap; gap:12px; padding:4px 0 12px; scrollbar-width:thin; }
#hfj-catalogue .hfj-category-browse__list li { flex:0 0 88px; }
#hfj-catalogue .hfj-category-tile__image { width:88px; background:white; }
#hfj-catalogue .hfj-category-tile__label { font:500 13px/1.4 var(--hfj-font); padding:0; }
#hfj-catalogue .hfj-filter-chips { display:flex; flex-wrap:wrap; gap:8px; }
#hfj-catalogue .hfj-filter-option { margin:4px 0; padding-top:8px; padding-bottom:8px; }
#hfj-catalogue .hfj-filter-option:has(input:checked) { background:var(--hfj-surface); }
#hfj-catalogue .hfj-filter-options>details:last-of-type { border-bottom:1px solid var(--hfj-line); }
#hfj-catalogue .hfj-filter-price { border:0; min-width:0; }
#hfj-catalogue .hfj-filter-price legend { padding:0; }
@media(min-width:1024px) { body #hfj-catalogue>.woocommerce-products-header { grid-column:1/-1; grid-row:1; } }
@media(max-width:1023px) { body #hfj-catalogue>.woocommerce-products-header { padding:0 16px 16px; } }
@media(min-width:1024px) {
  body #hfj-catalogue:has(>.woocommerce-breadcrumb) { grid-template-rows:auto auto auto auto 1fr; }
  #hfj-catalogue>.woocommerce-breadcrumb { grid-column:1/-1; grid-row:1; }
  body #hfj-catalogue>.woocommerce-breadcrumb~.woocommerce-products-header { grid-column:2; grid-row:2; }
  #hfj-catalogue>.woocommerce-breadcrumb~.hfj-filter-panel { grid-row:2/6; }
  #hfj-catalogue>.woocommerce-breadcrumb~.hfj-catalogue-bar { grid-row:3; }
  #hfj-catalogue>.woocommerce-breadcrumb~.hfj-filter-chips { grid-row:4; }
  #hfj-catalogue>.woocommerce-breadcrumb~#hfj-catalogue-results { grid-row:5; }
}
@media(max-width:1023px) {
  #hfj-catalogue .hfj-filter-panel .hfj-filter-price { margin-top:16px; }
}
.hfj-filter-dialog[open] {
  position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none;
  margin:0; padding:0; border:0; background:transparent; overflow:hidden;
}
.hfj-filter-dialog::backdrop { background:#33333388; }
html:has(.hfj-filter-dialog[open]) { overflow:hidden; }

#hfj-catalogue .hfj-filter-heading h2 { font:500 16px/1.5 var(--hfj-font); margin:0; }
#hfj-catalogue .hfj-category-browse__list { scrollbar-width:none; }
#hfj-catalogue .hfj-category-browse__list::-webkit-scrollbar { display:none; }


body #hfj-catalogue .hfj-collection-intro { margin-inline:auto; max-width:64ch; text-align:center; }
body #hfj-catalogue .hfj-collection-intro p { margin:0; }
body #hfj-catalogue .woocommerce-breadcrumb { width:100%; max-width:none; text-align:left; margin:0 0 16px; padding:0; }
@media(max-width:1023px) {
  body #hfj-catalogue>.woocommerce-breadcrumb { padding-inline:16px; box-sizing:border-box; }
}
body #hfj-catalogue .hfj-category-browse__heading:empty { display:none; }
body #hfj-catalogue .hfj-catalogue-bar>.woocommerce-result-count { margin:0; font-size:11px; letter-spacing:.06em; }
@media(min-width:1024px) {
 #hfj-catalogue.hfj-catalogue-enhanced #hfj-catalogue-results>.hfj-shop-toolbar { display:none!important; }
}

#hfj-catalogue .hfj-filter-chips a {
  border:1px solid var(--hfj-line);
  transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease;
}
#hfj-catalogue .hfj-filter-chips a:is(:hover,:focus-visible) {
  background:var(--hfj-cream); border-color:var(--hfj-action); color:var(--hfj-ink);
}
#hfj-catalogue .hfj-filter-chips a span[aria-hidden] { color:var(--hfj-muted); transition:color 160ms ease; }
#hfj-catalogue .hfj-filter-chips a:is(:hover,:focus-visible) span[aria-hidden] { color:var(--hfj-action-active);
}
@media(min-width:1024px) {
  #hfj-catalogue .hfj-filter-options > details > summary {
    box-sizing:border-box; min-height:50px; border:0;
    transition:background-color 160ms ease;
  }
  #hfj-catalogue .hfj-filter-options > details > summary:is(:hover,:focus-visible) { background:var(--hfj-soft); }
  body #hfj-catalogue .woocommerce-breadcrumb { margin-bottom:6px; }
  body #hfj-catalogue > .woocommerce-products-header { padding-bottom:8px; }
  body #hfj-catalogue > .woocommerce-products-header .woocommerce-products-header__title { margin-bottom:8px; }
  body #hfj-catalogue .woocommerce-products-header .woocommerce-products-header__title::after { margin-top:6px; }
  body #hfj-catalogue .hfj-collection-intro { margin:8px auto; max-width:76ch; }
  body #hfj-catalogue .hfj-collection-intro p { line-height:1.65; }
  #hfj-catalogue .hfj-category-browse { margin:8px 0 0; }
  #hfj-catalogue .hfj-category-browse__list { padding:0 0 4px; }
  #hfj-catalogue .hfj-category-browse__list li { flex-basis:76px; }
  #hfj-catalogue .hfj-category-tile__image { width:76px; }
  #hfj-catalogue .hfj-catalogue-bar { margin-bottom:8px; }
}
@media(prefers-reduced-motion:reduce) {
  #hfj-catalogue .hfj-filter-chips a, #hfj-catalogue .hfj-filter-options > details > summary { transition:none; }
}
