/* Awesome Shop — mobile header (logo left, inline search right). Load last in layout. */

@media screen and (max-width: 991px) {
  html[data-ec-storefront="awesome_shop"] .header-section .navber.w-nav {
    float: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .nav-top-container {
    display: flex !important;
    flex-flow: row nowrap !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-awesome-logo-link {
    order: 1 !important;
    flex: 0 0 auto !important;
    max-width: 72px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-logo-desktop {
    display: none !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-logo-mobile {
    display: block !important;
  }

  /* Hide desktop header tools: cart, wishlist, account, phone, burger */
  html[data-ec-storefront="awesome_shop"] .header-section .nav-top-icon,
  html[data-ec-storefront="awesome_shop"] .header-section .navbar_info-block,
  html[data-ec-storefront="awesome_shop"] .header-section .navber-divider,
  html[data-ec-storefront="awesome_shop"] .header-section .ec-awesome-header-tools,
  html[data-ec-storefront="awesome_shop"] .header-section .menu-button,
  html[data-ec-storefront="awesome_shop"] .header-section .w-nav-button,
  html[data-ec-storefront="awesome_shop"] .navber.w-nav[data-collapse="medium"] .w-nav-button {
    display: none !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap {
    display: block !important;
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 0 0 auto !important;
    margin-top: 0 !important;
    position: relative !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .search-bar,
  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .search-bar.w-form,
  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .ec-header-search-form {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    padding: 4px 6px 4px 12px !important;
    align-items: center !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .search-text-icon-box,
  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .text-block-2 {
    display: none !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .search-input,
  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .search-input.w-input {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 0.88rem !important;
    color: #0f172a !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .search-button-2,
  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .search-button-2.w-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 34px !important;
    height: 30px !important;
    max-height: 30px !important;
    padding: 0 !important;
    border-radius: 6px !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .search-button-2 .ec-header-search-btn-text {
    display: none !important;
  }

  html[data-ec-storefront="awesome_shop"] .header-section .ec-header-search-wrap .search-button-2 .ec-header-search-btn-icon {
    display: inline-block !important;
  }
}

@media screen and (max-width: 479px) {
  html[data-ec-storefront="awesome_shop"] .header-section .nav-top-container {
    flex-flow: row nowrap !important;
  }
}
