﻿/* RTL base */
html[dir="rtl"] body { font-family: system-ui, -apple-system, Segoe UI, Tahoma, Arial, sans-serif; }

/* Horizontal list container */
.items-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 2px 12px;
  scroll-snap-type: x mandatory;
}
.items-row::-webkit-scrollbar { height: 10px; }
.items-row::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 8px; }
.items-row::-webkit-scrollbar-track { background: #111827; }

/* Card */
.item-card {
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 12px;
  min-width: 240px;
  max-width: 260px;
  flex: 0 0 auto;
  padding: 12px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
  scroll-snap-align: start;
}
.item-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.45); }

.item-thumb { width: 100%; height: 160px; object-fit: contain; background:#111827; border-radius: 10px; }
.item-name { font-size: 1.05rem; font-weight: 700; margin: 10px 0 6px; color:#fff; }
.item-price { color:#a78bfa; font-weight: 700; margin-top: 6px; }

/* Hover details tooltip */
.item-features {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  background: rgba(17,24,39,0.96);
  border: 1px solid rgba(255,255,255,0.06);
  color: #d1d5db;
  border-radius: 10px;
  padding: 10px;
  font-size: .9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.item-card:hover .item-features { opacity: 1; transform: translateY(0); }
.item-feature { display:block; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Header & layout helpers */
.site-header { background: linear-gradient(90deg, #3730a3, #6d28d9); color:#fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color:#9ca3af; }

@media (max-width: 640px) {
  .item-card { min-width: 200px; }
  .item-thumb { height: 140px; }
}
/* base styles */
