/* =================================
   Space Vanta Theme 1.0
   Viewport content: Find
   Path: public/header/viewport/find/find.css

   Motion for this screen lives in public/header/motion/motion.css
   ================================= */

.sv-find__panel { max-width: 980px; }
.sv-find__body { padding: 48px 52px 56px; }

/* ---------- field: broken underline + travelling light ---------- */
.sv-find__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
}
.sv-find__field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--sv-ink, #252321) 0 36%, transparent 36% 37.4%, var(--sv-ink, #252321) 37.4% 100%);
}
.sv-find__scan {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, transparent 0%, var(--sv-blue, #1d6bff) 40%, var(--sv-blue-2, #4d8dff) 70%, transparent 100%);
  box-shadow: 0 0 10px var(--sv-blue-glow, rgba(29, 107, 255, 0.38));
  pointer-events: none;
}

.sv-find__icon { display: inline-flex; width: 44px; height: 44px; flex: none; }
.sv-find__icon svg { width: 100%; height: 100%; }
.sv-find__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--sv-ink, #252321);
}
.sv-find__input::placeholder { color: #a89f93; font-weight: 400; }
.sv-find__enter {
  flex: none;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sv-muted, #7a7167);
  border: 1px solid var(--sv-line, rgba(120, 104, 84, 0.22));
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.sv-find__status { min-height: 20px; margin: 14px 0 0; font-size: 13px; color: var(--sv-muted, #7a7167); }

/* ---------- understood as / typo repair ---------- */
.sv-find__understood {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--sv-muted, #7a7167);
}
.sv-find__understood[hidden] { display: none; }
.sv-find__understood-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.sv-find__tag {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 550;
  color: var(--sv-blue, #1d6bff);
  background: var(--sv-blue-soft, #eaf1ff);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.sv-find__fix b { color: var(--sv-ink, #252321); font-weight: 600; }
.sv-find__fix button,
.sv-find__clear {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: var(--sv-blue, #1d6bff);
}
.sv-find__fix button { margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- headings and chips ---------- */
.sv-find__block { margin-top: 4px; }
.sv-find__heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sv-muted, #7a7167);
}
.sv-find__heading::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--sv-blue, #1d6bff);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--sv-blue-glow, rgba(29, 107, 255, 0.38));
}
.sv-find__clear { margin-left: auto; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.sv-find__clear:hover { text-decoration: underline; }

.sv-find__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sv-find__chips button {
  position: relative;
  padding: 9px 18px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border: 0;
  color: var(--sv-ink, #252321);
  background: #f4eee4;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transition: background 0.18s ease, color 0.18s ease;
}
.sv-find__chips button:hover { background: var(--sv-ink, #252321); color: #fff; }
.sv-find__chips button:focus-visible { outline: 2px solid var(--sv-blue, #1d6bff); outline-offset: 2px; }

/* ---------- product cards ---------- */
.sv-find__results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px 20px;
  margin-top: 22px;
}
.sv-find__results--row { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.sv-find__results--related { margin-top: 0; }
.sv-find__more { margin-top: 10px; }
.sv-find__more[hidden] { display: none; }

.sv-find__card { position: relative; display: block; color: inherit; text-decoration: none; outline: 0; }
.sv-find__card-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f3ea, #ebe4d7);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sv-find__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-find__card-media:empty::before {
  content: "";
  position: absolute;
  inset: 32%;
  background: linear-gradient(135deg, #fffefc, #d3ccbf);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
/* blue edge of light under the picture */
.sv-find__card-media::after {
  content: "";
  position: absolute;
  left: 0; right: 14px; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sv-blue, #1d6bff), var(--sv-blue-2, #4d8dff));
  box-shadow: 0 0 10px var(--sv-blue-glow, rgba(29, 107, 255, 0.38));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sv-find__card:hover .sv-find__card-media,
.sv-find__card.is-active .sv-find__card-media,
.sv-find__card:focus-visible .sv-find__card-media { transform: translateY(-3px); }
.sv-find__card:hover .sv-find__card-media::after,
.sv-find__card.is-active .sv-find__card-media::after,
.sv-find__card:focus-visible .sv-find__card-media::after { transform: scaleX(1); }
.sv-find__card.is-active { outline: 1.5px solid var(--sv-blue, #1d6bff); outline-offset: 6px; }

.sv-find__card-title { margin-top: 12px; font-size: 13px; line-height: 1.45; }
.sv-find__card-title mark { background: none; color: var(--sv-blue, #1d6bff); font-weight: 650; }
.sv-find__card:hover .sv-find__card-title { color: var(--sv-blue, #1d6bff); }
.sv-find__card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 12px; }
.sv-find__card-price { color: var(--sv-ink-2, #4b443c); font-weight: 550; }
.sv-find__card-why {
  padding: 2px 9px;
  font-size: 11px;
  color: var(--sv-blue, #1d6bff);
  background: var(--sv-blue-soft, #eaf1ff);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.sv-find__all {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 2px;
  font-size: 13px;
  color: var(--sv-ink, #252321);
  text-decoration: none;
  border-bottom: 1px solid var(--sv-ink, #252321);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sv-find__all[hidden] { display: none; }
.sv-find__all:hover { color: var(--sv-blue, #1d6bff); border-color: var(--sv-blue, #1d6bff); }

@media (max-width: 900px) {
  .sv-find__body { padding: 64px 20px 44px; }
  .sv-find__icon { width: 36px; height: 36px; }
  .sv-find__input { font-size: 19px; }
  .sv-find__enter { display: none; }
  .sv-find__results { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .sv-find__results--row { grid-template-columns: repeat(2, 1fr); }
}
