.popup-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}
.popup {
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 5px;
  transform: translateX(-100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.popup.show {
  transform: translateX(0);
  opacity: 1;
}
/* تغيير لون كل الـ Input في الصفحة */
input {
    border: 2px solid #4CAF50 !important; /* لون الإطار */
    background-color: #f9f9f9 !important; /* لون الخلفية */
    color: #333 !important; /* لون النص */
}

/* تغيير النص داخل Placeholder لكل الـ Input */
input::placeholder {
    color: red !important;
    font-size: 14px !important;
    content: "تم العثور على العنصر!";
}

/* تغيير النصوص داخل TextArea برضو */
textarea::placeholder {
    color: #502747!important;
    font-size: 14px !important;
    content: "تم العثور على العنصر!";
}
/* تحسين مظهر العنوان "تعليقات" مع الألوان المتناسقة */
.s-comments-count-label {
    font-size: 16px !important; /* تكبير حجم الخط */
    color: #502747!important; /* لون بنفسجي متناسق مع الشعار */
    font-weight: bold !important; /* تخانة الخط */
    margin-bottom: 10px; /* مسافة أسفل النص */
    display: flex;
    align-items: center;
    gap: 5px;
}

/* إضافة أيقونة تعليق بجانب النص مع لون متناسق */
.s-comments-count-label::before {
    content: "💬"; /* أيقونة المحادثة */
    font-size: 18px;
    color: #a552a4; /* نفس اللون المستخدم في النص */
}

/* تأثير عند تمرير الفأرة */
.s-comments-count-label:hover {
    color: #d17ac6 !important; /* لون أفتح عند المرور */
    transition: color 0.3s ease-in-out;
}

/* تنسيق رسائل التعليقات */
.s-comment-form-wrapper {
    border: 1px solid #a552a4;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    background-color: #fafafa;
}

/* تنسيق الزر */
.s-comment-form-wrapper button {
    background-color: #a552a4 !important;
    color: #fff !important;
    border-radius: 5px;
    padding: 5px 15px;
    border: none;
    cursor: pointer;
}

.s-comment-form-wrapper button:hover {
    background-color: #d17ac6 !important;
    transition: background-color 0.3s ease-in-out;
}
/* تحسين مظهر كلمة "تقييم" وجعلها واضحة */
.s-rating-stars-reviews {
    color:#502747 !important; /* اللون أسود عشان يكون واضح */
    font-weight: bold; /* تخانة الخط */
    font-size: 14px; /* حجم الخط */
}
.s-product-card-image-cover {
    image-rendering: auto;
    image-rendering: crisp-edges;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}
/* تنسيق القائمة في الهيدر */
.custom-dropdown-header {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
}

.dropdown-toggle-header {
    background-color: #6c5ce7;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.dropdown-toggle-header:hover {
    background-color: #4c3bae;
}

.custom-dropdown-menu-header {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
    right: 0;
}

.custom-dropdown-menu-header a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.custom-dropdown-menu-header a:hover {
    background-color: #f1f1f1;
}

/* إظهار القائمة عند الضغط */
.custom-dropdown-menu-header.active {
    display: block;
}

/* تنسيق الأعلام */
.custom-dropdown-menu-header a .country-code {
    font-size: 12px;
    color: #888;
}

/* لجعل الزر يظهر في الموبايل */
@media (max-width: 768px) {
    .custom-dropdown-header {
        margin-top: 5px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .dropdown-toggle-header {
        width: 100%;
        text-align: center;
    }
}
/* تنسيق القائمة في الهيدر */
.custom-dropdown-header {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    margin-right: 15px;
}

.dropdown-toggle-header {
    background-color: #6c5ce7;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.dropdown-toggle-header:hover {
    background-color: #4c3bae;
}

.custom-dropdown-menu-header {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
    right: 0;
}

.custom-dropdown-menu-header a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.custom-dropdown-menu-header a:hover {
    background-color: #f1f1f1;
}

/* إظهار القائمة عند الضغط */
.custom-dropdown-menu-header.active {
    display: block;
}

/* تنسيق الأعلام */
.custom-dropdown-menu-header a .country-code {
    font-size: 12px;
    color: #888;
}






btn.style.cssText = `
  background: #f4f1f8;
  color: #502747;
  font-weight: bold;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin: 10px auto;
  display: block;
  box-shadow: 0 2px 6px #0001;
  font-size: 16px;
  width: fit-content;
  max-width: 90%;
  text-align: center;
`;