section:nth-child(even) {
  background-image: url('رابط الصورة');
  background-size: cover;
  background-position: center;
}h1 { font-size: 56px; }  /* زيادة */
h1 { font-size: 40px; }  /* تقليل */
:root {
  --primary-dark: #0a0b14;      /* أسود داكن/كحلي */
  --primary-light: #f5f5f0;     /* كريمي فاتح */
  --accent-gold: #d4af37;       /* ذهبي */
  --accent-red: #8b2635;        /* أحمر عنابي */
  --text-light: #ffffff;        /* أبيض */
  --text-dark: #1a1a1a;         /* أسود */
}
/* ========== الخلفيات والعام ========== */
body {
  background-color: var(--primary-light);
  color: var(--text-dark);
  font-family: 'DM Sans', 'Noto Sans Arabic', sans-serif;
}

/* الهيدر */
header, .navbar, .header {
  background-color: var(--primary-dark);
  color: var(--text-light);
  border-bottom: 1px solid var(--accent-gold);
}

header a, .navbar a, .header a {
  color: var(--text-light);
}

header a:hover, .navbar a:hover, .header a:hover {
  color: var(--accent-gold);
}

/* الشعار */
.logo, .brand, .site-name {
  color: var(--text-light);
  font-weight: bold;
  font-size: 24px;
}

/* ========== الأزرار ========== */
button, .btn, a.btn, input[type="submit"], input[type="button"] {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover, .btn:hover, a.btn:hover {
  background-color: #c9a227;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* الأزرار الثانوية */
.btn-secondary, button.secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn-secondary:hover, button.secondary:hover {
  background-color: var(--accent-gold);
  color: var(--text-dark);
}

/* ========== الأقسام ========== */
section, .section {
  padding: 60px 20px;
}

section:nth-child(even) {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

section:nth-child(odd) {
  background-color: var(--primary-light);
  color: var(--text-dark);
}

/* ========== العناوين ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'DM Serif Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

/* العناوين على الخلفية الداكنة */
section:nth-child(even) h1,
section:nth-child(even) h2,
section:nth-child(even) h3 {
  color: var(--text-light);
}

/* العناوين على الخلفية الفاتحة */
section:nth-child(odd) h1,
section:nth-child(odd) h2,
section:nth-child(odd) h3 {
  color: var(--text-dark);
}

/* ========== البطاقات ========== */
.card, .product-card, .feature-card {
  background-color: var(--primary-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card:hover, .product-card:hover, .feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

/* البطاقات على الخلفية الداكنة */
section:nth-child(even) .card,
section:nth-child(even) .product-card,
section:nth-child(even) .feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--text-light);
}

/* ========== المنتجات ========== */
.product-item, .product-card, .product-box {
  text-align: center;
  padding: 15px;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

/* ========== الشبكة ========== */
.grid, .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .grid, .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
}

/* ========== الفوتر ========== */
footer, .footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 40px 20px;
  border-top: 1px solid var(--accent-gold);
}

footer a, .footer a {
  color: var(--accent-gold);
  text-decoration: none;
}

footer a:hover, .footer a:hover {
  text-decoration: underline;
}

/* ========== المدخلات والنماذج ========== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  background-color: var(--primary-light);
  border: 1px solid #ddd;
  color: var(--text-dark);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ========== التنقل والقوائم ========== */
nav, .navigation {
  background-color: var(--primary-dark);
}

nav a, .navigation a {
  color: var(--text-light);
  text-decoration: none;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

nav a:hover, .navigation a:hover,
nav a.active, .navigation a.active {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
}

/* ========== الشريط الجانبي ========== */
.sidebar {
  background-color: var(--primary-light);
  border-right: 1px solid #e0e0e0;
  padding: 20px;
}

/* ========== الرسائل والتنبيهات ========== */
.alert, .message, .notification {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error, .alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* ========== التأثيرات والانتقالات ========== */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ========== الحالات الخاصة ========== */
.highlight, .featured {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  padding: 20px;
  border-radius: 4px;
}

.divider, hr {
  border: none;
  height: 1px;
  background-color: var(--accent-gold);
  margin: 30px 0;
}

/* ========== التوافقية مع الأجهزة ========== */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  
  button, .btn, a.btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  section, .section {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 16px; }
  
  .grid, .products-grid {
    grid-template-columns: 1fr;
  }
}