/**
 * ============================================================
 * فروشندگان منتخب — باکس‌های ۲×۲ محصول برای هر فروشنده
 * BEM: .hp26-seller / .hp26-seller__*
 * ============================================================
 */

.hp26-sellers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

@media (min-width: 576px) {
  .hp26-sellers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .hp26-sellers__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hp26-seller {
  --seller-radius: 1.15rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(0.95rem, 1.8vw, 1.25rem);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-default);
  border-radius: var(--seller-radius);
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--transition-normal),
              border-color var(--transition-fast);
}

.hp26-seller:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-floating);
  border-color: rgba(143, 11, 19, 0.18);
}

.hp26-seller::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--seller-radius);
  background: radial-gradient(120px 90px at var(--hp26-x, 50%) var(--hp26-y, 0%), rgba(143, 11, 19, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.hp26-seller:hover::before { opacity: 1; }

.hp26-seller__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  text-decoration: none;
  z-index: 1;
}

.hp26-seller__name {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1.35;
}

.hp26-seller__verified {
  font-size: 0.85rem;
  color: var(--color-brand-accent);
  flex-shrink: 0;
}

.hp26-seller__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-accent-subtle);
  color: var(--color-brand-accent);
  font-size: 0.68rem;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.hp26-seller__rating i { font-size: 0.65rem; }

.hp26-seller__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  z-index: 1;
}

.hp26-seller__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0.35rem;
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-default);
  border-radius: 0.7rem;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--duration-fast) var(--ease-out);
}

.hp26-seller__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hp26-seller__thumb:hover {
  border-color: rgba(143, 11, 19, 0.3);
  transform: translateY(-2px);
}

.hp26-seller__thumb--empty {
  background: var(--color-bg-sunken);
  border-style: dashed;
  pointer-events: none;
}

.hp26-seller__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
  font-size: 0.76rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  z-index: 1;
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.hp26-seller__more i { font-size: 0.7rem; }

.hp26-seller__more:hover {
  color: var(--hb-red, var(--color-brand-primary));
  gap: 0.5rem;
}

@media (max-width: 575px) {
  .hp26-seller { padding: 0.8rem; gap: 0.6rem; }
  .hp26-seller__name { font-size: 0.85rem; }
  .hp26-seller__thumbs { gap: 0.4rem; }
}
