.scf-finder {
  --scf-ink: #1c1917;
  --scf-muted: #57534e;
  --scf-paper: #faf7f2;
  --scf-surface: #ffffff;
  --scf-border: #d6d0c7;
  --scf-accent: #8a5a16;
  --scf-accent-hover: #6f4610;
  --scf-accent-soft: #f4e8d3;
  --scf-error: #b42318;
  color: var(--scf-ink);
  width: min(100%, 72rem);
  margin: 2rem auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 1.25rem;
  background: var(--scf-paper);
  box-sizing: border-box;
}

.scf-finder *,
.scf-finder *::before,
.scf-finder *::after {
  box-sizing: border-box;
}

.scf-finder [hidden] {
  display: none !important;
}

.scf-finder__intro {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.scf-finder__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--scf-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scf-finder__title {
  margin: 0;
  font: inherit;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
}

.scf-finder__lead {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--scf-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.scf-finder__panel {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--scf-border);
  border-radius: 1rem;
  background: var(--scf-surface);
  box-shadow: 0 12px 35px rgba(28, 25, 23, 0.06);
}

.scf-finder__progress {
  margin-bottom: 1.75rem;
}

.scf-finder__progress-text {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--scf-muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.scf-finder__progress-track {
  height: 0.375rem;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe7e1;
}

.scf-finder__progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--scf-accent);
  transition: width 180ms ease;
}

.scf-finder__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.scf-finder__step legend {
  width: 100%;
  padding: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.scf-finder__help {
  margin: 0.5rem 0 1.25rem;
  color: var(--scf-muted);
  line-height: 1.55;
}

.scf-finder__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.scf-option {
  position: relative;
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--scf-border);
  border-radius: 0.75rem;
  background: var(--scf-surface);
  cursor: pointer;
  font-weight: 620;
  line-height: 1.35;
  touch-action: manipulation;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.scf-option:hover {
  border-color: var(--scf-accent);
}

.scf-option:has(input:checked) {
  border-color: var(--scf-accent);
  background: var(--scf-accent-soft);
  box-shadow: 0 0 0 1px var(--scf-accent);
}

.scf-option:has(input:focus-visible) {
  outline: 3px solid var(--scf-accent);
  outline-offset: 3px;
}

.scf-option input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--scf-accent);
}

.scf-finder__error {
  margin: 0.75rem 0 0;
  color: var(--scf-error);
  font-weight: 650;
}

.scf-finder__actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.scf-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.scf-button:focus-visible,
.scf-finder__reset:focus-visible,
.scf-product__cta:focus-visible,
.scf-product a:focus-visible,
.scf-product__select:has(input:focus-visible) {
  outline: 3px solid var(--scf-accent);
  outline-offset: 3px;
}

.scf-finder .scf-button--primary {
  margin-left: auto;
  background-color: var(--scf-accent) !important;
  color: #fff !important;
}

.scf-finder .scf-button--primary:hover:not(:disabled) {
  background-color: var(--scf-accent-hover) !important;
  color: #fff !important;
}

.scf-button--secondary {
  border-color: var(--scf-border);
  background: transparent;
  color: var(--scf-ink);
}

.scf-finder .scf-button--secondary:hover {
  border-color: var(--scf-ink);
  background-color: var(--scf-ink) !important;
  color: #fff !important;
}

.scf-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.scf-finder__status {
  min-height: 1.5rem;
  color: var(--scf-muted);
  line-height: 1.5;
}

.scf-results__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.scf-results__intro {
  margin: 0.75rem 0 1.5rem;
  color: var(--scf-muted);
  line-height: 1.55;
}

.scf-results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.scf-results__empty {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--scf-paper);
  line-height: 1.55;
}

.scf-product {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--scf-border);
  border-radius: 0.875rem;
  background: var(--scf-surface);
}

.scf-product__image-link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--scf-paper);
}

.scf-product__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.scf-product__image-link:hover .scf-product__image {
  transform: scale(1.025);
}

.scf-product__body {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 1rem;
}

.scf-product__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.scf-product__tags li {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--scf-accent-soft);
  color: #65440f;
  font-size: 0.75rem;
  font-weight: 700;
}

.scf-product__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.scf-product__title a {
  color: var(--scf-ink);
  text-decoration: none;
}

.scf-product__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.scf-product__description {
  margin: 0.625rem 0 0;
  color: var(--scf-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.scf-product__price {
  margin: auto 0 0.875rem;
  padding-top: 1rem;
  font-weight: 700;
}

.scf-product__price del {
  color: var(--scf-muted);
  font-weight: 400;
}

.scf-product__cta,
.scf-product__select {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--scf-accent);
  border-radius: 999px;
  color: var(--scf-accent-hover);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.scf-product__cta:hover,
.scf-product__select:hover,
.scf-product__select:has(input:checked) {
  background: var(--scf-accent);
  color: #fff;
}

.scf-product__select input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--scf-accent);
}

.scf-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.875rem;
  background: var(--scf-paper);
}

.scf-pack__count {
  margin: 0;
  font-weight: 650;
  line-height: 1.45;
}

.scf-finder .scf-finder__reset {
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--scf-ink);
  border-radius: 0.55rem;
  background-color: var(--scf-ink) !important;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.scf-finder .scf-finder__reset:hover {
  border-color: var(--scf-accent-hover);
  background-color: var(--scf-accent-hover) !important;
  color: #fff !important;
}

@media (max-width: 52rem) {
  .scf-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .scf-finder {
    margin: 1rem auto;
    border-radius: 0.875rem;
  }

  .scf-finder__panel {
    padding: 1rem;
  }

  .scf-finder__options,
  .scf-results__grid {
    grid-template-columns: 1fr;
  }

  .scf-finder__actions,
  .scf-pack {
    align-items: stretch;
    flex-direction: column;
  }

  .scf-button,
  .scf-product__cta,
  .scf-product__select {
    width: 100%;
  }

  .scf-button--primary {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scf-finder *,
  .scf-finder *::before,
  .scf-finder *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
