/* =========================================================
   MOVA PART — OE Cross-Reference Search (Figma 43:2340)
   ========================================================= */

.page-oe-search {
  background: #f8f9fa;
}

.oe-main {
  display: flex;
  flex-direction: column;
}

/* ---------- Hero ---------- */
.oe-hero {
  position: relative;
  min-height: 500px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 40px;
}

.oe-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.oe-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oe-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-nav);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.oe-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.oe-hero__title {
  font-size: var(--type-hero);
  font-weight: 700;
  line-height: var(--leading-hero);
  color: #fff;
}

.oe-hero__title-accent {
  color: #e31e24;
}

.oe-hero__subtitle {
  max-width: 672px;
  font-size: var(--type-hero-sub);
  line-height: var(--leading-body);
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Search Card ---------- */
.oe-search-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.oe-search-form__row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.oe-search-form__input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.oe-search-form__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.oe-search-form__input {
  width: 100%;
  height: 56px;
  padding: 18px 17px 18px 49px;
  border: 1px solid #f3f4f5;
  border-radius: 4px;
  font-size: 16px;
  color: #191c1d;
  background: #fff;
}

.oe-search-form__input::placeholder {
  color: #6b7280;
}

.oe-search-form__btn {
  flex-shrink: 0;
  height: 56px;
  padding: 0 40px;
  background: #e31e24;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.oe-search-form__btn:hover {
  background: #bc000c;
}

.oe-search-form__help {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oe-search-form__example {
  font-size: 14px;
  line-height: 20px;
  color: #5d5e61;
}

.oe-search-form__example strong {
  font-weight: 500;
  color: #191c1d;
}

.oe-search-form__hint {
  font-size: 14px;
  line-height: 16px;
  font-style: italic;
  color: #926f6b;
}

/* ---------- No Results ---------- */
.oe-no-results {
  background: #f8f9fa;
  padding: 48px 40px;
}

.oe-no-results.is-hidden,
.oe-no-results[hidden] {
  display: none;
}

/* ---------- Search Results ---------- */
.oe-results {
  background: #fff;
  padding: 56px 40px 24px;
}

.oe-results[hidden],
.oe-results.is-hidden {
  display: none;
}

.oe-results__inner {
  max-width: var(--container-nav);
  margin: 0 auto;
}

.oe-results__meta {
  margin-top: 12px;
  color: #6b7280;
  font-size: 14px;
}

.oe-results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.oe-result-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #edeeef;
  border-radius: 4px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.oe-result-card:hover {
  border-color: #e31e24;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.oe-result-card__img {
  aspect-ratio: 237 / 174;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  overflow: hidden;
}

.oe-result-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.oe-result-card__sku {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #e31e24;
}

.oe-result-card__name {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #1f2937;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.5em;
}

.oe-result-card__oe {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  word-break: break-all;
}

.oe-result-card__link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e31e24;
}

@media (max-width: 1100px) {
  .oe-results__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .oe-results {
    padding: 40px 16px 16px;
  }

  .oe-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .oe-results__grid {
    grid-template-columns: 1fr;
  }
}

.oe-no-results__inner {
  max-width: var(--container-nav);
  margin: 0 auto;
  padding: 0 40px;
}

.oe-no-results__card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 150px;
  background: #fff;
  border: 1px solid #f3f4f5;
  border-radius: 8px;
  padding: 49px 16px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.oe-no-results__illustration {
  flex-shrink: 0;
  padding-bottom: 24px;
}

.oe-no-results__illustration img {
  width: 187px;
  height: 240px;
  object-fit: contain;
}

.oe-no-results__content {
  max-width: 590px;
}

.oe-no-results__content h2 {
  font-size: var(--type-section);
  font-weight: 700;
  line-height: var(--leading-section);
  color: #191c1d;
  text-align: center;
  margin-bottom: 8px;
}

.oe-no-results__content p {
  font-size: 16px;
  line-height: 24px;
  color: #5d5e61;
  margin-bottom: 24px;
}

.oe-no-results__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Shared Buttons ---------- */
.oe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.oe-btn--primary {
  background: #e31e24;
  color: #fff;
  border: none;
}

.oe-btn--primary:hover {
  background: #bc000c;
}

.oe-btn--inquiry {
  padding: 13px 32px;
}

.oe-btn--outline {
  padding: 13px 33px;
  background: #fff;
  border: 1px solid #f3f4f5;
  color: #191c1d;
}

.oe-btn--outline:hover {
  border-color: #e31e24;
  color: #e31e24;
}

.oe-btn--assistance,
.oe-btn--contact {
  padding: 16px 40px;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  gap: 12px;
}

.oe-btn--contact {
  padding: 16px 48px;
}

/* ---------- How to Search ---------- */
.oe-how {
  background: #fff;
  padding: 96px 40px 144px;
}

.oe-how__inner {
  max-width: var(--container-nav);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}

.oe-section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.oe-section-head h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  color: #191c1d;
}

.oe-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 880px;
  width: 100%;
}

.oe-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}

.oe-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.oe-step__icon--gray {
  width: 112px;
  height: 112px;
  background: #f3f4f5;
  border-radius: 9999px;
}

.oe-step__icon--gray img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.oe-step__icon--red {
  width: 112px;
  height: 112px;
}

.oe-step__icon--red img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.oe-step h3 {
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #191c1d;
}

.oe-step p {
  font-size: 16px;
  line-height: 20px;
  color: #5d5e61;
  padding: 0 16px;
}

.oe-step__arrow {
  flex-shrink: 0;
  align-self: center;
  margin-top: 42px;
}

.oe-step__arrow img {
  width: 22px;
  height: 28px;
}

/* ---------- Assistance CTA ---------- */
.oe-assistance {
  padding: 0 40px;
  margin-top: -48px;
  position: relative;
  z-index: 1;
}

.oe-assistance__card {
  max-width: var(--container-content);
  margin: 0 auto;
  display: flex;
  background: #fff;
  border: 1px solid #f3f4f5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.oe-assistance__text {
  flex: 1;
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.oe-assistance__text h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  color: #191c1d;
  margin-bottom: 16px;
}

.oe-assistance__text .accent-bar {
  margin-bottom: 32px;
}

.oe-assistance__text p {
  max-width: 576px;
  font-size: 18px;
  line-height: 29.25px;
  color: #5d5e61;
  margin-bottom: 40px;
}

.oe-assistance__image {
  flex: 0 0 42%;
  min-width: 280px;
  background: #f3f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
}

.oe-assistance__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.oe-assistance__image img {
  max-width: 100%;
  max-height: 279px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.9;
  border-radius: 8px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ---------- Benefits ---------- */
.oe-benefits {
  background: #fff;
  padding: 96px 40px;
}

.oe-benefits__grid {
  max-width: var(--container-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.oe-benefit-card {
  border: 1px solid #f3f4f5;
  border-radius: 8px;
  padding: 33px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.oe-benefit-card__icon {
  display: flex;
  justify-content: center;
  width: 100%;
}

.oe-benefit-card__icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.oe-benefit-card h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #191c1d;
  padding-top: 4px;
}

.oe-benefit-card p {
  font-size: 16px;
  line-height: 20px;
  color: #5d5e61;
}

/* ---------- Final CTA ---------- */
.oe-final-cta {
  background: #111;
  padding: 80px 40px;
}

.oe-final-cta__inner {
  max-width: var(--container-nav);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.oe-final-cta__inner h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
}

.oe-final-cta__inner p {
  max-width: 672px;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .oe-no-results__card {
    gap: 60px;
  }

  .oe-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .oe-hero__title {
    font-size: 48px;
    line-height: 52px;
    white-space: normal;
  }

  .oe-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .oe-step__arrow {
    margin-top: 0;
    transform: rotate(90deg);
  }

  .oe-assistance__card {
    flex-direction: column;
  }

  .oe-assistance__image {
    flex: none;
    min-height: 240px;
  }

  .oe-no-results__card {
    flex-direction: column;
    gap: 32px;
    padding: 40px 24px;
  }

  .oe-no-results__content h2,
  .oe-no-results__content p {
    text-align: center;
  }

  .oe-no-results__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .oe-hero {
    padding: 64px 20px;
  }

  .oe-hero__title {
    font-size: 36px;
    line-height: 42px;
  }

  .oe-hero__subtitle {
    font-size: 16px;
    line-height: 26px;
  }

  .oe-search-card {
    padding: 24px 20px;
  }

  .oe-search-form__row {
    flex-direction: column;
  }

  .oe-search-form__btn {
    width: 100%;
  }

  .oe-no-results {
    padding: 32px 20px;
  }

  .oe-no-results__inner {
    padding: 0;
  }

  .oe-how {
    padding: 64px 20px 96px;
  }

  .oe-how__inner {
    padding: 0;
    gap: 48px;
  }

  .oe-assistance {
    padding: 0 20px;
    margin-top: -32px;
  }

  .oe-assistance__text {
    padding: 40px 24px;
  }

  .oe-benefits {
    padding: 64px 20px;
  }

  .oe-benefits__grid {
    grid-template-columns: 1fr;
  }

  .oe-final-cta {
    padding: 64px 20px;
  }

  .oe-final-cta__inner {
    padding: 0;
  }

  .oe-final-cta__inner h2 {
    font-size: 28px;
    line-height: 34px;
  }
}

@media (max-width: 480px) {
  .oe-hero__title {
    font-size: 28px;
    line-height: 34px;
  }

  .oe-no-results__illustration img {
    width: 140px;
    height: auto;
  }

  .oe-assistance__text h2 {
    font-size: 24px;
    line-height: 30px;
  }
}
