/* One geometry. Only the very top of the home banner has a transparent surface. */
:root { --v-header-height: 80px; }
body { padding-top: var(--v-header-height); }
body.is-home { padding-top: 0; }
body #mobiat-native-header[data-site-header] {
  position: fixed; inset: var(--mobiat-admin-height, 0px) 0 auto; z-index: 35;
  background: var(--ui-glass); background: color-mix(in srgb, var(--ui-bg) 82%, transparent);
  color: var(--ui-text); border-bottom: 1px solid var(--ui-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: none;
}
body #mobiat-native-header .header-main {
  height: var(--v-header-height); min-height: var(--v-header-height); flex-wrap: nowrap;
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding-block: 0;
}
body #mobiat-native-header .logo { font-size: 29px; gap: 9px; color: var(--ui-text); white-space: nowrap; }
body #mobiat-native-header a { text-decoration: none; }
body #mobiat-native-header .topnav { display: flex; align-items: center; align-self: center; gap: clamp(14px, 1.6vw, 24px); font-size: 12px; line-height: 1; margin: 0; padding: 0; flex-shrink: 0; }
body #mobiat-native-header .topnav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding-block: 0; color: var(--ui-muted); }
body #mobiat-native-header .topnav a:is(:hover, [aria-current="page"]) { color: var(--ui-accent-text); }
body #mobiat-native-header .search {
  display: flex; flex: 1; order: initial; margin: 0 0 0 auto; max-width: 245px; min-width: 100px;
  height: 44px; min-height: 44px; padding: 0 15px; border-radius: 100px;
  background: var(--ui-surface-2); border: 1px solid var(--ui-border); color: var(--ui-text);
}
body #mobiat-native-header .search input { flex: 1; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ui-text); font-size: 14px; box-shadow: none; -webkit-appearance: none; appearance: none; }
/* The rounded search container provides focus feedback, without an inner rectangle. */
body #mobiat-native-header .search input:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
body #mobiat-native-header .search input::placeholder, body #mobiat-native-header .search>svg { color: var(--ui-muted); }
body #mobiat-native-header .search:focus-within { border-color: var(--ui-accent-text); background: var(--ui-surface); }
body #mobiat-native-header .header-actions { display: flex; align-items: center; margin-left: auto; gap: 3px; flex-shrink: 0; }
body #mobiat-native-header .icon-btn { display: inline-flex; align-items: center; justify-content: center; align-self: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 10px; margin: 0; line-height: 1; border-radius: 50%; color: var(--ui-text); }
body #mobiat-native-header .icon-btn:hover { background: var(--ui-surface-2); color: var(--ui-accent-text); }
body #mobiat-native-header .icon-btn>svg,
body #mobiat-native-header .theme-toggle>span>svg { display: block; width: 21px; height: 21px; flex: none; }
/* Keep theme visibility rules intact; remove the inline SVG's baseline/descender space. */
body #mobiat-native-header .theme-toggle>span { width: 21px; height: 21px; line-height: 0; }
body #mobiat-native-header .badge { background: var(--ui-accent-solid); color: #fff; border-color: var(--ui-bg); }
body #mobiat-native-header :is(.mobile-search-toggle, .mobile-search-close) { display: none; }
body #mobiat-native-header .header-menu { display: none; }
body #mobiat-native-header .header-menu>summary { list-style: none; cursor: pointer; }
body #mobiat-native-header .header-menu>summary::-webkit-details-marker { display: none; }
body #mobiat-native-header .header-menu:not([open]) .header-menu-panel { display: none; }
body #mobiat-native-header :focus-visible { outline: 2px solid var(--ui-accent-text); outline-offset: 3px; }
body #mobiat-native-header.is-product-scrolled :is(.topnav, .search, .header-menu, [data-search-toggle], [data-favorites], [data-compare-open]) { display: none; }
body #mobiat-native-header.is-product-scrolled .header-actions { margin-left: 0; }
body #mobiat-native-header .pdp-header-product { flex: 1; min-width: 0; }
body #mobiat-native-header .pdp-header-name { color: var(--ui-text); }
body #mobiat-native-header .pdp-header-meta { display: block; color: var(--ui-muted); }
body #mobiat-native-header .pdp-header-add { border-radius: 100px; padding: 11px 20px; font-size: 13px; min-height: 44px; max-width: 220px; }
body #mobiat-native-header .pdp-header-add:disabled { background: var(--ui-surface-2); color: var(--ui-muted); }
html[data-header-appearance="hero"] body #mobiat-native-header[data-site-header] {
  background: transparent; border-bottom-color: transparent; color: #f6f5f0;
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}
html[data-header-appearance="hero"] body #mobiat-native-header :is(.topnav a, .icon-btn) { color: #f6f5f0; }
html[data-header-appearance="hero"] body #mobiat-native-header .topnav a:hover { color: #ffc5a7; }
html[data-header-appearance="hero"] body #mobiat-native-header .icon-btn:hover { background: #ffffff1c; }
html[data-header-appearance="hero"] body #mobiat-native-header .search { background: #ffffff12; border-color: #ffffff5c; color: #fff; }
html[data-header-appearance="hero"] body #mobiat-native-header .search input { color: #fff; }
html[data-header-appearance="hero"] body #mobiat-native-header .search input::placeholder,
html[data-header-appearance="hero"] body #mobiat-native-header .search>svg { color: #f0f1ece0; }
html[data-header-appearance="hero"] body #mobiat-native-header .search:focus-within { background: #ffffff20; border-color: #ffffffe6; }
html[data-header-appearance="hero"] body #mobiat-native-header :focus-visible { outline-color: #ffc5a7; }
@media (max-width: 1200px) and (min-width: 1025px) {
  body #mobiat-native-header .header-main { gap: 14px; padding-inline: 28px; }
  body #mobiat-native-header .topnav { gap: 14px; }
  body #mobiat-native-header .search { max-width: 190px; }
  body #mobiat-native-header .header-actions { gap: 0; }
}
@media (max-width: 1024px) {
  :root { --v-header-height: calc(72px + env(safe-area-inset-top)); }
  body #mobiat-native-header .header-main { gap: 10px; padding-top: env(safe-area-inset-top); padding-bottom: 0; }
  body #mobiat-native-header .topnav { display: none; }
  body #mobiat-native-header .mobile-search-toggle { display: inline-flex; }
  body #mobiat-native-header .header-menu { display: block; }
  body #mobiat-native-header .header-menu-panel {
    position: absolute; inset: calc(100% + 8px) max(20px, env(safe-area-inset-right)) auto max(20px, env(safe-area-inset-left));
    display: grid; gap: 2px; padding: 12px; border: 1px solid var(--ui-border); border-radius: 18px;
    background: var(--ui-surface); color: var(--ui-text); box-shadow: 0 16px 40px #0003;
  }
  body #mobiat-native-header .header-menu-panel a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 16px; border-radius: 10px; color: var(--ui-text); font-size: 14px; }
  body #mobiat-native-header .header-menu-panel a:is(:hover, [aria-current="page"]) { color: var(--ui-accent-text); background: var(--ui-surface-2); }
  body #mobiat-native-header .header-menu[open]>summary { background: var(--ui-surface-2); color: var(--ui-accent-text); }
  body #mobiat-native-header .search {
    display: none; position: absolute; inset: calc(100% + 8px) max(20px, env(safe-area-inset-right)) auto max(20px, env(safe-area-inset-left));
    width: auto; max-width: none; height: 56px; margin: 0; border-radius: 16px; background: var(--ui-surface);
    box-shadow: 0 12px 36px #0003; padding-inline: 16px 8px;
  }
  body #mobiat-native-header.search-open .search { display: flex; }
  body #mobiat-native-header .search input { font-size: 16px; }
  body #mobiat-native-header .search .mobile-search-close { display: inline-flex; width: 44px; height: 44px; min-width: 44px; margin: 0; }
  body #mobiat-native-header.is-product-scrolled .site-cart-link { display: none; }
  html[data-header-appearance="hero"] body #mobiat-native-header .search { background: var(--ui-surface); border-color: var(--ui-border); color: var(--ui-text); }
  html[data-header-appearance="hero"] body #mobiat-native-header .search input { color: var(--ui-text); }
  html[data-header-appearance="hero"] body #mobiat-native-header .search input::placeholder,
  html[data-header-appearance="hero"] body #mobiat-native-header .search>svg { color: var(--ui-muted); }
  html[data-header-appearance="hero"] body #mobiat-native-header .search:focus-within { background: var(--ui-surface); border-color: var(--ui-accent-text); }
}
@media (max-width: 600px) {
  body #mobiat-native-header .header-main { gap: 8px; padding-inline: max(16px, env(safe-area-inset-left)); }
  body #mobiat-native-header .logo { font-size: 25px; gap: 7px; }
  body #mobiat-native-header .header-actions { gap: 0; }
  body #mobiat-native-header .header-actions :is([data-favorites], [data-compare-open]) { display: none; }
  body #mobiat-native-header .pdp-header-name>span { font-size: 12px; -webkit-line-clamp: 2; }
  body #mobiat-native-header .pdp-header-meta { display: block; font-size: 11px; margin-top: 2px; }
  body #mobiat-native-header .pdp-header-add { padding: 10px 12px; font-size: 11px; max-width: 112px; }
}
@media (max-width: 360px) {
  body #mobiat-native-header .logo { font-size: 20px; gap: 6px; }
}
@media (forced-colors: active) {
  body #mobiat-native-header[data-site-header], body #mobiat-native-header .header-menu-panel { background: Canvas; color: CanvasText; border-color: CanvasText; backdrop-filter: none; }
  body #mobiat-native-header :focus-visible { outline-color: Highlight; }
  body #mobiat-native-header .search:focus-within { outline: 2px solid Highlight; outline-offset: 3px; }
  html[data-header-appearance="hero"] body #mobiat-native-header[data-site-header] { background: Canvas; color: CanvasText; border-color: CanvasText; }
  html[data-header-appearance="hero"] body #mobiat-native-header :is(.topnav a, .icon-btn) { color: CanvasText; }
  html[data-header-appearance="hero"] body #mobiat-native-header :focus-visible { outline-color: Highlight; }
}
