/* =========================================================
   TAP Reviews List — filterable grid
   ========================================================= */

.tap-reviews-list-wrap {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  margin: 0 0 40px;
}

/* ─── Filters ────────────────────────────────────────────── */
.tap-rl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  background: #f8f9fb;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e8eaed;
}

.tap-rl-search-wrap { flex: 1; min-width: 220px; }

.tap-rl-search {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .18s;
}

.tap-rl-search:focus { border-color: #FF6B35; box-shadow: 0 0 0 3px rgba(255,107,53,.1); }

.tap-rl-selects { display: flex; gap: 10px; flex-wrap: wrap; }

.tap-rl-select {
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 9px 32px 9px 12px;
  font-size: 13px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  transition: border-color .18s;
}

.tap-rl-select:focus { border-color: #FF6B35; }

/* ─── Info row ───────────────────────────────────────────── */
.tap-rl-info {
  font-size: 13px;
  color: #777;
  margin-bottom: 16px;
}

/* ─── Grid ───────────────────────────────────────────────── */
.tap-rl-grid {
  display: grid;
  grid-template-columns: repeat(var(--tap-rl-cols, 3), 1fr);
  gap: 20px;
  min-height: 200px;
}

.tap-rl-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  color: #666;
  font-size: 15px;
}

.tap-rl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #888;
  font-size: 15px;
}

/* ─── Card ───────────────────────────────────────────────── */
.tap-rl-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}

.tap-rl-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.tap-rl-card-img-wrap {
  position: relative;
  background: #f5f6fa;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tap-rl-card-img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.tap-rl-card-img-placeholder {
  font-size: 52px;
  opacity: .3;
}

.tap-rl-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,.06);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 3px;
}

.tap-rl-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tap-rl-card-brand {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.tap-rl-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

.tap-rl-card-name a {
  color: inherit;
  text-decoration: none;
}

.tap-rl-card-name a:hover { color: #FF6B35; }

.tap-rl-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tap-rl-card-stars { color: #FFB800; font-size: 14px; }
.tap-rl-card-score { font-size: 13px; font-weight: 700; color: #333; }

.tap-rl-card-price {
  font-size: 17px;
  font-weight: 800;
  color: #22c55e;
}

.tap-rl-card-platform {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tap-rl-card-footer {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 8px;
}

.tap-rl-card-btn-review {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.tap-rl-card-btn-review:hover { border-color: #FF6B35; color: #FF6B35; }

.tap-rl-card-btn-buy {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  transition: filter .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tap-rl-card-btn-buy:hover { filter: brightness(1.1); }

/* ─── Pagination ─────────────────────────────────────────── */
.tap-rl-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.tap-rl-page-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  color: #555;
}

.tap-rl-page-btn:hover { border-color: #FF6B35; color: #FF6B35; }
.tap-rl-page-btn.active { background: #FF6B35; border-color: #FF6B35; color: #fff; }
.tap-rl-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .tap-rl-grid { --tap-rl-cols: 2 !important; }
  .tap-rl-filters { flex-direction: column; }
  .tap-rl-selects { width: 100%; }
  .tap-rl-select { flex: 1; }
}

@media (max-width: 480px) {
  .tap-rl-grid { --tap-rl-cols: 1 !important; }
}
