
.paf-wrap {
  --paf-border: #5A503A;
  --paf-gap: 26px;
  --paf-columns-desktop: 5;
  --paf-columns-tablet: 3;
  --paf-columns-mobile: 2;
}
.paf-wrap * { box-sizing: border-box; }
.paf-wrap.is-loading { opacity: .82; transition: opacity .2s ease; }
.paf-toolbar { margin-bottom: 22px; }
.paf-search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 650px;
}
.paf-search {
  flex: 1 1 280px;
  min-width: 220px;
  min-height: 55px !important;
  padding: 12px 16px !important;
  border: 2px solid var(--paf-border) !important;
  background: rgba(0,0,0,.18) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.paf-search::placeholder { color: rgba(255,255,255,.72); }
.paf-search:focus { border-color: #8d7b57 !important; background: rgba(0,0,0,.28) !important; }
.paf-reset-btn {
  border: 2px solid var(--paf-border) !important;
  background: rgba(0,0,0,.18) !important;
  color: #fff !important;
  min-height: 52px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.paf-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; }
.paf-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer;
}
.paf-filter-switch {
  width: 42px;
  height: 22px;
  border: 1px solid #7d6d4d;
  background: rgba(20,16,10,.75);
  border-radius: 999px;
  position: relative;
  display: inline-block;
  transition: background-color .22s ease, border-color .22s ease;
}
.paf-filter-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #bba06a;
  position: absolute;
  left: 3px;
  top: 2px;
  transition: transform .22s ease, background-color .22s ease;
}
.paf-filter-chip.is-active .paf-filter-switch { background: rgba(148,112,33,.28); border-color: #b8943e; }
.paf-filter-chip.is-active .paf-filter-knob { transform: translateX(19px); background: #f1c35a; }
.paf-filter-label { font-weight: 700; }
.paf-results-wrap { position: relative; }
.paf-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  margin: 12px 0 22px;
}
.paf-wrap.is-loading .paf-loading { display: flex; }
.paf-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, .25);
  border-top-color: #ffd700;
  animation: paf-spin 0.8s linear infinite;
}
@keyframes paf-spin { to { transform: rotate(360deg); } }
.paf-grid {
  display: grid;
  grid-template-columns: repeat(var(--paf-columns-desktop), minmax(0, 1fr));
  gap: var(--paf-gap);
  align-items: start;
}
.paf-card {
  min-width: 0;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.paf-card-inner { position: relative; width: 100%; }
.paf-artifact-wrap { position: relative; margin-bottom: 10px; }
.paf-artifact-image {
  width: 128px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.paf-hero-bg {
  position: absolute;
  bottom: -2px;
  left: 18px;
  width: 48px;
  height: 74px;
  padding: 2px 2px 0 2px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  z-index: 3;
  border: 1px solid #ffd700;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
.paf-hero-image {
  width: 44px;
  height: 72px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.paf-rating {
  position: absolute;
  right: 18px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.88);
  color: #ffd700;
  border: 2px solid #ffd700 !important;
  border-radius: 12px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 0 10px rgba(0,0,0,.35);
  z-index: 4;
}
.paf-title {
  margin: -9px auto 0 auto;
  background: rgba(0,0,0,.96) !important;
  color: #fff !important;
  padding: 10px 10px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
  border: 2px solid #ffd700 !important;
  transition: all .22s ease;
}
.paf-card:hover .paf-title { background: #111 !important; transform: translateY(-1px); }
.paf-empty {
  color: #fff;
  text-align: center;
  grid-column: 1 / -1;
  padding: 30px 10px;
}
.paf-load-sentinel { height: 2px; width: 100%; }
@media (max-width: 991px) {
  .paf-grid { grid-template-columns: repeat(var(--paf-columns-tablet), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .paf-grid { grid-template-columns: repeat(var(--paf-columns-mobile), minmax(1, 1fr)); gap: 18px 10px; }
  .paf-search-wrap { max-width: none; }
  .paf-artifact-image { width: 110px; }
  .paf-card { max-width: 180px; }
  .paf-title { font-size: 13px; padding: 8px 8px; }
  .paf-hero-bg { left: 18px; }
  .paf-rating { right: 6px; }
}

.paf-load-more-wrap { text-align:center; margin: 22px 0 8px; }
.paf-load-more-btn { border: 2px solid var(--paf-border) !important; background: rgba(0,0,0,.18) !important; color:#fff !important; min-height:48px; padding:10px 20px; cursor:pointer; }
.paf-load-more-btn:hover { background: rgba(255,255,255,.06) !important; }

.paf-card-exclusive .paf-title {
  border-color: #ff3b3b !important;
  box-shadow:
    0 0 0 1px #ff3b3b inset,
    0 0 10px rgba(255,215,0,.85),
    0 0 20px rgba(255,215,0,.65),
    0 0 30px rgba(255,215,0,.38) !important;
}
