/* Add custom CSS styles below */ 
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500&display=swap');

/* هيكل الزر الرئيسي */
.whatsapp-float {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: 'Tajawal', sans-serif;
    display: flex;
}

/* تصميم الزر المستطيل */
.whatsapp-float .btn {
    width: 50px;
    height: 120px;
    background-color: #25D366;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 15px 5px;
}

.whatsapp-float .btn:hover {
    background-color: #128C7E;
    width: 55px;
}

.whatsapp-float .btn-text {
    transform: rotate(180deg);
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* القائمة المنسدلة */
.whatsapp-float .dropdown {
    width: 280px;
    background-color: white;
    border-radius: 8px 0 0 8px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    position: absolute;
    right: 50px;
    top: 0;
}

.whatsapp-float.active .dropdown {
    max-height: 500px;
}

/* أقسام القائمة */
.whatsapp-float .dropdown-section {
    border-bottom: 1px solid #f0f0f0;
}

.whatsapp-float .dropdown-section:last-child {
    border-bottom: none;
}

.whatsapp-float .dropdown-title {
    padding: 12px 15px;
    background-color: #f8f8f8;
    color: #444;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-float .dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.whatsapp-float .dropdown-section.active .dropdown-content {
    max-height: 500px;
}

.whatsapp-float .dropdown-item {
    padding: 12px 15px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.whatsapp-float .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #000;
}

.whatsapp-float .dropdown-arrow {
    transition: transform 0.3s;
    font-size: 12px;
}

.whatsapp-float .dropdown-section.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .whatsapp-float .dropdown {
        width: 250px;
    }
    
    .whatsapp-float .btn {
        height: 100px;
        width: 40px;
        font-size: 20px;
    }
    
    .whatsapp-float.active .dropdown {
        max-height: 400px;
    }
}






 
.p-\[1\.4rem\] {
    padding: 1.4rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 243, 249, 0.98) 100%);
    border-radius: 24px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(138, 63, 145, 0.25),
        0 10px 30px rgba(190, 45, 145, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(138, 63, 145, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.p-\[1\.4rem\]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(170, 90, 200, 0.4) 0%, 
        rgba(230, 120, 200, 0.2) 25%,
        rgba(255, 150, 210, 0.1) 50%,
        rgba(230, 120, 200, 0.2) 75%,
        rgba(170, 90, 200, 0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
}

.p-\[1\.4rem\]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.p-\[1\.4rem\]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 60px -12px rgba(138, 63, 145, 0.35),
        0 15px 40px rgba(190, 45, 145, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -3px 0 rgba(138, 63, 145, 0.15);
}

.p-\[1\.4rem\]:hover::after {
    animation: luxury-shimmer 1.5s forwards;
    opacity: 1;
}

@keyframes luxury-shimmer {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.p-\[1\.4rem\]:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 15px 30px -12px rgba(138, 63, 145, 0.2),
        0 8px 20px rgba(190, 45, 145, 0.15),
        inset 0 2px 0 rgba(138, 63, 145, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}


.s-product-card-content-footer salla-add-product-button .s-button-outline {
    border-color: #414042;
    /* border-color: var(--color-primary); */
    background-color: #83058d;
    color: white;
}


.s-product-card-content-footer salla-add-product-button .s-button-outline {
    HEIGHT: 40PX;
    background-color: #83058d;
    color: white;
}


   
    
    .s-product-card-content-footer salla-add-product-button .s-button-outline {
    HEIGHT: 40PX;
    background-color: #83058d33;
    color: #83058d;
    border-color: #ffffff;
}









/* تحسينات CSS للعناصر الموجودة مع الحفاظ على الأبعاد */
.s-product-card-brand, .s-product-card-category {
  /* الحفاظ على الأبعاد الأصلية */
  width: fit-content;
  height: auto;
  display: inline-block;
  
  /* تحسينات التصميم */
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.s-product-card-brand {
  /* تصميم العلامة التجارية */
  font-size: 14px;
  color: #83058d; /* اللون الثابت الجديد */
  margin-bottom: 5px;
  padding: 2px 0;
  
  /* تأثيرات الأنيميشن */
  animation: brandSlideIn 0.6s ease-out;
}

.s-product-card-brand::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(131, 5, 141, 0.2), transparent);
  transition: right 0.6s ease;
}

.s-product-card-brand:hover::before {
  right: 100%;
}

.s-product-card-brand:hover {
  color: #83058d; /* نفس اللون الثابت */
  transform: translateX(-5px);
  text-shadow: 0 2px 8px rgba(131, 5, 141, 0.3);
}

.s-product-card-category {
  /* تصميم الفئة */
  font-size: 12px;
  color: white;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #83058d, #4a00e0);
  border-radius: 1px;
  border: 1px solid transparent;
  position: relative;
  
  /* تأثيرات الأنيميشن */
  animation: categoryBounce 0.8s ease-out;
}

/* أنيميشن البوردر المتدرج */
.s-product-card-category::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #83058d, #4a00e0, #8e2de2, #83058d);
  border-radius: 1px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderRotate 3s linear infinite paused;
}

.s-product-card-category:hover::before {
  opacity: 1;
  animation-play-state: running;
}

/* أنيميشن دوران البوردر */
@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.s-product-card-category:hover {
  background: linear-gradient(135deg, #83058d, #4a00e0);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(131, 5, 141, 0.4);
  border-color: transparent;
}

/* أنيميشن الكتابة للعلامة التجارية */
@keyframes brandSlideIn {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* أنيميشن الارتداد للفئة */
@keyframes categoryBounce {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  50% {
    transform: scale(1.1) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* تأثير النبض المستمر للفئة */
.s-product-card-category {
  animation: categoryBounce 0.8s ease-out, gentlePulse 3s infinite;
}

@keyframes gentlePulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(131, 5, 141, 0.2);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(131, 5, 141, 0.1);
  }
}

/* تأثير التوهج للعلامة التجارية */
.s-product-card-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #83058d, #4a00e0);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.s-product-card-brand:hover::after {
  width: 100%;
}

/* تحسينات للعرض على الأجهزة المختلفة */
@media (max-width: 768px) {
  .s-product-card-brand, .s-product-card-category {
    transition: all 0.3s ease;
  }
  
  .s-product-card-brand:hover {
    transform: translateX(-3px);
  }
  
  .s-product-card-category:hover {
    transform: translateY(-2px) scale(1.03);
  }
  
  .s-product-card-category::before {
    animation-duration: 4s;
  }
}

/* تأثيرات التركيز لإمكانية الوصول */
.s-product-card-brand:focus,
.s-product-card-category:focus {
  outline: 2px solid #83058d;
  outline-offset: 2px;
  border-radius: 4px;
}

/* تحسينات للأداء */
.s-product-card-brand, .s-product-card-category {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* تأثيرات إضافية للفئة عند النقر */
.s-product-card-category:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* أنيميشن إضافية للبوردر مع تدرج متعدد الألوان */
@keyframes borderGlow {
  0%, 100% {
    background: linear-gradient(135deg, #83058d, #4a00e0);
    box-shadow: 0 0 10px rgba(131, 5, 141, 0.3);
  }
  50% {
    background: linear-gradient(135deg, #8e2de2, #83058d);
    box-shadow: 0 0 20px rgba(131, 5, 141, 0.6);
  }
}

.s-product-card-category:hover {
  animation: categoryBounce 0.8s ease-out, borderGlow 2s ease-in-out infinite;
}