/* ===== Minimal WooCommerce Search ===== */

.mwc-search-wrapper {
  position: relative;
}

/* ===== DESKTOP SEARCH ===== */
.mwc-search-desktop {
  display: flex;
  align-items: center;
  position: relative;
}

.mwc-search-input {
  border: 1px solid #ccc;
  outline: none;
  width: 100%;
  height: 38px;
  padding: 6px 36px 6px 10px;
  box-sizing: border-box;
}

/* Desktop search icon (inside input) */
.mwc-icon {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

/* ===== RESULTS DROPDOWN ===== */
.mwc-results {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  width: 100%;
  top: 100%;
  left: 0;
  z-index: 999;
}

.mwc-results .category {
  font-weight: bold;
  padding: 6px 10px;
  background: #f7f7f7;
  font-size: 12px;
}

.mwc-results .item {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.mwc-results .item:hover,
.mwc-results .item.active {
  background: #efefef;
}

/* ===== MOBILE SEARCH ICON ===== */
.mwc-search-icon {
  display: none;
  cursor: pointer;
  text-align: right;
}

.mwc-search-icon img {
  width: 18px;
  height: auto;
}

/* ===== MOBILE SEARCH POPUP ===== */
.mwc-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
}

.mwc-search-popup {
  background: #fff;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
	top:32%;
}

.mwc-search-popup .mwc-search-input {
  width: 100%;
  height: 40px;
  padding: 8px 40px 8px 10px;
  font-size: 14px;
}

.mwc-search-popup .mwc-results {
  position: relative;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #ddd;
  max-height: 60vh;
  overflow-y: auto;
}

/* Close button */
.mwc-close {
  position: absolute;
  right: 15px;
  top: 18px;
  font-size: 18px;
  cursor: pointer;
}

/* Prevent background scroll when popup open */
body.mwc-search-open {
  overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  /* Hide desktop search */
  .mwc-search-desktop {
    display: none;
  }

  /* Show search icon */
  .mwc-search-icon {
    display: block;
  }
}
