/* ============================================
   SEARCH MODAL - search-modal.css
   Tema klasÃƒÂ¶rÃƒÂ¼ne koyun: /wp-content/themes/TEMANIZ/assets/css/
   ============================================ */
.ecoflow-header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ecoflow-header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ecoflow-header-icon-btn,
.ecoflow-header-icons a,
.ecoflow-header-icons button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.ecoflow-header-icon-btn:hover,
.ecoflow-header-icon-btn:focus,
.ecoflow-header-icon-btn:active,
.ecoflow-header-icons a:hover,
.ecoflow-header-icons a:focus,
.ecoflow-header-icons a:active,
.ecoflow-header-icons button:hover,
.ecoflow-header-icons button:focus,
.ecoflow-header-icons button:active {
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
  opacity: 1 !important;
  filter: none !important;
  text-decoration: none;
}

/* Sepet wrapper */
.ecoflow-header-cart {
  position: relative;
  display: flex;
  align-items: center;
}

/* Adet bubble */
.ecoflow-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #f31818;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  pointer-events: none;
}

.sm-open .ecoflow-menu-nav,
.sm-open .ecoflow-header-icons,
.sm-open .header-shop-btn {
  opacity: 0;
  visibility: hidden;
}

.sm-open .aktif-header {
  width: 100% !important;
}

.ecoflow-header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.15s;
  padding: 0;
}

.ecoflow-header-icon-btn:hover {
  opacity: 0.65;
}

/* ============================================
   SEARCH MODAL - search-modal.css (v3)
   ============================================ */

/* body'ye sm-open gelince scroll kilitle */
body.sm-open {
  overflow: hidden;
}

/* Overlay Ã¢â‚¬â€ header'Ã„Â±n altÃ„Â±ndan baÃ…Å¸lar, geri kalanÃ„Â± ÃƒÂ¶rter */
.sm-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--sm-header-height, 80px);
  z-index: 10007;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.sm-overlay.sm-open {
  opacity: 1;
  visibility: visible;
}
.sm-modal *,
.sm-results * {
  font-family: "Helvetical Neue", Sans-serif;
}
/* Arama input barÃ„Â± Ã¢â‚¬â€ header'Ã„Â±n TAM ÃƒÅ“ZERÃ„Â°NE, aynÃ„Â± yÃƒÂ¼kseklikte */
.sm-modal {
  position: fixed;
  top: 0;
  max-width: 790px;
  margin: 0 auto;
  left: 0;
  right: 0;
  z-index: 10004;
  height: var(--sm-header-height, 80px);
  background: #ededed;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
}

.sm-modal.sm-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Input inner wrapper Ã¢â‚¬â€ ortalar ve max-width verir */
.sm-modal-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  height: 100%;
}

.sm-modal-inner svg.sm-icon-search {
  width: 20px;
  height: 20px;
  color: #888;
  flex-shrink: 0;
}

.sm-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1a1a1a;
  background: transparent;
  height: 100%;
  border: none !important;
  padding: 15px 0 !important;
}

.sm-input::placeholder {
  color: #aaa;
}

.sm-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.sm-close:hover,
.sm-close:active,
.sm-close:focus {
  color: #1a1a1a;
  background-color: transparent;
  outline: none;
}

/* SonuÃƒÂ§ paneli Ã¢â‚¬â€ header'Ã„Â±n hemen altÃ„Â±ndan baÃ…Å¸lar */
.sm-results {
  position: fixed;
  top: var(--sm-header-height, 80px);
  left: 0;
  right: 0;
  z-index: 10007;
  max-width: 790px;
  margin: 0 auto;
  background: #fff;
  max-height: 310px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
  border-top: 1px solid #ebebeb;
  box-shadow: 0 22px 24px -20px #00000012, 0 2px 20px #0000000d;
}

.sm-results.sm-open {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
}

/* SonuÃƒÂ§ iÃƒÂ§ wrapper */
.sm-results-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 8px;
}

/* BÃƒÂ¶lÃƒÂ¼m baÃ…Å¸lÃ„Â±klarÃ„Â± */
.sm-section-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: #919191;
  padding: 11px 36px;
}

/* Ãƒâ€“nerilen arama terimleri */
.sm-suggestion-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.sm-suggestion-list li {
  padding: 0;
  margin: 0;
}

.sm-suggestion-list li a {
  display: block;
  padding: 14px 20px 14px 36px;
  font-size: 14px;
  color: #03060b;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.12s;
}

.sm-suggestion-list li a:hover {
  background: #f8f8f8;
}

/* ÃƒÅ“rÃƒÂ¼n listesi */
.sm-product-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.sm-product-item {
  margin: 0;
  border-top: 1px solid #ebebeb;
}

.sm-product-item:first-child {
  border-top: none;
}

.sm-product-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 30px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.sm-product-link:hover {
  background: transparent;
}

.sm-product-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: transparent;
}

.sm-product-img-placeholder {
  width: 56px;
  height: 56px;
  background: #f0f0f0;
  border-radius: 4px;
  flex-shrink: 0;
}

.sm-product-info {
  flex: 1;
  min-width: 0;
}

.sm-product-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-product-price {
  font-size: 12px;
  color: #232323;
  margin: 0;
  font-weight: 500;
}

/* Sayfa sonuÃƒÂ§larÃ„Â± */
.sm-page-list {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
}

.sm-page-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 60px;
  font-size: 14px;
  color: #03060b;
  text-decoration: none;
  transition: background 0.12s;
  font-weight: 500;
}

.sm-page-list li a:hover {
  background: #f5f5f5;
}

.sm-page-list li a svg {
  width: 15px;
  height: 15px;
  color: #bbb;
  flex-shrink: 0;
}

/* TÃƒÂ¼m sonuÃƒÂ§larÃ„Â± gÃƒÂ¶r */
.sm-view-all {
  display: block;
  text-align: center;
  padding: 13px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  border-top: 1px solid #ebebeb;
  transition: background 0.12s, color 0.12s;
}

.sm-view-all:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

/* YÃƒÂ¼kleniyor */
.sm-loading {
  display: flex;
  justify-content: center;
  padding: 32px;
}

.sm-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #eee;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: sm-spin 0.7s linear infinite;
}

@keyframes sm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* BoÃ…Å¸ durum */
.sm-empty {
  text-align: center;
  padding: 36px 20px;
  color: #888;
  font-size: 14px;
}

/* AyraÃƒÂ§ */
.sm-divider {
  height: 1px;
  background: #ebebeb;
  margin: 4px 0;
}

/* Trigger */
.sm-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.sm-trigger:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1023px) {
  .sm-modal {
    background-color: #fff;
    z-index: 99996;
    box-shadow: none;
    height: 47px;
  }

  .sm-modal-inner {
    margin: 0 24px;
    background-color: #fff;
    border-bottom: 1px solid #ebe9e9;
  }

  .sm-results {
    border-top: none;
    background-color: #fff;
    max-height: 119vw;
            min-height: 100vh;
    box-shadow: none;
    top: 47px;
    padding: 0 25px;
  }

  .sm-input {
    font-size: 16px;
  }
  .sm-product-link {
    padding: 10px 54px;
  }

  .sm-suggestion-list li a {
    padding: 9px 16px;
  }

  .sm-page-list li a {
    padding: 9px 16px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .sm-modal-inner {
    padding: 0 16px;
  }

  .sm-section-title {
    padding: 14px 16px 6px;
  }

  .sm-product-link {
    padding: 10px 16px;
  }

  .sm-suggestion-list li a {
    padding: 9px 16px;
  }

  .sm-page-list li a {
    padding: 9px 16px;
  }
}