/* Direction B explorer layout for /cruelty-free-brands/ (Figma v6 dark / v7 light). */

.cf-explorer {
  --cf-x-content-max: 1216px;
  --cf-x-inline-pad: max(20px, 5vw);
  --cf-x-nav-scroll-offset: calc(var(--intel-bar-height, 64px) + 12px);
  --cf-x-bg: #f7f8fb;
  --cf-x-ink: #0f172a;
  --cf-x-muted: #5b6480;
  --cf-x-soft: #94a3b8;
  --cf-x-accent: #2c457d;
  --cf-x-accent-bright: #5b8def;
  --cf-x-surface: #ffffff;
  --cf-x-surface-2: #eef0f6;
  --cf-x-tile: #ffffff;
  --cf-x-tile-border: rgba(44, 69, 125, 0.14);
  --cf-x-tile-active: #2c457d;
  --cf-x-tile-active-ink: #ffffff;
  --cf-x-tile-active-count: #ffffff;
  --cf-x-sidebar: #ffffff;
  --cf-x-sidebar-border: rgba(44, 69, 125, 0.12);
  --cf-x-card: #ffffff;
  --cf-x-card-border: rgba(44, 69, 125, 0.1);
  --cf-x-card-hover: #2c457d;
  --cf-x-grid-line: rgba(91, 141, 239, 0.08);
  --cf-x-pill: #eef3ff;
  --cf-x-pill-ink: #2c457d;
  --cf-x-search-bg: #ffffff;
  --cf-x-search-border: rgba(44, 69, 125, 0.12);
  --cf-x-search-ink: #0f172a;
  --cf-x-search-placeholder: #64748b;
  --cf-x-search-icon: #475569;
  --cf-x-search-hint: #64748b;
  --cf-x-globe-banner: #ffffff;
  --cf-x-check-border: rgba(44, 69, 125, 0.28);
  --cf-x-check-active: #2c457d;
  --cf-x-disclaimer: #e6ebf5;
}

html[data-theme="dark"] .cf-explorer {
  --cf-x-bg: #0a0f1e;
  --cf-x-ink: #f1f5f9;
  --cf-x-muted: #94a3b8;
  --cf-x-soft: #7b8aa0;
  --cf-x-accent: #8db4ff;
  --cf-x-accent-bright: #8db4ff;
  --cf-x-surface: #141b2d;
  --cf-x-surface-2: #1a2440;
  --cf-x-tile: #141b2d;
  --cf-x-tile-border: #24304a;
  --cf-x-tile-active: #2c457d;
  --cf-x-tile-active-ink: #ffffff;
  --cf-x-tile-active-count: #ffffff;
  --cf-x-sidebar: #141b2d;
  --cf-x-sidebar-border: #24304a;
  --cf-x-card: #1a2440;
  --cf-x-card-border: rgba(255, 255, 255, 0.08);
  --cf-x-card-hover: #8db4ff;
  --cf-x-grid-line: rgba(141, 180, 255, 0.05);
  --cf-x-pill: #1a2440;
  --cf-x-pill-ink: #8db4ff;
  --cf-x-search-bg: #141b2d;
  --cf-x-search-border: #24304a;
  --cf-x-search-ink: #f1f5f9;
  --cf-x-search-placeholder: #7b8aa0;
  --cf-x-search-icon: #94a3b8;
  --cf-x-search-hint: #7b8aa0;
  --cf-x-globe-banner: #141b2d;
  --cf-x-check-border: #3a4766;
  --cf-x-check-active: #8db4ff;
  --cf-x-disclaimer: #1a2440;
}

.cf-explorer.niche-page.section,
.cf-explorer.niche-page.section.grey {
  background: var(--cf-x-bg);
  color: var(--cf-x-ink);
}

.cf-explorer .grid-wrapper {
  max-width: var(--cf-x-content-max);
  padding-left: var(--cf-x-inline-pad);
  padding-right: var(--cf-x-inline-pad);
}

/* Hero */
.cf-explorer-hero {
  position: relative;
  padding: 48px var(--cf-x-inline-pad) 40px;
  overflow: hidden;
  background: var(--cf-x-bg);
}

@media (min-width: 900px) {
  .cf-explorer-hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }
}

.cf-explorer-hero__grid {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto 0;
  height: min(760px, 100%);
  opacity: 1;
  background-image:
    linear-gradient(to right, var(--cf-x-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--cf-x-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.cf-explorer-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--cf-x-content-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cf-explorer-hero .cf-breadcrumb {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--cf-x-muted);
}

.cf-explorer-hero .cf-breadcrumb a,
.cf-explorer-hero .cf-breadcrumb-sep {
  color: var(--cf-x-muted);
}

.cf-explorer-hero .cf-breadcrumb-current {
  color: var(--cf-x-ink);
  font-weight: 600;
}

.cf-explorer-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cf-x-pill);
  color: var(--cf-x-pill-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.cf-explorer-hero__pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cf-explorer-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 3.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cf-x-ink);
}

@media (max-width: 767px) {
  .cf-explorer-hero h1 {
    min-height: 11rem;
  }

  .cf-explorer-hero__lead {
    min-height: 7.5rem;
  }

  .cf-explorer-search {
    min-height: 5rem;
  }
}

@media (min-width: 1100px) {
  .cf-explorer-hero h1 {
    font-size: 3.875rem;
  }
}

/* Win over niche-page.section.grey em { color: #f1f5f9 !important } */
html[data-theme="dark"] .niche-page.section.grey .cf-explorer-hero h1 em {
  color: #8db4ff !important;
}

html[data-theme="light"] .niche-page.section.grey .cf-explorer-hero h1 em {
  color: #2c457d !important;
}

.cf-explorer-hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--cf-x-muted);
}

.cf-explorer-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--cf-x-search-border);
  background: var(--cf-x-search-bg);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .cf-explorer-search {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cf-explorer-search.is-pinned {
  position: fixed;
  z-index: 40;
  top: var(--cf-x-nav-scroll-offset);
  left: max(var(--cf-x-inline-pad), calc((100% - var(--cf-x-content-max)) / 2));
  right: auto;
  width: min(var(--cf-x-content-max), calc(100% - (2 * var(--cf-x-inline-pad))));
  margin: 0;
  background-color: var(--cf-x-search-bg);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.06),
    0 8px 24px rgba(15, 23, 42, 0.06),
    0 0 0 12px var(--cf-x-bg);
}

html[data-theme="dark"] .cf-explorer-search.is-pinned {
  background-color: var(--cf-x-search-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 12px var(--cf-x-bg);
}

.cf-explorer-search svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--cf-x-search-icon);
}

.cf-explorer-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--niche-font);
  font-size: 1rem;
  color: var(--cf-x-search-ink);
}

.cf-explorer-search input:focus {
  outline: none;
}

.cf-explorer-search input::placeholder {
  color: var(--cf-x-search-placeholder);
}

.cf-explorer-search__hint {
  flex-shrink: 0;
  padding: 0;
  color: var(--cf-x-search-hint);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

@media (min-width: 521px) {
  .cf-explorer-search input::placeholder {
    color: transparent;
  }
}

@media (max-width: 520px) {
  .cf-explorer-search__hint {
    display: none;
  }
}

/* Continent tiles */
.cf-continent-picker {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.cf-continent-tile {
  scroll-snap-align: start;
  flex: 0 0 min(189px, 44vw);
  min-height: 336px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 19px;
  border-radius: 22px;
  border: 1px solid var(--cf-x-tile-border);
  background: var(--cf-x-tile);
  color: var(--cf-x-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

@media (min-width: 1100px) {
  .cf-continent-picker {
    width: 100%;
  }

  .cf-continent-tile {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}

.cf-continent-tile.is-active,
.cf-continent-tile[aria-pressed="true"] {
  background: var(--cf-x-tile-active);
  border-color: var(--cf-x-tile-active);
  color: var(--cf-x-tile-active-ink);
  box-shadow: none;
}

.cf-continent-tile__art {
  position: relative;
  flex: 1 1 auto;
  min-height: 232px;
  width: 100%;
}

.cf-continent-tile__map {
  position: absolute;
  left: 0;
  top: 0;
  width: 153px;
  max-width: 100%;
  height: auto;
  max-height: 194px;
  object-fit: contain;
  object-position: left top;
  opacity: 0.95;
}

.cf-continent-tile__medallion {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 0 0 1px rgba(44, 69, 125, 0.1);
  flex-shrink: 0;
  pointer-events: none;
}

.cf-continent-tile__doodle {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cf-continent-tile__doodle--dark {
  display: none;
}

html[data-theme="dark"] .cf-continent-tile__medallion {
  background-color: var(--cf-x-tile, #141b2d);
  box-shadow: 0 0 0 1px var(--cf-x-tile-border, #24304a);
}

html[data-theme="dark"] .cf-continent-tile__doodle--light {
  display: none;
}

html[data-theme="dark"] .cf-continent-tile__doodle--dark {
  display: block;
}

.cf-continent-tile__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
}

.cf-continent-tile--unplaced {
  min-height: 0;
}

.cf-continent-tile--unplaced .cf-continent-tile__art {
  min-height: 96px;
  display: flex;
  align-items: flex-end;
}

.cf-continent-tile__plain {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  max-width: 16em;
}

.cf-continent-tile__count {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--cf-x-muted);
}

.cf-continent-tile.is-active .cf-continent-tile__name,
.cf-continent-tile[aria-pressed="true"] .cf-continent-tile__name,
.cf-continent-tile.is-active .cf-continent-tile__count,
.cf-continent-tile[aria-pressed="true"] .cf-continent-tile__count {
  color: var(--cf-x-tile-active-count, #ffffff);
}

html[data-theme="dark"] .cf-explorer.niche-page.section.grey .cf-continent-tile.is-active .cf-continent-tile__name,
html[data-theme="dark"] .cf-explorer.niche-page.section.grey .cf-continent-tile[aria-pressed="true"] .cf-continent-tile__name,
html[data-theme="dark"] .cf-explorer.niche-page.section.grey .cf-continent-tile.is-active .cf-continent-tile__count,
html[data-theme="dark"] .cf-explorer.niche-page.section.grey .cf-continent-tile[aria-pressed="true"] .cf-continent-tile__count {
  color: #ffffff !important;
}

.cf-continent-tile.is-active .cf-continent-tile__map,
.cf-continent-tile[aria-pressed="true"] .cf-continent-tile__map {
  filter: brightness(0) invert(1);
  opacity: 1;
}

html[data-theme="dark"] .cf-continent-tile:not(.is-active):not([aria-pressed="true"]) .cf-continent-tile__map {
  opacity: 1;
}

/* Browse layout (same 1216px shell as continent row) */
.cf-explorer-browse {
  width: 100%;
  margin: 0;
  max-width: none;
  padding: 8px var(--cf-x-inline-pad) 48px;
  box-sizing: border-box;
}

.cf-explorer-browse__inner {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: var(--cf-x-content-max);
  margin: 0 auto;
  min-width: 0;
}

@media (min-width: 960px) {
  .cf-explorer-browse {
    padding-bottom: 72px;
  }

  .cf-explorer-browse__inner {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

.cf-results {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cf-explorer-mobile-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (min-width: 960px) {
  .cf-explorer-mobile-bar {
    display: none;
  }
}

.cf-filter-open {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--cf-x-sidebar-border);
  background: var(--cf-x-sidebar);
  color: var(--cf-x-ink);
  font-family: var(--niche-font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.cf-sidebar {
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--cf-x-sidebar-border);
  background: var(--cf-x-sidebar);
}

@media (min-width: 960px) {
  .cf-sidebar {
    display: flex;
    position: sticky;
    top: var(--cf-x-nav-scroll-offset);
    align-self: start;
    max-height: calc(100vh - var(--intel-bar-height, 64px) - 32px);
    overflow: auto;
  }
}

.cf-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cf-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.cf-sidebar__clear {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--cf-x-accent-bright);
  font-family: var(--niche-font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.cf-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-filter-group__label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cf-x-muted);
}

.cf-explorer #cf-sidebar .cf-filter-option,
.cf-filter-sheet__panel .cf-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--cf-x-ink);
  position: relative;
}

.cf-filter-sheet__panel .cf-filter-option {
  min-height: 44px;
  padding: 8px 0;
  z-index: 1;
}

.cf-explorer #cf-sidebar .cf-filter-option input,
.cf-filter-sheet__panel .cf-filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.cf-explorer #cf-sidebar .cf-filter-option__box,
.cf-filter-sheet__panel .cf-filter-option__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--cf-x-check-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: transparent;
  box-sizing: border-box;
}

.cf-explorer #cf-sidebar .cf-filter-option input:checked + .cf-filter-option__box,
.cf-filter-sheet__panel .cf-filter-option input:checked + .cf-filter-option__box {
  background: #2c457d;
  border-color: #2c457d;
}

html[data-theme="dark"] .cf-explorer #cf-sidebar .cf-filter-option input:checked + .cf-filter-option__box,
html[data-theme="dark"] .cf-filter-sheet__panel .cf-filter-option input:checked + .cf-filter-option__box {
  background: var(--cf-x-check-active);
  border-color: var(--cf-x-check-active);
}

.cf-filter-option input:checked + .cf-filter-option__box::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("/images/cruelty-free/icons/check-duotone.svg") center / contain no-repeat;
  border: 0;
  transform: none;
}

.cf-explorer #cf-sidebar .cf-filter-option__dot,
.cf-filter-sheet__panel .cf-filter-option__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cf-explorer #cf-sidebar .cf-filter-option__dot.cf-cert--leaping-bunny,
.cf-filter-sheet__panel .cf-filter-option__dot.cf-cert--leaping-bunny {
  background: #4d8f6f;
}

.cf-explorer #cf-sidebar .cf-filter-option__dot.cf-cert--peta-beauty,
.cf-filter-sheet__panel .cf-filter-option__dot.cf-cert--peta-beauty {
  background: #c06b82;
}

.cf-explorer #cf-sidebar .cf-filter-option__dot.cf-cert--peta-ultimate,
.cf-filter-sheet__panel .cf-filter-option__dot.cf-cert--peta-ultimate {
  background: #7a6fad;
}

.cf-explorer #cf-sidebar .cf-filter-option__dot.cf-cert--bwc-sa,
.cf-filter-sheet__panel .cf-filter-option__dot.cf-cert--bwc-sa {
  background: #b8924a;
}

.cf-explorer #cf-sidebar .cf-filter-option__dot.cf-cert--te-protejo,
.cf-filter-sheet__panel .cf-filter-option__dot.cf-cert--te-protejo {
  background: #6b7f96;
}

/* Dark filters — Figma FINAL 468:3465 (circular checks, group rhythm) */
html[data-theme="dark"] .cf-explorer .cf-sidebar,
html[data-theme="dark"] .cf-filter-sheet__panel {
  gap: 0;
  padding: 24px 22px;
  background: #141b2d;
  border-color: #24304a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .cf-explorer .cf-sidebar__head,
html[data-theme="dark"] .cf-filter-sheet__panel .cf-sidebar__head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #24304a;
}

html[data-theme="dark"] .cf-explorer .cf-sidebar__title,
html[data-theme="dark"] .cf-filter-sheet__panel .cf-sidebar__title {
  color: #f1f5f9;
}

html[data-theme="dark"] .cf-explorer .cf-filter-group:not(:first-of-type) {
  margin-top: 22px;
  padding-top: 2px;
}

html[data-theme="dark"] .cf-explorer .cf-filter-group {
  gap: 2px;
}

html[data-theme="dark"] .cf-explorer .cf-filter-group__label {
  margin: 0 0 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: #7b8aa0;
}

html[data-theme="dark"] .cf-explorer #cf-sidebar .cf-filter-option,
html[data-theme="dark"] .cf-filter-sheet__panel .cf-filter-option {
  padding: 9px 0;
  gap: 12px;
  color: #f1f5f9;
}

html[data-theme="dark"] .cf-explorer #cf-sidebar .cf-filter-option__box,
html[data-theme="dark"] .cf-filter-sheet__panel .cf-filter-option__box {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border-color: #4a5a78;
  background: rgba(10, 15, 30, 0.35);
}

html[data-theme="dark"] .cf-explorer #cf-sidebar .cf-filter-option input:checked + .cf-filter-option__box,
html[data-theme="dark"] .cf-filter-sheet__panel .cf-filter-option input:checked + .cf-filter-option__box {
  background: #8db4ff;
  border-color: #8db4ff;
}

html[data-theme="dark"] .cf-filter-option input:checked + .cf-filter-option__box::after {
  width: 10px;
  height: 10px;
}

html[data-theme="dark"] .cf-explorer #cf-sidebar .cf-filter-option__count,
html[data-theme="dark"] .cf-filter-sheet__panel .cf-filter-option__count {
  color: #7b8aa0;
  font-size: 0.8125rem;
}

html[data-theme="dark"] .cf-explorer .cf-sidebar__note {
  margin-top: 22px;
  color: #94a3b8;
  border: 1px solid #24304a;
}

.cf-filter-option__text {
  flex: 1;
  min-width: 0;
}

.cf-explorer #cf-sidebar .cf-filter-option__count,
.cf-filter-sheet__panel .cf-filter-option__count {
  margin-left: auto;
  flex-shrink: 0;
  min-width: 2.5ch;
  padding-left: 10px;
  text-align: right;
  color: var(--cf-x-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

body.cf-filter-sheet-open {
  overflow: hidden;
}

body.cf-filter-sheet-open .cf-explorer-hero,
body.cf-filter-sheet-open .cf-explorer-browse {
  pointer-events: none;
}

body.cf-filter-sheet-open .cf-explorer .cf-bunny-badge,
body.cf-filter-sheet-open .wa-fab {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cf-filter-more {
  appearance: none;
  border: 0;
  background: none;
  padding: 4px 0 0;
  color: var(--cf-x-accent-bright);
  font-family: var(--niche-font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.cf-sidebar__note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: var(--cf-x-disclaimer);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--cf-x-muted);
}

.cf-sidebar__note img,
.cf-sidebar__note svg {
  width: 20px;
  height: 20px;
  color: var(--cf-x-accent);
  flex-shrink: 0;
}

.cf-sidebar__title img {
  flex-shrink: 0;
  color: var(--cf-x-accent);
}

/* Filter bottom sheet (mobile) */
.cf-filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}

.cf-filter-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cf-filter-sheet__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 7, 18, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cf-filter-sheet.is-open .cf-filter-sheet__backdrop {
  opacity: 1;
}

.cf-filter-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(88vh, 640px);
  overflow: auto;
  padding: 20px max(28px, env(safe-area-inset-right, 0px) + 20px) 28px 24px;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: var(--cf-x-sidebar);
  border: 1px solid var(--cf-x-sidebar-border);
  transform: translateY(100%);
  transition: transform 0.28s ease;
  isolation: isolate;
}

.cf-filter-sheet.is-open .cf-filter-sheet__panel {
  transform: translateY(0);
}

.cf-filter-sheet__grab {
  width: 40px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--cf-x-muted);
  opacity: 0.35;
}

.cf-filter-sheet__panel .cf-sidebar__head {
  position: relative;
  z-index: 2;
}

.cf-filter-sheet__panel .cf-sidebar__clear {
  flex-shrink: 0;
  min-width: 3.25rem;
  padding-left: 10px;
  text-align: right;
}

body.cf-filter-sheet-open .cf-filter-open {
  visibility: hidden;
  pointer-events: none;
}

/* Results */
.cf-results-top .cf-explorer-mobile-bar {
  margin-bottom: 12px;
}

.cf-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cf-results-title {
  margin: 0;
  scroll-margin-top: var(--cf-x-nav-scroll-offset);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cf-x-ink);
}

.cf-results-sort {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--cf-x-muted);
}

p.cf-results-showing {
  margin: 2px 0 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--cf-x-muted);
}

p.cf-results-showing:empty {
  display: none;
  margin: 0;
}

select.cf-results-sort-control {
  appearance: auto;
  -webkit-appearance: menulist;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--cf-x-muted);
  color-scheme: light;
  cursor: pointer;
  max-width: 100%;
}

html[data-theme="dark"] select.cf-results-sort-control {
  color-scheme: dark;
}

select.cf-results-sort-control:focus {
  outline: none;
}

select.cf-results-sort-control:focus-visible {
  outline: 2px solid var(--cf-x-accent-bright);
  outline-offset: 2px;
}

.cf-active-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.5);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  font-size: 0.75rem;
  font-weight: 600;
}

html[data-theme="light"] .cf-active-pill {
  border-color: rgba(192, 107, 130, 0.45);
  background: rgba(192, 107, 130, 0.08);
  color: #6b3042;
}

.cf-active-pill button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  font-size: 1rem;
}

.cf-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
  scroll-margin-top: var(--cf-x-nav-scroll-offset);
}

@media (min-width: 960px) {
  .cf-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cf-results-grid > .cf-card--explorer {
  scroll-margin-top: var(--cf-x-nav-scroll-offset);
  min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes cf-card-arrive {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .cf-results-grid.is-arriving > .cf-card--explorer,
  .cf-results-grid.is-quiet-arrive > .cf-card--explorer,
  .cf-results-grid > .cf-card--explorer.is-new {
    animation-name: cf-card-arrive;
    animation-duration: 0.42s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
  }

  .cf-results-grid.is-quiet-arrive > .cf-card--explorer,
  .cf-results-grid > .cf-card--explorer.is-new {
    animation-duration: 0.34s;
  }

  .cf-results-grid.is-arriving > .cf-card--explorer:nth-child(2) { animation-delay: 0.04s; }
  .cf-results-grid.is-arriving > .cf-card--explorer:nth-child(3) { animation-delay: 0.08s; }
  .cf-results-grid.is-arriving > .cf-card--explorer:nth-child(4) { animation-delay: 0.12s; }
  .cf-results-grid.is-arriving > .cf-card--explorer:nth-child(5) { animation-delay: 0.16s; }
  .cf-results-grid.is-arriving > .cf-card--explorer:nth-child(6) { animation-delay: 0.2s; }
  .cf-results-grid.is-arriving > .cf-card--explorer:nth-child(n + 7) { animation-delay: 0.24s; }
}

.cf-explorer .cf-list-wrap--legacy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cf-explorer .cf-toolbar--legacy,
.cf-explorer .cf-legend,
.cf-explorer .cf-hero-note,
.cf-explorer #directory-title,
.cf-explorer .niche-section-intro.cf-directory-intro {
  display: none !important;
}

/* Explorer cards (Figma 468:4299 / 507 light parity) */
.cf-results-grid .cf-card--explorer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-height: 292px;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--cf-x-sidebar-border);
  background: var(--cf-x-surface);
  box-shadow:
    0 0 0 1px transparent,
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    background-color 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] .cf-results-grid .cf-card--explorer {
  background: #ffffff;
  border-color: rgba(44, 69, 125, 0.12);
  box-shadow:
    0 0 0 1px transparent,
    0 2px 6px rgba(15, 23, 42, 0.06);
}

.cf-results-grid .cf-card--explorer:hover,
.cf-results-grid .cf-card--explorer:focus-within {
  border-width: 1px;
  background: var(--cf-x-card);
  box-shadow:
    0 0 0 1px var(--cf-x-card-hover),
    0 6px 16px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .cf-results-grid .cf-card--explorer:hover,
html[data-theme="light"] .cf-results-grid .cf-card--explorer:focus-within {
  border-width: 1px;
  box-shadow:
    0 0 0 1px var(--cf-x-card-hover),
    0 4px 12px rgba(44, 69, 125, 0.08);
}

#cf-results-grid.cf-results-grid.is-skeleton > .cf-card-skeleton {
  min-width: 0;
  min-height: 292px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--cf-x-sidebar-border);
  background: var(--cf-x-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

html[data-theme="light"] #cf-results-grid.cf-results-grid.is-skeleton > .cf-card-skeleton {
  background: #ffffff;
  border-color: rgba(44, 69, 125, 0.12);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] #cf-results-grid.cf-results-grid.is-skeleton > .cf-card-skeleton {
  background: var(--cf-x-surface);
  border-color: var(--cf-x-sidebar-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes cf-skeleton-pulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.62;
    }
  }

  #cf-results-grid.cf-results-grid.is-skeleton > .cf-card-skeleton {
    animation-name: cf-skeleton-pulse;
    animation-duration: 3.2s;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
    animation-iteration-count: infinite;
  }
}

.cf-card-explorer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: start;
  min-height: 40px;
  min-width: 0;
}

.cf-card--explorer .cf-bunny-badge {
  grid-column: 2;
  grid-row: 1;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #1a2440;
  color: #8db4ff;
  box-shadow: inset 0 0 0 1px rgba(141, 180, 255, 0.16);
  flex-shrink: 0;
}

html[data-theme="light"] .cf-card--explorer .cf-bunny-badge {
  background: #2c457d;
  color: #fff;
  box-shadow: none;
}

.cf-card--explorer:hover .cf-bunny-badge,
.cf-card--explorer:focus-within .cf-bunny-badge {
  background: #2c457d;
  color: #fff;
}

html[data-theme="dark"] .cf-card--explorer:hover .cf-bunny-badge,
html[data-theme="dark"] .cf-card--explorer:focus-within .cf-bunny-badge {
  background: #24304a;
  color: #8db4ff;
}

.cf-card--explorer .cf-bunny-badge svg {
  width: 22px;
  height: 22px;
}

.cf-card-explorer__identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cf-card-explorer__name {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding-right: 4px;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--cf-x-ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cf-card-explorer__name a {
  color: var(--cf-x-ink);
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: none;
}

.cf-card-explorer__name a:hover,
.cf-card-explorer__name a:focus-visible {
  color: var(--cf-x-accent);
  text-decoration: none;
}

html[data-theme="light"] .cf-card-explorer__name a,
html[data-theme="dark"] .cf-card-explorer__name a {
  color: var(--cf-x-ink);
  text-decoration: none;
}

html[data-theme="light"] .cf-card-explorer__name a:hover,
html[data-theme="light"] .cf-card-explorer__name a:focus-visible,
html[data-theme="dark"] .cf-card-explorer__name a:hover,
html[data-theme="dark"] .cf-card-explorer__name a:focus-visible {
  color: var(--cf-x-accent);
  text-decoration: none;
}

.cf-card-explorer__name mark.cf-name-match {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
  background-color: color-mix(in srgb, var(--cf-x-accent) 18%, transparent);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0.12em;
}

.cf-card-explorer__place {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--cf-x-muted);
}

.cf-card-explorer__place > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-card-explorer__pin {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--cf-x-muted);
}

.cf-card-explorer__detail {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--cf-x-muted);
}

.cf-card-explorer__spacer {
  flex: 1 1 auto;
  min-height: 8px;
}

.cf-card-explorer__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cf-explorer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--cf-x-sidebar-border);
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #cbd5e1;
}

html[data-theme="light"] .cf-explorer-pill {
  background: transparent;
  color: #475569;
}

.cf-explorer-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--cf-cert-other-dot);
}

.cf-explorer-pill--cert.cf-cert--leaping-bunny {
  border-color: rgba(77, 143, 111, 0.45);
}

.cf-explorer-pill--cert.cf-cert--leaping-bunny .cf-explorer-pill__dot {
  background: var(--cf-cert-leaping-dot);
}

.cf-explorer-pill--cert.cf-cert--peta-beauty {
  border-color: rgba(251, 113, 133, 0.45);
}

.cf-explorer-pill--cert.cf-cert--peta-beauty .cf-explorer-pill__dot {
  background: var(--cf-cert-peta-beauty-dot);
}

.cf-explorer-pill--cert.cf-cert--peta-ultimate {
  border-color: rgba(122, 111, 173, 0.45);
}

.cf-explorer-pill--cert.cf-cert--peta-ultimate .cf-explorer-pill__dot {
  background: var(--cf-cert-peta-ultimate-dot);
}

.cf-explorer-pill--cert.cf-cert--bwc-sa {
  border-color: rgba(184, 146, 74, 0.45);
}

.cf-explorer-pill--cert.cf-cert--bwc-sa .cf-explorer-pill__dot {
  background: var(--cf-cert-bwc-sa-dot);
}

.cf-explorer-pill--cert.cf-cert--te-protejo {
  border-color: rgba(107, 127, 150, 0.45);
}

.cf-explorer-pill--cert.cf-cert--te-protejo .cf-explorer-pill__dot {
  background: var(--cf-cert-te-protejo-dot);
}

.cf-explorer-pill--vegan {
  border-color: rgba(34, 197, 94, 0.35);
}

.cf-explorer-pill--vegan.cf-explorer-pill--partial {
  border-color: rgba(148, 163, 184, 0.4);
}

.cf-explorer-pill__dot--vegan {
  background: #4ade80;
}

html[data-theme="light"] .cf-explorer-pill__dot--vegan {
  background: #16a34a;
}

.cf-explorer-pill__dot--partial {
  background: #94a3b8;
}

html[data-theme="light"] .cf-explorer-pill__dot--partial {
  background: #64748b;
}

.cf-card--explorer .cf-card-cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cf-x-accent-bright);
  text-decoration: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cf-card--explorer:hover .cf-card-cert-link,
.cf-card--explorer:focus-within .cf-card-cert-link {
  opacity: 1;
  max-height: 2rem;
  pointer-events: auto;
}

.cf-card--explorer a.cf-card-site-link {
  order: 3;
  align-self: flex-start;
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--cf-x-muted);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--cf-x-muted) 50%, transparent);
  text-underline-offset: 0.15em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-card--explorer a.cf-card-site-link:hover,
.cf-card--explorer a.cf-card-site-link:focus-visible {
  color: var(--cf-x-accent);
  text-decoration-color: currentColor;
}

.cf-card--explorer a.cf-card-site-link:focus-visible {
  outline: 2px solid var(--cf-x-accent-bright);
  outline-offset: 2px;
}

.cf-card-cert-link__icon {
  font-size: 1rem;
  line-height: 1;
}

html[data-theme="light"] .cf-continent-tile:not(.is-active):not([aria-pressed="true"]) .cf-continent-tile__map {
  opacity: 1;
}

.cf-explorer-more {
  margin-top: 24px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  order: 10;
}

.cf-explorer-more[hidden] {
  display: none !important;
}

.cf-explorer-more .cf-chip {
  min-height: 44px;
  padding: 0 20px;
}

/* Globe CTA band (Figma v7 Globe teaser) */
.cf-globe-cta {
  width: 100%;
  margin: 24px 0 0;
  max-width: none;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
  order: 20;
}

.cf-results > .cf-globe-cta {
  margin-bottom: 48px;
}

.cf-globe-cta__band {
  max-width: var(--cf-x-content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  border-radius: 22px;
  background: #2c457d;
  color: #fff;
}

html[data-theme="dark"] .cf-globe-cta__band {
  background: #2c457d;
  box-shadow: 0 0 0 1px rgba(141, 180, 255, 0.12);
}

.cf-globe-cta__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.cf-globe-cta__copy {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-globe-cta__copy h2 {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.cf-globe-cta__copy p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #dbe6ff;
}

.cf-globe-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #0f172a;
  font-family: var(--niche-font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cf-globe-cta__btn-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cf-globe-cta__btn:focus-visible {
  outline: 2px solid #8db4ff;
  outline-offset: 2px;
}

.cf-globe-cta__doodle {
  width: 72px;
  height: auto;
  max-height: 102px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

@media (max-width: 720px) {
  .cf-globe-cta__band {
    padding: 20px;
  }

  .cf-globe-cta__doodle {
    display: none;
  }
}

.cf-filter-sheet__done {
  width: 100%;
  margin-top: 16px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: #2c457d;
  color: #fff;
  font-family: var(--niche-font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.cf-globe-panel {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.cf-globe-panel__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
}

.cf-globe-panel__close {
  appearance: none;
  border: 0;
  background: var(--cf-x-surface-2);
  color: var(--cf-x-ink);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 4;
}

body.cf-globe-panel-open .wa-fab {
  visibility: hidden;
  pointer-events: none;
}

body.site-tools-page:has(.cf-explorer) {
  scroll-padding-top: var(--cf-x-nav-scroll-offset);
}

.cf-explorer-browse,
.cf-explorer-more,
.cf-globe-cta {
  scroll-margin-top: var(--cf-x-nav-scroll-offset);
}

.cf-globe-panel__close:focus-visible {
  outline: 2px solid var(--cf-x-accent-bright);
  outline-offset: 2px;
}

.cf-globe-panel[hidden] {
  display: none !important;
}

.cf-explorer .niche-section:not(.cf-directory) h2 {
  color: var(--cf-x-ink);
}

.cf-explorer .niche-section-intro,
.cf-explorer .cf-filter-state,
.cf-explorer .cf-status {
  color: var(--cf-x-muted);
}

.cf-explorer .cf-filter-state {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cf-continent-tile,
  .cf-filter-sheet__panel,
  .cf-filter-sheet__backdrop,
  .cf-results-grid .cf-card--explorer {
    transition: none;
  }

  #cf-results-grid.cf-results-grid.is-skeleton > .cf-card-skeleton {
    animation: none;
  }
}
