/**
 * Mobile header coordinated with the desktop storefront.
 * Header-only changes; mobile homepage and all desktop layouts are isolated.
 */

.mobile-search-category-link { display: none; }

@media (max-width: 899px) {
  .site-header {
    padding: 0 !important;
    background: #fff;
    border-bottom: 1px solid #ececf0;
    box-shadow: 0 5px 18px rgba(22,31,48,.05);
  }

  .top-promo-strip {
    display: block !important;
    height: 32px !important;
    overflow: hidden;
    color: #fff !important;
    border: 0 !important;
    background: linear-gradient(90deg, #ef2a6d, #d91659) !important;
  }

  .top-promo-strip .cartell-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .top-promo-inner { height: 32px !important; }
  .top-promo-left {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100%;
    height: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .top-promo-left::-webkit-scrollbar { display: none; }
  .top-promo-item {
    display: flex !important;
    flex: 0 0 50%;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 8px;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .mobile-storefront-header {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 13px !important;
  }

  .mobile-storefront-header .header-inner {
    position: relative;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    width: 100%;
    height: 68px !important;
    min-height: 68px;
  }

  .mobile-storefront-header .header-left { justify-self: start; }
  .mobile-storefront-header .header-hamburger-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #111927;
    border: 0;
    background: transparent;
  }

  .mobile-storefront-header .header-brand {
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .mobile-storefront-header .brand-logo-stack { align-items: center; }
  .mobile-storefront-header .cartell-wordmark {
    font-size: clamp(25px, 8.5vw, 37px) !important;
    line-height: 1 !important;
    letter-spacing: .5px !important;
  }

  .mobile-storefront-header .cartell-tagline { display: none !important; }
  .mobile-storefront-header .custom-logo { width: auto; max-width: 180px; max-height: 45px; }

  .mobile-storefront-header .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px !important;
  }

  .mobile-storefront-header .header-account-action { display: none !important; }
  .mobile-storefront-header .header-action-item {
    display: grid !important;
    place-items: center;
    width: 35px !important;
    height: 38px !important;
    min-width: 35px;
    padding: 0 !important;
    color: #101927;
    border: 0;
    background: transparent !important;
  }

  .mobile-storefront-header .header-action-icon { width: 27px !important; height: 27px !important; }
  .mobile-storefront-header .header-action-icon svg { width: 27px !important; height: 27px !important; }
  .mobile-storefront-header .badge-count {
    top: -7px !important;
    right: -8px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    color: #fff !important;
    border-radius: 9px;
    background: #ef1c63 !important;
    font-size: 10px !important;
    line-height: 18px !important;
  }

  .mobile-search-section {
    display: block !important;
    padding: 0 13px 10px;
    background: #fff;
  }

  .mobile-search-section > .cartell-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .mobile-search-section .header-search-wrap { padding: 0 !important; }
  .mobile-search-section .search-input-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 45px;
    align-items: center;
    width: 100%;
    height: 46px !important;
    min-height: 46px;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e3e5ea !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(26,34,48,.06) !important;
  }

  .mobile-search-section .search-input {
    min-width: 0;
    width: 100%;
    height: 44px !important;
    padding: 0 13px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
  }

  .mobile-search-category-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 28px;
    padding: 0 10px;
    color: #202735;
    border-left: 1px solid #e5e7eb;
    font-size: 10px;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-search-section .search-submit-btn {
    position: static !important;
    display: grid !important;
    place-items: center;
    width: 45px !important;
    height: 46px !important;
    margin: 0 !important;
    color: #fff !important;
    border-radius: 0 !important;
    background: #e71960 !important;
    transform: none !important;
  }

  .mobile-search-section .search-clear-btn { display: none !important; }

  .category-shortcuts-bar {
    border-top: 1px solid #f1f1f3;
    box-shadow: none !important;
  }
}

@media (max-width: 380px) {
  .mobile-storefront-header { padding-inline: 9px !important; }
  .mobile-storefront-header .header-inner { grid-template-columns: 37px minmax(0, 1fr) auto; gap: 3px; }
  .mobile-storefront-header .cartell-wordmark { font-size: 24px !important; }
  .mobile-storefront-header .header-right { gap: 3px !important; }
  .mobile-storefront-header .header-action-item { width: 32px !important; min-width: 32px; }
  .mobile-search-section { padding-inline: 9px; }
  .mobile-search-category-link { padding-inline: 7px; font-size: 9px; }
}

@media (min-width: 900px) {
  .mobile-search-category-link { display: none !important; }
}
