/* ==========================================================================
   نظام التصميم - منصة الأدوات المدرسية وأنشطة الأطفال
   جمعية أجيالنا الخيرية - جمهورية مصر العربية
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* نظام ألوان مصري خيري مبهج ودافئ يناسب الأطفال والتعليم */
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-glow: rgba(5, 150, 105, 0.22);
  
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  --secondary-light: #f0f9ff;
  
  --warm-accent: #f59e0b;
  --warm-accent-hover: #d97706;
  
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.95);

  --accent-badge-hot: #ea580c;
  --accent-badge-new: #0284c7;
  --accent-star: #f59e0b;
  --accent-success: #10b981;

  /* الظلال */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 20px 30px -10px rgba(5, 150, 105, 0.14), 0 8px 16px -6px rgba(0, 0, 0, 0.05);

  /* الاستدارات */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* الانتقالات */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   الريست الأساسي والتوسيط
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  direction: rtl;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--dark);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, select {
  font-family: inherit;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* الحاوية المتمركزة بدقة */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   الشريط العلوي (Navbar)
   ========================================================================== */
.header-glass {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: all var(--transition-normal);
}

.header-glass.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #10b981);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-logo span span {
  color: var(--primary);
}

.logo-tagline {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}

/* روابط التنقل في الهيدر */
.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-light);
  transition: color var(--transition-fast);
}

.nav-links-menu a:hover,
.nav-links-menu a.active {
  color: var(--primary);
}

/* شريط البحث */
.search-form-wrapper {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.search-input-box {
  width: 100%;
  padding: 0.7rem 1.2rem 0.7rem 2.6rem;
  background-color: var(--border-light);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--dark);
  transition: all var(--transition-fast);
}

.search-input-box:focus {
  background-color: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-icon-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* زر المساهمة في الهيدر */
.header-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all var(--transition-fast);
}

.header-donate-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* رقم التليفون غير القابل للنقر في الهيدر */
.header-static-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  pointer-events: none;
  user-select: text;
  cursor: default;
}

.header-static-phone i {
  color: var(--primary);
}

/* ==========================================================================
   البانر الترويجي (Hero)
   ========================================================================== */
.hero-section {
  padding: 2rem 0 1.5rem;
}

.hero-banner-card {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #047857 100%);
  border-radius: var(--radius-xl);
  padding: 3.25rem 3rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(4, 120, 87, 0.35);
}

.hero-banner-card::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  top: -80px;
  left: -50px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1.15rem;
}

.hero-title span {
  background: linear-gradient(90deg, #fde047, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #d1fae5;
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-normal);
}

.hero-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: #f0fdf4;
}

.hero-banner-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-banner-image img {
  max-height: 290px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-bounce);
}

.hero-banner-image:hover img {
  transform: scale(1.04) rotate(-1deg);
}

/* ==========================================================================
   قسم كتالوج المنتجات مع التوسيط التام (Centered Catalog Toolbar)
   ========================================================================== */
.catalog-header {
  margin: 3rem auto 2rem;
  text-align: center;
}

.catalog-title-wrap-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.75rem;
  gap: 0.75rem;
}

.section-heading-centered {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-heading-centered::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #34d399);
  border-radius: var(--radius-pill);
}

.results-count-badge-centered {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-weight: 600;
  display: inline-flex;
}

/* شريط الفلترة المتمركز في المنتصف */
.toolbar-controls-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.category-filter-pills-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  width: 100%;
}

.category-pill-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--border-light);
  color: var(--dark-light);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.category-pill-btn:hover {
  background: #e2e8f0;
}

.category-pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ترتيب حسب في المنتصف */
.sort-box-wrapper-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.custom-select {
  padding: 0.55rem 1.25rem 0.55rem 0.85rem;
  background: var(--border-light);
  color: var(--dark);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.custom-select:focus {
  border-color: var(--primary);
}

/* ==========================================================================
   شبكة كروت الأدوات والأنشطة (Cards Grid)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-bottom: 4.5rem;
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.product-image-box {
  position: relative;
  padding-top: 75%;
  background: #f1f5f9;
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.badge-hot {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.badge-new {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.badge-sale {
  background: linear-gradient(135deg, #059669, #047857);
}

.age-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.product-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: right;
}

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.product-card:hover .product-title {
  color: var(--primary);
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  margin-bottom: 1.15rem;
}

.price-meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.currency {
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-view-details-full {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.btn-view-details-full:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================================
   صفحة تفاصيل الحزمة المدرسية (Detail Page)
   ========================================================================== */
.breadcrumb-nav {
  padding: 1.25rem 0;
  font-size: 0.88rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-separator {
  font-size: 0.75rem;
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--dark);
  font-weight: 700;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  background: var(--bg-surface);
  padding: 2.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 3.5rem;
}

.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.main-image-display {
  width: 100%;
  height: 460px;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-image-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image-display:hover img {
  transform: scale(1.04);
}

.thumbnails-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumbnail-item {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-item.active,
.thumbnail-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  transform: translateY(-2px);
}

.detail-category-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 1rem;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.stock-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-success);
  background: #dcfce7;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.detail-price-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cost-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #065f46;
}

.detail-price {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
}

.detail-short-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* صندوق رقم الهاتف للتواصل */
.static-contact-phone-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1.5px dashed var(--border);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  pointer-events: none;
  user-select: text;
  cursor: default;
}

.static-contact-phone-box i {
  font-size: 1.4rem;
  color: var(--primary);
}

.static-contact-phone-box .phone-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.static-contact-phone-box .phone-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
  direction: ltr;
  display: inline-block;
}

/* زر كفالة الحقيبة */
.charity-action-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-sponsor-pack {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, var(--primary), #10b981);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--primary-glow);
  transition: all var(--transition-normal);
}

.btn-sponsor-pack:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--primary-glow);
}

/* ==========================================================================
   تبويبات تفاصيل المحتويات والمواصفات (Tabs)
   ========================================================================== */
.product-tabs-container {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 4rem;
}

.tabs-header-nav {
  display: flex;
  gap: 1.5rem;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 2rem;
}

.tab-nav-btn {
  padding: 0.85rem 0.5rem;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-nav-btn:hover {
  color: var(--primary);
}

.tab-nav-btn.active {
  color: var(--primary);
}

.tab-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-full-desc {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dark-light);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.specs-table td {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--dark);
  width: 35%;
  background: #f8fafc;
  border-radius: var(--radius-sm);
}

.specs-table td:last-child {
  color: var(--text-muted);
}

.reviews-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.review-item-card {
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

.review-comment {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   مودال المساهمة
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--dark);
}

/* التوست */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  pointer-events: auto;
  animation: slideToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-right: 4px solid var(--primary);
}

@keyframes slideToast {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.toast-hide {
  animation: hideToast 0.3s ease forwards;
}

@keyframes hideToast {
  to { opacity: 0; transform: translateY(10px) scale(0.95); }
}

/* ==========================================================================
   الفوتر
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #064e3b;
  color: #a7f3d0;
  padding: 4rem 0 2rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 360px;
  color: #d1fae5;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: #d1fae5;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
  color: #d1fae5;
}

/* ==========================================================================
   الميديا كويري
   ========================================================================== */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-detail-layout {
    gap: 2rem;
  }
}

@media (max-width: 868px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.75rem;
  }
  .hero-subtitle {
    margin: 0 auto 1.75rem;
  }
  .hero-banner-image {
    display: none;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .main-image-display {
    height: 380px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .nav-links-menu {
    display: none;
  }
}

@media (max-width: 580px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .search-form-wrapper {
    display: none;
  }
}
