/* ===== SEARCH OVERLAY ===== */

.tm-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: var(--wp--preset--color--bg);
  border-bottom: 1px solid var(--wp--preset--color--border);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.tm-search-open .tm-search-overlay {
  transform: translateY(0);
}

.tm-search-open .tm-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.tm-search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--tm-content-px) 32px;
}

@media (max-width: 768px) {
  .tm-search-inner {
    padding: 16px 14px 24px;
  }
}

.tm-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding-bottom: 16px;
}

.tm-search-form svg {
  color: var(--wp--preset--color--text-muted);
  flex-shrink: 0;
}

.tm-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--wp--preset--font-family--cormorant);
  font-size: 28px;
  font-weight: 400;
  color: var(--wp--preset--color--text);
  background: transparent;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .tm-search-input {
    font-size: 22px;
  }
}

.tm-search-input::placeholder {
  color: var(--wp--preset--color--text-light);
}

.tm-search-close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wp--preset--color--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
  padding: 0;
}

.tm-search-close:hover {
  color: var(--wp--preset--color--text);
}

.tm-search-results {
  margin-top: 16px;
}

.tm-search-result {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
  text-decoration: none;
  color: var(--wp--preset--color--text);
  align-items: center;
  transition: background 0.15s ease;
}

.tm-search-result:hover {
  background: var(--wp--preset--color--bg-alt);
  margin: 0 -16px;
  padding: 12px 16px;
}

.tm-search-result-img {
  width: 56px;
  height: 56px;
  background: var(--wp--preset--color--bg-alt);
  overflow: hidden;
  flex-shrink: 0;
}

.tm-search-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-search-result-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--wp--preset--color--text);
  line-height: 1.3;
}

.tm-search-result-cat {
  font-size: 12px;
  color: var(--wp--preset--color--text-muted);
  margin-top: 3px;
}

.tm-search-result-price {
  color: var(--wp--preset--color--accent);
  font-weight: 600;
  font-size: 14px;
  font-feature-settings: 'tnum' 1;
  white-space: nowrap;
}

.tm-search-see-all {
  display: block;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-search-see-all:hover {
  color: var(--wp--preset--color--accent-dark);
}

.tm-search-empty,
.tm-search-loading {
  text-align: center;
  padding: 32px 16px;
  color: var(--wp--preset--color--text-muted);
  font-size: 14px;
}
