/* /* ====== خلفية البوب اب ====== */
.popup-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;            /* JS بيغيرها لـ flex */
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;

  /* Animation الأساس */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* حالة الظهور */
.popup-wrapper.show {
  display: flex !important;
  opacity: 1;
}

/* ====== محتوى البوب اب ====== */
.popup-content {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  max-width: 90%;       /* العرض الافتراضي */
  max-height: 90%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  animation: popup-scale 0.35s ease forwards;
}

/* ====== زر الإغلاق ====== */
.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  transition: 0.25s;
}
.close-btn:hover {
  transform: scale(1.2);
  color: #e60023;
}

/* ====== صورة جدول المقاسات ====== */
.size-chart-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ========================================= */
/*        ANIMATIONS (اختي منها اللي يعجبك)  */
/* ========================================= */

/* 🔥 1) تكبير تدريجي */
@keyframes popup-scale {
  0% { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 🔥 2) Fade + Blur */
.popup-content.blur-animation {
  animation: popup-blur 0.45s ease forwards;
}
@keyframes popup-blur {
  0% { opacity: 0; filter: blur(10px); transform: scale(.9); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* 🔥 3) Slide Up */
.popup-content.slide-animation {
  animation: popup-slide-up 0.45s ease forwards;
}
@keyframes popup-slide-up {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ====== زر عرض جدول المقاسات ====== */
.size-chart-btn {
  display: block;
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 12px 0 18px;
  transition: 0.25s ease;
  text-align: center;
}

.size-chart-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.size-chart-btn:active {
  transform: scale(0.96);
  background: #000;
}

/* ======= تعديل الموبايل لجعل الصورة أكبر ======= */
@media (max-width: 767px) {
  .popup-content {
    max-width: 100%;      /* تقريباً يغطي كامل العرض */
    max-height: 95%;     /* ارتفاع أكبر */
    padding: 12px;       /* تقليل الحشو لتكبير الصورة */
  }

  .size-chart-img {
    height: 170px;
    border-radius: 6px;  /* أصغر حواف قليلاً */
  }
} */