.single-product .image-mains { position: relative; }
.hhfp-share[hidden], .hhfp-share [hidden], .hhfp-feedback:empty { display: none !important; }
.hhfp-share {
    position: absolute;
    inset-block-start: clamp(8px, 2vw, 16px);
    inset-inline-end: clamp(8px, 2vw, 16px);
    z-index: 4;
    color: #222823;
}
.hhfp-share .hhfp-share-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    color: #25352f;
    background: #fffaf4;
    border: 1px solid #beafa2;
    border-radius: 50%;
    box-shadow: 0 2px 8px #49392920;
    cursor: pointer;
}
.hhfp-share .hhfp-share-button:hover { background: white; border-color: #615c54; }
.hhfp-share button:focus-visible, .hhfp-share input:focus-visible {
    outline: 3px solid #244e40;
    outline-offset: 2px;
}
.hhfp-share .hhfp-feedback, .hhfp-share .hhfp-copy {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: calc(100% + 8px);
    width: max-content;
    max-width: min(230px, 72vw);
    padding: 10px 14px;
    color: #25231f;
    background: #fffcf8;
    border: 1px solid #d8cabc;
    border-radius: 12px;
    box-shadow: 0 4px 18px #49392920;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.hhfp-share .hhfp-copy label { display: block; margin: 0; }
.hhfp-share .hhfp-copy input { width: 100%; margin: 6px 0 0; padding: 7px; }
.hhfp-share .hhfp-close { padding: 6px 0; background: transparent; border: none; color: inherit; text-decoration: underline; }

.hhfp-rail { display: none; }
@media (max-width: 1023px) {
    .single-product #review_form :is(.comment-form-author,.comment-form-email) input {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    /* Keep every breadcrumb link. Only the current product title can truncate. */
    body.single-product #goal-breadscrumb.woo-detail {
        min-height: 0 !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        border-radius: 0;
        background: #fff8ef !important;
        border-bottom: 1px solid #e6d8cb;
    }
    body.single-product #goal-breadscrumb .wrapper-breads-inner { text-align: start; }
    body.single-product #goal-breadscrumb ol.breadcrumb {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 0;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.25 !important;
        white-space: nowrap;
    }
    body.single-product #goal-breadscrumb ol.breadcrumb::-webkit-scrollbar { display: none; }
    body.single-product #goal-breadscrumb .breadcrumb li {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 5px;
        margin: 0;
        padding: 0;
    }
    body.single-product #goal-breadscrumb .breadcrumb li:last-child { flex: 0 1 auto; min-width: 54px; }
    body.single-product #goal-breadscrumb .breadcrumb li + li::before {
        content: "›";
        flex: none;
        position: static;
        padding: 0 0 0 5px;
        color: #876f61;
        font: 15px/1 sans-serif;
    }
    body.single-product #goal-breadscrumb .breadcrumb :is(a,.active) {
        color: #42342f !important;
        font-family: inherit;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
    }
    body.single-product #goal-breadscrumb .breadcrumb a { display: inline-flex; align-items: center; min-height: 26px; }
    body.single-product #goal-breadscrumb .breadcrumb .active {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .single-product .image-mains.hhfp-touch-gallery {
        --hhfp-thumb: clamp(45px, 13vw, 66px);
        display: grid;
        grid-template-columns: var(--hhfp-thumb) minmax(0, 1fr);
        gap: 9px;
        align-items: start;
    }
    .single-product .hhfp-touch-gallery::before, .single-product .hhfp-touch-gallery::after { display: none; }
    .single-product .image-mains.hhfp-touch-gallery > .goal-woocommerce-product-gallery-wrapper {
        grid-column: 2; grid-row: 1; float: none; width: 100%; min-width: 0; margin: 0;
    }
    .single-product .image-mains.hhfp-touch-gallery > .wrapper-thumbs {
        grid-column: 1; grid-row: 1; float: none; width: 100%; margin: 0; padding: 0;
    }
    .single-product .hhfp-touch-gallery .goal-woocommerce-product-gallery-thumbs,
    .single-product .hhfp-touch-gallery .goal-woocommerce-product-gallery > .slick-arrow { display: none !important; }
    .single-product .hhfp-rail {
        display: grid;
        gap: 5px;
        max-height: calc(var(--hhfp-thumb) * 3 + 25px);
        padding: 2px;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        touch-action: pan-y;
        scroll-behavior: auto;
        border-radius: 10px;
    }
    .single-product .hhfp-rail::-webkit-scrollbar { display: none; }
    .single-product .hhfp-thumb {
        display: block;
        box-sizing: border-box;
        margin: 0;
        padding: 2px;
        min-height: 44px;
        width: 100%;
        aspect-ratio: 1;
        border: 1px solid #d5c4b7;
        border-radius: 10px;
        background: #fffcf8;
        box-shadow: none;
    }
    .single-product .hhfp-thumb[aria-pressed="true"] { border-color: #a93820; box-shadow: 0 0 0 1px #a93820; }
    .single-product .hhfp-thumb:focus-visible { outline: 2px solid #21473c; outline-offset: 0; }
    .single-product .hhfp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
}

@media (min-width: 700px) and (max-width: 1023px) {
    .single-product .details-product .top-row:has(.hhfp-touch-gallery) > .col-md-7,
    .single-product .details-product .top-row:has(.hhfp-touch-gallery) > .right-info {
        float: left;
        width: 50%;
    }
}
@media (min-width: 600px) and (max-width: 1023px) and (max-height: 540px) {
    .single-product .image-mains.hhfp-touch-gallery {
        --hhfp-thumb: 45px;
        max-width: calc(46svh + var(--hhfp-thumb) + 9px);
        margin-inline: auto;
    }
}
