/**
 * Sprint 18.4.444 — Mobile header matches desktop polish
 * Single line: Logo | Gold search | Gold AI | Profile
 * Desktop unchanged
 */

@media (max-width: 767px) {
  .site-header .utility-bar,
  .site-header .tf-topbar,
  .site-header .nav-row,
  .site-header .tf-mobile-utility,
  .site-header .tf-header-action-label,
  .site-header .tf-header-desktop-voice,
  .site-header .global-search select[name="type"],
  .site-header .mobile-menu-toggle,
  .site-header .mobile-cart-button,
  .site-header [data-tf-header-mobactions] .mobile-cart-button,
  .site-header .tf-header-account-chevron,
  .site-header .compare-action,
  .site-header .tf-header-compare,
  .site-header .tf-header-actions,
  .site-header .header-actions,
  .site-header .tf-header-account-menu,
  .site-header .tf-header-account-trigger,
  .site-header .tf-mobile-search-submit,
  .site-header .tf-voice-modal {
    display: none !important;
  }

  .site-header,
  .site-header.premium-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10020 !important;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    padding: 8px 10px 6px !important;
  }

  /* Floating white bar like desktop header-main card */
  .site-header .header-main,
  .site-header.premium-header .header-main,
  .site-header .header-main.shell,
  body .site-header.premium-header .header-main.shell {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: 56px !important;
    grid-template-areas: none !important;
    grid-auto-flow: column !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    background: #fff !important;
    border: 1px solid #e8eef5 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 28px rgba(6, 26, 63, 0.08), 0 1px 3px rgba(6, 26, 63, 0.04) !important;
    height: auto !important;
    min-height: 56px !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .site-header .header-main > *,
  .site-header .brand,
  .site-header .global-search,
  .site-header form.global-search,
  .site-header [data-tf-header-mobactions],
  .site-header .mobile-account-button {
    grid-area: auto !important;
    grid-row: 1 !important;
  }

  .site-header .brand {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-header .brand img {
    height: 34px !important;
    width: auto !important;
    max-width: 40px !important;
    object-fit: contain !important;
  }

  .site-header .global-search,
  .site-header form.global-search {
    grid-column: 2 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Gold search ring — desktop style */
  .site-header .tf-search-input-group {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 10px 0 14px !important;
    border: 1.5px solid #f0b429 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.12) !important;
  }

  .site-header .mobile-search-icon {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    color: #8a9bb0 !important;
  }
  .site-header .mobile-search-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  .site-header .tf-search-input-group input[name="q"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 42px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 6px !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #0a2550 !important;
    outline: none !important;
  }
  .site-header .tf-search-input-group input::placeholder {
    color: #97a6b8 !important;
  }

  .site-header .mobile-voice-search {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    width: 32px !important;
    height: 32px !important;
    border: 0 !important;
    background: transparent !important;
    color: #6b7f96 !important;
    padding: 0 !important;
  }
  .site-header .mobile-voice-search svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Gold AI Search button — desktop language, compact */
  .site-header .tf-header-search-submit,
  .site-header .tf-ai-search-launch {
    position: relative !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 44px !important;
    min-height: 44px !important;
    min-width: 0 !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 2px solid #0b2f66 !important;
    background: linear-gradient(100deg, #f4b72f 0%, #f0b429 45%, #e8a820 100%) !important;
    color: #0b1f3a !important;
    box-shadow: 0 6px 16px rgba(240, 180, 41, 0.28) !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }
  .site-header .tf-ai-search-spark {
    display: inline !important;
    font-size: 12px !important;
    color: #0b1f3a !important;
  }
  /* Show "AI" only on narrow; keep spark + AI label */
  .site-header .tf-ai-search-launch > span:not(.tf-ai-search-spark) {
    display: none !important;
  }
  .site-header .tf-ai-search-ask {
    display: none !important;
  }
  .site-header .tf-ai-search-launch::after {
    content: "AI";
    font-size: 13px;
    font-weight: 850;
    color: #0b1f3a;
  }

  /* Cream profile like desktop */
  .site-header [data-tf-header-mobactions] {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-header .mobile-account-button {
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid #f0e2b8 !important;
    border-radius: 50% !important;
    background: linear-gradient(160deg, #fff8e8, #ffe9b0) !important;
    color: #0b2f66 !important;
    box-shadow: 0 2px 8px rgba(240, 180, 41, 0.15) !important;
    text-decoration: none !important;
    padding: 0 !important;
  }
  .site-header .mobile-account-button svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    fill: none !important;
  }
}


  /* 18.4.446 — remove AI from mobile header; give search full width */
  .site-header .tf-header-search-submit,
  .site-header .tf-ai-search-launch {
    display: none !important;
  }
  .site-header .global-search,
  .site-header form.global-search {
    gap: 0 !important;
  }
  .site-header .tf-search-input-group {
    flex: 1 1 auto !important;
    width: 100% !important;
  }

@media (max-width: 360px) {
  .site-header .tf-ai-search-launch {
    padding: 0 12px !important;
  }
  .site-header .header-main {
    padding: 6px 8px !important;
    column-gap: 6px !important;
  }
}
