/* =========================================================
   ANGEOLOGY — search.css (loads after style.css)
   ========================================================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-label { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--graphite); }

/* ---------- search bar ---------- */
.sr-hero { position: relative; overflow: hidden; max-width: 1240px; margin: 0 auto; padding: 130px var(--gutter) 60px; text-align: center; }
.sr-hero > *:not(.wave) { position: relative; z-index: 2; }
.sr-title { margin: 0 0 40px; font-family: var(--serif); font-weight: 400; font-size: clamp(66px, 9vw, 150px); line-height: 1.2; letter-spacing: -.03em; }
.sr-title .hl-in { display: inline-block; }
.sr-title .script { font-size: 1.05em; color: var(--rose); padding: 0 .08em; }
.sr-spark { position: absolute !important; z-index: 1; animation: twinkle 3.5s ease-in-out infinite; }
.sr-spark-1 { width: 100px; left: 4%; top: 60px; }
.sr-spark-2 { width: 56px; right: 6%; top: 80px; animation-delay: -1.4s; }

.sr-form { position: relative; max-width: 900px; margin: 0 auto; border-bottom: 2px solid var(--espresso); }
.sr-form input { width: 100%; padding: 14px 110px 14px 6px; border: 0; background: transparent; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.3; color: var(--espresso); -webkit-appearance: none; appearance: none; }
.sr-form input::placeholder { color: rgba(64, 46, 42, .35); }
.sr-form input::-webkit-search-cancel-button { display: none; }
.sr-form input:focus { outline: 0; }
.sr-form:focus-within { border-color: var(--rose-ink); box-shadow: 0 10px 0 -8px var(--petal); }
.sr-clear { position: absolute; right: 70px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 1px solid var(--espresso); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 20px; line-height: 1; }
.sr-key { position: absolute; right: 0; top: 50%; translate: 0 -50%; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; letter-spacing: .12em; color: var(--graphite); }

.sr-suggest, .sr-colours, .sr-recent { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin-top: 22px; }
.sr-suggest button, .sr-recent button { padding: 7px 16px; border: 1px solid var(--espresso); border-radius: 999px; background: none; cursor: pointer; font-family: var(--serif); font-style: italic; font-size: 18px; transition: background .3s; }
.sr-suggest button:hover, .sr-recent button:hover { background: var(--petal); }
.sr-recent button { border-color: var(--line); font-size: 16px; }
.sr-colours button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--c); box-shadow: 0 0 0 1px rgba(64, 46, 42, .35), inset -4px -4px 6px rgba(0, 0, 0, .12), inset 3px 3px 5px rgba(255, 255, 255, .5); transition: scale .3s var(--ease), box-shadow .3s; }
.sr-colours button:hover { scale: 1.15; }
.sr-colours button.on { box-shadow: 0 0 0 1px var(--espresso), 0 0 0 4px var(--paper), 0 0 0 5px var(--rose-ink); scale: 1.12; }

/* ---------- results ---------- */
.sr-results { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 60px); max-width: 1320px; margin: 0 auto; padding: 30px var(--gutter) 140px; align-items: start; }
.sr-filters { position: sticky; top: 90px; padding-top: 16px; border-top: 1px solid var(--espresso); }
.sr-filters .sr-label { display: block; margin: 0 0 10px; }
.sr-filters .sr-label + * { margin-bottom: 26px; }
.sr-cats { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sr-cats button { padding: 2px 0; border: 0; background: none; cursor: pointer; font-family: var(--serif); font-size: 26px; line-height: 1.3; color: var(--espresso); opacity: .6; transition: opacity .3s, color .3s; }
.sr-cats button:hover { opacity: 1; }
.sr-cats button.on { opacity: 1; font-style: italic; color: var(--rose-ink); }
.sr-filters input[type=range] { width: 100%; accent-color: var(--rose-ink); }
.sr-count { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--rose-ink); }

.rs-group { margin-bottom: 56px; }
.rs-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.2; }
.rs-h .script { color: var(--rose-ink); }
.rs-h span:last-child { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--graphite); }
mark { background: linear-gradient(transparent 55%, var(--petal) 55%); color: inherit; padding: 0 1px; }

.rs-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.rs-product { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 10px 56px 10px 10px; background: var(--paper); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, translate .4s var(--ease); }
.rs-product:hover { translate: 0 -3px; box-shadow: 0 0 0 1px var(--rose), 0 20px 30px -22px rgba(64, 46, 42, .45); }
.rs-thumb { display: block; overflow: hidden; border-radius: 14px; --pbg: var(--petal); }
.rs-thumb.p-eyes { --pbg: var(--lilac); }
.rs-thumb.p-lips { --pbg: var(--blush); }
.rs-thumb.p-tools { --pbg: var(--almond); }
.rs-thumb .slot, .rs-palette { background: radial-gradient(circle, rgba(255, 255, 255, .85) 2px, transparent 2.5px) 0 0 / 14px 14px, var(--pbg); }
.rs-thumb .slot-label { font-size: 8px; }
.rs-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; aspect-ratio: 1; padding: 12px; --pbg: var(--lilac); }
.rs-palette span { border-radius: 3px; background-size: cover; }
.rs-cat { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); }
.rs-name { display: block; margin: 2px 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; text-decoration: none; }
.rs-name:hover { font-style: italic; color: var(--rose-ink); }
.rs-meta { margin: 0; font-size: 12px; color: var(--graphite); }
.rs-add { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; background: var(--espresso); color: var(--paper); font-size: 19px; transition: background .3s; }
.rs-add:hover, .rs-add.done { background: var(--rose-ink); }

.rs-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.rs-col { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 10px 14px; background: #fff; border-radius: 16px; text-decoration: none; box-shadow: 0 0 0 1px var(--espresso), 0 24px 34px -24px rgba(64, 46, 42, .5); transition: translate .4s var(--ease); }
.rs-col:hover { translate: 0 -6px; }
.rs-col .slot { border-radius: 999px 999px 6px 6px; }
.rs-col-n { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--rose-ink); }
.rs-col-name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.rs-col-name .script { color: var(--rose-ink); font-size: 1.15em; }
.rs-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.rs-look { display: block; text-decoration: none; }
.rs-look .slot { border-radius: 16px; }
.rs-look-name { display: block; margin-top: 8px; font-family: var(--serif); font-size: 20px; }
.rs-look:hover .rs-look-name { font-style: italic; color: var(--rose-ink); }
.rs-pages { list-style: none; margin: 0; padding: 0; }
.rs-pages a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 24px; }
.rs-pages a:hover { color: var(--rose-ink); font-style: italic; }
.rs-pages a:hover .arrow { width: 50px; }

.rs-answer { margin-bottom: 40px; padding: 26px 30px; border-radius: 22px; background: var(--espresso); color: var(--paper); }
.rs-answer-v { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-size: 48px; line-height: 1.1; color: var(--blush); }
.rs-answer p { margin: 0 0 10px; }
.rs-answer em { font-family: var(--serif); font-size: 1.2em; }
.rs-answer .text-link { color: var(--blush); }
.rs-empty { padding: 50px 30px; text-align: center; background: radial-gradient(circle, rgba(255, 255, 255, .85) 2.6px, transparent 3.1px) 0 0 / 24px 24px, var(--petal); border-radius: 26px; }
.rs-empty-t { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 48px); line-height: 1.2; }
.rs-empty-t .script { color: var(--rose-ink); }
.rs-empty p:not(.rs-empty-t) { margin: 0 0 20px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 95; max-width: calc(100vw - 32px); padding: 14px 24px; border-radius: 999px; background: var(--espresso); color: var(--paper); font-size: 13px; translate: -50% 180%; transition: translate .5s var(--ease); box-shadow: 0 20px 40px -20px rgba(64, 46, 42, .6); }
.toast.show { translate: -50% 0; }
.toast b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; }
.toast a { margin-left: 8px; color: var(--blush); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sr-spark { display: none; }
  .sr-results { grid-template-columns: 1fr; }
  .sr-filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .sr-cats { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .sr-cats button { font-size: 22px; }
  .sr-count { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sr-title { font-size: 18vw; }
  .sr-form input { font-size: 24px; padding-right: 60px; }
  .sr-key { display: none; }
  .sr-clear { right: 0; }
  .sr-filters { grid-template-columns: 1fr; }
  .rs-product { grid-template-columns: 78px 1fr; }
  .rs-name { font-size: 22px; }
}
