/* Shopmart Mobile Header 1.8.1 — preview only; desktop v1.7.6 remains untouched. */
body.smh-preview .smh-mobile-header,
body.smh-preview .smh-mobile-search-backdrop,
body.smh-preview .smh-mobile-search-results {display:none;}

@media (max-width:991px) {
  /* Electro's handheld header is replaced in Preview by this responsive markup. */
  body.smh-preview #masthead.header-v1 .smh-mobile-header {
    display:block!important; width:100%; box-sizing:border-box;
    background:#fff; color:#252831; border-bottom:1px solid #eee6ec;
    padding:7px 12px 10px; font-family:inherit;
  }
  body.smh-preview .smh-mobile-row {
    display:flex; align-items:center; gap:7px; width:100%; min-width:0; min-height:47px;
    margin:0 0 7px;
  }
  body.smh-preview .smh-mobile-row-spacer {flex:1 1 auto; min-width:0;}
  body.smh-preview .smh-mobile-square {
    -webkit-appearance:none; appearance:none; box-sizing:border-box;
    position:relative; flex:0 0 40px; display:flex; align-items:center; justify-content:center;
    width:40px; height:40px; min-height:40px; margin:0; padding:0;
    border:1px solid #f3e1ec; border-radius:11px;
    background:#faf1f6; color:#89236e; text-decoration:none; cursor:pointer;
    box-shadow:none; transition:background-color .16s,border-color .16s,color .16s;
  }
  body.smh-preview .smh-mobile-square:hover,
  body.smh-preview .smh-mobile-square:focus-visible {background:#f4e0eb;border-color:#dfb9d1;color:#c60051;}
  body.smh-preview .smh-mobile-square svg {display:block; width:22px; height:22px; flex:none;}
  body.smh-preview .smh-mobile-categories {color:#89236e;}
  body.smh-preview .smh-mobile-cart {background:#fbecf3;color:#c60051;}
  body.smh-preview .smh-mobile-cart .smh-count {
    position:absolute; top:-4px;right:-5px; min-width:17px;height:17px;padding:0 3px;
    border-radius:10px;display:flex;align-items:center;justify-content:center;
    color:#fff;background:#c60051; font-size:10px;font-weight:700;line-height:1;
  }
  body.smh-preview .smh-mobile-logo {
    min-width:0; flex:0 1 min(35vw,151px); max-width:151px;
    display:flex; align-items:center; justify-content:flex-start; margin:0 2px;
  }
  body.smh-preview .smh-mobile-logo img {
    display:block;width:100%;max-width:151px;height:auto;max-height:45px;
    object-fit:contain;object-position:left center;
  }
  body.smh-preview .smh-mobile-language {
    position:relative; flex:0 0 auto; min-width:28px; max-width:48px;
    display:flex;align-items:center;justify-content:center; z-index:100;
  }
  body.smh-preview .smh-mobile-language .trp-language-switcher {margin:0;width:auto!important;height:auto!important;min-width:28px!important;}
  body.smh-preview .smh-mobile-language .trp-ls-shortcode-current-language,
  body.smh-preview .smh-mobile-language .trp-ls-shortcode-language {background:#fff!important;border-color:#f0e3ec!important;border-radius:8px!important;min-width:28px!important;width:auto!important;}
  body.smh-preview .smh-mobile-language .trp-language-switcher > div > a {min-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:4px 2px!important;font-size:0!important;}
  body.smh-preview .smh-mobile-language .trp-language-switcher img {display:block!important;width:20px!important;max-width:20px!important;height:auto!important;margin:0 auto!important;}
  body.smh-preview .smh-mobile-search-form {
    display:flex;position:relative;align-items:center;width:100%;height:46px; min-width:0;
    margin:0; padding:3px 4px 3px 12px;
    border:1.5px solid #c60051; border-radius:12px; background:#fff;
    box-sizing:border-box;
  }
  body.smh-preview .smh-mobile-search-form input[type=search] {
    -webkit-appearance:none; appearance:none; width:100%;min-width:0;flex:1 1 auto;
    height:38px;line-height:38px;border:0!important;box-shadow:none!important;outline:none!important;
    padding:0 6px 0 0!important;margin:0!important;background:transparent!important;
    font-size:16px!important; color:#30323a!important;
  }
  body.smh-preview .smh-mobile-search-form input::placeholder {color:#91929b;opacity:1;}
  body.smh-preview .smh-mobile-search-form button[type=submit] {
    -webkit-appearance:none;appearance:none;box-sizing:border-box;flex:0 0 38px;
    height:38px;width:38px;border:0;border-radius:9px;margin:0;padding:0;
    display:flex;align-items:center;justify-content:center;background:#c60051;color:#fff;cursor:pointer;
  }
  body.smh-preview .smh-mobile-search-form button svg {display:block;width:20px;height:20px;}
  body.smh-preview .smh-mobile-search-form:focus-within {box-shadow:0 0 0 3px rgba(198,0,81,.07);}
  body.smh-preview.smh-mobile-search-open #masthead {z-index:100050!important;}
  body.smh-preview .smh-mobile-search-backdrop:not([hidden]) {
    display:block!important;position:fixed;inset:0;z-index:100040;
    background:rgba(22,20,31,.43);
  }
  body.smh-preview .smh-mobile-search-results:not([hidden]) {
    box-sizing:border-box;display:flex!important; flex-direction:column; position:fixed;
    top:var(--smh-mobile-search-top,115px);left:12px;width:calc(100vw - 24px);
    max-height:calc(100dvh - var(--smh-mobile-search-top,115px) - 9px);
    max-height:calc(100vh - var(--smh-mobile-search-top,115px) - 9px); /* fallback */
    overflow:hidden;z-index:100060;border:1px solid #f0e4ec;border-radius:14px;
    background:#fff;color:#292c32;box-shadow:0 12px 42px rgba(21,16,31,.20);
  }
  @supports (height:100dvh){
    body.smh-preview .smh-mobile-search-results:not([hidden]) {
      max-height:calc(100dvh - var(--smh-mobile-search-top,115px) - 9px);
    }
  }
  body.smh-preview .smh-mobile-search-title {
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:12px 13px 8px;min-height:51px;border-bottom:1px solid #f4edf2;
    font-size:14px;
  }
  body.smh-preview .smh-mobile-search-close {
    flex:0 0 34px; width:34px;height:34px;padding:0;margin:0;
    border:1px solid #f0daea;background:#fbf0f7;color:#89236e;
    border-radius:10px;display:flex;align-items:center;justify-content:center;
  }
  body.smh-preview .smh-mobile-search-close svg {width:17px;height:17px;display:block;}
  body.smh-preview .smh-mobile-search-scroll {
    min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    padding:0 14px 3px;
  }
  body.smh-preview .smh-mobile-search-section {padding:10px 0 7px;}
  body.smh-preview .smh-mobile-search-section + .smh-mobile-search-section {border-top:1px solid #f1edf1;}
  body.smh-preview .smh-mobile-search-section h3 {
    margin:0 0 9px;font-size:12px;font-weight:700;color:#89236e;
  }
  body.smh-preview .smh-mobile-cats {display:flex;flex-wrap:wrap;gap:7px;}
  body.smh-preview .smh-mobile-cats a {
    display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;
    border:1px solid #f0e5eb;border-radius:9px;background:#fcf8fa;
    color:#44404b;text-decoration:none;font-size:12px;line-height:1.3;
  }
  body.smh-preview .smh-mobile-cats a:hover {border-color:#ddbbd1;color:#c60051;}
  body.smh-preview .smh-mobile-products a {
    display:flex;align-items:center;gap:10px;min-height:64px;padding:9px 2px;
    border-bottom:1px solid #f4edf2;text-decoration:none;color:#242830;
  }
  body.smh-preview .smh-mobile-products img {flex:0 0 49px;width:49px;height:49px;object-fit:contain;}
  body.smh-preview .smh-mobile-product-text {min-width:0;flex:1;display:flex;flex-direction:column;gap:3px;line-height:1.3;}
  body.smh-preview .smh-mobile-product-text span {font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  body.smh-preview .smh-mobile-product-text small {font-size:11px;color:#89236e;}
  body.smh-preview .smh-mobile-product-text strong {font-size:12px;color:#c60051;}
  body.smh-preview .smh-mobile-search-empty {color:#888894;font-size:12px;padding:6px 0 12px;margin:0;}
  body.smh-preview .smh-mobile-results-all {display:block; flex:0 0 auto;text-align:center;padding:13px;border-top:1px solid #f1e7ef;color:#c60051;font-size:13px;font-weight:700;text-decoration:none;}
  /* The same WooCommerce mini-cart and account dialogs also work from mobile. */
  body.smh-preview .smh-cart-overlay:not([hidden]) {display:flex!important;}
  body.smh-preview .smh-account-overlay:not([hidden]) {display:grid!important;}
  body.smh-preview .smh-account-modal {width:min(430px,100%);padding:30px 20px 24px;max-height:calc(100dvh - 24px);}
  body.smh-preview .smh-account-overlay {padding:12px;}
  body.smh-preview .smh-cart-panel {width:min(430px,100vw);}
  body.smh-preview .smh-cart-panel-body {padding:15px 17px;}
  body.smh-preview .smh-cart-panel-head {min-height:60px!important;padding:10px 15px!important;}
  body.smh-preview .smh-cart-panel-title {font-size:19px;}
}
@media (max-width:359px) {
  body.smh-preview #masthead.header-v1 .smh-mobile-header {padding-left:9px;padding-right:9px;}
  body.smh-preview .smh-mobile-row {gap:5px;}
  body.smh-preview .smh-mobile-square {width:37px;height:39px;min-height:39px;flex-basis:37px;}
  body.smh-preview .smh-mobile-logo {flex-basis:min(32vw,125px);margin:0;}
  body.smh-preview .smh-mobile-language .trp-language-switcher img {width:18px!important;}
}

/* v1.8.1: Mobile-only polish; approved desktop CSS is not changed. */
@media (max-width:991px) {
 body.smh-preview #masthead.header-v1 .smh-mobile-header {
   position:relative;z-index:100030;
 }
 body.smh-preview #masthead.header-v1 .smh-mobile-header.smh-mobile-is-sticky {
   position:fixed!important;left:0!important;right:0!important;width:100%!important;
   top:var(--smh-mobile-sticky-top,0px)!important;
   z-index:100030!important;background:#fff;
   box-shadow:0 3px 12px rgba(31,24,38,.09);
 }
 body.smh-preview .smh-mobile-sticky-spacer {display:block;height:0;pointer-events:none;}
 body.smh-preview #masthead.header-v1 .smh-mobile-logo {
   flex:0 1 min(39vw,167px); max-width:167px;margin:0 1px;
 }
 body.smh-preview #masthead.header-v1 .smh-mobile-logo img {
   max-width:167px;max-height:49px;
 }
 body.smh-preview #masthead.header-v1 .smh-mobile-row {gap:5px;}
 body.smh-preview #masthead.header-v1 .smh-mobile-language {
   min-width:25px;max-width:31px;flex:0 0 29px;
 }
 body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-language-switcher,
 body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-current-language {
   min-width:25px!important;width:29px!important;border:0!important;
   background:transparent!important;box-shadow:none!important;
 }
 body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-language {
   min-width:29px!important;background:#fff!important;border:1px solid #f0e3ec!important;
 }
 body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-language-switcher img {
   width:19px!important;max-width:19px!important;
 }
 body.smh-preview #masthead.header-v1 .smh-mobile-search-form button[type=submit],
 body.smh-preview #masthead.header-v1 .smh-mobile-search-form button[type=submit]:hover {
   background:#c60051!important;color:#fff!important;border-color:#c60051!important;
 }
 body.smh-preview #masthead.header-v1 .smh-mobile-search-form button[type=submit] svg {
   color:#fff!important;stroke:#fff!important;
 }
}
@media (max-width:359px) {
 body.smh-preview #masthead.header-v1 .smh-mobile-logo {flex-basis:min(35vw,137px);max-width:137px;}
 body.smh-preview #masthead.header-v1 .smh-mobile-logo img {max-width:137px;}
}


/* Shopmart Mobile Header v1.8.2 — only mobile adjustments.
   All approved desktop (v1.7.6) assets remain byte-for-byte unchanged. */
@media (max-width: 991px) {
  /* Reserve an honest, non-clipping place for each first-row control.
     A flex logo can shrink a little on 320px devices, but the language button cannot. */
  body.smh-preview #masthead.header-v1 .smh-mobile-row {
    box-sizing:border-box; display:flex; align-items:center; gap:5px; min-width:0;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-logo {
    flex:0 1 min(47vw,198px); width:min(47vw,198px); max-width:198px;
    min-width:0; margin:0 0 0 4px; justify-content:flex-start;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-logo img {
    display:block!important; width:100%!important; max-width:198px!important;
    max-height:50px!important; object-fit:contain; object-position:left center;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-row-spacer {flex:1 1 0;min-width:0;}
  body.smh-preview #masthead.header-v1 .smh-mobile-square {flex-shrink:0;}

  /* TranslatePress: no blank white button. Its own links & language action
     stay intact; the current flag and the second flag are never cut off. */
  body.smh-preview #masthead.header-v1 .smh-mobile-language {
    box-sizing:border-box; flex:0 0 32px; width:32px; min-width:32px; max-width:32px;
    overflow:visible!important; z-index:100050; margin:0;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-language-switcher {
    position:relative!important; box-sizing:border-box; width:32px!important;
    min-width:32px!important; max-width:32px!important;
    height:auto!important; margin:0!important; overflow:visible!important;
    background:transparent!important; border:0!important; box-shadow:none!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-current-language {
    position:relative!important; box-sizing:border-box; width:32px!important;
    min-width:32px!important; max-width:32px!important;
    height:38px!important; padding:0!important;
    background:transparent!important; border:0!important; box-shadow:none!important;
    overflow:visible!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-current-language > a,
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-language > a {
    box-sizing:border-box; display:flex!important; justify-content:center!important;
    align-items:center!important; width:100%!important; min-height:38px!important;
    margin:0!important; padding:4px 0!important;
    font-size:0!important; line-height:1!important;
    background:transparent!important; border:0!important; white-space:nowrap!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-language-switcher img {
    float:none!important; display:block!important; width:20px!important;
    min-width:20px!important; max-width:20px!important;
    height:auto!important; margin:0 auto!important; opacity:1!important;
    object-fit:contain;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-language {
    box-sizing:border-box; position:absolute!important; top:calc(100% + 5px)!important;
    right:0!important; left:auto!important; width:44px!important;
    min-width:44px!important; max-width:44px!important; height:auto;
    margin:0!important; padding:3px!important;
    background:#fff!important; border:1px solid #f0e0eb!important;
    border-radius:12px!important; box-shadow:0 10px 28px rgba(45,20,43,.16)!important;
    overflow:visible!important; z-index:100070!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-language > a {
    border-radius:8px!important; min-height:39px!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-language > a:hover,
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-language > a:focus-visible {
    background:#fbeff5!important;
  }

  /* Cart and account are fixed dialogs and MUST stack above the sticky header
     and above the backdrop, even when they are opened after a long scroll. */
  body.smh-preview .smh-cart-overlay:not([hidden]) {
    position:fixed!important; inset:0!important; z-index:200500!important;
    display:flex!important; align-items:stretch; justify-content:flex-end;
  }
  body.smh-preview .smh-account-overlay:not([hidden]) {
    box-sizing:border-box; position:fixed!important; inset:0!important;
    z-index:200510!important; display:flex!important; align-items:center;
    justify-content:center; padding:16px!important;
    height:100vh; height:100dvh; overflow:hidden;
  }
  body.smh-preview .smh-account-shade,body.smh-preview .smh-cart-shade {
    position:absolute!important; inset:0!important;
  }
  body.smh-preview .smh-cart-panel {
    position:relative!important; z-index:1!important; box-sizing:border-box;
    width:min(100vw,400px)!important; height:100%!important;
    display:flex!important; flex-direction:column!important;
    margin:0!important; transform:none!important; opacity:1!important;
    visibility:visible!important; overflow:hidden!important;
  }
  body.smh-preview .smh-cart-panel-head {flex:0 0 auto;min-height:57px!important;}
  body.smh-preview .smh-cart-panel-body {
    box-sizing:border-box; flex:1 1 auto; min-height:0!important;
    padding:15px 17px!important;overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  }
  body.smh-preview .smh-cart-panel .widget_shopping_cart_content,
  body.smh-preview .smh-cart-panel .widget_shopping_cart_content .woocommerce-mini-cart {
    box-sizing:border-box; display:block!important; width:100%!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    position:static!important;float:none!important;opacity:1!important;
    visibility:visible!important; transform:none!important;
    overflow:visible!important;
  }
  body.smh-preview .smh-cart-panel .woocommerce-mini-cart.cart_list,
  body.smh-preview .smh-cart-panel ul.woocommerce-mini-cart,
  body.smh-preview .smh-cart-panel ul.cart_list {
    display:block!important; list-style:none!important; padding:0!important;
    margin:0 0 13px!important; visibility:visible!important;
    opacity:1!important;transform:none!important;
  }
  body.smh-preview .smh-cart-panel .woocommerce-mini-cart li.woocommerce-mini-cart-item,
  body.smh-preview .smh-cart-panel .woocommerce-mini-cart li.mini_cart_item,
  body.smh-preview .smh-cart-panel .widget_shopping_cart_content ul.cart_list > li {
    display:block!important;position:relative!important;min-height:77px!important;
    padding:12px 25px 12px 0!important; margin:0!important;
    height:auto!important; opacity:1!important;visibility:visible!important;
    transform:none!important;clear:both!important;overflow:visible!important;
    border-bottom:1px solid #f1eaf0;
  }
  body.smh-preview .smh-cart-panel ul.cart_list li > a:not(.remove),
  body.smh-preview .smh-cart-panel ul.woocommerce-mini-cart li > a:not(.remove) {
    display:block!important; color:#2b2930!important;
    line-height:1.4!important; font-size:13px!important; font-weight:600;
    text-decoration:none; white-space:normal!important;
  }
  body.smh-preview .smh-cart-panel ul.woocommerce-mini-cart li img,
  body.smh-preview .smh-cart-panel ul.cart_list li img {
    display:block!important; float:left!important; position:static!important;
    width:58px!important; max-width:58px!important; height:60px!important;
    margin:0 12px 5px 0!important; object-fit:contain!important;
    opacity:1!important; visibility:visible!important;
  }
  body.smh-preview .smh-cart-panel ul.cart_list li .quantity,
  body.smh-preview .smh-cart-panel ul.woocommerce-mini-cart li .quantity {
    display:block!important;margin:7px 0 0!important;
    color:#63616a!important;font-size:12px!important;
  }
  body.smh-preview .smh-cart-panel .woocommerce-mini-cart-item a.remove,
  body.smh-preview .smh-cart-panel .mini_cart_item a.remove {
    display:grid!important;place-items:center!important;position:absolute!important;
    right:0!important;top:12px!important;width:22px!important;height:22px!important;
    font-size:17px!important;color:#89236e!important;
  }
  body.smh-preview .smh-cart-panel .woocommerce-mini-cart__total,
  body.smh-preview .smh-cart-panel .woocommerce-mini-cart__buttons {
    position:relative!important;clear:both!important;
  }

  /* The approved desktop account remains unchanged. Mobile: compact centered
     dialog, not a long panel trapped beneath the sticky header. */
  body.smh-preview .smh-account-modal {
    box-sizing:border-box; position:relative!important; z-index:1!important;
    width:min(340px,calc(100vw - 32px))!important;
    max-width:340px!important; max-height:calc(100dvh - 36px)!important;
    min-height:0!important; height:auto!important;
    margin:auto!important; padding:20px 18px 19px!important;
    border-radius:17px!important; overflow:auto!important;
    -webkit-overflow-scrolling:touch; transform:none!important;
    box-shadow:0 18px 56px rgba(18,13,30,.25)!important;
  }
  body.smh-preview .smh-account-brand {margin:2px auto 9px!important;}
  body.smh-preview .smh-account-brand img {
    width:auto!important;max-width:124px!important;max-height:37px!important;
  }
  body.smh-preview .smh-account-modal h2 {
    font-size:18px!important;line-height:1.35!important;margin:0 30px 8px!important;
  }
  body.smh-preview .smh-account-info {
    margin:0 0 14px!important; font-size:12px!important;
    overflow-wrap:anywhere;
  }
  body.smh-preview .smh-account-shortcuts {gap:7px!important;}
  body.smh-preview .smh-account-shortcuts a {
    box-sizing:border-box;min-height:39px!important;padding:10px 12px!important;
    font-size:12px!important;line-height:1.4!important;
  }
  body.smh-preview .smh-account-modal .form-row {margin-bottom:10px!important;}
  body.smh-preview .smh-account-modal input.input-text {height:44px!important;}
  body.smh-preview .smh-account-modal button[type=submit] {min-height:44px!important;}
  body.smh-preview .smh-account-bottom {margin-top:11px!important;}
  body.smh-preview .smh-account-close {
    top:12px!important;right:12px!important;
    width:33px!important;height:33px!important;
    min-width:33px!important;min-height:33px!important;
  }
}
@media (max-width:359px) {
  body.smh-preview #masthead.header-v1 .smh-mobile-logo {
    flex-basis:min(47vw,160px);max-width:160px;margin-left:1px;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language {
    flex-basis:31px;width:31px;min-width:31px;max-width:31px;
  }
}

/* v1.8.2.3 — Compact mobile composition. No desktop changes.
   Compared with 1.8.2.2, visual header footprint is ~26% smaller.
   Search input stays 16px to prevent unintended iOS Safari zoom. */
@media (max-width: 991px) {
  body.smh-preview #masthead.header-v1 {
    padding:0!important;margin:0!important;min-height:0!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-header {
    box-sizing:border-box!important;
    padding:3px 9px 3px!important;
    margin:0!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-row {
    display:grid!important;
    grid-template-columns:36px minmax(0,1fr) 36px 36px 36px!important;
    align-items:center!important;
    box-sizing:border-box!important;width:100%!important;
    height:38px!important;min-height:38px!important;max-height:38px!important;
    column-gap:5px!important;
    margin:0 0 2px!important;padding:0!important;overflow:visible!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-row-spacer {display:none!important;}
  body.smh-preview #masthead.header-v1 .smh-mobile-square {
    box-sizing:border-box!important;flex:none!important;align-self:center!important;
    width:36px!important;min-width:36px!important;max-width:36px!important;
    height:36px!important;min-height:36px!important;max-height:36px!important;
    padding:0!important;margin:0!important;border-radius:9px!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-square svg {
    width:19px!important;height:19px!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-cart .smh-count {
    min-width:15px!important;height:15px!important;top:-4px!important;
    right:-4px!important;font-size:9px!important;
  }
  /* The wordmark keeps priority over control icons, but not excessive width. */
  body.smh-preview #masthead.header-v1 .smh-mobile-row > .smh-mobile-logo {
    box-sizing:border-box!important;align-self:center!important;min-width:0!important;
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    width:auto!important;max-width:none!important;height:38px!important;
    min-height:0!important;max-height:38px!important;
    margin:0 0 0 3px!important;padding:0!important;
    flex:none!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-logo img {
    box-sizing:border-box!important;display:block!important;
    width:auto!important;height:38px!important;max-height:38px!important;
    max-width:100%!important;min-width:0!important;
    object-fit:contain!important;object-position:left center!important;
  }
  /* Exactly one alternative-language flag at the right edge, aligned with search.
     The visible square is styled like Zoommer, but uses TranslatePress URLs. */
  body.smh-preview #masthead.header-v1 .smh-mobile-row > .smh-mobile-language {
    box-sizing:border-box!important;align-self:center!important;justify-self:end!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    position:relative!important;inset:auto!important;flex:none!important;
    width:36px!important;min-width:36px!important;max-width:36px!important;
    height:36px!important;min-height:36px!important;max-height:36px!important;
    padding:0!important;margin:0!important;overflow:visible!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-lang-direct {
    -webkit-appearance:none;appearance:none;box-sizing:border-box;
    display:flex;align-items:center;justify-content:center;
    width:36px;height:36px;min-width:36px;min-height:36px;
    margin:0;padding:6px;border:1px solid #f0e8ed;border-radius:9px;
    background:#faf8fa;color:#2d3035;text-decoration:none;
    transition:background-color .16s,border-color .16s;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-lang-direct:hover,
  body.smh-preview #masthead.header-v1 .smh-mobile-lang-direct:focus-visible {
    background:#f8e9f2;border-color:#eacddd;outline-offset:2px;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-lang-direct img {
    display:block!important;width:23px!important;max-width:23px!important;
    height:16px!important;max-height:16px!important;
    object-fit:cover!important;border-radius:2px;
    margin:0!important;padding:0!important;
  }
  /* Shortcode-only compatibility fallback (two installed languages):
     show the alternative link directly, without dropdown behavior. */
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-language-switcher,
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-language {
    box-sizing:border-box!important;position:static!important;inset:auto!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:36px!important;min-width:36px!important;max-width:36px!important;
    height:36px!important;min-height:36px!important;max-height:36px!important;
    overflow:visible!important;margin:0!important;padding:0!important;
    background:transparent!important;border:0!important;box-shadow:none!important;
    transform:none!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-current-language {display:none!important;}
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-ls-shortcode-language > a {
    box-sizing:border-box!important;display:flex!important;
    justify-content:center!important;align-items:center!important;
    width:36px!important;height:36px!important;min-height:36px!important;
    margin:0!important;padding:6px!important;border:1px solid #f0e8ed!important;
    border-radius:9px!important;background:#faf8fa!important;box-shadow:none!important;
    font-size:0!important;line-height:1!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-language-switcher img {
    display:block!important;position:static!important;float:none!important;
    width:23px!important;min-width:23px!important;max-width:23px!important;
    height:auto!important;max-height:17px!important;object-fit:contain!important;
    margin:0!important;padding:0!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-search-form {
    box-sizing:border-box!important;width:100%!important;
    height:35px!important;min-height:35px!important;
    padding:2px 3px 2px 9px!important;margin:0!important;
    border-radius:10px!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-search-form input[type=search] {
    box-sizing:border-box!important;min-width:0!important;
    height:30px!important;line-height:30px!important;
    font-size:16px!important; /* iOS: don't zoom on focus */
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-search-form button[type=submit] {
    box-sizing:border-box!important;
    width:30px!important;height:30px!important;min-height:30px!important;
    flex:0 0 30px!important;border-radius:7px!important;
    background:#c60051!important;color:#fff!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-search-form button[type=submit] svg {
    width:17px!important;height:17px!important;stroke:#fff!important;
  }
  /* The mini-cart dismiss uses exactly the same accent hover/focus as account. */
  body.smh-preview #smh-cart-overlay .smh-cart-close,
  body.smh-preview #smh-account-overlay .smh-account-close {
    background:#fbf1f7!important;border-color:#efdaea!important;
    color:#89236e!important;box-shadow:none!important;
  }
  body.smh-preview #smh-cart-overlay .smh-cart-close:hover,
  body.smh-preview #smh-cart-overlay .smh-cart-close:focus-visible,
  body.smh-preview #smh-account-overlay .smh-account-close:hover,
  body.smh-preview #smh-account-overlay .smh-account-close:focus-visible {
    background:#c60051!important;border-color:#c60051!important;
    color:#fff!important;box-shadow:none!important;
  }
  body.smh-preview #smh-cart-overlay .smh-cart-close svg,
  body.smh-preview #smh-account-overlay .smh-account-close svg {stroke:currentColor!important;}
}
@media (max-width: 359px) {
  body.smh-preview #masthead.header-v1 .smh-mobile-header {padding-left:7px!important;padding-right:7px!important;}
  body.smh-preview #masthead.header-v1 .smh-mobile-row {
    grid-template-columns:34px minmax(0,1fr) 34px 34px 34px!important;
    column-gap:4px!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-square,
  body.smh-preview #masthead.header-v1 .smh-mobile-row > .smh-mobile-language,
  body.smh-preview #masthead.header-v1 .smh-mobile-lang-direct {
    width:34px!important;min-width:34px!important;max-width:34px!important;
    height:36px!important;min-height:36px!important;max-height:36px!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-logo img {
    height:36px!important;max-height:36px!important;
  }
}

/* v1.8.2.4 — Mobile refinement. Scope exclusively to the preview handheld header.
   Preserve 16px input font-size to prevent auto-zoom in iOS Safari. */
@media (max-width: 991px) {
  body.smh-preview #masthead.header-v1 .smh-mobile-header {
    /* More breathing room above the logo and below the entire control row. */
    padding-top:6px!important;
    padding-bottom:5px!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-row {
    height:44px!important;min-height:44px!important;max-height:44px!important;
    margin-bottom:8px!important; /* approx. 18% of logo-row height */
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-row > .smh-mobile-logo {
    height:44px!important;max-height:44px!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-logo img {
    height:44px!important;max-height:44px!important; /* 38px * 1.15 ~= 44px */
    max-width:100%!important;object-fit:contain!important;
  }
  /* Visually shrink catalogue control ~10%, without shrinking its touch area. */
  body.smh-preview #masthead.header-v1 .smh-mobile-row > .smh-mobile-categories {
    position:relative!important;background:transparent!important;border:0!important;
    overflow:visible!important;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-row > .smh-mobile-categories::before {
    content:"";position:absolute;left:50%;top:50%;
    transform:translate(-50%,-50%);width:90%;height:90%;
    box-sizing:border-box;border:1px solid #f0e5ed;border-radius:9px;
    background:#f1f0f2;pointer-events:none;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-row > .smh-mobile-categories:hover::before,
  body.smh-preview #masthead.header-v1 .smh-mobile-row > .smh-mobile-categories:focus-visible::before {
    background:#f4e0eb;border-color:#dfb9d1;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-row > .smh-mobile-categories svg {
    width:17px!important;height:17px!important;position:relative;z-index:1;
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-search-form input[type=search] {
    font-size:16px!important; /* Keep native text size at 16px for iOS. */
  }
  body.smh-preview #masthead.header-v1 .smh-mobile-search-form input[type=search]::placeholder {
    font-size:13.6px!important; /* 15% smaller visually, without iOS autofocus zoom. */
    color:#91929b!important;opacity:1!important;
  }
  /* Search-dismiss X: same light accent as account/cart, never black on hover. */
  body.smh-preview .smh-mobile-search-results .smh-mobile-search-close {
    -webkit-appearance:none;appearance:none;box-sizing:border-box;
    background:#fbf1f7!important;border:1px solid #efdaea!important;
    color:#89236e!important;border-radius:10px!important;
    box-shadow:none!important;cursor:pointer;
    transition:background-color .16s,border-color .16s,color .16s;
  }
  body.smh-preview .smh-mobile-search-results .smh-mobile-search-close:hover,
  body.smh-preview .smh-mobile-search-results .smh-mobile-search-close:focus-visible {
    background:#c60051!important;border-color:#c60051!important;
    color:#fff!important;box-shadow:none!important;
  }
  body.smh-preview .smh-mobile-search-results .smh-mobile-search-close svg {
    stroke:currentColor!important;pointer-events:none;
  }
}
@media (max-width:359px) {
  body.smh-preview #masthead.header-v1 .smh-mobile-logo img {
    height:44px!important;max-height:44px!important;max-width:100%!important;
  }
}

/* v1.8.2.5 — flag image only, retain the approved language button size. */
@media (max-width: 991px) {
  body.smh-preview #masthead.header-v1 .smh-mobile-lang-direct img {
    width:21px!important;max-width:21px!important;
    height:14px!important;max-height:14px!important;
  }
  /* TranslatePress shortcode-only fallback. */
  body.smh-preview #masthead.header-v1 .smh-mobile-language .trp-language-switcher img {
    width:21px!important;min-width:21px!important;max-width:21px!important;
    max-height:15px!important;
  }
}
