/* ==========================================================================
   Never Shy - strona główna: polecane produkty i kafle kategorii
   (układ i kolory zdjęte ze starego sklepu nevershy.pl)
   ========================================================================== */

#wrapper {
  overflow-x: clip;
}

/* slider styka się z polecanymi, jak na starej stronie */
body#index #carousel:has(+ .ns-feat) {
  margin-bottom: 0 !important;
}

/* ---------- Polecane: zdjęcie + kolorowy kafel, 3 w rzędzie, na całą szerokość okna ---------- */
.ns-feat {
  position: relative;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100vw;
  margin: 0 0 40px -50vw;
}

.ns-feat-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #a4354a;
  color: #eeece5;
}

/* drugi rząd jaśniejszy (rzędy po 3) */
.ns-feat-item:nth-child(6n + 4),
.ns-feat-item:nth-child(6n + 5),
.ns-feat-item:nth-child(6n + 6) {
  background: #db616e;
}

.ns-feat-photo {
  display: block;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  background: #f4f4f6;
}

.ns-feat-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
}

.ns-feat-item:hover .ns-feat-photo img {
  transform: scale(1.04);
}

.ns-feat-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 14px 22px;
  text-align: center;
}

.ns-feat-name {
  margin: 0;
  width: 100%;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 1.65vw, 24px);
  font-weight: 300;
  line-height: 1.25;
  text-transform: uppercase;
}

.ns-feat-name a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #eeece5 !important;
}

.ns-feat-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  margin: 8px 0;
  color: #eeece5;
  font-size: 13px;
  line-height: 1.2;
}

.ns-feat-more {
  display: inline-block;
  color: #eeece5 !important;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

/* szeroka strzałka w dół pod "Zobacz" */
.ns-feat-more::after {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin: -18px auto 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: scaleY(.55) rotate(45deg);
  transition: transform .2s ease;
}

.ns-feat-more:hover::after {
  transform: translateY(3px) scaleY(.55) rotate(45deg);
}

/* tablet: 2 w rzędzie, kolory co drugi rząd */
@media (max-width: 1099px) {
  .ns-feat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ns-feat-item:nth-child(n) {
    background: #a4354a;
  }

  .ns-feat-item:nth-child(4n + 3),
  .ns-feat-item:nth-child(4n + 4) {
    background: #db616e;
  }

  .ns-feat-name {
    font-size: clamp(15px, 2.4vw, 22px);
  }
}

/* telefon: 1 w rzędzie, kolory na zmianę */
@media (max-width: 575px) {
  .ns-feat {
    grid-template-columns: minmax(0, 1fr);
  }

  .ns-feat-item:nth-child(n) {
    background: #a4354a;
  }

  .ns-feat-item:nth-child(even) {
    background: #db616e;
  }

  .ns-feat-name {
    font-size: 18px;
  }

  .ns-feat-more {
    font-size: 17px;
  }
}

/* ---------- Kafle kategorii: kwadraty, 3 w rzędzie ---------- */
.ns-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 40px;
}

.ns-tile {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f4f6;
}

.ns-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .2s ease;
}

a.ns-tile:hover img {
  transform: scale(1.03);
  opacity: .93;
}

@media (max-width: 575px) {
  .ns-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
