.bestsellers {
  padding: 60px 20px;
  background: #fff;
  background-color: var(--gray);
}

.bestsellers__title {
  text-align: center;
}
/* .bestsellers__title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
} */

.bestsellers__subtitle {
  color: #555;
  font-size: 13px;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
  text-align: center;
}

.bestsellers__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5em;
  justify-items: center;
}

.bestsellers__item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  max-width: 230px;
}

.bestsellers__item:hover {
  transform: translateY(-4px);
}

.bestsellers__img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bestsellers__desc {
  margin-top: 8px;
}

.bestsellers__desc h3 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin: 6px 0 2px;
  color: #333;
}

.bestsellers__desc p {
  font-size: 14px;
  color: #000;
}

.bestsellers__footer {
  margin-top: 50px;
  text-align: center;
}

.btn.btn-dark {
  background-color: #1f1f1f;
  color: #fff;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn.btn-dark:hover {
  background-color: #333;
}

/* ===========================
   RESPONSYWNOŚĆ
   =========================== */

/* 💻 Duże ekrany */
@media (min-width: 1400px) {
  .bestsellers__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* 🖥️ Laptopy */
@media (max-width: 1399px) and (min-width: 1200px) {
  .bestsellers__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 💻 Standardowe desktopy i tablety w poziomie */
@media (max-width: 1199px) and (min-width: 992px) {
  .bestsellers__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 📱 Tablety */
@media (max-width: 991px) and (min-width: 768px) {
  .bestsellers__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bestsellers__subtitle {
    font-size: 13px;
  }
}

/* 📱 Telefony */
@media (max-width: 767px) {
  .bestsellers {
    padding: 40px 10px;
  }

  .bestsellers__grid {
    font-size: 11px;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75em;
  }

  .bestsellers__item {
    max-width: none;
  }

  .bestsellers__subtitle {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 25px;
  }

  .btn.btn-dark {
    padding: 10px 20px;
    font-size: 14px;
  }
}


/* GALERIA */
.bestsellers-gallery {
  padding: 0;
  background: #fff;
}

.bestsellers-gallery__title {
  text-align: center;
  font-family: var();
  font-size: 26px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: #222;
}

.bestsellers-gallery__grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.bestsellers-gallery__item {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  transition: all .3s ease;
}

.bestsellers-gallery__item picture,
.bestsellers-gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s ease;
}

.bestsellers-gallery__item:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

/* --- RESPONSYWNOŚĆ --- */

/* 6 w rzędzie - duże ekrany
@media (min-width: 1400px) {
  .bestsellers-gallery__grid .bestsellers-gallery__item {
    flex-basis: auto;
  }
}

/* 5 w rzędzie */
@media (max-width: 1399px) and (min-width: 1200px) {
  .bestsellers-gallery__grid .bestsellers-gallery__item {
    flex-basis: calc(100% / 5 - 6px);
  }
}

/* 4 w rzędzie */
@media (max-width: 1199px) and (min-width: 992px) {
  .bestsellers-gallery__grid .bestsellers-gallery__item {
    flex-basis: calc(100% / 4 - 6px);
  }
}

/* 3 w rzędzie */
@media (max-width: 991px) and (min-width: 768px) {
  .bestsellers-gallery__grid .bestsellers-gallery__item {
    flex-basis: calc(100% / 3 - 6px);
  }
}

/* 2 w rzędzie - telefony */
@media (max-width: 767px) {
  .bestsellers-gallery__grid {
    flex-wrap: wrap;
  }
  .bestsellers-gallery__grid .bestsellers-gallery__item {
    flex-basis: calc(50% - 6px);
  }
  .bestsellers-gallery__grid .bestsellers-gallery__item img {
    aspect-ratio: 1/1;
  }
} */
