/* LUPON global search refresh — shared on every page */
.store-search {
  position: relative;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 58px !important;
  padding: 6px 7px 6px 9px !important;
  border: 1px solid #dbe7dc !important;
  border-radius: 18px !important;
  background: linear-gradient(115deg, #ffffff 0%, #f7faf6 100%) !important;
  box-shadow: 0 5px 18px rgba(23, 57, 36, .055), inset 0 1px 0 rgba(255,255,255,.95);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease;
}
.store-search:hover {
  border-color: #b9cdb9 !important;
  box-shadow: 0 8px 22px rgba(23, 57, 36, .085), inset 0 1px 0 rgba(255,255,255,.95);
}
.store-search:focus-within {
  border-color: #688d6e !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(82, 126, 88, .12), 0 9px 24px rgba(23, 57, 36, .08) !important;
}
.store-search .store-search-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e4eee3;
  border-radius: 13px;
  background: #edf4eb;
  color: #24583b;
}
.store-search .store-search-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-search input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #17271d !important;
  font: 550 14px/1.3 'DM Sans', sans-serif !important;
  letter-spacing: -.01em;
  appearance: none;
}
.store-search input::placeholder {
  color: #87948a !important;
  opacity: 1;
  font-weight: 450;
}
.store-search input::-webkit-search-cancel-button {
  cursor: pointer;
}
.store-search button {
  width: auto !important;
  min-width: 82px;
  height: 42px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #123d2b, #20583b) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(18, 61, 43, .16);
  font: 700 12px/1 'DM Sans', sans-serif !important;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.store-search button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-search button:hover {
  background: linear-gradient(135deg, #20583b, #2f704b) !important;
  box-shadow: 0 6px 15px rgba(18, 61, 43, .22);
  transform: translateY(-1px);
}
.store-search button:active { transform: translateY(0); }
.store-search button:focus-visible,
.store-search input:focus-visible { outline: 2px solid #8cae81 !important; outline-offset: 3px; }

/* Search fields inside product and category pages share the same visual language. */
.listing-search,
.catalog-page-search {
  min-width: 0;
  border: 1px solid #dce7dc !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(23, 57, 36, .035);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.listing-search:focus-within,
.catalog-page-search:focus-within {
  border-color: #789a78 !important;
  box-shadow: 0 0 0 3px rgba(82, 126, 88, .10) !important;
}
.listing-search input,
.catalog-page-search input {
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #17271d !important;
  font: 500 12px 'DM Sans', sans-serif !important;
}
.listing-search > span,
.catalog-page-search > span {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 9px;
  background: #edf4eb;
  color: #24583b !important;
  font-size: 17px !important;
}

@media (max-width: 1080px) {
  .store-search {
    height: 52px !important;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    border-radius: 15px !important;
  }
  .store-search .store-search-icon { width: 36px; height: 36px; border-radius: 11px; }
  .store-search input { height: 38px !important; font-size: 13px !important; }
  .store-search button { min-width: 76px; height: 38px !important; border-radius: 11px !important; }
}
@media (max-width: 600px) {
  .store-search {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    height: 49px !important;
    padding: 5px 6px 5px 7px !important;
    border-radius: 14px !important;
  }
  .store-search .store-search-icon { width: 34px; height: 34px; border-radius: 10px; }
  .store-search .store-search-icon svg { width: 17px; height: 17px; }
  .store-search input { height: 36px !important; font-size: 12px !important; }
  .store-search input::placeholder { font-size: 11px; }
  .store-search button { min-width: 61px; height: 36px !important; gap: 5px; padding: 0 11px !important; border-radius: 10px !important; font-size: 11px !important; }
  .store-search button svg { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-search, .store-search button, .listing-search, .catalog-page-search { transition: none !important; }
}
