@charset "UTF-8";

/* =========================
   ⭐ RATING BOX
========================= */
.rating-box {
  background: #fff;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: inline-block;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  font-size: 20px;
  color: #ffc107;
}

.rating-number {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

/* ⭐ النجوم */
.star-rating {
  display: flex;
  gap: 5px;
  font-size: 26px;
  cursor: pointer;
  color: #ccc;
}

.star-rating i {
  transition: 0.2s;
}

.star-rating i.active {
  color: #ffc107;
  transform: scale(1.1);
}

.star-rating i:hover {
  transform: scale(1.2);
}

/* =========================
   ✍️ REVIEW FORM
========================= */
.review-form {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.review-form textarea {
  resize: none;
  height: 90px;
  border-radius: 8px;
}

.review-form button {
  border-radius: 8px;
  font-weight: 600;
}

.reviews-box {
  max-height: 60vh; /* 60% من ارتفاع الشاشة */
  overflow-y: auto;
  padding: 10px;
}

.reviews-box::-webkit-scrollbar {
  width: 6px;
}

.reviews-box::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.reviews-box::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* =========================
   💬 REVIEWS LIST
========================= */
#reviews-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* كارت التعليق */
.review-card {
  background: #fff;
  padding: 15px;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
  transition: 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
}

/* النجوم */
.review-card .stars {
  color: #ffc107;
  margin-bottom: 5px;
}

/* الكومنت */
.review-card p {
  margin: 5px 0;
  color: #444;
  line-height: 1.5;
}

/* اسم المستخدم */
.review-card small {
  color: #888;
  font-size: 13px;
}

/* =========================
   ⚠️ LOGIN WARNING
========================= */
#login-warning {
  background: #fff3cd;
  color: #856404;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

/* =========================
   📱 RESPONSIVE
========================= */

/* موبايل */
@media (max-width: 768px) {

  .details .row {
    flex-direction: column;
  }

  .buttons {
    margin-top: 20px;
  }

  #review-section,
  #reviews-container {
    max-width: 100% !important;
  }

  .review-card {
    padding: 12px;
  }

  .stars {
    font-size: 18px;
  }
}

/* تابلت */
@media (min-width: 769px) and (max-width: 1024px) {
  .review-card {
    padding: 14px;
  }
}

/* =========================
   ✨ SCROLL تحسين
========================= */
#reviews-container::-webkit-scrollbar {
  width: 6px;
}

#reviews-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.offers-scroll {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
}

.offer-card {
  min-width: 160px;
  flex: 0 0 auto;
}

.offer-card img {
  height: 100px;
  object-fit: contain;
}