/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --clr-white: #FFFFFF;
  --clr-navy: #00173C;
  --clr-navy-light: #0C2A56;
  --clr-red: #B40000;
  --clr-black: #0A0A0A;
  --clr-gray: #C7CEDA;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--clr-black);
  background: var(--clr-white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { font-family: inherit; }

/* ============ SECTION ============ */
.products {
  position: relative;
  background:rgb(250, 250, 250);
  padding: 100px 24px 110px;
  overflow: hidden;
}

.products__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.products__container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
}
.product-main{
  background: var(--clr-navy);

}
/* ============ TOP ============ */
.products__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 46px;
}

.products__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(180, 0, 0, 0.16);
  color: var(--clr-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.products__title {
  font-size: 34px;
  font-weight: 700;
  color: var(--clr-navy);
  max-width: 620px;
  line-height: 1.3;
}

.products__nav {
  display: flex;
  gap: 12px;
}

.products__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(243, 6, 6, 0.25);
  background: transparent;
  color: var(--clr-navy);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.products__arrow:hover {
  background: var(--clr-red);
  border-color: var(--clr-red);
  transform: translateY(-3px);
}

.products__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ============ SLIDER ============ */
.products__slider {
  position: relative;
}

/* Viewport: no native scrolling here anymore -> kills the wheel/scroll
   hijack issue. Only overflow:hidden, everything else is JS transform. */
.products__track {
  overflow: hidden;
  width: 100%;
  cursor: grab;
}

.products__track.is-dragging {
  cursor: grabbing;
}

/* Actual sliding row, moved purely with translateX + CSS transition
   so it always animates buttery smooth regardless of input device. */
.products__track-inner {
  display: flex;
  gap: 28px;
  transition: transform 0.65s var(--ease);
  will-change: transform;
  touch-action: pan-y; /* allow vertical page scroll on touch, we handle horizontal drag manually */
}

.products__track-inner.is-dragging {
  transition: none;
}

/* ---- Card ---- */
.product-card {
  flex: 0 0 calc((100% - 56px) / 3);
  background: var(--clr-white);
  border-radius: 8px;
  overflow: visible;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  user-select: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  pointer-events: none;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
  -webkit-user-drag: none;
}

.product-card:hover .product-card__media img {
  transform: scale(1.08);
}

.product-card__icon {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 68px;
  height: 68px;
  background: var(--clr-navy);
  border-radius: 6px;
  color: var(--clr-white);
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.product-card:hover .product-card__icon {
  background: var(--clr-red);
  color: var(--clr-white);
}

.product-card__body {
  padding: 42px 22px 26px;
}

.product-card__body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--clr-navy);
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 48px;
}

.product-card__body p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #6b7280;
  margin-bottom: 18px;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--clr-navy);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.product-card__link i {
  font-size: 11px;
  transition: transform 0.3s var(--ease);
}

.product-card__link:hover {
  color: var(--clr-red);
}

.product-card__link:hover i {
  transform: translateX(4px);
}

/* ---- Dots ---- */
.products__dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.products__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgb(8, 8, 8);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.products__dot.is-active {
  background: var(--clr-red);
  transform: scale(1.3);
}

/* ============ CTA BANNER ============ */
.products__cta {
  margin-top: 90px;
  background: var(--clr-white);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.25);
}

.products__cta-media {
  position: relative;
  min-height: 220px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
  aspect-ratio: 1615 / 974;
}

.products__cta-body {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 40px 44px 40px 10px;
}

.products__cta-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.products__cta-icon {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--clr-red);
  color: var(--clr-white);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ring 2.4s ease-in-out infinite;
}

@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(18deg); }
  20% { transform: rotate(-14deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(0deg); }
}

.products__cta-body h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 8px;
}

.products__cta-body a {
  font-size: 17px;
  font-weight: 600;
  color: var(--clr-red);
  transition: color 0.3s var(--ease);
}

.products__cta-body a:hover {
  color: var(--clr-navy);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .products__cta-icon {
    animation: none;
  }
  .products__track-inner {
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .product-card {
    flex: 0 0 calc((100% - 28px) / 2);
  }

  .products__dots {
    display: flex;
  }

  .products__title {
    font-size: 29px;
  }
}

@media (max-width: 767px) {
  .products__cta {
    grid-template-columns: 1fr;
  }

  .products__cta-media {
    clip-path: none;
    min-height: 200px;
  }

  .products__cta-body {
    padding: 32px 28px;
  }
}

@media (max-width: 639px) {
  .products {
    padding: 70px 18px 80px;
  }

  .products__top {
    align-items: flex-start;
  }

  .products__title {
    font-size: 24px;
  }

  .product-card {
    flex: 0 0 100%;
  }

  .product-card__body {
    padding: 40px 18px 22px;
  }

  .products__cta-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .products__label { font-size: 11.5px; }
  .products__title { font-size: 21px; }
}