/* Shared storefront interactions; no script or font dependency. */
/* The public search form must not inherit native login's form/input resets. */
body.hqm-commerce-theme :is(.ib-site-header, .hqm-site-header) form.wp-block-search {
    background: transparent;
    border: 0;
    box-shadow: none;
    font: inherit;
    margin: 0;
    overflow: visible;
    padding: 0;
}
body.hqm-commerce-theme :is(.ib-site-header, .hqm-site-header) input[type="search"] {
    color: FieldText;
    font: inherit;
}
body.hqm-commerce-theme :is(.ib-site-header, .hqm-site-header) .wp-block-site-title {
    line-height: 1.6;
}
.hqm-header-information {box-sizing:border-box;background:#edf3ef;color:#193f32;text-align:center;padding:8px 16px;font-size:13px;line-height:1.45;width:100%;overflow-wrap:anywhere}
.hqm-header-information a {color:inherit;text-decoration:none;font-weight:600}
.hqm-product-labels {display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.hqm-product-labels .hqm-product-label {position:static!important;margin:0!important;max-width:100%;overflow-wrap:anywhere;border-radius:6px;padding:4px 7px;background:#edf3ef;color:#193f32;font-size:11px;line-height:1.3}
.hqm-product-labels .hqm-product-label--success {background:#193f32;color:#fff}
.hqm-product-labels .hqm-product-label--warning {background:#fff0cd;color:#684c00}
.products .product .hqm-product-labels--image {position:absolute;inset:3.75rem 1.5rem auto auto;max-width:calc(100% - 3rem);max-height:7rem;overflow:auto;z-index:3}
.hqm-canonical-catalog-grid li.product .onsale {left:auto!important;right:1.5rem!important;top:1.5rem!important;margin:0!important}
.hqm-product-labels--title,.hqm-product-labels--single {position:relative;max-width:100%;margin-block:8px}
.hqm-canonical-catalog-grid .woocommerce-loop-product__link > .hqm-product-labels--title {position:absolute;inset:auto 1.5rem calc(2.8em + .7rem);max-height:3rem;overflow:auto;margin:0;z-index:3}
body.hqm-commerce-theme .products .product a:hover,
body.hqm-commerce-theme .products .product a:hover *,
body.hqm-commerce-theme .wc-block-product a:hover,
body.hqm-commerce-theme .wc-block-product a:hover *,
body.hqm-commerce-theme .ib-header-actions a:hover,
body.hqm-commerce-theme .hqm-header-actions a:hover {
    text-decoration: none !important;
}

body.hqm-commerce-theme a:focus-visible,
body.hqm-commerce-theme .hqm-header-login summary:focus-visible {
    outline: 3px solid var(--hqm-focus, #0f766e);
    outline-offset: 3px;
}

body.hqm-commerce-theme .products .product,
body.hqm-commerce-theme .wc-block-product {
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

body.hqm-commerce-theme .products .product:hover,
body.hqm-commerce-theme .products .product:focus-within,
body.hqm-commerce-theme .wc-block-product:hover,
body.hqm-commerce-theme .wc-block-product:focus-within {
    background-color: #f8faf8;
    box-shadow: 0 4px 14px rgba(24, 32, 51, 0.08);
}

body.hqm-commerce-theme .products .product .woocommerce-loop-product__link:hover .woocommerce-loop-product__title,
body.hqm-commerce-theme .wc-block-product .wc-block-components-product-name:hover {
    color: var(--hqm-trust-green, #2f6f44);
}

body.hqm-commerce-theme .products .product .button,
body.hqm-commerce-theme .wc-block-product .wp-block-button__link,
body.hqm-commerce-theme .wc-block-grid__product .wp-block-button__link {
    align-items: center;
    align-self: center;
    display: inline-flex;
    justify-content: center;
    line-height: 1.2;
    margin-top: 0.8rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.9rem;
    text-align: center;
    width: auto;
}

body.hqm-commerce-theme .hqm-header-login {
    position: relative;
    z-index: 30;
}

body.hqm-commerce-theme .hqm-header-login summary {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    gap: 0.35rem;
    justify-content: center;
    list-style: none;
    min-height: 2.5rem;
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
}

body.hqm-commerce-theme .hqm-header-login summary::-webkit-details-marker { display: none; }
body.hqm-commerce-theme .hqm-header-login[open] summary { background: #f2f7f2; }
/* The ⌄ glyph sat on the text baseline and read as a letter "v"; draw a centred arrow instead. */
body.hqm-commerce-theme .hqm-header-login__chevron {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    display: inline-block;
    flex: 0 0 auto;
    font-size: 0;
    height: 0.4rem;
    line-height: 0;
    margin-left: 0.1rem;
    overflow: hidden;
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 0.15s ease;
    width: 0.4rem;
}
body.hqm-commerce-theme .hqm-header-login[open] .hqm-header-login__chevron { transform: translateY(0.1rem) rotate(-135deg); }
body.hqm-commerce-theme .hqm-header-login__menu {
    background: #fff;
    border: 1px solid #dce5dc;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(24, 32, 51, 0.14);
    display: grid;
    min-width: 12rem;
    padding: 0.3rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
}
body.hqm-commerce-theme .hqm-header-login__menu a {
    border-radius: 4px;
    color: #182033;
    font-size: 0.9rem;
    padding: 0.55rem 0.7rem;
    white-space: nowrap;
}
body.hqm-commerce-theme .hqm-header-login__menu a:hover { background: #f2f7f2; }
body.hqm-commerce-theme .hqm-header-login__menu [data-hqm-session-logout][hidden] { display: none !important; }

body.hqm-commerce-theme .hqm-header-social {
    align-items: center;
    display: inline-flex;
    gap: 0.15rem;
}
body.hqm-commerce-theme .hqm-header-social a {
    align-items: center;
    border-radius: 50%;
    color: inherit;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}
body.hqm-commerce-theme .hqm-header-social a:hover { background: #f2f7f2; }

@media (prefers-reduced-motion: reduce) {
    body.hqm-commerce-theme .products .product,
    body.hqm-commerce-theme .wc-block-product { transition: none; }
}

/* One action layout across every shared public header. */
body.hqm-commerce-theme .hqm-header-boutique{align-items:center;background:#193f32;border:1px solid #193f32;border-radius:6px;box-sizing:border-box;color:#fff;display:inline-flex;font-size:.875rem;font-weight:700;justify-content:center;line-height:1.3;min-height:44px;padding:.55rem .75rem;text-align:center;white-space:nowrap}
body.hqm-commerce-theme .hqm-header-boutique:hover{background:#245943;color:#fff}


/* The shared footer closes the document consistently, including short pages. */
body.hqm-commerce-theme:not(.login) > .wp-site-blocks{box-sizing:border-box;display:flex;flex-direction:column;min-height:calc(100svh - var(--wp-admin--admin-bar--height,0px))}
body.hqm-commerce-theme:not(.login) > .wp-site-blocks > main{flex:1 0 auto}
body.hqm-commerce-theme > .wp-site-blocks > footer:last-child{margin-block-end:0}
body.login.hqm-commerce-theme{display:flex;flex-direction:column;min-height:calc(100svh - var(--wp-admin--admin-bar--height,0px));padding-bottom:0}
body.login.hqm-commerce-theme > .hqm-dev-login-global-footer{margin-top:auto;padding-top:2rem}

/* Footer typography owns its spacing; native login paragraph resets must not change it. */
body.hqm-commerce-theme .hqm-global-footer__group--logo p{margin-block:1em}

/* Keep the shared utility actions adjacent and put the cart at the far right. */
body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) > .hqm-header-social { order: 0; }
body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) > .hqm-header-boutique { order: 1; }
body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) > .hqm-header-login { order: 2; }
body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) > .wp-block-woocommerce-mini-cart { order: 3; }

body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) :is(.hqm-header-boutique, .hqm-header-login > summary) {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    line-height: 1.3;
    min-height: 44px;
}

body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) .hqm-header-login > summary { padding: .55rem .75rem; }

body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) .wc-block-mini-cart__button {
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 900px) {
    body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) {
        column-gap: .5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
    }

    body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) > .hqm-header-boutique,
    body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) > .hqm-header-login {
        flex: 0 0 8rem;
    }

    body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) :is(.hqm-header-boutique, .hqm-header-login > summary) {
        border-width: 1px;
        font-size: .875rem;
        max-width: 8rem;
        min-width: 0;
        padding: .6rem .7rem;
        width: 8rem;
    }

    body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) .wp-block-woocommerce-mini-cart {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 380px) {
    body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) {
        column-gap: .4rem;
    }

    body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) :is(.hqm-header-boutique, .hqm-header-login > summary) {
        width: 7.25rem;
    }

    body.hqm-commerce-theme :is(.ib-header-actions, .hqm-header-actions) > :is(.hqm-header-boutique, .hqm-header-login) {
        flex-basis: 7.25rem;
    }
}
