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

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

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

.wr-pcg__card{
  display: flex;
  flex-direction: column;
  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{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(1.35em * 3);
  margin: 18px 0 16px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
}

.wr-pcg__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: auto;
  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: 1024px){
  .wr-pcg__more{
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767px){
  .wr-pcg__grid{
    gap: 18px;
    grid-template-columns: 1fr !important;
  }
  .wr-pcg__card{
    width: 100%;
    max-width: 100%;
  }
  .wr-pcg__thumb{
    display: flex;
    width: 100%;
    min-height: 320px;
    height: 320px;
    align-items: center;
    justify-content: center;
  }
  .wr-pcg__img{
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    flex: 0 0 100%;
  }
  .wr-pcg__img--ph{
    min-height: 320px;
  }
  .wr-pcg__title{
    margin: 18px 0 14px;
    padding-inline: 12px;
  }
  .wr-pcg__btn{
    display: inline-flex;
    width: auto;
    margin: 0 0 16px;
  }
  .wr-pcg__more-wrap{
    width: 100%;
  }
  .wr-pcg__more{
    width: 100%;
  }
}

@media (max-width: 479px){
  .wr-pcg__thumb{
    min-height: 280px;
    height: 280px !important;
  }
  .wr-pcg__img{
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  .wr-pcg__img--ph{
    min-height: 280px;
  }
}
