/* ═══════════════════════════════════════
   PRODUCTS — Hall/product cards and grid
   ═══════════════════════════════════════ */

/* ── Card Grid ────────────── */
.y-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--y-space-xxl);
}

/* ── Card Base ────────────── */
.y-product-card,
.card {
  background: var(--y-color-white);
  border-radius: var(--y-radius-2xl);
  overflow: hidden;
  border: 1px solid var(--y-color-border);
  transition: all var(--y-transition-smooth);
  position: relative;
}

.y-product-card:hover,
.card:hover {
  box-shadow: var(--y-shadow-l);
}

/* ── Card Image ───────────── */
.card-img {
  position: relative;
  height: 224px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--y-transition-long);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

/* ── Card Body ────────────── */
.card-body {
  padding: var(--y-space-xl);
}

/* ── Card Rating ──────────── */
.card-rating {
  position: absolute;
  top: var(--y-space-l);
  left: var(--y-space-l);
  background: rgba(255, 255, 255, 0.9);
  color: #0e0e0e;
  backdrop-filter: blur(8px);
  border-radius: var(--y-radius-m);
  padding: var(--y-space-xs) var(--y-space-m);
  display: flex;
  align-items: center;
  gap: var(--y-space-xs);
  font-size: var(--y-font-s);
  font-weight: var(--y-weight-semibold);
}

.card-rating i,
.card-rating svg,
.card-rating .eh-card-star {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Card Category ────────── */
.card-category {
  position: absolute;
  top: var(--y-space-l);
  right: var(--y-space-l);
  background: rgba(107, 29, 58, 0.9);
  color: var(--y-color-white);
  border-radius: var(--y-radius-m);
  padding: var(--y-space-xs) var(--y-space-m);
  font-size: var(--y-font-s);
}

.card-category.cat-modern {
  background: rgba(101, 60, 8, 0.92);
}

.card-category.cat-classic {
  background: rgba(30, 64, 175, 0.92);
}

.card-category.cat-national {
  background: rgba(107, 29, 58, 0.92);
}

.card-category.cat-outdoor {
  background: rgba(21, 128, 61, 0.92);
}

/* ── Fav Button ───────────── */
.card-fav-btn {
  position: absolute;
  top: 205px;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: #9ca3af;
  border: none;
}

.card-fav-btn i,
.card-fav-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Card Body Content ────── */
.card-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.card-desc {
  margin-bottom: 0.75rem;
}

.card-location {
  margin-bottom: 0.5rem;
}

.card-capacity {
  margin-bottom: 0.75rem;
}

.card-meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card-tags {
  margin-bottom: 1rem;
}

.tag-more {
  color: var(--muted);
}

.card-footer {
  padding-top: 1rem;
}

.card-price {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.card-details {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--y-space-xs);
}

.card-details i,
.card-details svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Out of Stock State ───── */
.y-product-card.out-of-stock {
  opacity: 0.6;
}

.y-product-card.out-of-stock .card-img::after {
  content: 'غير متاح';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--y-color-white);
  font-weight: var(--y-weight-bold);
  font-size: var(--y-font-l);
}

/* ═══════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════ */

@media (max-width: 1200px) {
  .y-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--y-space-l);
  }
}

@media (max-width: 992px) {
  .y-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .y-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--y-space-l);
  }

  .card-body {
    padding: var(--y-space-l);
  }
}

@media (max-width: 480px) {
  .y-product-grid {
    grid-template-columns: 1fr;
  }

  .card-img {
    height: 200px;
  }

  .card-body {
    padding: var(--y-space-m);
  }
}