/* Compact card actions share one clear contrast and touch-target treatment. */
.hfj-product-actions:not(.hfj-product-actions--full) button {
  width:44px; height:44px; min-width:44px; min-height:44px;
  padding:8px; background:transparent; color:#1f1b18; border:0; border-radius:0; box-shadow:none;
  transition:color 160ms ease;
}
.hfj-product-actions:not(.hfj-product-actions--full) button>span { color:inherit; }
.hfj-product-actions:not(.hfj-product-actions--full) button>.hfj-icon { transition:transform 160ms ease; transform-origin:center; }
.hfj-product-actions:not(.hfj-product-actions--full) button[aria-pressed=true] {
  background:transparent!important; color:#1f1b18; border:0; box-shadow:none;
}
@media(hover:hover) and (pointer:fine) {
  .hfj-product-actions:not(.hfj-product-actions--full) button:not(:disabled):hover {
    background:transparent; color:#111;
    box-shadow:none;
  }
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .hfj-product-actions:not(.hfj-product-actions--full) button:not(:disabled):hover>.hfj-icon { transform:scale(1.06); }
}
.hfj-product-actions:not(.hfj-product-actions--full) button:focus-visible {
  background:transparent; color:#393633; border-color:#444444;
}
.hfj-product-actions:not(.hfj-product-actions--full) button:not(:disabled):active {
  background:transparent; color:#393633; border-color:transparent;
  box-shadow:none;
}
.hfj-product-actions:not(.hfj-product-actions--full) button[aria-pressed=true]:hover { background:transparent!important; color:#1f1b18; box-shadow:none; }
.hfj-product-actions:not(.hfj-product-actions--full) button:disabled {
  opacity:.55; cursor:not-allowed; box-shadow:none;
}
body .woocommerce ul.products li.product a .hfj-card-media,
body.woocommerce ul.products li.product a .hfj-card-media {
  display:block; position:relative; grid-column:1 / -1; grid-row:1;
  width:100%; aspect-ratio:1; overflow:hidden; border-radius:8px;
  margin:0 0 .9rem; background:#fff;
}
body .woocommerce ul.products li.product a .hfj-card-media>img,
body.woocommerce ul.products li.product a .hfj-card-media>img {
  display:block; width:100%; height:100%; aspect-ratio:1;
  object-fit:contain; margin:0!important; border-radius:0;
}
.hfj-card-media--photo>img { transition:transform 280ms ease; transform-origin:center; }
.woocommerce-loop-product__link:focus-visible .hfj-card-media { outline:none; }
.woocommerce-loop-product__link:focus-visible .hfj-card-media::after { content:""; position:absolute; inset:0; border:2px solid #444444; border-radius:inherit; pointer-events:none; }
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .hfj-home-product-card__image.hfj-card-media--photo:hover>img,
  .hfj-card-media.hfj-card-media--photo:hover>img { transform:scale(1.05); }
}
body.hfj-products-view-list .woocommerce ul.products li.product a .hfj-card-media,
body.hfj-products-view-list.woocommerce ul.products li.product a .hfj-card-media {
  grid-column:1; grid-row:1 / 5; margin-bottom:0; align-self:start;
}
@media(prefers-reduced-motion:reduce) {
  .hfj-product-actions:not(.hfj-product-actions--full) button,
  .hfj-product-actions:not(.hfj-product-actions--full) button>.hfj-icon { transition:none; transform:none; }
  .hfj-card-media--photo>img { transition:none; transform:none; }
}

/* Placeholder geometry must not inherit the gallery control offset. */
body .hfj-home-product-card__image:not(.hfj-card-media--photo) { display:grid; place-items:center; }
body .hfj-home-product-card__image:not(.hfj-card-media--photo) img { position:static; inset:auto; transform:none; margin:auto!important; width:46%; height:46%; object-fit:contain; }
body .hfj-product-actions .hfj-wishlist-toggle.is-saved { color:#1f1b18; }


body :is(.hfj-home-product-card,li.product) .hfj-product-actions:not(.hfj-product-actions--full) button { background:transparent!important; border:0!important; border-radius:0; box-shadow:none!important; }
body :is(.hfj-home-product-card,li.product) .hfj-product-actions button:hover { color:#111; }
body :is(.hfj-home-product-card,li.product) .hfj-product-actions button[aria-pressed=true] { color:#1f1b18; }
.hfj-card-gallery-controls { gap:0; }
body .hfj-card-gallery-controls button:is(:hover,:active) { background:transparent; border:0; }
.hfj-enquiry-price { display:block; font-size:13px; font-weight:400; line-height:1.5; }
/* Enquiry-only pieces have an equally clear action, without implying a purchase. */
body :is(.hfj-home-product-card,li.product) .hfj-enquiry-link {
  display:inline-flex; align-items:center; justify-content:center; justify-self:end; align-self:center;
  grid-column:2; grid-row:4; box-sizing:border-box; min-height:44px; max-width:100%; margin:0;
  padding:10px 14px; border:1px solid var(--hfj-action); border-radius:3px;
  background:var(--hfj-action); color:var(--hfj-action-text); font:500 12px/1.4 var(--hfj-font); text-decoration:none; text-transform:none;
  transition:background-color 160ms ease,border-color 160ms ease; cursor:pointer;
}
body :is(.hfj-home-product-card,li.product) .hfj-enquiry-link:hover { background:var(--hfj-action-hover); border-color:var(--hfj-action-hover); color:var(--hfj-action-text); text-decoration:none; }
body :is(.hfj-home-product-card,li.product) .hfj-enquiry-link:active { background:var(--hfj-action-active); border-color:var(--hfj-action-active); }
body :is(.hfj-home-product-card,li.product):has(.hfj-enquiry-link) :is(.price,.hfj-home-product-card__price) { white-space:normal; }
body :is(.hfj-home-product-card,li.product) .hfj-enquiry-link { gap:6px; }
body :is(.hfj-home-product-card,li.product) .hfj-enquiry-link .hfj-icon { width:17px; height:17px; }
@media(prefers-reduced-motion:reduce) { body :is(.hfj-home-product-card,li.product) .hfj-enquiry-link { transition:none; } }
