/* ═══════════════════════════════════════════════════════
   ║  متجر رهوان - Rahwan Store                          ║
   ║  CSS آمن لمنصة سلة - Safe Customization             ║
   ║  يستخدم CSS Variables الرسمية فقط                   ║
   ═══════════════════════════════════════════════════════ */

/* ─── 1. المتغيرات الرئيسية (CSS Variables) ─── */
:root {
  --rahwan-gold: #C8942B;
  --rahwan-gold-light: #E8B84D;
  --rahwan-gold-dark: #9A6F1F;
  --rahwan-black: #1A1A1A;
  --rahwan-black-light: #2D2D2D;
  --rahwan-white: #FFFFFF;
  --rahwan-gray: #666666;
}

/* ─── 2. تخصيص ألوان الثيم الرسمية ─── */
body {
  --color-primary: var(--rahwan-gold);
  --color-primary-dark: var(--rahwan-gold-dark);
  --color-primary-light: var(--rahwan-gold-light);
  --color-primary-reverse: var(--rahwan-black);
  --font-main: 'Cairo', 'Tajawal', sans-serif;
}

/* ─── 3. الهيدر (الشريط العلوي) ─── */
.site-header,
.header,
[class*="header"] {
  background: linear-gradient(135deg, var(--rahwan-black), var(--rahwan-black-light));
  border-bottom: 2px solid var(--rahwan-gold);
}

/* شريط البحث */
.site-header input[type="search"],
.header input[type="search"],
.search-input {
  border: 2px solid var(--rahwan-gold);
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: var(--rahwan-white);
  padding: 10px 20px;
}

.site-header input[type="search"]:focus {
  box-shadow: 0 0 15px rgba(200,148,43,0.3);
  border-color: var(--rahwan-gold-light);
}

/* أزرار الهيدر */
.site-header button,
.header button,
.cart-btn {
  background: linear-gradient(135deg, var(--rahwan-gold), var(--rahwan-gold-dark));
  color: var(--rahwan-white);
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.site-header button:hover,
.header button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200,148,43,0.3);
}

/* ─── 4. القائمة الرئيسية ─── */
.main-nav,
.navbar,
nav.main-navigation {
  background: var(--rahwan-black);
}

.main-nav a,
.navbar a {
  color: var(--rahwan-white);
  padding: 12px 18px;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--rahwan-gold);
}

/* خط ذهبي تحت الرابط عند التمرير */
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--rahwan-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:hover::after {
  width: 70%;
}

/* ─── 5. البنرات الرئيسية ─── */
.slider,
.hero-banner,
.main-banner {
  position: relative;
}

.slider img,
.hero-banner img {
  transition: transform 6s ease;
}

.slider:hover img {
  transform: scale(1.03);
}

/* نقاط التنقل */
.slick-dots li button {
  background: rgba(255,255,255,0.4);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.slick-dots li.slick-active button {
  background: var(--rahwan-gold);
  width: 30px;
  border-radius: 6px;
}

/* ─── 6. بطاقات المنتجات ─── */
.product-card,
.product-item {
  background: var(--rahwan-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #E8E8E8;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1), 0 0 0 1px rgba(200,148,43,0.2);
  border-color: var(--rahwan-gold);
}

/* صورة المنتج */
.product-card img,
.product-image img {
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

/* شارة الخصم */
.badge-sale,
.discount-badge,
[class*="sale"] {
  background: linear-gradient(135deg, var(--rahwan-gold), var(--rahwan-gold-dark));
  color: var(--rahwan-white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

/* اسم المنتج */
.product-title,
.product-name {
  color: var(--rahwan-black);
  font-weight: 700;
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: var(--rahwan-gold-dark);
}

/* السعر */
.product-price,
.price {
  color: var(--rahwan-gold);
  font-weight: 800;
  font-size: 18px;
}

.old-price,
.price-old {
  color: var(--rahwan-gray);
  text-decoration: line-through;
  font-size: 14px;
}

/* زر أضف للسلة */
.add-to-cart,
.btn-add-cart {
  background: linear-gradient(135deg, var(--rahwan-black), var(--rahwan-black-light));
  color: var(--rahwan-white);
  border: none;
  padding: 12px;
  width: 100%;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.add-to-cart:hover {
  background: linear-gradient(135deg, var(--rahwan-gold), var(--rahwan-gold-dark));
  color: var(--rahwan-black);
}

/* ─── 7. أقسام المنتجات ─── */
.section-title,
.category-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--rahwan-black);
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--rahwan-gold), var(--rahwan-gold-light));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ─── 8. البنرات الترويجية ─── */
.promo-banner,
.offer-banner {
  background: linear-gradient(135deg, var(--rahwan-black), var(--rahwan-black-light));
  border-radius: 16px;
  padding: 35px;
  border: 2px solid var(--rahwan-gold);
  position: relative;
  overflow: hidden;
}

.promo-banner h3 {
  color: var(--rahwan-gold);
  font-size: 26px;
  font-weight: 800;
}

.promo-banner p {
  color: #D0D0D0;
}

/* ─── 9. صفحة تفاصيل المنتج ─── */
.product-detail,
.product-single {
  background: var(--rahwan-white);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.product-detail h1 {
  color: var(--rahwan-black);
  font-weight: 800;
}

.product-detail .price {
  font-size: 28px;
  color: var(--rahwan-gold);
}

/* زر الشراء */
.btn-buy,
.btn-purchase,
.btn-primary {
  background: linear-gradient(135deg, var(--rahwan-gold), var(--rahwan-gold-dark));
  color: var(--rahwan-white);
  border: none;
  padding: 14px 35px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,148,43,0.35);
}

/* ─── 10. السلة وإتمام الطلب ─── */
.cart-page,
.checkout-page {
  background: var(--rahwan-white);
  border-radius: 16px;
  padding: 25px;
}

.cart-item {
  border-bottom: 1px solid #E8E8E8;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.cart-item:hover {
  background: #F9F9F9;
  border-radius: 8px;
  padding: 15px;
}

/* ─── 11. الفوتر ─── */
footer,
.site-footer,
.footer {
  background: linear-gradient(180deg, var(--rahwan-black-light), var(--rahwan-black));
  color: var(--rahwan-white);
  padding: 50px 0 20px;
  border-top: 3px solid var(--rahwan-gold);
}

footer h4,
footer h3 {
  color: var(--rahwan-gold);
  font-weight: 700;
  margin-bottom: 15px;
}

footer a {
  color: #D0D0D0;
  transition: all 0.3s ease;
  text-decoration: none;
}

footer a:hover {
  color: var(--rahwan-gold);
  padding-right: 5px;
}

footer p {
  color: #999999;
}

/* أيقونات التواصل */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin: 0 4px;
  transition: all 0.3s ease;
  border: 1px solid rgba(200,148,43,0.3);
}

.social-links a:hover {
  background: var(--rahwan-gold);
  transform: translateY(-4px);
}

/* حقوق النشر */
.copyright {
  border-top: 1px solid rgba(200,148,43,0.2);
  padding: 15px;
  margin-top: 30px;
  text-align: center;
}

.copyright p {
  color: #666666;
  font-size: 13px;
}

/* ─── 12. نموذج الاشتراك ─── */
.newsletter,
.subscribe-form {
  background: linear-gradient(135deg, var(--rahwan-gold), var(--rahwan-gold-dark));
  border-radius: 16px;
  padding: 35px;
}

.newsletter h3 {
  color: var(--rahwan-white);
  font-weight: 800;
}

.newsletter input {
  border-radius: 50px;
  border: none;
  padding: 12px 20px;
}

.newsletter button {
  background: var(--rahwan-black);
  color: var(--rahwan-gold);
  border-radius: 50px;
  padding: 12px 25px;
  font-weight: 700;
}

/* ─── 13. حقول النماذج ─── */
input,
select,
textarea {
  border: 2px solid #E8E8E8;
  border-radius: 8px;
  padding: 10px 14px;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rahwan-gold);
  box-shadow: 0 0 0 3px rgba(200,148,43,0.1);
  outline: none;
}

/* ─── 14. شريط التمرير ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
  background: var(--rahwan-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rahwan-gold-dark);
}

/* ─── 15. التوافق مع الجوال ─── */
@media (max-width: 768px) {
  .product-card img {
    height: 200px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .promo-banner {
    padding: 25px;
  }
  
  .promo-banner h3 {
    font-size: 20px;
  }
  
  .btn-buy {
    padding: 12px 25px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .product-card img {
    height: 160px;
  }
  
  .product-title {
    font-size: 14px;
  }
  
  .product-price {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 18px;
  }
}

/* ═══════════════════════════════════════════════════════
   ║  نهاية كود CSS الآمن - متجر رهوان                   ║
   ═══════════════════════════════════════════════════════ */