/* =========================================================
   WR Product Category Grid
========================================================= */

.wr-pcg{
  --wr-pcg-cols: 5;
  --wr-pcg-cols-laptop: var(--wr-pcg-cols);
  --wr-pcg-cols-tablet: 3;
  --wr-pcg-cols-mobile: 2;
  width: 100%;
}

.wr-pcg__grid{
  display: grid;
  grid-template-columns: repeat(var(--wr-pcg-cols), minmax(0, 1fr)) !important;
  gap: 28px;
}

.wr-pcg__card{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  /* padding: 18px 18px 22px; */
  text-align: center;
  overflow: hidden;
  margin: 0; /* reset ewentualnych globalnych marginesów dla <article> */
}

/* Dodatkowy pionowy oddech, gdy układ jest 1-kolumnowy */
.wr-pcg.wr-pcg--one-col-desktop .wr-pcg__card{
  margin-top: 12px;
  margin-bottom: 12px;
}

.wr-pcg__thumb{
  display: flex;
  justify-content: center;
  height: 265px;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
}

.wr-pcg__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  opacity: 1;
  transition: transform .25s ease, opacity .25s ease;
}

.wr-pcg__img--ph{
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.04);
}

.wr-pcg__title{
  margin: 18px 0 16px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
}

.wr-pcg__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  background: #FF2D7A;
  color: #fff;
  padding: 14px 36px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  transition: filter .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.wr-pcg__btn:hover{
  filter: brightness(0.95);
}

.wr-pcg__more-wrap{
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.wr-pcg__more{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  color: #FF2D7A;
  border: 1px solid #FF2D7A;
  padding: 18px 48px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1;
  min-width: 520px;
  max-width: 100%;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.wr-pcg__more:hover{
  background: rgba(255,45,122,0.06);
}

.wr-pcg__empty{
  padding: 16px;
  border: 1px dashed rgba(0,0,0,0.2);
  grid-column: 1 / -1;
}

/* =========================================================
   RWD
========================================================= */

@media (max-width: 1540px){
  .wr-pcg__grid{
    grid-template-columns: repeat(var(--wr-pcg-cols-laptop), minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px){
  .wr-pcg__grid{
    grid-template-columns: repeat(var(--wr-pcg-cols-tablet), minmax(0, 1fr)) !important;
  }
  .wr-pcg.wr-pcg--one-col-tablet .wr-pcg__card{
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .wr-pcg__more{
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767px){
  .wr-pcg__grid{
    grid-template-columns: repeat(var(--wr-pcg-cols-mobile), minmax(0, 1fr)) !important;
    gap: 18px;
  }
  .wr-pcg.wr-pcg--one-col-mobile .wr-pcg__card{
    margin-top: 8px;
    margin-bottom: 8px;
  }
  .wr-pcg__thumb{
    height: 210px;
  }
}
