/* Shared compact category rail: same 44px rules at every width. */
@media (max-width:991px) {
  html:where(.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc-mobile-dock {background:#232b33;border-top-color:#455263;box-shadow:0 -4px 20px #0003;}
  html:where(.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc-mobile-dock a,
  html:where(.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc-mobile-dock button {color:#e9edf3;}
  html:where(.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc-mobile-dock button {color:#ff829a;}
  html:where(.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header .sidebar-member-menu {background:#232b33;color:#e9edf3;border-top:1px solid #455263;border-bottom:1px solid #455263;}
  html:where(.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header .sidebar-member-menu .sidebar-member-btn {background:#303b49;color:#e9edf3;border-color:#455263;}
}
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact{ display: flex; align-items: center; gap: 12px; max-width: 1280px; margin: 0 auto; padding: 0 12px; height: 44px; min-height: 0; border-top: 1px solid var(--mc27-line); border-bottom: 1px solid var(--mc27-line); background: transparent; }
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-grid{ order: 1; flex: 1; display: flex; gap: 2px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; height: 44px; margin: 0; padding: 0; border: 0; background: none; }
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-tools{ order: 2; flex: none; display: flex; gap: 6px; margin: 0; padding: 0; width: auto; }
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-photo{ display: none; }
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-tile{ flex: none; width: auto; min-width: 44px; height: 44px; min-height: 0; display: flex; align-items: center; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; }
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-name{ font-size: 14px; font-weight: 500; color: var(--mc27-ink-2); white-space: nowrap; height: auto; line-height: 1.2; }
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-tile:hover .mc-global-category-name{ color: var(--mc27-ink); }
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-tile[aria-current]{ border-bottom-color: var(--mc27-red); }
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-tile[aria-current] .mc-global-category-name{ color: var(--mc27-ink); font-weight: 700; }
  :where(html.mc27-header-enabled) body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-tools button{ height: 44px; min-height: 44px; padding: 0 10px; font-size: 13px; border-radius: var(--mc27-r-ctl); }
  html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui nav.mc-global-category--compact{ border-color: #2a3445; }
  html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-name{ color: #a9b3c3; }
  html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-tile:hover .mc-global-category-name,
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-tile[aria-current] .mc-global-category-name{ color: #fff; }

/* 03: one mobile header, original controls and forms retained. */
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-header-actions,
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools,
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header-cart-icon,
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-language-icon,
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-shopping-label{display:none}
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui nav.mc-global-category--compact .mc-global-category-tile[aria-current]{--mc27-red-dark:#e8516a;border-bottom-color:var(--mc27-red-dark)!important;background:transparent!important}
@media(max-width:991px){
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .header-title{height:auto!important;min-height:56px!important;padding:0!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .header-title>.container{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0!important;min-height:56px;height:auto;padding:0 10px!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .title-logo{grid-column:1;grid-row:1;display:inline-flex!important;align-items:center;height:44px;min-width:0;width:fit-content!important;max-width:138px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .title-logo img.site-logo{width:112px!important;height:auto!important;max-height:36px;max-width:100%}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-header-actions{grid-column:2;grid-row:1;display:flex;align-items:center;height:56px;gap:0}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .header-title-mobile-btn,
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .header-title-btn{display:none!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-header-actions>button,
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-header-actions>a{position:relative;display:inline-flex!important;align-items:center;justify-content:center;flex:none;min-width:44px;width:44px;height:44px;min-height:44px;margin:0!important;padding:0!important;border:0!important;border-radius:8px;background:transparent!important;color:var(--mc27-ink)!important;font-size:20px;line-height:1;text-decoration:none!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-header-cart-icon{display:block}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-header-cart .title-btn-text{display:none}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-header-cart .title-btn-in{position:static;display:contents;background:none!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-header-cart .badge{position:absolute;right:1px;top:1px;min-width:15px;max-width:22px;padding:1px 3px;font-size:10px;line-height:13px;background:var(--mc27-ink)!important;color:#fff!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header #mcLanguageTopHost{position:relative;display:flex;width:44px;min-width:44px;height:44px;min-height:0;padding:0;background:transparent;z-index:1003}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header #mcLanguageTopHost[hidden]{display:none}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header #mcLanguageTopHost>.mc-language-shell{position:relative;top:auto;right:auto;width:44px;margin:0;padding:0}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header #mcLanguageTopHost summary{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;height:44px;padding:0;border:0;border-radius:8px;background:none;color:var(--mc27-ink);font-size:0!important;line-height:0;list-style:none}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header #mcLanguageTopHost summary>*:not(.mc27-language-icon){display:none}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header #mcLanguageTopHost summary::-webkit-details-marker{display:none}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-language-icon{display:block;flex:none}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header #mcLanguageTopHost .mc-language-menu{position:fixed;top:var(--mc27-language-top,56px);right:10px;left:auto;width:288px;max-width:calc(100vw - 20px);max-height:calc(100dvh - var(--mc27-language-top,56px) - 12px);overflow-y:auto}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .header-title-search{grid-row:2;grid-column:1/-1;width:100%!important;padding:6px 0 10px;margin:0!important;position:static!important;transform:none!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header:not([data-mc27-search-open]) .header-title-search{display:none!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header[data-mc27-search-open] .header-title-search{display:block!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .header-title-search input[type=text]{min-height:44px;height:44px;padding-right:52px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .header-title-search .button,
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .header-title-search input[type=submit]{min-height:44px;height:44px;min-width:44px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools{display:flex;flex-direction:column;gap:6px;padding:12px 16px;border-bottom:1px solid var(--mc27-line)}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools>a,
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools>button{position:static!important;display:flex!important;align-items:center;justify-content:flex-start;gap:10px;width:100%!important;min-height:44px;height:auto!important;padding:8px 12px!important;border:1px solid var(--mc27-line);border-radius:8px;background:transparent;color:var(--mc27-ink);font-size:14px;line-height:1.4;text-decoration:none}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools .mc27-shopping-secondary{display:none!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools>.mc27-shopping-primary{display:flex!important;position:static!important;transform:none!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;height:44px!important;min-height:44px;z-index:auto;box-shadow:none}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools>.sidebar-shop-trigger.mc27-shopping-primary i{position:static!important;transform:none!important;margin:0!important;padding:0!important;flex:none;width:18px!important;height:18px!important;font-size:18px!important;line-height:18px!important}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-shopping-label{display:inline}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools .direction-icon{display:none}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .offcanvas-header .btn-close{min-width:44px;min-height:44px;padding:12px;background-size:16px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools .mc-language-body-guidance{font-size:14px;padding:8px 0;margin:0}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools .mc-language-body-guidance h2{font-size:16px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools .mc-language-body-guidance p,
:where(html.mc27-header-enabled) body.mc-shop-ui .mc27-header .mc27-menu-tools .mc-language-body-guidance a{font-size:14px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc-global-category-tools{display:none!important}
:where(html.mc27-header-enabled) body.mc-shop-ui #mc-fold-first .mc-fold-first-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:4px 12px}
:where(html.mc27-header-enabled) body.mc-shop-ui #mc-fold-first .mc-fold-first-title{font-size:13px;line-height:1.4;margin:0;word-break:keep-all}
:where(html.mc27-header-enabled) body.mc-shop-ui #mc-fold-first .mc-fold-first-cta{min-height:44px;padding:8px;font-size:13px;line-height:1.4}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc-home-stage .mc-home-brand-inner{padding-top:6px;padding-bottom:6px;gap:8px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc-home-stage .mc-home-brand-copy h1{font-size:22px;line-height:1.25;margin:0 0 6px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc-home-stage .mc-home-brand-copy p{font-size:14px;line-height:1.45}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc-home-stage .mc-home-brand-actions{margin-top:8px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc-home-catalogue{padding-top:6px}
:where(html.mc27-header-enabled) body.mc-shop-ui .mc-home-catalogue h2{margin-bottom:4px;font-size:18px;line-height:1.3}
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header .mc27-header-actions>a,
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header .mc27-header-actions>button,
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header #mcLanguageTopHost summary,
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header .mc27-menu-tools>a,
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header .mc27-menu-tools>button{color:#e9edf3!important}
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header .mc27-header-cart .badge{background:#e9edf3!important;color:#182336!important}
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header .offcanvas-header .btn-close{filter:invert(1);opacity:1}
html:where(html.mc27-header-enabled)[data-mc-shop-theme="dark"] body.mc-shop-ui .mc27-header #mcLanguageTopHost summary:focus-visible{outline-color:#9cd4ff!important}
}
