/* Search overlay */
.srch{position:fixed;inset:0;z-index:1400;display:none}
.srch.open{display:block}
.srch__scrim{position:absolute;inset:0;background:rgba(28,26,24,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:0;transition:opacity .35s}
.srch.open .srch__scrim{opacity:1}
.srch__panel{position:absolute;top:0;left:0;right:0;background:var(--paper);transform:translateY(-100%);transition:transform .45s var(--ease-out);box-shadow:0 30px 60px -30px rgba(28,26,24,.4)}
.srch.open .srch__panel{transform:none}
.srch__inner{max-width:680px;margin:0 auto;padding:clamp(28px,4vh,40px) clamp(20px,5vw,40px) clamp(20px,3vh,30px)}
.srch__row{display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(0,0,0,.06);padding-bottom:12px}
.srch__row svg{width:16px;height:16px;stroke:var(--text-muted);stroke-width:1.5;fill:none;flex:none}
.srch__row input{flex:1;border:none;background:none;font-family:var(--font-sans);font-size:15px;color:var(--text-strong);outline:none}
.srch__row input::placeholder{color:var(--text-faint)}
.srch__close{width:28px;height:28px;border:none;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none}
.srch__close svg{width:14px;height:14px;stroke:var(--text-muted);stroke-width:1.6;fill:none}
.srch__hint{margin:10px 0 0;font-family:var(--font-sans);font-size:12px;color:var(--text-muted)}
/* ---- size filter chips ---------------------------------------------------
   A row of taps for people who would rather not type. Scrolls sideways rather
   than wrapping to three lines on a phone; the scrollbar is hidden because the
   row is short and the overflow is obvious from the clipped last chip. */
.srch__sizes{display:flex;gap:8px;margin-top:14px;overflow-x:auto;padding-bottom:2px;
  scrollbar-width:none;-ms-overflow-style:none}
.srch__sizes::-webkit-scrollbar{display:none}
.srch__sizes:empty{display:none}
.srch__sizes button{flex:none;background:none;cursor:pointer;padding:6px 12px;border-radius:0;
  border:1px solid var(--line);font-family:var(--font-sans);font-size:12px;
  color:var(--text-muted);white-space:nowrap;transition:border-color .2s ease,color .2s ease,background .2s ease}
.srch__sizes button:hover{border-color:var(--text-strong);color:var(--text-strong)}
.srch__sizes button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper)}

/* The applied filter, stated above the results with the way to remove it. */
.srch__chip{margin-top:12px}
.srch__chip[hidden]{display:none}
.srch__chipbtn{display:inline-flex;align-items:center;gap:8px;padding:6px 8px 6px 12px;
  background:var(--sand-100);border:1px solid var(--line);
  font-family:var(--font-sans);font-size:12px;color:var(--text-strong)}
.srch__chipbtn button{display:flex;align-items:center;justify-content:center;
  width:22px;height:22px;padding:0;border:0;border-radius:0;background:none;cursor:pointer;
  font-size:15px;line-height:1;color:var(--text-muted);transition:color .2s ease}
.srch__chipbtn button:hover{color:var(--text-strong)}

/* Size exists, nothing in it right now — said above the unfiltered list. */
.srch__note{padding:12px 4px;margin-bottom:4px;border-bottom:1px solid rgba(0,0,0,.05);
  font-family:var(--font-display);font-style:italic;font-size:14px;color:var(--text-strong)}

.srch__cats{display:flex;flex-wrap:wrap;gap:clamp(14px,2vw,24px);margin-top:16px}
.srch__cats button{background:none;border:none;padding:0;cursor:pointer;font-family:var(--font-sans);font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);transition:color .3s}
.srch__cats button:hover{color:var(--text-strong)}
.srch__cats button[aria-pressed="true"]{color:var(--text-strong);font-weight:600}
.srch__results{margin-top:14px;max-height:44vh;overflow-y:auto;display:flex;flex-direction:column}
.srch__item{display:flex;align-items:center;gap:14px;padding:10px 4px;text-decoration:none;border-bottom:1px solid rgba(0,0,0,.05);transition:background .2s}
.srch__item:hover{background:var(--sand-100)}

.srch__item h4{font-family:var(--font-sans);font-size:15px;color:var(--text-strong);margin:0 0 2px}
.srch__item span{font-family:var(--font-sans);font-size:11px;color:var(--text-muted)}
.srch__empty{padding:16px 4px;font-family:var(--font-display);font-style:italic;font-size:14px;color:var(--text-muted)}

/* ---- search result thumbnails ------------------------------------------
   Same treatment as every other tile: fixed 3:4 box, image covers it, and the
   box itself carries --img-bg so a product with no photo renders as a quiet
   block rather than a broken-image icon. */
.srch__thumb{flex:none;display:block;width:64px;aspect-ratio:3/4;overflow:hidden;
  background:var(--img-bg);border-radius:0}
.srch__thumb img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
