/* Product purchasing controls: reference proportions with accessible states. */
body.single-product .summary .single_add_to_cart_button,
body.single-product .summary .added_to_cart {
  position:relative;
  min-height:64px;
  padding:18px 64px;
  border:1px solid #555555;
  border-radius:0;
  background:#444444;
  font:400 16px/1.5 Georgia,serif!important;
  letter-spacing:.16em!important;
  color:#fff!important;
  text-align:center;
}
body.single-product .summary .single_add_to_cart_button:hover,
body.single-product .summary .added_to_cart:hover { background:#555555; border-color:#555555; }
body.single-product .hfj-product-actions--full .hfj-wishlist-toggle {
  min-height:62px;
  padding:15px 24px;
  gap:16px;
  border:1px solid #555555;
  border-radius:0;
  color:#393633;
  background:var(--hfj-surface);
  font:400 15px/1.5 Georgia,serif;
  letter-spacing:.16em;
}
body.single-product .hfj-product-actions--full .hfj-wishlist-toggle>span:first-child { font-size:34px; line-height:1; }
body.single-product .hfj-product-actions--full .hfj-wishlist-toggle:hover,
body.single-product .hfj-product-actions--full .hfj-wishlist-toggle.is-saved { background:var(--hfj-surface); color:#333333; }
body.single-product .summary .single_add_to_cart_button:active,
body.single-product .hfj-product-actions--full .hfj-wishlist-toggle:active { box-shadow:inset 0 0 0 2px #393633; }
/* HTML enquiry slide follows the real images and never enters PhotoSwipe. */
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  flex-wrap:nowrap!important;
  gap:10px!important;
  overflow-x:auto;
  padding:3px!important;
  scrollbar-width:thin;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  flex:0 0 calc(25% - 7.5px);
  width:calc(25% - 7.5px)!important;
  clear:none!important;
}
.hfj-gallery-enquiry { background:#fff; }
.hfj-gallery-enquiry__content {
  aspect-ratio:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:16px 52px;
  text-align:center;
  box-sizing:border-box;
  min-height:0;
}
.hfj-gallery-enquiry__content>.hfj-icon { color:var(--hfj-action); width:32px; height:32px; flex:none; margin:0; }
.hfj-gallery-enquiry h2 { font:400 clamp(23px,2.4vw,32px)/1.2 Georgia,serif; margin:0; }
.hfj-gallery-enquiry p { max-width:300px; margin:0; font-size:14px; line-height:1.5; }
.hfj-gallery-enquiry__button,.hfj-gallery-enquiry__fallback {
  background:transparent;
  color:var(--hfj-action-hover);
  border:0;
  padding:10px 0;
  min-height:44px;
  flex-shrink:0;
  font:500 14px/1.5 var(--hfj-font,Arial,sans-serif);
  text-decoration:underline;
  text-decoration-color:#bbb;
  text-underline-offset:4px;
  cursor:pointer;
  transition:color 160ms ease,text-decoration-color 160ms ease;
}
.hfj-gallery-enquiry__button { display:none; }
.hfj-js .hfj-gallery-enquiry__button { display:inline-block; }
.hfj-js .hfj-gallery-enquiry__fallback { display:none; }
.hfj-gallery-enquiry__button:hover,.hfj-gallery-enquiry__fallback:hover { color:#111; text-decoration-color:#333; transform:none; }
.hfj-gallery-showing-enquiry .woocommerce-product-gallery__trigger { display:none!important; }
/* Filter hierarchy and controls. Existing archive grid positioning is retained. */
.hfj-filter-panel { padding:0; background:#ffffff; border-color:var(--hfj-line); border-radius:4px; }
.hfj-filter-panel form { margin:0; }
.hfj-filter-heading { display:flex; justify-content:space-between; align-items:center; padding:22px 18px; gap:12px; }
.hfj-filter-heading .hfj-eyebrow { font-size:10px; letter-spacing:.15em; }
.hfj-filter-panel .hfj-filter-heading h2 { font:400 22px/1.2 Georgia,serif; margin:8px 0 0; }
.hfj-filter-options { padding:0 18px; }
.hfj-filter-panel summary { display:flex; align-items:center; gap:8px; padding:18px 0; list-style:none; font-size:13px; }
.hfj-filter-panel summary::-webkit-details-marker { display:none; }
.hfj-filter-panel summary>span:first-child { flex:1; }
.hfj-filter-chevron { width:8px; height:8px; border:solid var(--hfj-action); border-width:0 1px 1px 0; transform:rotate(45deg); margin:0 3px 4px; }
.hfj-filter-panel details[open] .hfj-filter-chevron { transform:rotate(225deg); margin-top:6px; }
.hfj-filter-count { border-radius:50%; background:var(--hfj-surface); min-width:22px; height:22px; text-align:center; line-height:22px; font-size:11px; }
.hfj-filter-count[hidden] { display:none; }
.hfj-filter-panel details fieldset { max-height:300px; padding:0 2px 14px; scrollbar-width:thin; scrollbar-color:#aaaaaa transparent; }
.hfj-filter-panel .hfj-filter-option { display:flex; align-items:center; gap:9px; min-height:40px; padding:6px 4px 6px calc(4px + var(--hfj-term-depth,0)*12px); margin:0; line-height:1.4; font-size:12px; font-weight:400; cursor:pointer; border-radius:2px; }
.hfj-filter-option input { width:17px; height:17px; min-width:17px; accent-color:var(--hfj-action-hover); margin:0; cursor:pointer; }
.hfj-filter-panel .hfj-filter-option:hover { background:var(--hfj-surface); }
.hfj-filter-panel .hfj-filter-option:has(input:checked) { background:var(--hfj-surface); color:#333333; }
.hfj-filter-panel .hfj-filter-option:has(input:focus-visible) { outline:2px solid #666; outline-offset:3px; }
.hfj-filter-panel .hfj-filter-option:has(input:focus-visible) input { outline:none; }
.hfj-filter-panel .hfj-filter-price { max-height:none; overflow:visible; padding:18px 0; margin:0; }
.hfj-filter-price legend { font-size:13px; }
.hfj-filter-price .hfj-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.hfj-filter-price label { font-size:11px; font-weight:400; }
.hfj-filter-panel .hfj-filter-price input { min-height:44px; width:100%; background:#fff; border-color:var(--hfj-line); font-size:14px; padding:10px 8px; }
.hfj-filter-error { font-size:12px; line-height:1.5; color:var(--hfj-error); margin:12px 0 0; }
.hfj-filter-buttons { padding:18px; border-top:1px solid var(--hfj-line); text-align:center; background:#ffffff; }
.hfj-filter-buttons .hfj-button { margin:0 0 8px; font-size:12px; letter-spacing:.05em; }
.hfj-filter-buttons>a { display:inline-flex; min-height:36px; align-items:center; font-size:12px; }
.hfj-filter-chips a:hover { background:var(--hfj-surface); color:var(--hfj-ink); }
@media(max-width:1023px) {
  .hfj-js .hfj-filter-panel.is-open { padding:0; overflow:hidden; border-radius:0; width:min(420px,100%); }
  .hfj-js .hfj-filter-panel.is-open form { height:100%; display:flex; flex-direction:column; }
  .hfj-filter-heading { flex-shrink:0; border-bottom:1px solid var(--hfj-line); padding:20px 24px; }
  .hfj-js .hfj-filter-panel .hfj-filter-close { text-decoration:none; font-size:30px; line-height:1; min-width:44px; padding:0; color:var(--hfj-ink); }
  .hfj-js .hfj-filter-panel.is-open .hfj-filter-options { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 24px; }
  .hfj-filter-panel details fieldset { max-height:none; overflow:visible; }
  .hfj-filter-panel .hfj-filter-option { min-height:44px; font-size:14px; }
  .hfj-filter-panel summary { font-size:14px; }
  .hfj-filter-buttons { position:static; flex-shrink:0; padding:16px 24px max(16px,env(safe-area-inset-bottom)); display:flex; align-items:center; gap:20px; }
  .hfj-filter-buttons .hfj-button { flex:1; margin:0; }
  .hfj-filter-buttons>a { min-height:44px; }
}
@media(max-width:390px) {
  body.single-product .summary .single_add_to_cart_button { min-height:58px; font-size:14px; }
  body.single-product .hfj-product-actions--full .hfj-wishlist-toggle { min-height:58px; font-size:13px; }
  .hfj-gallery-enquiry__content { padding:12px 48px; gap:10px; }
}
