/* تأثير تدرج متحرك على جميع النصوص في الموقع */
h1, h2, h3, h4, h5, h6,
p, a, span, strong, label, li, td, th {
  font-weight: bold;
  background: linear-gradient(90deg, #8759df, #22cec2, #0f1a30, #8759df);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s ease infinite;
  display: inline-block;
}

/* حركة التدرج */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* إطار متدرج متحرك لبطاقات المنتجات */
.product-card, 
.product-item, 
.product-box, 
.card, 
.product {
  position: relative;
  border: 3px solid transparent; /* نخليه شفاف أولاً */
  border-radius: 12px; /* زوايا ناعمة */
  background-clip: padding-box;
  z-index: 1;
}

/* الإطار المتدرج المتحرك */
.product-card::before,
.product-item::before,
.product-box::before,
.card::before,
.product::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 15px;
  background: linear-gradient(90deg, #8759df, #22cec2, #0f1a30, #8759df);
  background-size: 300% 300%;
  animation: gradientMove 5s ease infinite;
  z-index: -1;
}

/* حركة التدرج */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* إعداد البطاقة الأساسية */
.product-card, 
.product-item, 
.product-box, 
.card, 
.product {
  position: relative;
  border-radius: 12px; /* لتنعيم الزوايا */
  background: #fff; /* خلفية بيضاء للبطاقة */
  z-index: 0;
  overflow: visible;
  padding: 15px; /* عشان يظهر الإطار بشكل أفضل */
}

/* العنصر الوهمي لإنشاء الإطار */
.product-card::before,
.product-item::before,
.product-box::before,
.card::before,
.product::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 16px; /* أكبر من البطاقة علشان الإطار يلتف حولها */
  background: linear-gradient(270deg, #8759df, #22cec2, #0f1a30, #8759df);
  background-size: 600% 600%;
  animation: gradientMove 8s ease infinite;
  z-index: -1;
}

/* تحريك التدرج */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}