.products-page {
  min-height: 100vh;
  padding: 1.5rem 0 3.5rem;
}

.products-page .container {
  max-width: min(96vw, 1780px);
}

.products-page .section-padding {
  padding: 0;
}

.finder-shell {
  position: relative;
  max-width: min(94vw, 1720px);
  margin: 0 auto;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
  box-shadow: 0 18px 48px rgba(15, 36, 69, 0.12);
}

.finder-shell::before,
.finder-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.finder-shell::before {
  width: 320px;
  height: 320px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(247, 167, 49, 0.18), transparent 68%);
}

.finder-shell::after {
  width: 260px;
  height: 260px;
  left: -110px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(31, 111, 237, 0.12), transparent 70%);
}

.finder-shell > * {
  position: relative;
  z-index: 1;
}

.intro-card,
.hero__panel,
.results-panel,
.result-box {
  border: 1px solid rgba(15, 77, 162, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 36, 69, 0.12);
}

.intro-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-height: 96px;
  margin-bottom: 1rem;
  padding: 1.15rem 1.3rem;
  overflow: hidden;
  border: 0;
  color: #ffffff;
  background: linear-gradient(160deg, rgba(6, 35, 71, 0.96), rgba(15, 77, 162, 0.94));
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(247, 167, 49, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.intro-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.3rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--heading-font-family, var(--font-family-heading, sans-serif));
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary-color, #f7a731), var(--secondary-dark, #df7f1f));
}

.intro-card h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  line-height: 1.04;
}

.intro-note {
  max-width: 58rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.6;
}

.finder-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}

.finder-col--form {
  flex: 0 1 520px;
  min-width: 320px;
}

.finder-col--results {
  flex: 1 1 560px;
  min-width: 320px;
}

.hero__panel,
.results-panel {
  min-height: 100%;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
}

.finder-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.finder-form label,
.quantity-field label,
.alt-card__controls label {
  color: var(--primary-dark, #062347);
  font-family: var(--heading-font-family, var(--font-family-heading, sans-serif));
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.finder-form input,
.finder-form select,
.quantity-field input,
.alt-card__controls input,
.purchase-panel input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(15, 77, 162, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-dark, #062347);
  font-family: var(--body-font-family, var(--font-family, sans-serif));
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.finder-form input:focus,
.finder-form select:focus,
.quantity-field input:focus,
.alt-card__controls input:focus,
.purchase-panel input:focus {
  outline: none;
  border-color: rgba(15, 77, 162, 0.34);
  box-shadow: 0 0 0 4px rgba(15, 77, 162, 0.1);
  transform: translateY(-1px);
}

.finder-form input:disabled {
  cursor: not-allowed;
  background: #eef3fb;
  color: #7a8699;
}

.mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.3rem;
  border: 1px solid rgba(15, 77, 162, 0.08);
  border-radius: 16px;
  background: rgba(15, 77, 162, 0.05);
}

.mode-btn {
  min-height: 74px;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font-family: var(--heading-font-family, var(--font-family-heading, sans-serif));
  font-weight: 800;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-btn small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--body-font-family, var(--font-family, sans-serif));
  font-size: 0.78rem;
  font-weight: 600;
}

.mode-btn.active,
.mode-btn:focus-visible {
  border-color: rgba(15, 77, 162, 0.16);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 77, 162, 0.1);
}

.help-text {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed rgba(247, 167, 49, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 77, 162, 0.04), rgba(247, 167, 49, 0.08));
  color: #475467;
  font-size: 0.85rem;
  line-height: 1.45;
}

.help-text__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(247, 167, 49, 0.18);
  color: var(--secondary-dark, #df7f1f);
  font-weight: 800;
}

#findButton {
  width: 100%;
  margin-top: 0.15rem;
}

.result-container {
  min-height: 1rem;
  max-width: 100%;
  margin: 0;
  opacity: 1;
  transform: none;
}

.result-container.active {
  margin-top: 0;
  opacity: 1;
  transform: none;
}

.results-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 0;
}

.results-placeholder h3 {
  margin: 0 0 0.45rem;
  color: var(--primary-dark, #062347);
  font-size: 1.15rem;
}

.results-placeholder h3:only-child {
  margin-bottom: 0;
}

.results-placeholder p {
  margin: 0;
  color: var(--p-color, #4a5468);
  line-height: 1.55;
}

.result-box {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
}

.result-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(135deg, var(--primary-color, #0f4da2), var(--secondary-color, #f7a731));
}

.result-box h2,
.result-box h3 {
  color: var(--primary-dark, #062347);
}

.detail-item {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-item span {
  overflow-wrap: anywhere;
}

.custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary-color, #f7a731), var(--secondary-dark, #df7f1f));
  box-shadow: 0 10px 24px rgba(223, 127, 31, 0.22);
  color: #ffffff;
  font-family: var(--heading-font-family, var(--font-family-heading, sans-serif));
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.finder-shell .custom-btn.btn--primary {
  background: linear-gradient(135deg, var(--secondary-color, #f7a731), var(--secondary-dark, #df7f1f));
  box-shadow: 0 10px 24px rgba(223, 127, 31, 0.22);
  color: #ffffff;
}

.custom-btn:hover,
.custom-btn:focus-visible {
  background: linear-gradient(135deg, var(--secondary-dark, #df7f1f), #c96818);
  color: #ffffff;
  transform: translateY(-1px);
}

.custom-btn.btn--secondary {
  border: 1px solid rgba(15, 77, 162, 0.16);
  background: #ffffff;
  box-shadow: none;
  color: var(--primary-dark, #062347);
}

.custom-btn.btn--secondary:hover,
.custom-btn.btn--secondary:focus-visible {
  background: #f4f8ff;
  color: var(--primary-dark, #062347);
}

.purchase-panel,
.alt-card,
.detail-item,
.stock-info {
  border-radius: 14px;
}

@media (max-width: 900px) {
  .finder-col--form,
  .finder-col--results {
    flex-basis: 100%;
  }
}

@media (max-width: 680px) {
  .site-header-spacer {
    height: 72px;
  }

  .products-page {
    padding: 1rem 0 2.5rem;
  }

  .finder-shell {
    max-width: min(96vw, 1720px);
    padding: 1rem;
    border-radius: 20px;
  }

  .intro-card,
  .hero__panel,
  .results-panel,
  .result-box {
    padding: 1rem;
    border-radius: 16px;
  }

  .intro-card {
    min-height: 0;
  }

  .form-row,
  .product-details,
  .purchase-panel,
  .alt-card__controls {
    grid-template-columns: 1fr;
  }

  .mode-switcher {
    grid-template-columns: 1fr;
  }

  .quantity-field,
  .quantity-field input,
  .purchase-panel__controls .custom-btn,
  .custom-btn {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }
}
