/* ================================
   NLP PRODUCT GALLERY (FULL CSS)
================================ */

/* HERO */
.nlp-hero {
  padding: 70px 0;
}

.nlp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.nlp-hero__media {
  min-width: 0;
}

/* ================================
   GALLERY LAYOUT
================================ */

.nlp-gallery {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  position: relative;
}

/* Rail = one grid cell */
.nlp-gallery__rail {
  width: 90px;
}

.nlp-thumbs {
  width: 90px;
}

.nlp-thumbs .splide__track {
  max-height: 540px;
  overflow: hidden;
}

/* Vertical list spacing */
.nlp-thumbs .splide__list {
  display: flex;
  flex-direction: column;
  @media (max-width: 767px) {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.nlp-thumbs .splide__slide {
  flex: 0 0 auto;
}

/* Thumb button */
.nlp-gallery__thumb {
  appearance: none;
  border: 0;
  padding: 0;

  border-radius: 4px;
  background: #282828;
  width: 90px;
  height: 90px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.25;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  will-change: transform, opacity;
}

.nlp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nlp-thumbs .splide__arrow {
  width: 100%;
  height: 22px;
  background: #282828;
  position: static;
  transform: none;
  margin: 0;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  opacity: 1;
  display: grid;
  place-items: center;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* remove Splide's default arrow icon */
.nlp-thumbs .splide__arrow svg {
  display: none !important;
}

.nlp-thumbs .splide__arrow::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;

  background-image: url("/wp-content/uploads/2026/02/slider-arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

/* Hover */
.nlp-thumbs .splide__arrow:hover {
  background: var(--dark);
  transform: translateY(-1px);
}

.nlp-thumbs .splide__arrow:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

/* Ensure correct position: up above, down below */
.nlp-thumbs .splide__arrow--prev {
  order: -1; /* top */
  margin-bottom: 6px;
}

/* Rotate PREV arrow (UP) */
.nlp-thumbs .splide__arrow--prev::before {
  transform: rotate(180deg);
}

.nlp-thumbs .splide__arrow--next {
  order: 2; /* bottom */
}

.nlp-gallery__main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  background: #282828;
  display: grid;
  place-items: center;
  max-height: 540px;
}

.nlp-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transform-origin: center;
  transition:
    transform 0.45s ease,
    opacity 0.28s ease;
  will-change: transform, opacity;
}

.nlp-hero__summary {
  padding-top: 9px;
  min-width: 0;
}

.nlp-hero__kicker {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 18px */
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.nlp-hero__title {
  font-family: Matrice;
  font-size: clamp(22px, 2.8vw, 30px);
  font-style: normal;
  font-weight: 500;
  line-height: clamp(30px, 4vw, 40px); /* 133.333% */
  letter-spacing: -0.9px;
  margin-bottom: 16px;
}

.nlp-hero__rating {
  margin-bottom: 16px;
}

.single-product .single_add_to_cart_button {
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: clamp(22px, 2.2vw, 23px);
  width: 100%;
  text-transform: capitalize;
}

.single-product .quantity {
  display: none;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1100px) {
  .nlp-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .nlp-gallery {
    grid-template-columns: 110px 1fr;
    gap: 18px;
  }

  .nlp-gallery__main {
    min-height: 560px;
  }

  .nlp-gallery__main-img {
    max-height: 520px;
    width: 95%;
  }
}

@media (max-width: 520px) {
  .nlp-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nlp-gallery__rail {
    width: 100%;
    order: 2;
  }

  .nlp-thumbs {
    width: 100%;
  }

  .nlp-thumbs .splide__track {
    height: auto;
  }

  /* .nlp-thumbs .splide__list {
    flex-direction: row;
    gap: 12px;
  } */

  /* hide arrows on mobile */
  .nlp-thumbs .splide__arrows {
    display: none;
  }

  .nlp-gallery__main {
    min-height: 420px;
  }

  .nlp-gallery__main-img {
    max-height: 380px;
  }
}
