/* Select a Body Type — compact category row */

.home-body-types {
  position: relative;
  padding: clamp(28px, 4vw, 40px) 0 clamp(20px, 3vw, 28px);
}

.home-body-types__header {
  margin-bottom: clamp(20px, 2.5vw, 28px);
  text-align: center;
}

.home-body-types__title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.home-body-types__subtitle {
  margin: 0 auto;
  max-width: 40ch;
  font-size: clamp(0.9rem, 1.1vw, 0.98rem);
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.9);
}

.home-body-types__rowShell {
  position: relative;
  max-width: min(980px, 100%);
  margin-inline: auto;
}

.home-body-types__rowGlow {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: min(760px, 92%);
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse 80% 100% at 50% 50%,
    rgba(59, 130, 246, 0.14) 0%,
    rgba(59, 130, 246, 0.06) 42%,
    transparent 72%
  );
  filter: blur(18px);
  pointer-events: none;
}

.home-body-types__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
  align-items: stretch;
}

.home-body-types__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(8, 14, 34, 0.28);
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.home-body-types__option:hover,
.home-body-types__option:focus-visible {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

.home-body-types__option:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.75);
  outline-offset: 2px;
}

.home-body-types__option:active {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(59, 130, 246, 0.35);
}

.home-body-types__silhouette {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
  filter: brightness(0.82) saturate(0.85);
}

.home-body-types__silhouette img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 44px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.home-body-types__silhouette--coupe img {
  height: 40px;
  transform: scale(0.92, 0.88);
  transform-origin: center center;
}

.home-body-types__label {
  position: relative;
  padding-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(203, 213, 225, 0.88);
  text-align: center;
  transition: color 0.2s ease;
}

.home-body-types__label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transform: translateX(-50%);
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-body-types__option:hover .home-body-types__silhouette,
.home-body-types__option:focus-visible .home-body-types__silhouette {
  transform: translateY(-4px);
  filter: brightness(1) saturate(1);
}

.home-body-types__option:hover .home-body-types__label,
.home-body-types__option:focus-visible .home-body-types__label {
  color: #93c5fd;
}

.home-body-types__option:hover .home-body-types__label::after,
.home-body-types__option:focus-visible .home-body-types__label::after,
.home-body-types__option:active .home-body-types__label::after {
  width: 100%;
}

.home-body-types__option:active .home-body-types__silhouette {
  filter: brightness(1.08) saturate(1.05);
}

.home-body-types__option.is-current {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.14);
}

.home-body-types__option.is-current .home-body-types__silhouette {
  filter: brightness(1.05) saturate(1);
}

.home-body-types__option.is-current .home-body-types__label {
  color: #93c5fd;
}

.home-body-types__option.is-current .home-body-types__label::after {
  width: 100%;
}

@media (max-width: 900px) {
  .home-body-types__row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .home-body-types__row::-webkit-scrollbar {
    display: none;
  }

  .home-body-types__option {
    flex: 0 0 108px;
    scroll-snap-align: start;
    padding: 12px 8px 10px;
  }

  .home-body-types__silhouette {
    height: 46px;
  }

  .home-body-types__silhouette img {
    height: 38px;
  }
}

@media (max-width: 480px) {
  .home-body-types {
    padding-top: 24px;
  }

  .home-body-types__option {
    flex-basis: 96px;
  }

  .home-body-types__label {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-body-types__option,
  .home-body-types__silhouette,
  .home-body-types__label,
  .home-body-types__label::after {
    transition: none;
  }

  .home-body-types__option:hover .home-body-types__silhouette,
  .home-body-types__option:focus-visible .home-body-types__silhouette {
    transform: none;
  }
}
