/* Add custom CSS styles below */ 
/* ============================================
   واحة الإضاءة — كود CSS المخصص لمنصة سلة
   الإصدار: 1.0
   الثيم: ذهبي داكن فاخر
   الطريقة: التصميم ← تخصيص القالب ← CSS مخصص
   ============================================ */

/* ===== المتغيرات الأساسية ===== */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --gold-pale:   #F5E6BA;
  --dark:        #0D0D0D;
  --dark-2:      #1A1712;
  --dark-3:      #252018;
  --dark-4:      #2E2820;
  --warm-white:  #FAF7F0;
  --text-muted:  #8C7B5E;
  --text-light:  #C4B49A;
}

/* ===== ١. الخلفية العامة ===== */
body,
.store-wrapper,
.page-wrapper,
main {
  background-color: var(--dark-2) !important;
  color: var(--warm-white) !important;
}

/* ===== ٢. الهيدر / شريط التنقل ===== */
header,
.header,
.site-header,
nav.navbar,
.store-header {
  background-color: rgba(13, 13, 13, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4) !important;
}

/* اسم المتجر / الشعار في الهيدر */
.header .store-name,
.site-header .logo-text,
.navbar-brand {
  color: var(--gold-light) !important;
  font-weight: 800 !important;
}

/* روابط التنقل */
header a,
nav a,
.navbar a,
.menu-item a {
  color: var(--text-light) !important;
  transition: color 0.3s ease !important;
}

header a:hover,
nav a:hover,
.navbar a:hover,
.menu-item a:hover {
  color: var(--gold-light) !important;
}

/* ===== ٣. الأزرار الرئيسية ===== */
/* زر الشراء وإضافة للسلة */
.btn-primary,
.add-to-cart,
button[type="submit"],
.btn.btn-lg,
.product-form__submit,
[class*="add-to-cart"],
[class*="btn-add"],
.salla-button--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--dark) !important;
  border: none !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  box-shadow: 0 6px 25px rgba(201, 168, 76, 0.35) !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover,
.add-to-cart:hover,
button[type="submit"]:hover,
.salla-button--primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 35px rgba(201, 168, 76, 0.45) !important;
  filter: brightness(1.08) !important;
}

/* الأزرار الثانوية */
.btn-secondary,
.btn-outline,
.salla-button--secondary {
  background: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: var(--gold-light) !important;
  border-radius: 30px !important;
  transition: all 0.3s ease !important;
}

.btn-secondary:hover,
.btn-outline:hover,
.salla-button--secondary:hover {
  background: rgba(201, 168, 76, 0.1) !important;
  border-color: var(--gold) !important;
}

/* ===== ٤. بطاقات المنتجات ===== */
.product-card,
.product-item,
.card,
[class*="product-card"],
.salla-product-card {
  background: var(--dark-3) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.4s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.product-card:hover,
.product-item:hover,
.card:hover,
.salla-product-card:hover {
  border-color: rgba(201, 168, 76, 0.25) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

/* اسم المنتج */
.product-card .product-name,
.product-item .title,
.product-title,
.salla-product-card__name {
  color: var(--warm-white) !important;
  font-weight: 600 !important;
}

/* سعر المنتج */
.product-price,
.price,
.salla-product-card__price,
[class*="product-price"] {
  color: var(--gold-light) !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
}

/* السعر القديم (المشطوب) */
.price-old,
.compare-price,
del,
s,
[class*="price-old"],
[class*="compare-price"] {
  color: var(--text-muted) !important;
  text-decoration: line-through !important;
}

/* شارة الخصم */
.badge-sale,
.discount-badge,
.sale-badge,
[class*="badge"] {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
}

/* ===== ٥. الفوتر ===== */
footer,
.site-footer,
.footer {
  background-color: var(--dark) !important;
  border-top: 1px solid rgba(201, 168, 76, 0.15) !important;
  color: var(--text-muted) !important;
}

footer a,
.site-footer a,
.footer a {
  color: var(--text-light) !important;
  transition: color 0.3s !important;
}

footer a:hover,
.site-footer a:hover {
  color: var(--gold-light) !important;
}

footer h3,
footer h4,
.footer-title {
  color: var(--gold-light) !important;
  font-weight: 700 !important;
}

/* ===== ٦. حقول الإدخال والفورم ===== */
input,
textarea,
select,
.form-control,
[class*="input"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 10px !important;
  color: var(--warm-white) !important;
  transition: border-color 0.3s !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
}

/* ===== ٧. شريط البحث ===== */
.search-input,
.search-bar input,
[class*="search"] input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 25px !important;
  color: var(--warm-white) !important;
}

/* ===== ٨. القوائم المنسدلة والفئات ===== */
.dropdown-menu,
.category-menu,
[class*="dropdown"] {
  background: var(--dark-3) !important;
  border: 1px solid rgba(201, 168, 76, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item,
.category-item,
[class*="dropdown-item"] {
  color: var(--text-light) !important;
  transition: all 0.2s !important;
}

.dropdown-item:hover {
  background: rgba(201, 168, 76, 0.1) !important;
  color: var(--gold-light) !important;
}

/* ===== ٩. تقييمات العملاء (النجوم) ===== */
.star,
.rating,
.stars,
[class*="star"],
[class*="rating"] {
  color: var(--gold) !important;
}

/* ===== ١٠. الترقيم والصفحات ===== */
.pagination .page-item.active .page-link,
[class*="pagination"] [class*="active"] {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--dark) !important;
}

.pagination .page-link,
[class*="pagination"] a {
  background: var(--dark-3) !important;
  border-color: rgba(201, 168, 76, 0.2) !important;
  color: var(--text-light) !important;
}

/* ===== ١١. صفحة المنتج الفردي ===== */
.product-single,
.product-detail,
[class*="product-single"] {
  background: var(--dark-2) !important;
}

.product-single h1,
.product-title-main {
  color: var(--warm-white) !important;
  font-weight: 800 !important;
}

/* الخط الفاصل */
hr,
.divider {
  border-color: rgba(201, 168, 76, 0.15) !important;
}

/* ===== ١٢. سلة التسوق ===== */
.cart-item,
.cart-product,
[class*="cart-item"] {
  background: var(--dark-3) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
}

.cart-total,
.order-total,
[class*="cart-total"] {
  color: var(--gold-light) !important;
  font-weight: 800 !important;
}

/* ===== ١٣. الإشعارات والتنبيهات ===== */
.alert-success,
.notification-success {
  background: rgba(46, 204, 113, 0.1) !important;
  border: 1px solid rgba(46, 204, 113, 0.3) !important;
  color: #2ECC71 !important;
  border-radius: 10px !important;
}

.alert-info,
.notification-info {
  background: rgba(201, 168, 76, 0.1) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: var(--gold-light) !important;
  border-radius: 10px !important;
}

/* ===== ١٤. الخط العام ===== */
body,
* {
  font-family: 'Tajawal', 'Cairo', 'Almarai', sans-serif !important;
}

h1, h2, h3, h4, h5 {
  color: var(--warm-white) !important;
  font-weight: 800 !important;
}

p, span, li {
  color: var(--text-light) !important;
}

/* ===== ١٥. تأثيرات الانتقال العامة ===== */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

a {
  transition: color 0.3s ease !important;
}

/* ===== ١٦. شريط المزايا (لو موجود) ===== */
.announcement-bar,
.top-bar,
[class*="announcement"] {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4)) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
  color: var(--gold-light) !important;
}

/* ===== ١٧. السكرول بار (Scrollbar) ===== */
::-webkit-scrollbar {
  width: 6px !important;
}

::-webkit-scrollbar-track {
  background: var(--dark) !important;
}

::-webkit-scrollbar-thumb {
  background: var(--gold) !important;
  border-radius: 3px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light) !important;
}

/* ===== ١٨. تحميل الخط من Google ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');