/* Catalogue cards share their layout on the home page and product archives. */
:is(.hk-home,.hk-catalog) .wc-block-product-template > .wc-block-product {
    position: relative; isolation: isolate; overflow: visible;
    box-sizing: border-box; padding: clamp(8px,1vw,14px);
    background: #fff; border: 0; border-radius: 2px;
    box-shadow: 0 0 4px rgba(0,0,0,.12);
    transition:transform .44s cubic-bezier(.32,0,.22,1),box-shadow .44s ease;
}
:is(.hk-home,.hk-catalog) .wc-block-product-template > .wc-block-product:has(.hk-card-more[open]) {
    z-index:4;
}
:is(.hk-home,.hk-catalog) .wc-block-product-template > .wc-block-product:has(.hk-card-more.hk-expanded) {
    box-shadow:0 2px 10px rgba(30,48,42,.12);
}
.hk-card-photos { position:relative; isolation:isolate; display:grid; aspect-ratio:1; width:100%; overflow:hidden; background:#fff; }
.hk-card-front,.hk-card-back { grid-area:1 / 1; position:relative; display:grid; place-items:center; width:100%; height:100%; min-width:0; min-height:0; }
.hk-card-back { opacity:0; visibility:hidden; pointer-events:none; background:#fff; }
.hk-card-photos .hk-frame-photo { display:block; width:100%; height:100%; max-width:100%; object-fit:contain; transform-origin:center; }
.hk-white-studio { filter:url(#hk-studio-paper); }
.hk-card-filters { position:absolute; overflow:hidden; pointer-events:none; }
.hk-card-info { position:relative; padding:0 2px; }
.hk-card-info .hk-brand { margin:0; }
.hk-card-info .wp-block-woocommerce-product-price { margin-block:3px 4px !important; }
.hk-card-info .wp-block-post-title { overflow-wrap:anywhere; }
:is(.hk-home,.hk-catalog) .wc-block-product .hk-card-info .wp-block-post-title { font-size:clamp(13.5px,1.12vw,16px); }
.hk-card-info .wp-block-post-title.has-medium-font-size { font-size:clamp(16px,1.35vw,18px)!important; }
:is(.hk-home,.hk-catalog) .wc-block-product .hk-card-info .hk-brand { font-size:.71875rem; }
.hk-card-info .wp-block-woocommerce-product-price { font-size:.90625rem; }
.hk-card-info .wp-block-woocommerce-product-price.has-small-font-size,
.hk-card-info .wp-block-woocommerce-product-price .has-small-font-size { font-size:.78125rem!important; }
.hk-card-more { margin:0; }
.hk-card-more > summary { cursor:pointer; padding:5px 0; color:#245b50; font-size:12px; }
.hk-card-panel { padding:9px 5px 3px; background:#fff; font-size:13px; color:#273c35; text-align:start; }
.hk-card-specs { margin:0; }
.hk-card-specs > div { display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding:2px 0; }
.hk-card-specs dt { color:#57635f; font-weight:400; }
.hk-card-specs dd { margin:0; font-weight:600; text-align:end; }
.hk-card-excerpt { margin:0; }
.hk-card-actions { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-top:9px; }
.hk-card-icon,.hk-saved-trigger,.hk-card-dialog header button { font:inherit; border:0; background:transparent; color:#24443c; padding:0; cursor:pointer; display:inline-grid; place-items:center; width:36px; height:36px; flex:none; }
.hk-card-icon[aria-pressed=true] svg { fill:#19554b; stroke:#19554b; }
.hk-card-icon svg,.hk-saved-trigger svg { width:19px; height:19px; }
.hk-card-cta,.hk-dialog-link { display:inline-block; text-align:center; text-decoration:none; background:#164d43; color:#fff!important; border-radius:4px; padding:7px 12px; line-height:1.55; font-size:13px; }
.hk-card-cta:focus-visible,.hk-card-icon:focus-visible,.hk-saved-trigger:focus-visible,.hk-card-more summary:focus-visible,.hk-card-dialog button:focus-visible { outline:2px solid #9a5d27; outline-offset:2px; }
.hk-card-dialog { box-sizing:border-box; width:min(440px,calc(100% - 32px)); max-height:84dvh; overflow:auto; padding:20px; border:1px solid #dadfdc; border-radius:12px; color:#20352f; background:#fff; text-align:start; font:inherit; }
.hk-card-dialog::backdrop { background:rgba(13,28,23,.46); }
.hk-card-dialog header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.hk-card-dialog header h2 { font-size:20px; line-height:1.65; margin:0; }
.hk-card-dialog header button { font-size:24px; }
.hk-dialog-body > img { display:block; width:100%; height:clamp(150px,27vh,270px); object-fit:contain; margin:10px auto; }
.hk-dialog-body .hk-dialog-price { font-weight:700; color:#164d43; margin:4px 0 12px; }
.hk-dialog-body .hk-dialog-link { margin:15px 0 0; }
.hk-saved-list { list-style:none; margin:12px 0 0; padding:0; }
.hk-saved-list li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid #e6ebe7; }
.hk-saved-list a { text-decoration:none; }
.hk-saved-list button { background:transparent; border:0; font:inherit; font-size:12px; color:#57635f; cursor:pointer; }
html:not(.hk-interactive) :is(.hk-saved-trigger,.hk-card-icon) { display:none; }
@media (hover:hover) and (pointer:fine) {
    .hk-card-photos .hk-card-back {
        visibility:visible; transform:scale(1);
        transition:opacity .78s cubic-bezier(.42,0,.28,1), transform 1.65s cubic-bezier(.34,0,.25,1);
    }
    .hk-card-photos:not(.hk-has-alternate) .hk-card-front {
        transition:transform 1.65s cubic-bezier(.34,0,.25,1);
    }
    .wp-block-woocommerce-product-image:hover .hk-card-back.hk-alt-ready { opacity:1; transform:scale(1.05); }
    .wp-block-woocommerce-product-image:hover .hk-card-photos:not(.hk-has-alternate) .hk-card-front { transform:scale(1.05); }
}
@media (min-width:681px) and (hover:hover) and (pointer:fine) {
    .hk-interactive :is(.hk-catalog,.hk-home) .wc-block-product-template > .wc-block-product:has(.hk-card-more.hk-expanded) { transform:translateY(-2px); }
    .hk-interactive .hk-card-more > summary:not(:focus-visible) { position:absolute; width:1px; height:1px; margin:-1px; padding:0; clip-path:inset(50%); overflow:hidden; }
    .hk-interactive .hk-card-more > summary:focus-visible { display:block; }
    .hk-interactive .hk-card-panel { position:absolute; z-index:1; top:100%; inset-inline:calc(-1 * clamp(8px,1vw,14px)); padding:12px clamp(10px,1vw,15px); box-shadow:0 7px 11px -3px rgba(30,48,42,.16); border-radius:0 0 2px 2px; }
}
@media (max-width:680px) {
    .hk-card-actions { flex-wrap:wrap; justify-content:center; }
    .hk-card-cta { padding:7px 8px; }
    .hk-card-specs > div { flex-wrap:wrap; gap:1px 5px; }
    .hk-card-specs dd { margin-inline-start:auto; }
    .hk-card-dialog { padding:15px; }
}
@media (prefers-reduced-motion:reduce) {
    :is(.hk-home,.hk-catalog) .wc-block-product-template > .wc-block-product,.hk-card-photos .hk-card-back,.hk-card-photos .hk-card-front { transition:none!important; }
    .wp-block-woocommerce-product-image:hover .hk-card-back,.wp-block-woocommerce-product-image:hover .hk-card-front,.hk-interactive :is(.hk-catalog,.hk-home) .wc-block-product-template > .wc-block-product:has(.hk-card-more.hk-expanded) { transform:none!important; }
}
