/* Awesome Shop — header search (inline bar on the right beside logo on mobile) */

.header-section .ec-header-search-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(622px, 100%);
  z-index: 1002;
}

/* Search icon strip — desktop offcanvas trigger only; hidden on mobile */
.header-section .ec-awesome-header-tools {
  display: none;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-section .ec-header-search-form.search-bar.w-form {
  align-items: stretch;
  gap: 0 10px;
  padding: 6px 8px 6px 12px;
}

.header-section .ec-header-search-wrap .search-text-icon-box {
  flex: 0 0 auto;
  align-items: center;
}

@media (min-width: 768px) {
  .header-section .ec-header-search-wrap .text-block-2 {
    display: none;
  }
}

.header-section .ec-header-search-wrap .search-input.w-input {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #1a1d3e;
  border-radius: 6px;
  
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.header-section .ec-header-search-wrap .search-input.w-input::placeholder {
  color: #64748b;
}

.header-section .ec-header-search-wrap .search-input.w-input:focus {
  
  background: rgba(255, 255, 255, 0.65);
}

.header-section .ec-header-search-wrap .search-button-2.w-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.15s ease;
}

.header-section .ec-header-search-wrap .ec-header-search-btn-icon {
  display: none;
  font-size: 16px;
  line-height: 1;
  color: #fff;
}

.header-section .ec-header-search-wrap .ec-header-search-btn-text {
  display: inline;
  line-height: 1.2;
  color: #fff;
}

.header-section .ec-header-search-wrap .search-button-2.w-button:hover {
  filter: brightness(1.05);
}

/* Inline instant-results dropdown (desktop / wide tablet with bar visible) */
.header-section .ec-header-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid rgba(26, 29, 62, 0.1);
  border-radius: 12px;
  
  max-height: min(70vh, 440px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header-section .ec-header-search-dropdown[hidden] {
  display: none !important;
}

.header-section .ec-header-search-hint {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 12px 6px;
  font-size: 0.8rem;
  color: #64748b;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-section .ec-header-search-results {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px 10px 12px;
  -webkit-overflow-scrolling: touch;
}

.header-section .ec-header-search-results .ec-search-group:first-child {
  margin-top: 0;
}

/* Tablet: full width search bar when visible */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .header-section .ec-header-search-wrap .search-bar.w-form {
    width: 100% !important;
    max-width: 100%;
  }
}

/* ≥992px: full search bar row; icon strip hidden */
@media screen and (min-width: 992px) {
  .header-section .ec-awesome-header-tools {
    display: none !important;
  }
}

/* ≤991px: logo left, inline search bar on the right (same row) */
@media screen and (max-width: 991px) {
  .header-section .ec-awesome-header-tools {
    display: none !important;
  }

  .header-section .ec-header-search-wrap {
    display: block !important;
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    margin-left: auto;
    margin-top: 0;
  }

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

  .header-section .ec-header-search-wrap .search-text-icon-box,
  .header-section .ec-header-search-wrap .text-block-2 {
    display: none !important;
  }

  .header-section .ec-header-search-wrap .search-input.w-input {
    flex: 1;
    min-width: 0;
    height: 30px;
    min-height: 30px;
    padding: 0;
    font-size: 0.88rem;
  }

  .header-section .ec-header-search-wrap .search-button-2.w-button {
    min-width: 34px;
    height: 30px;
    max-height: 30px;
    padding: 0;
    border-radius: 6px;
  }

  .header-section .ec-header-search-wrap .search-button-2.w-button .ec-header-search-btn-text {
    display: none !important;
  }

  .header-section .ec-header-search-wrap .search-button-2.w-button .ec-header-search-btn-icon {
    display: inline-block !important;
  }

  .header-section .nav-top-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .header-section .navbar-logo.w-nav-brand,
  .header-section .ec-awesome-logo-link {
    order: 1;
    flex: 0 0 auto;
    min-width: 0;
  }
}

/* Keep logo + search on one row on tiny screens */
@media screen and (max-width: 479px) {
  .header-section .nav-top-container {
    flex-flow: nowrap;
  }

  .header-section .navbar-logo {
    margin-top: 0;
    margin-bottom: 0;
  }
}
