/* Mobile header: match the reference's paired 28px icons and centered 110px logo. */
@media (max-width: 1023px) {
    #header .homie-mobile-header {
        width: 100%; max-width: none; margin: 0;
        padding: 12px !important; min-height: 78px;
    }
    #header .homie-mobile-header .mob-header-align {
        grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
        min-height: 54px; gap: 4px;
    }
    #header .homie-mobile-header .mobile-nav-block,
    #header .homie-mobile-header .mobile-actions-block { gap: 0 !important; }
    #header .homie-mobile-header .mobile-nav-block { flex-direction: row !important; justify-self: start; width: 88px; }
    #header .homie-mobile-header .mobile-actions-block { flex-direction: row !important; justify-self: end; width: 88px; }
    #header .homie-mobile-header .mobile-logo-block img { width: 110px; max-width: 100%; height: auto; }
    #header .homie-mobile-header :is(.mobile-account-block, .mobile-cart-block) {
        flex: 0 0 44px; width: 44px; min-width: 44px;
    }
    #header .homie-mobile-header .mobile-account-block > div { width: 44px; min-width: 44px; }
    #header .homie-mobile-header :is(#menu-search-icon-mobile, #menu-cart-icon-mobile, .mobile-account-block > div > button, .udeytech-menu__open) {
        width: 44px !important; min-width: 44px !important; height: 44px !important;
        padding: 8px !important; border: 0 !important; flex: 0 0 44px; color: #3f3f3f;
        display: flex; align-items: center; justify-content: center;
    }
    #header .homie-mobile-header :is(#menu-search-icon-mobile, .mobile-account-block > div > button) > svg {
        width: 28px !important; height: 28px !important; flex: none; stroke-width: 1.8;
    }
    #header .homie-mobile-header .homie-mobile-cart-icon { width: 28px !important; height: 28px !important; flex: none; }
    #header .homie-mobile-header .udeytech-menu__open > span { display: none; }
    #header .homie-mobile-header .udeytech-menu__open::before {
        content: ""; display: block; width: 28px; height: 28px; flex: 0 0 28px;
        background: center / 28px 28px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%233f3f3f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6h22M3 14h22M3 22h22'/%3E%3C/svg%3E");
    }
}
/* Mobile hero has a deliberate crop, keeping the original baked CTA on its right side. */
@media (max-width: 767px) {
    body.cms-index-index .hyva-banner-slider {
        width: 100%; max-width: none; padding-inline: 0 !important;
        margin: 0 0 24px; height: auto !important; min-height: 0 !important;
    }
    body.cms-index-index .hyva-banner-slider .banner-container {
        display: block !important; padding: 0 !important;
        width: 100%; height: auto !important; min-height: 0 !important;
    }
    body.cms-index-index .hyva-banner-slider :is(.banner-media, .banner-media-container, .banner-details, .banner-link) {
        height: auto !important; min-height: 0 !important; max-height: none !important;
    }
    body.cms-index-index .hyva-banner-slider .banner-media-container img {
        display: block; width: 100%; height: clamp(220px, 58vw, 280px) !important; max-height: none;
        object-fit: cover; object-position: right center;
    }
}

/* Nov 6 17:16: mobile PDP thumbnail rail uses swipe; recommendation titles center. */
@media (max-width:1023px) {
 body.catalog-product-view #gallery-thumbs > button { display:none!important; }
 body.catalog-product-view .product-slider:is([data-slider-type="related"],[data-slider-type="upsell"]) > div:first-of-type {
  position:relative;
 }
 body.catalog-product-view .product-slider:is([data-slider-type="related"],[data-slider-type="upsell"]) > div:first-of-type > :is(h1,h2,h3,h4,h5,h6) {
  width:100%; text-align:center!important;
 }
 body.catalog-product-view .product-slider:is([data-slider-type="related"],[data-slider-type="upsell"]) > div:first-of-type > div {
  position:absolute; inset-inline-end:0;
 }
}
