/* إعدادات عامة */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* تصميم الحاوية */
.custom-container {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 62.5%; /* نسبة 400x250 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-container:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.container-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* شريط المعلومات */
.info-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 256, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.info-bar .name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    flex: 1;
}

.info-bar .icon {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #007bff;
}

.info-bar .icon i {
    margin-right: 5px;
}

.info-bar .flag img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 2px solid #fff;
}

/* شريط التنقل السفلي */
.navbar {
    font-size: 0.9rem;
    padding: 5px 0;
}

.navbar a {
    color: #333;
}

.navbar a i {
    font-size: 1.5rem;
}

.navbar a:hover {
    color: #007bff;
}

/* قائمة الأقسام */
.offcanvas {
    background: #f9f9f9;
}

/* حقل البحث  */

/* حقل البحث */
#search-container {
    display: none; /* مخفي بشكل افتراضي */
    position: absolute; /* يظهر بناءً على موقع رمز البحث */
    top: -60px; /* مسافة حقل البحث فوق رمز البحث */
    left: 50%; /* في المنتصف بالنسبة للرمز */
    transform: translateX(-50%); /* محاذاة الحقل إلى منتصف رمز البحث */
    background-color: rgba(0, 0, 0, 0.8); /* لون خلفية مع شفافية */
    padding: 10px;
    border-radius: 10px;
    z-index: 300; /* أعلى من رمز البحث لكن أقل من الستارة */
    text-align: center;
    width: 80%; /* الحجم الأساسي للحقل */
    max-width: 400px; /* تحديد الحد الأقصى للحجم */
}

.search-container input {
    padding: 10px;
    font-size: 16px;
    width: 80%; /* حجم الحقل النصي */
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}

.search-container button {
    padding: 10px 20px;
    background-color: #ffc107; /* لون زر الإغلاق */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #e0a800; /* تأثير عند التمرير */
}

/* حقل البحث  */

/* ستارة عرض نتائج البحث */
.results-overlay {
  display: none; /* يتم إخفاء الستارة بشكل افتراضي */
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%; /* عرض الستارة */
  max-height: 500px;
  background-color: rgba(0, 0, 0, 0.7); /* الخلفية مظلمة مع شفافية */
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
  overflow-y: auto; /* تمكين التمرير عمودياً إذا كانت المحتويات أكثر من الحجم المحدد */
  display: grid; /* استخدام الشبكة لعرض العناصر */
  grid-template-columns: repeat(2, 1fr); /* عرض متاجر في صفين */
  gap: 20px;
}

/* عند عرض الشاشة على الأجهزة الكبيرة (أكبر من 768px) */
@media (min-width: 769px) {
  .results-overlay {
    grid-template-columns: repeat(4, 1fr); /* عرض 4 متاجر في كل صف */
  }
}

/* عند عرض الشاشة على الأجهزة الصغيرة (أقل من 768px) */
@media (max-width: 768px) {
  .results-overlay {
    grid-template-columns: repeat(2, 1fr); /* عرض 2 متاجر في كل صف */
  }
}

/* تنسيق حاوية كل متجر */
.store-item {
     text-decoration: none; /* إزالة التسطير */
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  position: relative;
}

/* تأثير عند التمرير على المتجر */
.store-item:hover {
     background-color: #f9f9f9; /* تأثير بسيط عند التمرير */
  border-radius: 5px; /* تحسين المظهر */
  transform: scale(1.05); /* تكبير الحاوية عند التمرير عليها */
}

/* صورة المتجر داخل الحاوية */
.store-image {
  width: 100%;
  height: 200px;
  object-fit: cover; /* الحفاظ على تناسق الأبعاد مع اقتصاص الصورة إذا لزم الأمر */
}

/* شريط المعلومات أسفل الصورة */
/* شريط المعلومات */
.store-info {
    display: flex;
    align-items: center;
    justify-content: space-between; /* توزيع العناصر بالتساوي */
    position: relative;
    padding: 10px 15px;
    background-color: rgba(135, 206, 250, 0.8); /* لون سماوي شفاف */
    border-radius: 10px;
}

/* اسم المتجر في المنتصف */
.store-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center; /* محاذاة في المنتصف */
    flex: 1; /* يشغل كامل الوسط */
}

/* العلم في الركن الأيسر */
.store-flag {
    position: absolute;
    left: 10px; /* العلم في الزاوية اليسرى */
    display: flex;
    align-items: center;
}

.store-flag img {
    width: 20px;
    height: 15px;
}

/* عدد المتابعين في الركن الأيمن */
.store-followers {
    position: absolute;
    right: 10px; /* عدد المتابعين في الزاوية اليمنى */
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #666;
}

.store-followers i {
    margin-left: 5px; /* مسافة بين الأيقونة والعدد */
    color: #ff9800; /* لون الأيقونة */
}

/* الخط العام */
body, .store-name, .store-followers {
    font-family: 'Roboto', Arial, sans-serif;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .store-info {
        padding: 8px;
        font-size: 14px;
    }

    .store-name {
        font-size: 16px;
    }

    .store-followers {
        font-size: 14px;
    }
}

/* الأساسيات */
/* الأساسيات */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}

/* رأس الصفحة */
.store-header {
  background-color: #333;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.store-logo {
  width: 80px;
}

.store-info {
  display: flex;
  align-items: center;
}

.followers-info, .contact-info {
  margin-left: 20px;
  color: #ff9800;
}

.followers-info {
  font-size: 16px;
}

.contact-info a {
  text-decoration: none;
  color: #ff9800;
}

/* FlexSlider Styles */
.store-hero {
  position: relative;
  width: 100%;
  height: 300px;  /* تقليل ارتفاع السلايدر */
}

.flexslider {
  width: 100%;
  height: 100%;
}


.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* لضمان أن الصورة تملأ المنطقة دون تشويه */
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

.hero-text h2 {
  font-size: 28px;  /* تقليل حجم النص */
  font-weight: bold;
}

.hero-text p {
  font-size: 18px;
  margin-top: 10px;
}

/* قسم الأقسام */
.store-sections {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.section-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 90%;
}

.section-item {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
}

.section-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.section-name {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  color: white;
  font-size: 20px;
  text-align: center;
  border-radius: 5px;
}

/* التذييل */
.store-footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* تحسينات مخصصة للهواتف */
@media (max-width: 768px) {
  .store-sections {
    flex-direction: column;
  }

  .section-container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .section-container {
    grid-template-columns: 1fr;
  }

  .hero-text h2 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 16px;
  }
}

