.ipm-products-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 120px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.96) 100%),
    url("../../images/sou-aluno/optimized/BG.webp") top center / cover no-repeat,
    #050505;
}

.ipm-products-hero::before,
.ipm-products-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(20px);
}

.ipm-products-hero::before {
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: rgba(249, 76, 19, 0.18);
}

.ipm-products-hero::after {
  left: -100px;
  bottom: 60px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.08);
}

.ipm-products-hero .container {
  position: relative;
  z-index: 1;
}

.ipm-products-hero__intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.ipm-products-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f94c13;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ipm-products-hero__intro h1 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
}

.ipm-products-hero__intro p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.ipm-products-hero__intro strong {
  color: #fff;
  font-weight: 600;
}

.ipm-products-carousel {
  overflow: hidden;
}

.ipm-products-carousel .swiper-container {
  overflow: visible;
}

.ipm-products-carousel .swiper-wrapper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 14px;
  scroll-behavior: smooth;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  cursor: grab;
  overscroll-behavior-inline: contain;
}

.ipm-products-carousel .swiper-wrapper.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
}

.ipm-products-carousel .swiper-wrapper.is-dragging,
.ipm-products-carousel .swiper-wrapper.is-dragging * {
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing !important;
}

.ipm-products-carousel .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.ipm-products-carousel .swiper-slide {
  display: flex;
  height: auto;
  min-width: 0;
  scroll-snap-align: start;
}

.ipm-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #f3f3f3 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ipm-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
}

.ipm-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #121212;
}

.ipm-product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.2) 100%);
}

.ipm-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  transition: transform 0.45s ease;
  backface-visibility: hidden;
}

.ipm-product-card:hover .ipm-product-card__media img {
  transform: scale(1.04);
}

.ipm-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
}

.ipm-product-card__category {
  color: #f94c13;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ipm-product-card__body h2 {
  margin: 0;
  color: #111;
  font-size: 28px;
  line-height: 1.1;
}

.ipm-product-card__body p {
  margin: 0;
  color: #4b4b4b;
  font-size: 15px;
  line-height: 1.7;
}

.ipm-product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 14px 20px;
  border-radius: 999px;
  background: #0d0d0d;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.ipm-product-card__button:hover {
  background: #f94c13;
  color: #fff;
}

.ipm-products-carousel__footer {
  display: flex !important;
  width: 100%;
  margin-top: 30px;
  padding-top: 0 !important;
  justify-content: center !important;
  align-items: center !important;
}

.ipm-products-hero .ipm-products-carousel__nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: auto !important;
  margin: 0 auto !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ipm-products-hero .ipm-products-carousel__nav .swiper-button-prev,
.ipm-products-hero .ipm-products-carousel__nav .swiper-button-next {
  margin: 0 !important;
}

.ipm-products-hero .ipm-products-carousel__arrow {
  appearance: none;
  -webkit-appearance: none;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.sou-aluno-performance-lite .ipm-products-hero::before,
.sou-aluno-performance-lite .ipm-products-hero::after {
  display: none;
}

.sou-aluno-performance-lite .ipm-product-card {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sou-aluno-performance-lite .ipm-product-card__media img {
  transition-duration: 0.24s;
}

.sou-aluno-performance-lite .ipm-products-hero .ipm-products-carousel__arrow {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.ipm-products-hero .ipm-products-carousel__arrow-icon {
  display: inline-block !important;
  color: currentColor !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.ipm-products-hero .ipm-products-carousel__arrow:hover {
  border-color: rgba(249, 76, 19, 0.5) !important;
  background: linear-gradient(180deg, #ff6a2e 0%, #f94c13 100%) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(249, 76, 19, 0.28);
}

.ipm-products-hero .ipm-products-carousel__arrow.swiper-button-disabled {
  opacity: 0.3 !important;
  cursor: default !important;
  pointer-events: none !important;
  transform: none !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
}

@media screen and (max-width: 1199px) {
  .ipm-products-carousel .swiper-wrapper {
    grid-auto-columns: calc((100% - 48px) / 3);
  }

  .ipm-product-card__body h2 {
    font-size: 24px;
  }
}

@media screen and (max-width: 1023px) {
  .ipm-products-carousel .swiper-wrapper {
    grid-auto-columns: calc((100% - 22px) / 2);
    gap: 22px;
  }
}

@media screen and (max-width: 767px) {
  .ipm-products-hero {
    padding: 140px 0 90px;
  }

  .ipm-products-hero__intro {
    margin-bottom: 32px;
  }

  .ipm-products-hero__intro p {
    font-size: 16px;
  }

  .ipm-products-carousel .swiper-container {
    overflow: visible;
  }

  .ipm-products-carousel .swiper-wrapper {
    grid-auto-columns: 86%;
    gap: 18px;
    padding: 6px 0 10px;
  }

  .ipm-product-card {
    border-radius: 22px;
  }

  .ipm-product-card__body {
    padding: 22px;
  }

  .ipm-product-card__body h2 {
    font-size: 24px;
  }

  .ipm-products-carousel__footer {
    margin-top: 22px;
  }

  .ipm-products-hero .ipm-products-carousel__arrow {
    width: 50px !important;
    height: 50px !important;
  }

  .ipm-products-hero .ipm-products-carousel__arrow-icon {
    font-size: 20px !important;
  }
}
