/* ==========================================================================
   index.css
   ========================================================================== */

/* چیدمان آمار در سمت راست همراه با کارت‌های کوچک برای اعداد[cite: 4] */
.hero-stats {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px 6px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

/* مربع کوچک دور عدد[cite: 4] */
.stat-box {
  width: 36px;
  height: 36px;
  background: var(--amber);
  color: #111;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(245, 165, 36, 0.3);
}

.stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* اصلاح اندازه و چیدمان کارت‌ها فقط در حالت موبایل[cite: 4] */
@media (max-width: 768px) {
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 639px) {
  .grid .card {
    display: grid !important;
    grid-template-columns: 100px 1fr !important;
    gap: 12px !important;
    padding: 10px !important;
    align-items: start;
    text-align: right !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .grid .card-media {
    width: 100px !important;
    height: 100px !important;
    border-radius: 10px;
    flex-shrink: 0;
    grid-column: 1;
  }

  .grid .card-image,
  .grid .card-placeholder {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
  }

  .grid .card-body {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    text-align: right !important;
  }

  .grid .card-title {
    text-align: right !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .grid .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }

  .grid .card-price {
    margin-top: 4px;
    text-align: right !important;
  }
}