/* MHC mobile header + search screen (v1) */
.mhs-bar-wrap { display: none; }
.mhs-logo { display: none; }
@media (max-width: 800px) {
    .shipping-message__header .shipping-message__wr { padding-top: 6px; padding-bottom: 6px; }
    .header__main { min-height: 0 !important; padding-top: 3px !important; padding-bottom: 3px !important; }
    .header__main > .header__search { display: none !important; }
    /* one consistent type scale: 11px uppercase labels, 13px search, 15px logo */
    .header__logo { display: flex !important; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; width: auto !important; height: 38px !important; margin-top: 0 !important; text-decoration: none; }
    .header__logo .logo__img { display: none !important; }
    .mhs-logo { display: block; font: 400 15px/1 "Bricolage Grotesque", sans-serif; letter-spacing: 2.4px; text-transform: uppercase; color: #202020; white-space: nowrap; }
    .shipping-message__header .shipping-message__wr { padding-top: 6px !important; padding-bottom: 6px !important; }
    .shipping-message__header .shipping-message__txt, .shipping-message__header .shipping-message__txt p, .shipping-message__header .shipping-message__txt a { font-size: 11px !important; line-height: 14px !important; letter-spacing: 1.4px !important; }
    header .submenu__link, header .submenu__link--txt { font-size: 11px !important; letter-spacing: 1.4px !important; }
    header .submenu__link { min-height: 28px !important; padding-top: 7px !important; padding-bottom: 7px !important; }

    /* search results page: even spacing round the heading, no count / sort / per-page row */
    .module-box_search .module-box__heading { margin: 20px 0 !important; }
    .main__middle:has(.module-box_search) .sort-panel__txt,
    .main__middle:has(.module-box_search) .sort-panel__compare,
    .main__middle:has(.module-box_search) .sort-panel__new-select { display: none !important; }
    .main__middle:has(.module-box_search) .content__sort-panel { display: block !important; min-height: 0 !important; padding: 20px 0 !important; }

    .mhs-bar-wrap { display: block; padding: 0 0 6px; background: #fff; }
    .mhs-bar { position: relative; display: flex; align-items: center; height: 38px; box-sizing: border-box; margin: 0; border: 1px solid #222; border-radius: 6px; background: #fff; }
    .mhs-bar__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 36px; color: #222; background: none; border: 0; padding: 0; }
    .mhs-bar__back { display: none; }
    .mhs-bar { overflow: hidden; }
    .mhs-bar__inp { flex: 0 0 auto; width: calc((100% - 40px) / .8125); margin-right: calc((100% - 40px) / .8125 * -.1875); transform: scale(.8125); transform-origin: left center; height: 36px; border: 0; outline: 0; background: transparent; font: 400 16px/1 Inter, system-ui, sans-serif; color: #222; padding: 0 4px 0 0; -webkit-appearance: none; appearance: none; }
    .mhs-bar.has-q .mhs-bar__inp { width: calc((100% - 78px) / .8125); margin-right: calc((100% - 78px) / .8125 * -.1875); }
    .mhs-bar__inp::placeholder { color: #8a8a8a; }
    .mhs-bar__inp::-webkit-search-cancel-button { display: none; }
    .mhs-bar__clear { display: none; flex: 0 0 auto; width: 38px; height: 36px; border: 0; background: none; color: #555; font-size: 20px; line-height: 1; padding: 0; }
    .mhs-bar.has-q .mhs-bar__clear { display: block; }

    html.mhs-open, html.mhs-open body { overflow: hidden; }
    html.mhs-open .mhs-bar-wrap { position: fixed; z-index: 100000; top: 0; left: 0; right: 0; height: 55px; box-sizing: border-box; padding: 8px 12px; border-bottom: 1px solid #eee; }
    html.mhs-open .mhs-bar__lens { display: none; }
    html.mhs-open .mhs-bar__back { display: flex; }

    .mhs-panel { display: none; }
    html.mhs-open .mhs-panel { display: block; position: fixed; z-index: 99999; top: 55px; left: 0; right: 0; bottom: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; padding: 4px 0 24px; font-family: Inter, system-ui, sans-serif; color: #222; }
    .mhs-sec { padding: 12px 0 4px; }
    .mhs-panel [hidden] { display: none !important; }
    .mhs-h { margin: 0 16px 10px; font: 600 14px/1.2 Inter, system-ui, sans-serif; }
    .mhs-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 4px; scroll-padding: 0 16px; }
    .mhs-row::-webkit-scrollbar { display: none; }
    .mhs-chip { flex: 0 0 auto; display: inline-block; padding: 8px 14px; border-radius: 999px; background: #f2f0ed; color: #222; line-height: 1.2; text-decoration: none; white-space: nowrap; border: 0; font-size: 13px; }
    .mhs-chip small { color: #777; font-size: 12px; }
    .mhs-h--nav { display: flex; align-items: center; justify-content: space-between; }
    .mhs-nav { display: flex; gap: 6px; }
    .mhs-nav button { width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #222; font-size: 16px; line-height: 1; padding: 0; }
    .mhs-nav button:disabled { opacity: .3; }
    .mhs-pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .mhs-pages::-webkit-scrollbar { display: none; }
    .mhs-page { flex: 0 0 100%; box-sizing: border-box; padding: 0 16px; scroll-snap-align: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; align-content: start; }
    .mhs-dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
    .mhs-dots span { width: 6px; height: 6px; border-radius: 50%; background: #d6d6d6; }
    .mhs-dots span.is-on { background: #222; }
    .mhs-card { display: flex; flex-direction: column; min-width: 0; color: #222; }
    .mhs-card a { color: inherit; text-decoration: none; }
    .mhs-card__media { position: relative; }
    .mhs-card__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 1px solid #eee; border-radius: 8px; background: #fff; box-sizing: border-box; }
    .mhs-add { position: absolute; right: 5px; bottom: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #1f1f1f; color: #fff; font-size: 18px; line-height: 28px; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
    .mhs-add:disabled { opacity: .35; }
    .mhs-add.is-done { background: #2e7d4f; }
    .mhs-card__stars { height: 11px; margin: 6px 0 3px; font-size: 9px; line-height: 1; color: #e0a800; white-space: nowrap; overflow: hidden; }
    .mhs-card__brand { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mhs-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.3; min-height: 31px; }
    .mhs-card__var { height: 14px; margin-top: 1px; font-size: 11px; line-height: 14px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mhs-card__price { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; }
    .mhs-card__price s { color: #888; font-weight: 400; margin-left: 4px; }
    .mhs-card__price.is-sale { color: #c9401a; }
    .mhs-list { list-style: none; margin: 0; padding: 0; }
    .mhs-list li { border-bottom: 1px solid #f0f0f0; }
    .mhs-list a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #222; text-decoration: none; font-size: 14px; }
    .mhs-list a b { font-weight: 600; }
    .mhs-list svg { flex: 0 0 auto; color: #888; }
    .mhs-all { display: block; margin: 16px 16px 0; padding: 12px; border: 1px solid #222; border-radius: 6px; text-align: center; color: #222; font-weight: 600; font-size: 14px; text-decoration: none; }
    .mhs-empty { margin: 8px 16px; color: #777; font-size: 14px; }
    .mhs-skel { height: 196px; border-radius: 8px; background: linear-gradient(90deg, #f3f3f3 25%, #ebebeb 37%, #f3f3f3 63%); background-size: 400% 100%; animation: mhs-sh 1.2s ease infinite; }
    @keyframes mhs-sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
}

/* ===== desktop search panel (mhd-search.js) ===== */
.mhd-panel { display: none; }
@media (min-width: 801px) {
    .isearch-container { display: none !important; }
    html.mhd-open .mhd-panel { display: block; position: absolute; left: 0; right: 0; z-index: 9999; background: #fff; border-top: 1px solid #eee; box-shadow: 0 18px 30px rgba(0,0,0,.12); font-family: Inter, system-ui, sans-serif; color: #222; }
    .mhd-in { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 380px; }
    .mhd-left { background: #f7f4f1; padding: 24px 24px 28px; }
    .mhd-right { padding: 24px 28px 28px; min-width: 0; transition: opacity .15s; }
    .mhd-right.is-loading { opacity: .5; }
    .mhd-h { margin: 0 0 12px; font: 600 15px/1.2 Inter, system-ui, sans-serif; color: #222; }
    .mhd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .mhd-head .mhd-h { margin: 0; }
    .mhd-list { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid #e6e0da; }
    .mhd-list li { margin: 0; }
    .mhd-list a { display: block; padding: 8px 0; font-size: 14px; line-height: 1.3; color: #444; text-decoration: none; }
    .mhd-list a:hover { color: #000; text-decoration: underline; }
    .mhd-list b { font-weight: 600; color: #222; }
    .mhd-par { color: #8a8a8a; }
    .mhd-empty { margin: 0 0 8px; color: #777; font-size: 14px; }
    .mhd-all { display: inline-block; margin-top: 18px; padding: 10px 18px; border: 1px solid #222; border-radius: 6px; color: #222; font-size: 14px; font-weight: 600; text-decoration: none; }
    .mhd-all:hover { background: #222; color: #fff; }
    .mhd-panel .mhs-nav { display: flex; gap: 6px; }
    .mhd-panel .mhs-nav button { width: 30px; height: 30px; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #222; font-size: 17px; line-height: 1; padding: 0; cursor: pointer; }
    .mhd-panel .mhs-nav button:disabled { opacity: .3; cursor: default; }
    .mhd-panel .mhs-pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .mhd-panel .mhs-pages::-webkit-scrollbar { display: none; }
    .mhd-panel .mhs-page { flex: 0 0 100%; box-sizing: border-box; scroll-snap-align: start; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 16px; align-content: start; }
    .mhd-panel .mhs-dots { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
    .mhd-panel .mhs-dots span { width: 6px; height: 6px; border-radius: 50%; background: #d6d6d6; }
    .mhd-panel .mhs-dots span.is-on { background: #222; }
    .mhd-panel .mhs-card { display: flex; flex-direction: column; min-width: 0; color: #222; }
    .mhd-panel .mhs-card a { color: inherit; text-decoration: none; }
    .mhd-panel .mhs-card a.mhs-card__name:hover { text-decoration: underline; }
    .mhd-panel .mhs-card__media { position: relative; }
    .mhd-panel .mhs-card__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 1px solid #eee; border-radius: 8px; background: #fff; box-sizing: border-box; }
    .mhd-panel .mhs-add { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #1f1f1f; color: #fff; font-size: 19px; line-height: 30px; padding: 0; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
    .mhd-panel .mhs-add:disabled { opacity: .35; cursor: default; }
    .mhd-panel .mhs-add.is-done { background: #2e7d4f; }
    .mhd-panel .mhs-card__stars { height: 11px; margin: 7px 0 4px; font-size: 10px; line-height: 1; color: #e0a800; white-space: nowrap; overflow: hidden; }
    .mhd-panel .mhs-card__brand { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mhd-panel .mhs-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.3; min-height: 34px; }
    .mhd-panel .mhs-card__var { height: 15px; margin-top: 1px; font-size: 12px; line-height: 15px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mhd-panel .mhs-card__price { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; }
    .mhd-panel .mhs-card__price s { color: #888; font-weight: 400; margin-left: 4px; }
    .mhd-panel .mhs-card__price.is-sale { color: #c9401a; }
}
