/* ============================================================
   products.css — استایل کارت محصول و گرید
   ============================================================ */

/* ─── کارت محصول ─── */
.product-card {
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

/* تصویر/ایموجی محصول */
.pc-img {
  aspect-ratio: 1;
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}

/* بج روی عکس */
.pc-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 6px;
}

.pc-badge.sale { background: var(--red); color: #fff; }
.pc-badge.new  { background: var(--gold); color: var(--dark); }
.pc-badge.hot  { background: var(--orange); color: #fff; }
.pc-badge.best { background: var(--green); color: #fff; }

/* دکمه علاقه‌مندی روی عکس */
.pc-wish {
  position: absolute; top: 10px; left: 10px;
  background: rgba(15,14,12,0.6);
  border: none; border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
  transition: all 0.2s; color: var(--text-muted);
}

.pc-wish:hover, .pc-wish.active { color: #E74C3C; background: rgba(231,76,60,0.15); }

/* متن کارت */
.pc-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }

.pc-cat  { font-size: 0.72rem; color: var(--text-faint); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.pc-name { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.pc-brand { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }

/* ستاره‌ها */
.pc-stars { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.pc-stars .s { color: #F4D03F; }

/* ردیف قیمت + دکمه */
.pc-footer {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: auto;
}

.pc-price-wrap {}
.pc-old { font-size: 0.75rem; color: var(--text-faint); text-decoration: line-through; }
.pc-price { font-size: 1.05rem; font-weight: 700; color: var(--gold); }

/* دکمه افزودن به سبد */
.pc-add {
  background: var(--dark4); border: none; color: var(--text);
  width: 36px; height: 36px; border-radius: 10px;
  cursor: pointer; font-size: 1.3rem; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.pc-add:hover { background: var(--gold); color: var(--dark); transform: scale(1.1); }

/* ─── کارت محصول افقی (لیست) ─── */
.product-card-h {
  background: var(--dark2); border: 1px solid var(--dark4);
  border-radius: var(--r-lg); display: flex; gap: 1.2rem;
  padding: 1rem; cursor: pointer; transition: all 0.25s;
}

.product-card-h:hover { border-color: var(--gold-dark); }

.pch-img {
  width: 90px; height: 90px; flex-shrink: 0;
  background: var(--dark3); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}

.pch-info { flex: 1; }
.pch-name { font-weight: 600; margin-bottom: 4px; }
.pch-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.pch-price { color: var(--gold); font-weight: 700; }

/* ─── کارت محصول بزرگ (Featured) ─── */
.product-card-xl {
  background: var(--dark2); border: 1px solid var(--dark4);
  border-radius: var(--r-xl); overflow: hidden; cursor: pointer;
  transition: all 0.3s; display: grid; grid-template-columns: 1fr 1fr;
}

.product-card-xl:hover { border-color: var(--gold-dark); transform: translateY(-4px); }

.pcxl-img {
  background: var(--dark3); display: flex;
  align-items: center; justify-content: center; font-size: 7rem;
  min-height: 240px;
}

.pcxl-info { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.pcxl-cat  { font-size: 0.75rem; color: var(--text-faint); margin-bottom: 8px; }
.pcxl-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.pcxl-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.pcxl-price { font-size: 1.4rem; font-weight: 900; color: var(--gold); margin-bottom: 1rem; }
