/* Add custom CSS styles below */ 
/* =========================
   إعدادات عامة
========================= */
body {
  direction: rtl;
  text-align: right;
  font-family: "Tahoma", "Arial", sans-serif;
  background: #f8f8f8;
  color: #222;
}

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

/* =========================
   حاوية الأقسام
========================= */
.section,
.container,
.products-section,
.category-section {
  width: 100%;
  margin: 0 auto 30px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* =========================
   عنوان القسم
========================= */
.section-title,
.category-title,
.products-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #222;
}

/* =========================
   بانر رئيسي مثل الصورة الأولى
========================= */
.hero-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #f7f2f5, #f3f3f3);
  border-radius: 22px;
  padding: 30px;
  overflow: hidden;
  margin-bottom: 25px;
}

.hero-banner .hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner .hero-image img {
  max-height: 320px;
  object-fit: contain;
}

.hero-banner .hero-content {
  text-align: right;
}

.hero-banner .hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.2;
  color: #4d4d1d;
  margin-bottom: 10px;
}

.hero-banner .hero-subtitle {
  font-size: 32px;
  font-weight: 700;
  color: #e78db5;
  margin-bottom: 10px;
}

.hero-banner .hero-discount {
  font-size: 110px;
  line-height: 1;
  font-weight: 900;
  color: #f39ac3;
}

/* =========================
   شبكة المنتجات
========================= */
.products-grid,
.product-list,
.products-wrapper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

/* =========================
   كرت المنتج
========================= */
.product-card,
.product-item,
.card-product {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover,
.product-item:hover,
.card-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.product-card img,
.product-item img,
.card-product img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-title,
.product-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
  min-height: 48px;
  margin-bottom: 8px;
}

.product-rating {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price .old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.product-price .new-price {
  font-size: 22px;
  font-weight: 800;
  color: #c43d5a;
}

.discount-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #ffd8e4;
  color: #b84367;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* =========================
   بانرات 2x2 مثل الصورة الثانية
========================= */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.promo-box {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7bfd2, #f29fc1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.promo-box.light {
  background: linear-gradient(135deg, #f6f7fb, #f0f2f7);
}

.promo-box .promo-image img {
  max-height: 180px;
  object-fit: contain;
}

.promo-box .promo-text {
  text-align: right;
  color: #fff;
}

.promo-box.light .promo-text {
  color: #444;
}

.promo-box .promo-brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.promo-box .promo-offer {
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
}

.promo-box .promo-label {
  font-size: 34px;
  font-weight: 800;
  margin-top: 8px;
}

/* =========================
   أزرار أو آيقونات مفضلة / سلة
========================= */
.card-actions,
.product-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

.card-actions button,
.product-actions button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
}

/* =========================
   تجاوب الجوال والتابلت
========================= */
@media (max-width: 1200px) {
  .products-grid,
  .product-list,
  .products-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-banner .hero-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .products-grid,
  .product-list,
  .products-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner .hero-title {
    font-size: 34px;
  }

  .hero-banner .hero-subtitle {
    font-size: 24px;
  }

  .hero-banner .hero-discount {
    font-size: 72px;
  }

  .promo-box .promo-offer {
    font-size: 48px;
  }

  .promo-box .promo-label {
    font-size: 24px;
  }
}