.page { padding: 30px 0 80px; }

.productMain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Gallery */
.gallery {}

.mainImage {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(0,209,255,0.08), rgba(0,0,0,0.4));
  border: 1px solid rgba(0,209,255,0.15);
  border-radius: 20px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.imgPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 30px rgba(0,209,255,0.3));
  animation: float 4s ease-in-out infinite;
}

.galleryBadge { position: absolute; top: 16px; left: 16px; }
[dir="rtl"] .galleryBadge { left: auto; right: 16px; }

/* Info */
.info { display: flex; flex-direction: column; gap: 20px; }

.brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--electric-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-family: 'Orbitron', 'Cairo', sans-serif;
  color: var(--text-primary);
  line-height: 1.3;
}

[dir="rtl"] .title { font-family: 'Cairo', sans-serif; }

.ratingRow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  flex-wrap: wrap;
}

.ratingNum { font-weight: 600; color: var(--warning); font-size: 0.9rem; }
.ratingCount { color: var(--text-muted); font-size: 0.85rem; }

.stockBadge { padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.inStock { background: rgba(0,255,136,0.12); color: var(--success); border: 1px solid rgba(0,255,136,0.3); }
.outOfStock { background: rgba(255,59,92,0.12); color: var(--error); border: 1px solid rgba(255,59,92,0.3); }

.priceRow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.price {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--electric-blue);
  text-shadow: 0 0 20px rgba(0,209,255,0.4);
}

.originalPrice {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.75; }

/* Quantity */
.qtyRow { display: flex; align-items: center; gap: 16px; }

.qtyControl {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,209,255,0.2);
  border-radius: 10px;
  overflow: hidden;
}

.qtyBtn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--electric-blue);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qtyBtn:hover { background: rgba(0,209,255,0.1); }

.qtyNum {
  width: 48px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* Actions */
.actions { display: flex; gap: 12px; }

/* Meta */
.meta {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metaRow {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.metaRow span:first-child { color: var(--text-muted); }
.metaRow span:last-child { color: var(--text-primary); font-weight: 500; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 24px;
  border-bottom: 2px solid transparent;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  margin-bottom: -1px;
}

.tab:hover { color: var(--electric-blue); }
.tabActive { border-bottom-color: var(--electric-blue) !important; color: var(--electric-blue) !important; }

/* Specs Table */
.specsTable {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.specRow {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 14px 20px;
}

.specRow:last-child { border-bottom: none; }
.specRow:nth-child(even) { background: rgba(255,255,255,0.02); }

.specLabel {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.specValue {
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* Reviews */
.reviewsList { display: flex; flex-direction: column; gap: 16px; }

.reviewItem {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px;
}

.reviewHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reviewAvatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), #0050FF);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: #000; flex-shrink: 0;
}

.reviewName { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.reviewDate { margin-inline-start: auto; font-size: 0.75rem; color: var(--text-muted); }
.reviewComment { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 900px) {
  .productMain { grid-template-columns: 1fr; }
  .mainImage { aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .page { padding: 20px 0 60px; }
  .actions { flex-wrap: wrap; }
  .specRow { grid-template-columns: 120px 1fr; }
}
