/* =========================================================
   TAP Related Reviews Slider
   ========================================================= */

.tap-related-wrap {
  margin: 36px 0 24px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Header */
.tap-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tap-related-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}

.tap-related-nav {
  display: flex;
  gap: 8px;
}

.tap-related-prev,
.tap-related-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  color: #555;
}

.tap-related-prev:hover,
.tap-related-next:hover {
  border-color: #FF6B35;
  color: #FF6B35;
  background: rgba(255,107,53,.05);
}

.tap-related-prev:disabled,
.tap-related-next:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* Track */
.tap-related-track-wrap {
  overflow: hidden;
  border-radius: 12px;
}

.tap-related-track {
  display: flex;
  gap: 16px;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Card */
.tap-related-card {
  flex: 0 0 calc(25% - 12px);
  min-width: 180px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}

.tap-related-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* Image */
.tap-related-card-img-link {
  display: block;
  background: #f5f6fa;
  padding: 16px;
  text-align: center;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
}

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

.tap-related-card-img-placeholder {
  font-size: 40px;
  opacity: .3;
}

/* Body */
.tap-related-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.tap-related-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tap-related-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.tap-related-card-score {
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.tap-related-card-price {
  font-size: 14px;
  font-weight: 800;
  color: #22c55e;
  margin-top: 2px;
}

/* Footer */
.tap-related-card-footer {
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 6px;
}

.tap-related-card-btn-review {
  flex: 1;
  text-align: center;
  padding: 7px 6px;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}

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

.tap-related-card-btn-buy {
  flex: 1;
  text-align: center;
  padding: 7px 6px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: filter .15s;
}

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

/* Responsive */
@media (max-width: 900px) {
  .tap-related-card { flex: 0 0 calc(33.333% - 11px); }
}

@media (max-width: 600px) {
  .tap-related-card { flex: 0 0 calc(50% - 8px); }
  .tap-related-title { font-size: 16px; }
}

@media (max-width: 380px) {
  .tap-related-card { flex: 0 0 calc(80%); }
}
