/* LIVIAN — Search modal (shared) */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .35s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
.search-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e5e7;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.search-head .icon {
  width: 20px; height: 20px;
  stroke: #6e6e73;
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 18px;
  color: #111;
  padding: 8px 0;
  letter-spacing: -0.01em;
}
.search-input::placeholder { color: #9c9ca0; }
.search-close {
  background: none;
  border: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #6e6e73;
  cursor: pointer;
  padding: 8px 4px;
}
.search-close:hover { color: #111; }

.search-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 80px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.search-section { margin-bottom: 36px; }
.search-section:last-child { margin-bottom: 0; }

.search-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6e6e73;
  margin-bottom: 14px;
  font-weight: 600;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-pill {
  padding: 9px 16px;
  border: 1px solid #e5e5e7;
  border-radius: 980px;
  background: #fff;
  font-size: 13px;
  color: #111;
  cursor: pointer;
  transition: all .2s cubic-bezier(.2,.7,.2,1);
}
.search-pill:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.search-card { cursor: pointer; }
.search-card-media {
  aspect-ratio: 3/4;
  background: #f5f5f7;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.search-card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.search-card:hover .search-card-media img { transform: scale(1.04); }
.search-card-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  color: #111;
}
.search-card-price {
  font-size: 13px;
  color: #6e6e73;
}

.search-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6e6e73;
  font-size: 14px;
}

@media (max-width: 980px) {
  .search-results { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .search-results { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .search-input { font-size: 16px; }
  .search-body { padding: 20px 16px 80px; }
  .search-head { padding: 12px 16px; }
}

body.search-open { overflow: hidden; }
