/* ================================================
   SALLA CUSTOM CSS — sihamalarabiya.com
   كل الأكواد في ملف واحد
   ================================================ */

/* ===== زرار واتساب عائم ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===== زرار رجوع لأعلى ===== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: #050f2c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  border: none;
  outline: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; }

/* ===== كاونت داون ===== */
.countdown-bar {
  background: #050f2c;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
}
.countdown-bar .cd-label { font-size: 13px; opacity: 0.85; }
.countdown-units { display: flex; gap: 6px; }
.countdown-unit {
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 4px 10px;
  text-align: center;
  min-width: 46px;
}
.countdown-unit .num { font-size: 18px; font-weight: 700; display: block; line-height: 1.2; }
.countdown-unit .lbl { font-size: 10px; opacity: 0.75; }

/* ===== Popup الخصم ===== */
.discount-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.discount-overlay.show { opacity: 1; pointer-events: all; }
.discount-popup {
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem 2rem 1.8rem;
  max-width: 370px;
  width: 92%;
  text-align: center;
  position: relative;
  direction: rtl;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s ease;
}
.discount-overlay.show .discount-popup { transform: translateY(0) scale(1); }
.discount-popup .close-btn {
  position: absolute; top: 14px; left: 14px;
  background: #f0f0f0; border: none; width: 28px; height: 28px;
  border-radius: 50%; font-size: 16px; cursor: pointer; color: #444;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.discount-popup .close-btn:hover { background: #e0e0e0; }
.discount-popup .offer-badge {
  background: #050f2c; color: #fff; display: inline-block;
  padding: 8px 24px; border-radius: 30px; font-size: 32px;
  font-weight: 800; margin-bottom: 14px; letter-spacing: -1px;
}
.discount-popup h3 { margin: 0 0 8px; font-size: 19px; color: #050f2c; font-weight: 700; }
.discount-popup p { color: #777; font-size: 14px; margin: 0 0 16px; line-height: 1.6; }
.discount-popup .copy-code {
  background: #f7f7f7; border: 2px dashed #bbb; border-radius: 10px;
  padding: 12px; font-size: 20px; font-weight: 800; letter-spacing: 4px;
  color: #050f2c; cursor: pointer; margin-bottom: 14px;
  transition: background 0.2s, border-color 0.2s; user-select: none;
}
.discount-popup .copy-code:hover { background: #eef7ff; border-color: #050f2c; }
.discount-popup .copy-code.copied { background: #e6f9f0; border-color: #25D366; color: #1a7a45; letter-spacing: 1px; font-size: 15px; }
.discount-popup .shop-btn {
  display: block; background: #25D366; color: #fff; padding: 13px;
  border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.discount-popup .shop-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.discount-popup .no-thanks {
  display: block; margin-top: 10px; font-size: 12px; color: #aaa;
  cursor: pointer; background: none; border: none; width: 100%; text-align: center;
}
.discount-popup .no-thanks:hover { color: #666; }

/* ===== إشعار السلة ===== */
.cart-toast {
  position: fixed; top: 24px; right: -320px;
  background: #050f2c; color: #fff; padding: 13px 18px;
  border-radius: 12px; font-size: 14px; z-index: 99999;
  transition: right 0.4s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; gap: 10px;
  direction: rtl; max-width: 280px;
}
.cart-toast.show { right: 20px; }
.cart-toast .toast-icon {
  width: 24px; height: 24px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.cart-toast .toast-icon svg { width: 13px; height: 13px; stroke: #fff; fill: none; }

/* ===== عداد الكميات ===== */
.stock-warning { font-size: 12px; color: #e24b4a; margin-top: 5px; font-weight: 600; }
.stock-safe { font-size: 12px; color: #1a7a45; margin-top: 5px; }

/* ================================================
   قسم آراء العملاء
   ================================================ */
.saham-reviews-section {
  padding: 48px 20px;
  max-width: 1200px;
  margin: 0 auto;
  direction: rtl;
}
.saham-reviews-section .section-header { text-align: center; margin-bottom: 36px; }
.saham-reviews-section .section-header h2 { font-size: 26px; font-weight: 700; color: #050f2c; margin: 0 0 8px; }
.saham-reviews-section .section-header p { font-size: 15px; color: #888; margin: 0; }

.reviews-summary {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; background: #f9f9f9; border-radius: 16px;
  padding: 24px 32px; margin-bottom: 36px; flex-wrap: wrap;
}
.summary-score { text-align: center; }
.summary-score .big-num { font-size: 52px; font-weight: 800; color: #050f2c; line-height: 1; display: block; }
.summary-score .stars-row { margin: 6px 0 4px; }
.summary-score .total-count { font-size: 13px; color: #999; }
.summary-bars { flex: 1; min-width: 200px; max-width: 320px; }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.bar-row .bar-label { font-size: 12px; color: #666; white-space: nowrap; width: 28px; text-align: center; }
.bar-row .bar-track { flex: 1; height: 8px; background: #e8e8e8; border-radius: 4px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: #f5a623; border-radius: 4px; transition: width 1s ease; }
.bar-row .bar-count { font-size: 12px; color: #999; width: 20px; text-align: left; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }

.review-card {
  background: #fff; border: 1px solid #ebebeb;
  border-radius: 14px; padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.review-card:hover { border-color: #d0d0d0; transform: translateY(-2px); }
.review-card .card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.review-card .reviewer-info { flex: 1; min-width: 0; }
.review-card .reviewer-name { font-size: 14px; font-weight: 600; color: #050f2c; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-card .reviewer-date { font-size: 12px; color: #aaa; margin: 0; }
.review-card .verified-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: #1a7a45; background: #e6f9f0;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.review-card .stars-row { margin-bottom: 10px; }
.review-card .review-title { font-size: 14px; font-weight: 600; color: #050f2c; margin: 0 0 6px; }
.review-card .review-text { font-size: 13px; color: #666; line-height: 1.65; margin: 0 0 12px; }
.review-card .review-product { font-size: 12px; color: #aaa; border-top: 1px solid #f0f0f0; padding-top: 10px; margin: 0; }
.review-card .review-product span { color: #050f2c; font-weight: 500; }

.stars-row { display: flex; gap: 2px; align-items: center; }
.star { width: 16px; height: 16px; }
.star svg { width: 16px; height: 16px; }

.reviews-load-more { text-align: center; }
.reviews-load-more button {
  background: #fff; border: 1.5px solid #050f2c; color: #050f2c;
  padding: 12px 36px; border-radius: 30px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.reviews-load-more button:hover { background: #050f2c; color: #fff; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.review-card.animate-in { animation: fadeInUp 0.4s ease forwards; }

@media (max-width: 600px) {
  .reviews-summary { flex-direction: column; gap: 20px; padding: 20px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .saham-reviews-section .section-header h2 { font-size: 20px; }
  .countdown-bar { font-size: 12px; gap: 8px; }
}