/* HFJ product page: neutral, image-led and bounded sticky purchasing. */
.single-product .site-content { background:var(--hfj-cream); }
body.single-product div.product { max-width:1180px; margin:0 auto 24px; }
body.single-product .hfj-product-summary-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(24px,4vw,48px); align-items:start; }
body.single-product .hfj-pdp-gallery { position:sticky; top:calc(var(--hfj-pdp-header,0px) + 12px); min-width:0; align-self:start; }
body.single-product .hfj-pdp-gallery div.images { float:none; width:100%; margin:0; padding:0; }
body.single-product div.product div.images .woocommerce-product-gallery__image { border:0; background:white; }
body.single-product div.product div.images .woocommerce-product-gallery__image a { display:block; aspect-ratio:1; height:auto; padding:0; overflow:hidden; background:white; }
body.single-product div.product div.images .woocommerce-product-gallery__image img { width:100%; height:100%; max-height:none; object-fit:contain; margin:0; }
body.single-product div.product div.images .flex-viewport { aspect-ratio:1; height:auto!important; max-height:none; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs { display:flex; flex-wrap:nowrap; gap:10px; margin:12px 0 0; padding:2px; overflow-x:auto; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs li { flex:0 0 76px; width:76px; margin:0; border:1px solid var(--hfj-line); }
body.single-product .woocommerce-product-gallery .flex-control-thumbs img { width:100%; aspect-ratio:1; height:auto; }
.single-product .summary { min-width:0; }
body.single-product div.product .product_title { font:400 clamp(27px,2.5vw,36px)/1.2 Georgia,serif; letter-spacing:0; margin:0 0 14px; }
.single-product .woocommerce-product-details__short-description { font:400 14px/1.75 var(--hfj-font,Arial,sans-serif); color:#555; }
body.single-product div.product .summary .price { font:600 24px/1.4 var(--hfj-font); margin:12px 0; }
.hfj-purchase-main { margin:0 0 12px; }
body.single-product div.product .hfj-purchase-main form.cart { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:10px; margin:0; padding:0; }
.hfj-purchase-main form.cart .stock { grid-column:1/-1; margin:0 0 8px; }
.hfj-purchase-main .quantity { grid-column:1/-1; }
.hfj-purchase-main .quantity:has(input[type=hidden]) { display:none; }
body.single-product div.product .hfj-purchase-main :is(.single_add_to_cart_button,.added_to_cart) { grid-column:1; width:100%; min-height:52px; display:flex; align-items:center; justify-content:center; gap:10px; padding:14px 18px; background:var(--hfj-action); color:var(--hfj-action-text)!important; border:1px solid var(--hfj-action); font:500 14px/22px var(--hfj-font); letter-spacing:0; text-transform:none; text-decoration:none; transition:background-color 180ms ease; }
body.single-product div.product .hfj-purchase-main :is(.single_add_to_cart_button,.added_to_cart):hover { background:var(--hfj-action-hover); border-color:var(--hfj-action-hover); }
body.single-product div.product .hfj-pdp-heart { grid-column:2; min-width:44px; width:48px; height:52px; min-height:52px; padding:12px; background:transparent; color:#333; border:0; }
.hfj-pdp-heart .hfj-icon { width:22px; height:22px; }
.hfj-pdp-heart[aria-pressed=true] svg { fill:currentColor; }
.hfj-purchase-main:has(>.hfj-enquire) { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.hfj-enquiry-availability { grid-column:1/-1; font-size:13px; color:#666; }
.hfj-purchase-main>.hfj-enquire { display:flex; align-items:center; justify-content:center; padding:14px; }
body.single-product div.product .hfj-product-actions--full { position:static; display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0; }
.hfj-pdp-assurances { display:grid; grid-template-columns:1fr 1fr; list-style:none; gap:12px; padding:16px 0; margin:8px 0 0; border:0; }
.hfj-pdp-assurances li { display:flex; align-items:center; gap:8px; font-size:11px; }
.hfj-pdp-policy-link { font-size:11px; margin:8px 0 20px; }
.hfj-pdp-specs { display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); margin:20px 0; padding:12px 0; border-block:1px solid var(--hfj-line); }
.hfj-pdp-specs>div { display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px; text-align:center; border:0; font-size:13px; }
.hfj-pdp-specs>div:nth-child(odd) { background:transparent; }
.hfj-pdp-specs dt { display:flex; flex-direction:column; align-items:center; gap:6px; font-weight:600; }
.hfj-pdp-specs dd { margin:0; overflow-wrap:anywhere; }
.hfj-sticky-purchase { position:fixed; z-index:80; bottom:0; left:0; right:0; display:block; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); background:var(--hfj-cream); color:var(--hfj-ink); border-top:1px solid var(--hfj-line); }
.hfj-sticky-purchase .hfj-pdp-heart { flex:none; width:48px; height:48px; padding:12px; background:transparent; border:0; box-shadow:none; color:#333; }
.hfj-sticky-purchase .hfj-pdp-heart:hover { color:#111; background:var(--hfj-surface); }
.hfj-sticky-purchase { opacity:0; visibility:hidden; transform:translateY(100%); pointer-events:none; transition:transform 200ms ease,opacity 200ms ease,visibility 200ms; }
.hfj-sticky-purchase.is-visible { opacity:1; visibility:visible; transform:none; pointer-events:auto; }
.hfj-sticky-purchase__details { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; font-size:13px; color:var(--hfj-ink); }
.hfj-sticky-purchase__title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:400 13px/1.5 var(--hfj-font); }
.hfj-sticky-purchase__price { font:600 16px/1.3 var(--hfj-font); overflow-wrap:anywhere; }
.hfj-sticky-purchase__price .amount { display:inline-block; white-space:nowrap; }
.hfj-sticky-purchase__price .hfj-enquiry-price { font:500 14px/1.4 var(--hfj-font); }
.hfj-sticky-purchase .hfj-sticky-buy { flex:none; min-height:48px; min-width:160px; font-size:13px; padding:12px 20px; }
/* The bar stops before the footer, so no permanent body spacer is needed. */
.hfj-sticky-buy[aria-busy=true]::before { content:''; display:inline-block; width:14px; height:14px; margin-right:8px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:hfj-spin .7s linear infinite; }
@media(min-width:1024px) { body.single-product .hfj-pdp-gallery div.images { max-width:min(100%,calc(100dvh - var(--hfj-pdp-stable-header,200px) - 130px)); margin-inline:auto; } }
@media(max-width:1023px) { body.single-product .hfj-product-summary-grid { grid-template-columns:1fr; gap:24px; } body.single-product .hfj-pdp-gallery { position:static; } }
@media(max-width:767px) { .hfj-sticky-purchase { padding:10px 0 calc(10px + env(safe-area-inset-bottom)); } .hfj-sticky-purchase__inner { gap:8px; } .hfj-sticky-purchase__details { flex:1; font-size:11px; } .hfj-sticky-purchase .hfj-sticky-buy { min-width:112px; max-width:145px; padding:10px; font-size:11px; } .hfj-sticky-purchase .hfj-pdp-heart { width:44px; padding:10px; } }
@media(max-width:767px) {
 .hfj-sticky-purchase__details { position:relative; }
 .hfj-sticky-purchase__title { position:absolute; width:1px; height:1px; padding:0; margin:-1px; border:0; overflow:hidden; clip-path:inset(50%); }
 .hfj-sticky-purchase__price { font-size:18px; }
}
@media(prefers-reduced-motion:reduce) { .hfj-sticky-buy[aria-busy=true]::before { animation:none; } }

.hfj-policy { max-width: 850px; margin: 0 auto 60px; line-height: 1.85; color: #333333; }
.hfj-policy-page .site-main { width: min(950px,calc(100% - 40px)); margin: 48px auto; }
.hfj-policy-page .entry-header { max-width: 850px; margin: 0 auto 36px; }
.hfj-policy-page .entry-title { font-family: Georgia,serif; font-size: clamp(32px,5vw,48px); font-weight: 400; line-height: 1.2; }
.hfj-policy h2 { font-family: Georgia,serif; font-size: 30px; font-weight: 400; margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 1px solid #aaaaaa; }
.hfj-policy h3 { font-size: 20px; margin-top: 28px; }
.hfj-policy a { overflow-wrap: anywhere; }

.hfj-pdp-gallery-loading { position:absolute; inset:0; z-index:10; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; background:#ffffffed; color:#333; pointer-events:none; }
.hfj-pdp-gallery-loading[hidden] { display:none; }
.hfj-pdp-gallery-loading img { width:44px!important; height:44px!important; animation:hfj-gallery-loading 1s ease-in-out infinite alternate; }
@keyframes hfj-gallery-loading { to { opacity:.4; } }
.hfj-pdp-assurances a { color:inherit; text-decoration:underline; text-decoration-color:#bbb; text-underline-offset:4px; transition:color 160ms ease,text-decoration-color 160ms ease; }
.hfj-pdp-assurances a:hover,.hfj-pdp-assurances a:focus-visible { color:#111; text-decoration-color:#333; }
@media(prefers-reduced-motion:reduce) { .hfj-sticky-purchase { transition:none; } .hfj-pdp-gallery-loading img { animation:none; } }

html:has(body.single-product),body.single-product { overflow-x:clip; }

.hfj-wishlist-toggle:not(:disabled) { cursor:pointer; }

.hfj-sticky-purchase__inner { display:flex; align-items:center; gap:20px; }
body.single-product .woocommerce-breadcrumb { max-width:1180px; width:calc(100% - 48px); margin:0 auto 24px; text-align:left; }
@media(max-width:767px) { body.single-product .woocommerce-breadcrumb { width:calc(100% - 32px); } .hfj-sticky-purchase__inner { gap:8px; } }

.hfj-product-details { clear:both; width:100%; padding-block:8px; }
.hfj-product-details details { border-top:1px solid var(--hfj-line); scroll-margin-top:calc(var(--hfj-header-visible-height,120px) + 16px); }
.hfj-product-details details:last-of-type { border-bottom:1px solid var(--hfj-line); }
.hfj-product-details summary { display:flex; align-items:center; justify-content:space-between; min-height:52px; padding:12px 8px; cursor:pointer; list-style:none; font:500 15px/1.4 var(--hfj-font); }
.hfj-product-details summary::-webkit-details-marker { display:none; }
.hfj-product-details summary::after { content:'+'; font-size:22px; font-weight:400; }
.hfj-product-details details[open]>summary::after { content:'−'; }
.hfj-pdp-detail-panel { padding:8px 8px 16px; font-size:14px; line-height:1.65; }
.hfj-pdp-detail-panel h2 { font-size:20px; }
.hfj-pdp-detail-panel h3 { font-size:17px; }
@media(prefers-reduced-motion:reduce) { .hfj-pdp-assurances a { transition:none; } }

.hfj-purchase-main .variations_form>.variations,.hfj-purchase-main .single_variation_wrap { grid-column:1/-1; width:100%; }
.hfj-purchase-main .woocommerce-variation-add-to-cart { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; align-items:center; }
.hfj-purchase-main .variations select { width:100%; min-height:44px; background:white; padding:8px 12px; }
.hfj-purchase-main .hfj-ring-sizing-note { grid-column:1/-1; margin:0 0 8px; color:#333; font:500 13px/1.5 var(--hfj-font,Arial,sans-serif); }

.hfj-pdp-about h2 { margin:20px 0 10px; font:400 24px/1.25 Georgia,serif; }
.hfj-pdp-about .woocommerce-product-details__short-description { margin:0 0 12px; padding:0; border:0; font:400 14px/1.65 var(--hfj-font); color:var(--hfj-ink); }
.hfj-product-details summary { transition:background-color 160ms ease; }
.hfj-product-details summary:hover,.hfj-product-details details[open]>summary { background:var(--hfj-surface); }
.hfj-product-details .hfj-pdp-detail-panel h2:first-child { display:none; }
@media(max-width:479px) { body.single-product div.product .hfj-product-actions--full { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .hfj-product-details summary { transition:none; } }
