/* Craftier Perfume Finder 1.6.0 — discovery interface.
   Every rule is scoped to .cfp-* so the theme's header, footer and other pages are untouched. */

/* ---------- Tokens ---------- */
.cfp-finder, .cfp-dialog, .cfp-launch {
  --cfp-ink: #161619;
  --cfp-muted: #6b6b76;
  --cfp-line: #e6e5ec;
  --cfp-surface: #fff;
  --cfp-tint: #f6f5fa;
  --cfp-lilac: #b9b4f0;
  --cfp-blush: #f3b9c6;
  --cfp-champagne: #f1d9a8;
  --cfp-sky: #a9d4f2;
  --cfp-ease: cubic-bezier(.2, .7, .2, 1);
  --cfp-field: 68px;
  --cfp-sticky-top: 0px;
}

/* ---------- Page title on the finder page ----------
   The finder brings its own headline, so the theme's page title stays in the
   document for search engines and screen readers but is not drawn. */
body.cfp-page .entry-header,
.entry-header:has(+ .entry-content > .cfp-finder--page) {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Shell ---------- */
.cfp-finder { position: relative; width: 100%; color: var(--cfp-ink); font-family: inherit; text-align: start; isolation: isolate; }
.cfp-finder *, .cfp-finder *::before, .cfp-finder *::after { box-sizing: border-box; }
.cfp-finder [hidden], .cfp-dialog:not([open]) { display: none !important; }
.cfp-finder :focus-visible, .cfp-close:focus-visible, .cfp-launch:focus-visible { outline: 2px solid var(--cfp-ink); outline-offset: 3px; }
.cfp-finder--page { padding-block-start: clamp(28px, 9vh, 104px); min-height: clamp(380px, 58vh, 620px); transition: padding .6s var(--cfp-ease), min-height .6s var(--cfp-ease); }
.cfp-finder--page.cfp-docked { padding-block-start: 0; min-height: 0; }

/* ---------- Atmosphere ---------- */
.cfp-mist { position: absolute; z-index: -1; inset-block-start: -48px; inset-inline: 0; height: 560px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 30%, transparent 100%);
  transition: opacity .6s var(--cfp-ease); }
.cfp-mist i { position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; opacity: .5; will-change: transform; }
.cfp-mist i:nth-child(1) { inset-inline-start: 2%; inset-block-start: 4%; background: radial-gradient(closest-side, var(--cfp-lilac), transparent); animation: cfp-drift-a 46s ease-in-out infinite alternate; }
.cfp-mist i:nth-child(2) { inset-inline-end: 0; inset-block-start: -6%; background: radial-gradient(closest-side, var(--cfp-blush), transparent); animation: cfp-drift-b 58s ease-in-out infinite alternate; }
.cfp-mist i:nth-child(3) { inset-inline-start: 26%; inset-block-start: 30%; width: 48%; background: radial-gradient(closest-side, var(--cfp-champagne), transparent); animation: cfp-drift-c 70s ease-in-out infinite alternate; }
.cfp-docked .cfp-mist { opacity: .45; }
@keyframes cfp-drift-a { to { transform: translate3d(14%, 9%, 0) scale(1.12); } }
@keyframes cfp-drift-b { to { transform: translate3d(-13%, 12%, 0) scale(.9); } }
@keyframes cfp-drift-c { to { transform: translate3d(10%, -12%, 0) scale(1.14); } }

/* ---------- Headline ---------- */
.cfp-intro, .cfp-prompts { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--cfp-ease), opacity .35s ease, visibility .6s; }
.cfp-intro-inner, .cfp-prompts-inner { min-height: 0; overflow: hidden; }
.cfp-docked .cfp-intro, .cfp-docked .cfp-prompts { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.cfp-intro-inner { text-align: center; }
.cfp-finder .cfp-headline { max-width: 17em; margin: 0 auto; padding: 0; color: var(--cfp-ink); font-family: inherit; font-size: clamp(30px, 5.2vw, 58px); font-weight: 300; line-height: 1.08; letter-spacing: -.022em; text-transform: none; text-wrap: balance; }
.cfp-finder .cfp-lede { max-width: 34em; margin: 18px auto 0; padding: 0 0 clamp(28px, 4.5vh, 44px); color: var(--cfp-muted); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.55; text-wrap: pretty; }

/* ---------- Search field ---------- */
.cfp-bar { position: relative; z-index: 20; width: 100%; max-width: 760px; margin-inline: auto; transition: max-width .6s var(--cfp-ease), padding .4s var(--cfp-ease); }
.cfp-docked .cfp-bar { position: sticky; inset-block-start: var(--cfp-sticky-top); max-width: 100%; padding-block: 14px; transition: max-width .6s var(--cfp-ease), padding .4s var(--cfp-ease), inset-block-start .25s ease; }
.cfp-docked .cfp-bar::before { content: ""; position: absolute; z-index: -1; inset: 0 -12px -18px; pointer-events: none;
  background: linear-gradient(to bottom, var(--cfp-surface) 62%, rgba(255, 255, 255, 0)); }
.cfp-bar-spacer { display: none; }
.cfp-pinned .cfp-bar-spacer { display: block; }
.cfp-pinned .cfp-bar { position: fixed; inset-block-start: var(--cfp-sticky-top); max-width: none; margin: 0; transition: none; }
.cfp-finder .cfp-form { position: relative; display: flex; align-items: center; gap: 4px; height: var(--cfp-field); margin: 0; padding: 0; padding-inline: 22px 10px; border: 0; border-radius: 999px; background: none; isolation: isolate;
  box-shadow: 0 1px 2px rgba(22, 22, 25, .05), 0 22px 60px -24px rgba(110, 98, 190, .45); transition: box-shadow .4s var(--cfp-ease), height .5s var(--cfp-ease); }
.cfp-finder .cfp-form::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--cfp-surface); }
.cfp-docked .cfp-form { --cfp-field: 58px; box-shadow: 0 1px 2px rgba(22, 22, 25, .05), 0 14px 36px -22px rgba(110, 98, 190, .4); }
.cfp-finder .cfp-form:focus-within { box-shadow: 0 1px 2px rgba(22, 22, 25, .05), 0 26px 70px -22px rgba(110, 98, 190, .62); }

/* Soft halo: the state sets its strength, and a very slow breath always runs inside it. */
.cfp-glow { position: absolute; z-index: -3; inset: -14px -10px; border-radius: 999px; pointer-events: none; opacity: .5; filter: blur(22px); transition: opacity .6s var(--cfp-ease); }
.cfp-glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--cfp-lilac), var(--cfp-blush) 38%, var(--cfp-champagne) 68%, var(--cfp-sky)); animation: cfp-breathe 14s ease-in-out infinite alternate; }
.cfp-form:focus-within .cfp-glow, .cfp-loading .cfp-glow { opacity: .85; }
.cfp-docked .cfp-form:not(:focus-within) .cfp-glow { opacity: .3; }
.cfp-docked.cfp-loading .cfp-form .cfp-glow { opacity: .85; }
@keyframes cfp-breathe { from { opacity: .55; transform: scaleX(.96); } to { opacity: 1; transform: scaleX(1.02); } }

/* Iridescent rim: no border at rest. It fades in on focus and while a search runs.
   A rotating disc clipped to the pill (transform and opacity only). */
.cfp-aura { position: absolute; z-index: -2; inset: -2px; border-radius: 999px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .7s var(--cfp-ease); }
.cfp-form:focus-within .cfp-aura, .cfp-loading .cfp-aura { opacity: 1; transition-duration: .45s; }
.cfp-aura i, .cfp-aura b { position: absolute; left: 50%; top: 50%; width: 104%; aspect-ratio: 1; margin: -52% 0 0 -52%; border-radius: 50%; }
.cfp-aura i { background: conic-gradient(var(--cfp-lilac), var(--cfp-blush), var(--cfp-champagne), var(--cfp-sky), var(--cfp-lilac)); animation: cfp-turn 16s linear infinite; }
.cfp-aura b { opacity: 0; background: conic-gradient(transparent 0 72%, var(--cfp-ink) 97%, transparent); transition: opacity .3s ease; }
.cfp-loading .cfp-aura b { opacity: 1; animation: cfp-turn 1.5s linear infinite; }
@keyframes cfp-turn { to { transform: rotate(360deg); } }

/* Leading orb, replaced by the photo while a photo search is shown. */
.cfp-orb { flex: none; width: 16px; height: 16px; margin-inline-end: 10px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 14%, transparent 42%), conic-gradient(var(--cfp-lilac), var(--cfp-blush), var(--cfp-champagne), var(--cfp-sky), var(--cfp-lilac));
  box-shadow: 0 0 0 4px rgba(185, 180, 240, .22); }
.cfp-loading .cfp-orb { animation: cfp-pulse 1.1s ease-in-out infinite alternate; }
@keyframes cfp-pulse { to { transform: scale(1.28); box-shadow: 0 0 0 7px rgba(243, 185, 198, .28); } }
.cfp-thumb { position: relative; flex: none; width: 40px; height: 40px; margin-inline: -8px 10px; border-radius: 50%; overflow: hidden; background: var(--cfp-tint); }
.cfp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cfp-thumb::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 40%; opacity: 0; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .85)); }
.cfp-loading .cfp-thumb::after { opacity: 1; animation: cfp-scan 1.3s ease-in-out infinite alternate; }
@keyframes cfp-scan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
.cfp-has-photo .cfp-orb { display: none; }

.cfp-finder .cfp-form .cfp-input { flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: var(--cfp-ink); font: inherit; font-size: 18px; line-height: 1.3; letter-spacing: 0; -webkit-appearance: none; appearance: none; }
.cfp-finder .cfp-form .cfp-input:focus { border: 0; outline: 0; box-shadow: none; background: transparent; }
.cfp-finder .cfp-form .cfp-input::placeholder { color: var(--cfp-muted); opacity: 1; }
.cfp-finder .cfp-form .cfp-input::-webkit-search-cancel-button, .cfp-finder .cfp-form .cfp-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

.cfp-finder .cfp-form button { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: var(--cfp-ink); line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .25s ease, color .25s ease, transform .25s var(--cfp-ease), opacity .25s ease; }
.cfp-finder .cfp-form button svg { display: block; width: 22px; height: 22px; fill: none; }
.cfp-finder .cfp-form .cfp-clear { color: var(--cfp-muted); }
.cfp-finder .cfp-form .cfp-clear svg { width: 18px; height: 18px; }
.cfp-finder .cfp-form .cfp-submit { position: relative; width: 48px; height: 48px; margin-inline-start: 4px; background: var(--cfp-ink); color: #fff; }
.cfp-finder .cfp-form .cfp-submit svg { width: 20px; height: 20px; transition: opacity .2s ease, transform .3s var(--cfp-ease); }
.cfp-docked .cfp-form .cfp-submit { width: 42px; height: 42px; }
.cfp-finder .cfp-form .cfp-submit::after { content: ""; position: absolute; inset: 13px; border: 2px solid rgba(255, 255, 255, .28); border-block-start-color: #fff; border-radius: 50%; opacity: 0; }
.cfp-loading .cfp-form .cfp-submit svg { opacity: 0; transform: scale(.6); }
.cfp-loading .cfp-form .cfp-submit::after { opacity: 1; animation: cfp-turn .8s linear infinite; }
.cfp-finder .cfp-form button:disabled { cursor: progress; }
.cfp-finder .cfp-form .cfp-camera:disabled { opacity: .4; }
.cfp-finder .cfp-form .cfp-camera[aria-expanded="true"] { background: var(--cfp-tint); }
@media (hover: hover) {
  .cfp-finder .cfp-form .cfp-camera:hover, .cfp-finder .cfp-form .cfp-clear:hover { background: var(--cfp-tint); color: var(--cfp-ink); }
  .cfp-finder .cfp-form .cfp-submit:hover:not(:disabled) { background: #000; transform: scale(1.06); }
}
.cfp-finder .cfp-form button:active:not(:disabled) { transform: scale(.94); }
.cfp-dropping .cfp-form { box-shadow: 0 0 0 4px rgba(185, 180, 240, .45), 0 26px 70px -22px rgba(110, 98, 190, .62); }

/* ---------- Photo options ---------- */
.cfp-finder .cfp-photo-menu { position: absolute; z-index: 5; inset-inline-end: 0; inset-block-start: calc(100% + 12px); width: min(300px, 100%); padding: 8px; border: 1px solid var(--cfp-line); border-radius: 20px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 24px 60px -20px rgba(22, 22, 25, .28); animation: cfp-pop .28s var(--cfp-ease); transform-origin: top center; }
.cfp-docked .cfp-photo-menu { inset-block-start: calc(100% - 2px); }
@keyframes cfp-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.cfp-finder .cfp-photo-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; margin: 0; padding: 10px 14px; border: 0; border-radius: 14px; background: transparent; box-shadow: none; color: var(--cfp-ink); font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.2; text-align: start; text-transform: none; cursor: pointer; transition: background-color .2s ease; }
.cfp-finder .cfp-photo-menu button svg { flex: none; width: 20px; height: 20px; fill: none; }
.cfp-finder .cfp-photo-menu button:hover, .cfp-finder .cfp-photo-menu button:focus-visible { background: var(--cfp-tint); color: var(--cfp-ink); }
.cfp-finder .cfp-photo-hint { margin: 4px 0 0; padding: 10px 14px 8px; border-block-start: 1px solid var(--cfp-line); color: var(--cfp-muted); font-size: 12.5px; line-height: 1.45; }

/* ---------- Example searches ---------- */
.cfp-prompts-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 24px 6px; }
.cfp-prompts-label { flex: none; color: var(--cfp-muted); font-size: 14px; }
.cfp-finder .cfp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cfp-finder .cfp-chips li { margin: 0; padding: 0; list-style: none; }
.cfp-finder .cfp-chip { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 8px 16px; border: 1px solid var(--cfp-line); border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: none; color: var(--cfp-ink); font: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.2; text-transform: none; white-space: nowrap; cursor: pointer; transition: border-color .25s ease, background-color .25s ease, transform .25s var(--cfp-ease); }
@media (hover: hover) { .cfp-finder .cfp-chip:hover { border-color: var(--cfp-ink); background: #fff; color: var(--cfp-ink); transform: translateY(-1px); } }
.cfp-finder .cfp-chip:active { transform: scale(.97); }

/* ---------- Feedback: loading, count, messages, empty ---------- */
.cfp-thinking, .cfp-empty-art, .cfp-empty-hint, .cfp-skeleton { display: none; }
.cfp-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.cfp-finder .cfp-status { order: 2; min-height: 0; margin: 0; padding: 0; color: var(--cfp-muted); font-size: 14px; line-height: 1.5; }
.cfp-finder .cfp-status:empty { display: none; }
.cfp-finder .cfp-results-title { order: 1; margin: 0; padding: 0; color: var(--cfp-ink); font: inherit; font-size: clamp(22px, 2.6vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; text-transform: none; }
.cfp-finder .cfp-results-description { margin: 12px 0 20px; color: var(--cfp-muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }

/* Messages outside a result set (connection, validation, photo errors). */
.cfp-finder:not([data-cfp-state="results"]):not([data-cfp-state="empty"]):not([data-cfp-state="loading"]) .cfp-meta { justify-content: center; }
.cfp-finder:not([data-cfp-state="results"]):not([data-cfp-state="empty"]):not([data-cfp-state="loading"]) .cfp-status { max-width: 560px; margin-block-start: 22px; padding: 12px 18px; border: 1px solid var(--cfp-line); border-radius: 16px; background: var(--cfp-tint); color: var(--cfp-ink); text-align: center; animation: cfp-rise .4s var(--cfp-ease); }

/* Loading: the live region keeps its text for assistive tech; the visible line is .cfp-thinking. */
[data-cfp-state="loading"] .cfp-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[data-cfp-state="loading"] .cfp-thinking { display: flex; align-items: center; gap: 12px; min-height: 34px; margin-block: 10px 22px; color: var(--cfp-ink); font-size: 16px; }
.cfp-thinking-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cfp-ink); animation: cfp-blink 1s ease-in-out infinite alternate; }
@keyframes cfp-blink { from { opacity: .2; transform: scale(.7); } }
.cfp-thinking-text { animation: cfp-rise .45s var(--cfp-ease); }
.cfp-docked[data-cfp-state="loading"] .cfp-skeleton, .cfp-docked[data-cfp-state="pending"] .cfp-skeleton { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cfp-docked[data-cfp-state="pending"] .cfp-skeleton { margin-block-start: 66px; opacity: .55; }
.cfp-skeleton-card span { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--cfp-tint) 30%, #fff 50%, var(--cfp-tint) 70%) 0 0 / 300% 100%; animation: cfp-shimmer 1.6s linear infinite; }
.cfp-skeleton-card span:nth-child(1) { aspect-ratio: 680 / 920; border-radius: 18px; }
.cfp-skeleton-card span:nth-child(2) { width: 72%; height: 14px; margin-block-start: 18px; }
.cfp-skeleton-card span:nth-child(3) { width: 38%; height: 12px; margin-block-start: 10px; }
.cfp-skeleton-card:nth-child(2) span:nth-child(1) { background-color: #f7eef0; }
@keyframes cfp-shimmer { to { background-position: -150% 0; } }

/* Results header. */
[data-cfp-state="results"] .cfp-meta { margin-block: 14px 26px; animation: cfp-rise .5s var(--cfp-ease); }
[data-cfp-state="results"] .cfp-status strong { color: var(--cfp-ink); font-weight: 600; }

/* No matches. */
[data-cfp-state="empty"] .cfp-results-title { display: none !important; }
[data-cfp-state="empty"] .cfp-empty-art { display: flex; justify-content: center; margin-block-start: 34px; color: var(--cfp-ink); animation: cfp-rise .5s var(--cfp-ease); }
[data-cfp-state="empty"] .cfp-empty-art svg { width: 104px; height: 104px; padding: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, transparent 60%), linear-gradient(135deg, rgba(185, 180, 240, .4), rgba(243, 185, 198, .4) 55%, rgba(241, 217, 168, .45)); fill: none; }
[data-cfp-state="empty"] .cfp-meta { justify-content: center; margin-block-start: 22px; }
[data-cfp-state="empty"] .cfp-status { max-width: 22em; color: var(--cfp-ink); font-size: clamp(20px, 2.4vw, 26px); font-weight: 400; line-height: 1.3; letter-spacing: -.01em; text-align: center; text-wrap: balance; animation: cfp-rise .5s var(--cfp-ease) .05s both; }
.cfp-finder[data-cfp-state="empty"] .cfp-empty-hint { display: block; max-width: 34em; margin: 12px auto 0; padding: 0 0 12px; color: var(--cfp-muted); font-size: 15px; line-height: 1.55; text-align: center; text-wrap: pretty; animation: cfp-rise .5s var(--cfp-ease) .1s both; }
@keyframes cfp-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Product grid ----------
   Same grid rules as 1.4.1. Cards are the theme's own WooCommerce template and
   are not restyled here: image, badge, title, rating, price and hover controls
   all come from the theme. */
.cfp-product-grid ul.products { display: grid !important; grid-template-columns: repeat(var(--cfp-columns, 3), minmax(0, 1fr)); gap: 24px; margin: 0 !important; padding: 0 !important; }
.cfp-product-grid ul.products::before, .cfp-product-grid ul.products::after { display: none !important; }
.cfp-product-grid ul.products > li.product { float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; min-width: 0; }
.cfp-product-grid ul.products > li.product.cfp-enter { animation: cfp-card .5s ease both; animation-delay: calc(var(--cfp-i, 0) * 40ms); }
@keyframes cfp-card { from { opacity: 0; } }
.cfp-results { transition: opacity .25s ease; }
.cfp-filtering .cfp-results { opacity: .45; pointer-events: none; }

/* ---------- Gender tabs ---------- */
.cfp-finder .cfp-genders { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; animation: cfp-rise .5s var(--cfp-ease) .05s both; }
.cfp-finder .cfp-gender { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin: 0; padding: 8px 18px; border: 1px solid var(--cfp-line); border-radius: 999px; background: var(--cfp-surface); box-shadow: none; color: var(--cfp-ink); font: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.2; text-transform: none; white-space: nowrap; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.cfp-finder .cfp-gender span { color: var(--cfp-muted); font-size: 13px; font-variant-numeric: tabular-nums; transition: color .25s ease; }
.cfp-finder .cfp-gender[aria-pressed="true"] { border-color: var(--cfp-ink); background: var(--cfp-ink); color: #fff; }
.cfp-finder .cfp-gender[aria-pressed="true"] span { color: rgba(255, 255, 255, .72); }
@media (hover: hover) { .cfp-finder .cfp-gender:hover:not([aria-pressed="true"]) { border-color: var(--cfp-ink); background: var(--cfp-surface); color: var(--cfp-ink); } }
.cfp-finder:not([data-cfp-state="results"]) .cfp-genders { display: none; }
[data-cfp-state="results"] .cfp-meta:has(+ .cfp-genders:not([hidden])) { margin-block-end: 16px; }

/* ---------- Incremental loading ---------- */
.cfp-more { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 28px 0 8px; color: var(--cfp-muted); font-size: 14px; text-align: center; }
.cfp-finder .cfp-more-status:not(:empty)::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 10px; border-radius: 50%; background: var(--cfp-ink); animation: cfp-blink 1s ease-in-out infinite alternate; }
.cfp-finder .cfp-retry { min-height: 44px; margin: 0; padding: 8px 20px; border: 1px solid var(--cfp-ink); border-radius: 999px; background: transparent; box-shadow: none; color: var(--cfp-ink); font: inherit; font-size: 14px; letter-spacing: 0; line-height: 1.2; text-transform: none; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.cfp-finder .cfp-retry:hover { background: var(--cfp-ink); color: #fff; }

/* ---------- You may also like ---------- */
.cfp-recommendations { margin-block-start: clamp(48px, 7vw, 84px); padding-block-start: clamp(32px, 4.5vw, 52px); border-block-start: 1px solid var(--cfp-line); animation: cfp-rise .6s var(--cfp-ease) .15s both; }
.cfp-finder .cfp-recommendations h3 { margin: 0 0 26px; padding: 0; color: var(--cfp-ink); font-family: inherit; font-size: clamp(22px, 2.6vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; text-transform: none; }

/* ---------- Popup ---------- */
.cfp-dialog { box-sizing: border-box; width: min(1100px, calc(100vw - 40px)); max-width: none; max-height: 88dvh; margin: auto; padding: 0 32px 32px; border: 0; border-radius: 28px; background: var(--cfp-surface); color: var(--cfp-ink); box-shadow: 0 40px 120px -20px rgba(22, 22, 25, .45); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.cfp-dialog[open] { animation: cfp-dialog-in .45s var(--cfp-ease); }
.cfp-dialog::backdrop { background: rgba(22, 22, 25, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes cfp-dialog-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.cfp-dialog-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px 6px; }
.cfp-dialog .cfp-dialog-head h2 { margin: 0; padding: 0; color: var(--cfp-ink); font-family: inherit; font-size: clamp(24px, 3.4vw, 34px); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; text-transform: none; }
.cfp-dialog .cfp-close { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--cfp-line); border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: none; color: var(--cfp-ink); line-height: 1; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.cfp-dialog .cfp-close svg { width: 18px; height: 18px; fill: none; }
.cfp-dialog .cfp-close:hover { border-color: var(--cfp-ink); background: var(--cfp-ink); color: #fff; }
.cfp-finder--dialog { min-height: 300px; }
.cfp-finder--dialog .cfp-mist { inset-block-start: -110px; inset-inline: -32px; height: 420px; }
.cfp-finder--dialog .cfp-intro-inner { text-align: start; }
.cfp-finder--dialog .cfp-lede { margin: 6px 0 0; padding-block-end: 24px; }
.cfp-finder--dialog .cfp-bar { max-width: 100%; }
.cfp-finder--dialog .cfp-prompts-inner { justify-content: flex-start; }
.cfp-finder--dialog .cfp-chips { justify-content: flex-start; }
.cfp-finder--dialog.cfp-docked .cfp-bar { inset-block-start: 0; }

.cfp-launch { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 22px 10px 18px; border: 1px solid var(--cfp-line); border-radius: 999px; background: var(--cfp-surface); color: var(--cfp-ink); font: inherit; font-size: 15px; letter-spacing: 0; line-height: 1.2; text-align: start; text-transform: none; cursor: pointer; transition: border-color .25s ease, box-shadow .3s ease; }
.cfp-launch svg { fill: none; }
.cfp-launch:hover { border-color: var(--cfp-ink); background: var(--cfp-surface); color: var(--cfp-ink); box-shadow: 0 14px 36px -22px rgba(110, 98, 190, .6); }
.cfp-modal-open { overflow: hidden; }
.cfp-header-enabled .header-search .quick-links, .cfp-header-enabled .header-search__results { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .cfp-finder, .cfp-dialog { --cfp-field: 58px; }
  .cfp-finder--page { padding-block-start: clamp(12px, 5vh, 44px); min-height: clamp(340px, 54vh, 480px); }
  .cfp-mist { height: 440px; -webkit-mask-image: radial-gradient(ellipse 90% 58% at 50% 40%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 90% 58% at 50% 40%, #000 30%, transparent 100%); }
  .cfp-mist i { width: 92%; }
  .cfp-mist i:nth-child(3) { width: 80%; inset-inline-start: 10%; }
  .cfp-finder .cfp-form { padding-inline: 16px 6px; gap: 0; }
  .cfp-docked .cfp-form { --cfp-field: 54px; }
  .cfp-docked .cfp-bar { padding-block: 10px; }
  .cfp-finder .cfp-form .cfp-input { font-size: 16px; }
  .cfp-finder .cfp-form button { width: 44px; height: 44px; }
  .cfp-finder .cfp-form .cfp-submit, .cfp-docked .cfp-form .cfp-submit { width: 44px; height: 44px; margin-inline-start: 2px; }
  .cfp-finder .cfp-form .cfp-submit::after { inset: 12px; }
  .cfp-orb { margin-inline-end: 8px; }
  .cfp-prompts-inner { display: block; padding-block: 20px 4px; }
  .cfp-prompts-label { display: none; }
  .cfp-finder .cfp-chips { flex-wrap: nowrap; justify-content: flex-start; margin-inline: -15px; padding: 2px 15px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cfp-finder .cfp-chips::-webkit-scrollbar { display: none; }
  .cfp-finder .cfp-chips li { flex: none; scroll-snap-align: start; }
  .cfp-finder .cfp-chip { min-height: 44px; }
  .cfp-finder .cfp-photo-menu { width: 100%; }
  .cfp-product-grid ul.products, .cfp-docked[data-cfp-state="loading"] .cfp-skeleton, .cfp-docked[data-cfp-state="pending"] .cfp-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cfp-finder .cfp-genders { flex-wrap: nowrap; margin-inline: -15px; margin-block-end: 18px; padding: 2px 15px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cfp-finder .cfp-genders::-webkit-scrollbar { display: none; }
  .cfp-finder .cfp-gender { flex: none; min-height: 44px; }
  .cfp-skeleton-card span:nth-child(1) { border-radius: 14px; }
  [data-cfp-state="results"] .cfp-meta { margin-block: 8px 18px; }
  .cfp-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0 16px 24px; border-radius: 0; }
  .cfp-dialog-head { padding-block: 14px 4px; }
  .cfp-finder--dialog .cfp-mist { inset-inline: -16px; }
  .cfp-finder--dialog .cfp-chips { margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 359px) { .cfp-product-grid ul.products { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cfp-finder *, .cfp-finder *::before, .cfp-finder *::after, .cfp-finder, .cfp-dialog, .cfp-dialog[open], .cfp-launch {
    animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .cfp-loading .cfp-form .cfp-submit::after { animation: cfp-fade 1s ease-in-out infinite alternate !important; border-color: #fff; }
  .cfp-loading .cfp-aura b { opacity: 0; }
}
@keyframes cfp-fade { from { opacity: .25; } }

/* ---------- Forced colours / print ---------- */
@media (forced-colors: active) {
  .cfp-finder .cfp-form { border: 1px solid CanvasText; }
  .cfp-mist, .cfp-glow, .cfp-aura { display: none; }
}
@media print { .cfp-mist, .cfp-glow, .cfp-aura, .cfp-bar, .cfp-prompts, .cfp-skeleton { display: none !important; } }
