/* Homira 2.9.62 — isolated interaction layer for every viewport. */
html body > .hmr-modal {
    position: fixed !important;
    z-index: 2147483647 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    isolation: isolate !important;
    contain: none !important;
}

/* Homira 2.9.85 — keep the category widget selectable in Elementor. */
.elementor-editor-active .elementor-widget-homira-category-menu,
.elementor-editor-preview .elementor-widget-homira-category-menu {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
}

.elementor-editor-active .elementor-widget-homira-category-menu > .elementor-widget-container,
.elementor-editor-preview .elementor-widget-homira-category-menu > .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    overflow: visible !important;
}

.hm-category-menu .hm-category-more .hm-category-circle {
    background: var(--hm-cat-more-bg, linear-gradient(145deg, var(--dn-accent, #c47a44), var(--dn-primary, #17324d))) !important;
}

html body > .hmr-modal:not(.is-open),
html body > .hmr-modal[hidden] {
    display: none !important;
    pointer-events: none !important;
}

html body > .hmr-modal.is-open {
    display: grid !important;
    pointer-events: auto !important;
}

html body > .hmr-modal .hmr-backdrop {
    position: fixed !important;
    z-index: 1 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    pointer-events: auto !important;
}

html body > .hmr-modal .hmr-dialog {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
}

html body > .dn-product-checkout {
    position: fixed !important;
    z-index: 2147483646 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: clamp(16px, 3vw, 38px) !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    transform: none !important;
    isolation: isolate !important;
}

html body > .dn-product-checkout:not(.is-open) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html body > .dn-product-checkout.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

html body > .dn-product-checkout .dn-product-checkout-backdrop {
    position: absolute !important;
    z-index: 1 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto !important;
}

html body > .dn-product-checkout .dn-product-checkout-card {
    position: relative !important;
    z-index: 2 !important;
    flex: 0 1 auto !important;
    width: min(820px, 100%) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    margin: auto !important;
    box-sizing: border-box !important;
    transform: none !important;
    pointer-events: auto !important;
}

html body > .dn-product-checkout .dn-product-checkout-card * {
    box-sizing: border-box;
}

html body > .dn-product-checkout .dn-product-checkout-card::before,
html body > .dn-product-checkout .dn-product-checkout-card::after,
html body > .dn-product-checkout .dn-product-checkout-step::before,
html body > .dn-product-checkout .dn-product-checkout-head::after {
    pointer-events: none !important;
}

/* Keep every product navigation control icon-based, centered and selectable
   as a control rather than as page text. */
.hm-pcards-widget > header > div,
.hm-pcards-widget > header button,
.hm-pcards-widget > header > div > a,
.hm-product-page .hm-gallery-arrow,
.hm-product-page .hm-gallery-arrow .hm-nav-icon {
    -webkit-user-select: none !important;
    user-select: none !important;
}

.hm-pcards-widget > header > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    direction: ltr !important;
}

.hm-pcards-widget > header > div > a {
    display: inline-flex !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    order: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.hm-pcards-widget > header > div > a .hm-nav-link-icon {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    overflow: visible !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.hm-pcards-widget > header > div > button .hm-nav-icon {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    overflow: visible !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.25 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

/* Elementor product-card navigation: keep the inline SVGs visible above
   legacy background-image rules and center them like the reference control. */
.hm-pcards-widget > header > div > button {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    border: 1px solid color-mix(in srgb, var(--hm-widget-nav-color, var(--dn-primary, #17324d)) 18%, #e5ebf0) !important;
    border-radius: 15px !important;
    background: #f6f8fa !important;
    color: var(--hm-widget-nav-color, var(--dn-primary, #17324d)) !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 8px 22px rgba(23, 50, 77, .06) !important;
}

.hm-pcards-widget > header > div > button .hm-nav-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
    color: inherit !important;
}

.hm-pcards-widget > header > div > button:hover,
.hm-pcards-widget > header > div > button:focus-visible {
    background: #fff !important;
    border-color: var(--hm-widget-nav-color, var(--dn-primary, #17324d)) !important;
    color: var(--hm-widget-nav-color, var(--dn-primary, #17324d)) !important;
    transform: translateY(-2px);
}

.hm-pcards-widget > header > div > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 0 !important;
    text-align: center !important;
    font-size: 0 !important;
    overflow: hidden !important;
}

.hm-pcards-widget > header > div > button::after {
    display: none !important;
    content: none !important;
}

.hm-pcards-widget > header > div > button[data-hm-card-prev] {
    order: 2 !important;
}

.hm-pcards-widget > header > div > button[data-hm-card-next] {
    order: 1 !important;
}

.hm-product-page .hm-gallery-arrow.is-prev .hm-nav-icon { transform: rotate(180deg); }

.hm-pcards-widget > header > div > button:hover,
.hm-pcards-widget > header > div > button:focus-visible,
.hm-product-page .hm-gallery-arrow:hover,
.hm-product-page .hm-gallery-arrow:focus-visible {
    color: var(--dn-primary, #17324d) !important;
}

.hm-product-page .hm-gallery-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-align: center !important;
}

.hm-product-page .hm-gallery-arrow .hm-nav-icon {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.hm-product-page .hm-purchase-box .single_add_to_cart_button,
.hm-product-page .hmr-open,
.hm-product-page .hmr-submit {
    position: relative !important;
    z-index: 32 !important;
    isolation: isolate !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    touch-action: manipulation !important;
    pointer-events: auto !important;
}

.hm-product-page .hm-purchase-box,
.hm-product-page .hm-purchase-box form.cart,
.hm-product-page .hmr-open {
    position: relative !important;
    z-index: 30 !important;
    isolation: isolate !important;
}

.hm-product-page .hm-purchase-box .single_add_to_cart_button > *,
.hm-product-page .hmr-open > * {
    pointer-events: none !important;
}

@media (max-width: 850px) {
    html body > .dn-product-checkout {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    html body > .dn-product-checkout .dn-product-checkout-card {
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 96dvh !important;
        margin: 0 !important;
        border-radius: 24px 24px 0 0 !important;
    }
}

/* The feature CTA must not reflow or lose hover state under the pointer. */
.single-product .hm-feature-preview .hm-view-features,
.single-product .hm-feature-preview .hm-view-features:hover,
.single-product .hm-feature-preview .hm-view-features:focus,
.single-product .hm-feature-preview .hm-view-features:active {
    position: relative !important;
    z-index: 4 !important;
    transform: none !important;
    animation: none !important;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease !important;
}

.single-product .hm-feature-preview .hm-view-features::before,
.single-product .hm-feature-preview .hm-view-features::after,
.single-product .hm-feature-preview article::before,
.single-product .hm-feature-preview article::after {
    pointer-events: none !important;
}

.single-product .hm-feature-preview article:hover {
    transform: none !important;
    transition: border-color .2s ease, background-color .2s ease !important;
}

@media (max-width: 640px) {
    html body > .hmr-modal {
        display: flex !important;
        align-items: flex-end !important;
        padding: 0 !important;
    }

    html body > .hmr-modal:not(.is-open),
    html body > .hmr-modal[hidden] {
        display: none !important;
    }
}

/* Homira 2.9.77 — compact widget controls on small screens. */
@media (max-width: 768px) {
    .hm-pcards-widget > header > div {
        gap: 6px !important;
    }

    .hm-pcards-widget > header > div > button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 11px !important;
    }

    .hm-pcards-widget > header > div > button .hm-nav-icon {
        width: 13px !important;
        height: 13px !important;
        flex-basis: 13px !important;
        stroke-width: 2 !important;
    }
}

/* Homira 2.9.77 — remove only the two arrows over the product image. */
.hm-product-page .hm-gallery-arrow {
    display: none !important;
    pointer-events: none !important;
}

/* Homira 2.9.78 — expose widget navigation and view-all styling to Elementor. */
.hm-pcards-widget {
    --hm-widget-nav-size: 52px;
    --hm-widget-nav-radius: 15px;
    --hm-widget-view-all-padding: 14px;
    --hm-widget-view-all-radius: 10px;
    --hm-widget-view-all-bg: var(--hm-widget-primary, var(--dn-primary, #278f89));
    --hm-widget-view-all-color: #fff;
    --hm-widget-view-all-border: transparent;
}

.hm-pcards-widget > header > div > button {
    width: var(--hm-widget-nav-size) !important;
    height: var(--hm-widget-nav-size) !important;
    min-width: var(--hm-widget-nav-size) !important;
    min-height: var(--hm-widget-nav-size) !important;
    border-radius: var(--hm-widget-nav-radius) !important;
}

.hm-pcards-widget > header > div > a {
    padding-inline: var(--hm-widget-view-all-padding) !important;
    border: 1px solid var(--hm-widget-view-all-border) !important;
    border-radius: var(--hm-widget-view-all-radius) !important;
    background: var(--hm-widget-view-all-bg) !important;
    color: var(--hm-widget-view-all-color) !important;
}

/* Replace the old zoom sentence with a compact, clickable magnifier. */
.hm-product-page .hm-gallery-zoom {
    position: absolute !important;
    z-index: 20 !important;
    top: 18px !important;
    right: auto !important;
    bottom: auto !important;
    left: 18px !important;
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--dn-primary, #244f70) !important;
    font-size: 19px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: zoom-in !important;
    backdrop-filter: none !important;
}

.hm-product-page .hm-gallery-zoom i {
    display: block !important;
    font-style: normal !important;
    pointer-events: none !important;
}

.hm-product-page .hm-gallery-zoom-icon {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.hm-product-page .hm-gallery-zoom:hover,
.hm-product-page .hm-gallery-zoom:focus-visible {
    background: transparent !important;
    color: var(--dn-accent, #278f89) !important;
    transform: none !important;
}

/* Keep the category widget visually stable while a touch/click is active. */
.hm-category-menu .hm-category-item,
.hm-category-menu .hm-category-item:hover,
.hm-category-menu .hm-category-item:active,
.hm-category-menu .hm-category-item:focus {
    appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    background: transparent !important;
    color: inherit !important;
    filter: none !important;
    transform: none !important;
}

.hm-category-menu .hm-category-item:hover .hm-category-circle,
.hm-category-menu .hm-category-item:active .hm-category-circle,
.hm-category-menu .hm-category-item:focus .hm-category-circle {
    border-color: color-mix(in srgb, var(--dn-primary) 15%, transparent) !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .hm-pcards-widget > header > div > button {
        width: min(var(--hm-widget-nav-size), 38px) !important;
        height: min(var(--hm-widget-nav-size), 38px) !important;
        min-width: min(var(--hm-widget-nav-size), 38px) !important;
        min-height: min(var(--hm-widget-nav-size), 38px) !important;
        border-radius: min(var(--hm-widget-nav-radius), 11px) !important;
    }
}

@media (max-width: 700px) {
    .hm-product-page .hm-gallery-zoom {
        top: 12px !important;
        left: 12px !important;
        width: 31px !important;
        height: 31px !important;
        border-radius: 0 !important;
        font-size: 16px !important;
    }

    .hm-product-page .hm-gallery-zoom-icon {
        width: 21px !important;
        height: 21px !important;
    }
}
