/* Independent mobile UI. Desktop and the no-JS fallback keep the original header. */
#sx-mobile-header, #sx-mobile-dialog { display: none; }
@media (max-width: 1024px) {
    body.sx-mobile-ready #masthead { display: none !important; }
    body.sx-mobile-ready #sx-mobile-header { display: block; }
    html.sx-mobile-menu-open { overflow: hidden; }
    #sx-mobile-header, #sx-mobile-dialog { color: #282329; background: #fff; font-family: inherit; font-size: 16px; line-height: 1.4; text-align: left; letter-spacing: normal; text-transform: none; }
    #sx-mobile-header *, #sx-mobile-dialog * { box-sizing: border-box; }
    #sx-mobile-header [hidden], #sx-mobile-dialog [hidden] { display: none !important; }
    #sx-mobile-header a, #sx-mobile-dialog a { color: #282329; text-decoration: none; }
    #sx-mobile-header button, #sx-mobile-dialog button { appearance: none; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #282329; font: inherit; cursor: pointer; }
    #sx-mobile-header button::before, #sx-mobile-header button::after, #sx-mobile-dialog button::before, #sx-mobile-dialog button::after { content: none; }
    #sx-mobile-header :focus-visible, #sx-mobile-dialog :focus-visible { outline: 2px solid #a20c56; outline-offset: -3px; }
    .sx-mobile-bar { display: flex; align-items: center; gap: 4px; padding: 6px 12px; min-height: 82px; border-bottom: 1px solid #eee; }
    #sx-mobile-header .sx-mobile-logo { flex: 1; min-width: 0; text-align: center; }
    #sx-mobile-header .sx-mobile-logo a { display: inline-flex; vertical-align: middle; align-items: center; min-height: 64px; }
    #sx-mobile-header .sx-mobile-logo img { display: block; width: auto; height: 64px; max-width: 100%; margin: 0; object-fit: contain; }
    #sx-mobile-header .sx-mobile-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; }
    #sx-mobile-header .sx-mobile-count { position: absolute; right: 0; top: 0; padding: 1px 4px; min-width: 17px; border-radius: 12px; background: #a20c56; color: #fff; font: 11px/15px sans-serif; text-align: center; }
    #sx-mobile-search-slot { padding: 10px 14px 14px; border-bottom: 1px solid #eee; }
    #sx-mobile-search-slot .header-search, #sx-mobile-search-slot .search-box, #sx-mobile-search-slot aside { display: block; position: relative; float: none; width: 100%; max-width: none; height: auto; margin: 0; padding: 0; transform: none; }
    #sx-mobile-search-slot input[name="s"] { width: 100%; min-height: 46px; padding: 10px 48px 10px 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; }
    #sx-mobile-search-slot form { position: relative; margin: 0; }
    #sx-mobile-search-slot button[type="submit"] { position: absolute; right: 1px; top: 1px; min-height: 44px; font-size: 13px; }
    #sx-mobile-search-slot .product-search-results { z-index: 100; max-width: 100%; }
    #sx-mobile-dialog[open] { display: block; position: fixed; inset: 0 auto 0 0; width: min(440px, 100%); max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh; margin: 0; padding: 0 0 max(24px, env(safe-area-inset-bottom)); border: 0; overflow-y: auto; overscroll-behavior: contain; }
    #sx-mobile-dialog::backdrop { background: rgb(0 0 0 / 45%); }
    #sx-mobile-dialog .sx-mobile-dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 66px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e9e5e7; font-size: 18px; font-weight: 600; }
    #sx-mobile-dialog #sx-mobile-close { font-size: 30px; font-weight: 400; }
    #sx-mobile-dialog .sx-mobile-shortcuts { display: flex; gap: 8px; padding: 16px 16px 8px; }
    #sx-mobile-dialog .sx-mobile-shortcuts a { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 44px; padding: 8px; border: 1px solid #e5d8df; border-radius: 5px; color: #861247; font-size: 14px; }
    #sx-mobile-dialog .sx-mobile-all { display: flex; align-items: center; min-height: 48px; padding: 10px 16px; color: #861247; text-decoration: underline; font-size: 15px; }
    #sx-mobile-dialog ul { list-style: none; margin: 0; padding: 0; }
    #sx-mobile-dialog li { margin: 0; padding: 0; list-style: none; }
    #sx-mobile-dialog .sx-mobile-category-row { display: flex; align-items: stretch; border-bottom: 1px solid #eee; }
    #sx-mobile-dialog .sx-mobile-category-row > a { display: flex; flex: 1; align-items: center; min-width: 0; min-height: 52px; padding: 12px 16px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
    #sx-mobile-dialog .sx-mobile-expand { width: 52px; border-left: 1px solid #f3eef1; font-size: 25px; }
    #sx-mobile-dialog .sx-mobile-expand[aria-expanded="true"] span { transform: rotate(180deg); }
    #sx-mobile-dialog .sx-mobile-children { margin: 0 0 0 14px; border-left: 2px solid #e9d8e1; background: #fcf9fb; }
    #sx-mobile-dialog .sx-mobile-children .sx-mobile-category-row > a { font-size: 14px; font-weight: 400; min-height: 46px; padding: 10px 12px; }
    #sx-mobile-dialog .sx-mobile-see-all { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; color: #861247; font-size: 13px; text-decoration: underline; }
    #sx-mobile-dialog .sx-mobile-secondary { padding: 16px; background: #f7f5f6; }
    #sx-mobile-dialog .sx-mobile-secondary a { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
}
@media (max-width: 1024px) {
    #sx-mobile-search-slot button[type="submit"] { text-indent: 0; background: #fff; padding: 0 6px !important; }
    #sx-mobile-search-slot .product-search-results-content { width: 100%; max-width: 100%; }
}
