/* Sale Product Filter — standalone styles (all classes prefixed "pfs-") */

.pfs-wrap {
  position: relative;
}

.pfs-loading {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}
.pfs-spin {
  width: 34px;
  height: 34px;
  border: 3px solid #e5e5e5;
  border-top-color: #333;
  border-radius: 50%;
  animation: pfs-spin 0.8s linear infinite;
}
@keyframes pfs-spin {
  to { transform: rotate(360deg); }
}

.pfs-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}
.pfs-wrap[data-columns="2"] .pfs-grid { grid-template-columns: repeat(2, 1fr); }
.pfs-wrap[data-columns="3"] .pfs-grid { grid-template-columns: repeat(3, 1fr); }
.pfs-wrap[data-columns="4"] .pfs-grid { grid-template-columns: repeat(4, 1fr); }
.pfs-wrap[data-columns="5"] .pfs-grid { grid-template-columns: repeat(5, 1fr); }

.pfs-card {
  background: #fff;
  overflow: hidden;
  border-radius: 0;
  border-bottom: 1px solid #f4f4f4;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pfs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.pfs-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
}
.pfs-img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.pfs-img-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfs-sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  z-index: 5;
}

.pfs-card-info {
  padding: 14px;
}
.pfs-cat {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 6px;
  font-weight: 500;
}
.pfs-name {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.4;
}
.pfs-name a {
  color: #222;
  text-decoration: none;
}
.pfs-name a:hover { color: #000; }

.pfs-price {
  font-size: 18px;
  font-weight: 700;
  color: #211f20;
  letter-spacing: 0.38px;
}
.pfs-price del {
  color: #aaa;
  font-weight: 400;
  margin-right: 6px;
}
.pfs-price ins {
  text-decoration: none;
  color: #c0392b;
}

.pfs-no-prod {
  padding: 30px 0;
  text-align: center;
  color: #777;
}

/* Pagination */
.pfs-pager { margin-top: 36px; }
.pfs-pages-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.pfs-pages {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pfs-page {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #e2e2e2;
}
.pfs-page.current {
  background: #211f20;
  color: #fff;
  border-color: #211f20;
}
.pfs-page:hover:not(.current) { background: #f2f2f2; }

@media (max-width: 1100px) {
  .pfs-wrap[data-columns="5"] .pfs-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .pfs-wrap[data-columns="4"] .pfs-grid,
  .pfs-wrap[data-columns="5"] .pfs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .pfs-wrap[data-columns="3"] .pfs-grid,
  .pfs-wrap[data-columns="4"] .pfs-grid,
  .pfs-wrap[data-columns="5"] .pfs-grid { grid-template-columns: repeat(2, 1fr); }
  .pfs-grid { gap: 14px; }
}
@media (max-width: 400px) {
  .pfs-wrap[data-columns="2"] .pfs-grid,
  .pfs-wrap[data-columns="3"] .pfs-grid,
  .pfs-wrap[data-columns="4"] .pfs-grid,
  .pfs-wrap[data-columns="5"] .pfs-grid { grid-template-columns: repeat(1, 1fr); }
}
