/* 1. تصميم حاوية المنتج (البطاقة) */
.product-card, .s-product-card { 
    background: #fff;
    border-radius: 15px;
    padding: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f2f2f2;
    overflow: hidden;
}

/* 2. تأثير الحوم (Hover) على البطاقة */
.product-card:hover, .s-product-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07); /* ظل ناعم جداً */
    border-color: #e6e6e6;
    transform: translateY(-4px); /* ارتفاع بسيط */
}

/* 3. تأثير "التركيز" على صورة المنتج */
.product-card img, .s-product-card img {
    border-radius: 10px;
    transition: transform 0.6s ease, filter 0.4s ease;
}

/* بدلاً من الزوم الضخم، نستخدم زوم بسيط جداً مع زيادة التباين */
.product-card:hover img, .s-product-card:hover img {
    transform: scale(1.03); 
    filter: contrast(1.05); /* إبراز تفاصيل المنتج */
}

/* 4. إظهار زر "أضف للسلة" أو "خيارات المنتج" بنعومة */
/* هذا الجزء يستهدف الأزرار التي تظهر غالباً في متاجر سلة عند الحوم */
.s-product-card__button {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.s-product-card:hover .s-product-card__button {
    opacity: 1;
    transform: translateY(0);
}

/* 5. تنسيق اسم المنتج والسعر */
.product-card__title, .s-product-card__title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.product-card:hover .s-product-card__title {
    color: #000; /* تغيير اللون عند الحوم */
}

.product-card__price, .s-product-card__price {
    color: #1a1a1a;
    font-weight: 700 !important;
    margin-top: 5px;
}
/* استهداف الشعار باستخدام الكلاس الخاص به */
.logo-normal {
    display: inline-block !important; /* ضروري لعمل التحريك */
    animation: elegant-pulse 3s infinite ease-in-out !important;
    transition: all 0.3s ease;
}


}

/* تأثير إضافي عند وضع الماوس يدوياً */
.logo-normal:hover {
    animation-play-state: paused; /* إيقاف الحركة المؤقتة عند وضع الماوس لسهولة النقر */
    transform: scale(1.1) !important;
}

/* 1. تعديل عدد الأعمدة على الكمبيوتر إلى 4 بدلاً من 5 */
@media (min-width: 1024px) {
    ul.grid.lg\:grid-cols-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* 2. جعل العنصر الخامس يتوسط الصف في الجوال */
/* بما أن الجوال عمودين، العنصر الخامس (الفردي) سيأخذ عرض الصف كاملاً ويتم توسيط محتواه */
@media (max-width: 1023px) {
    ul.grid.grid-cols-2 li:nth-child(5) {
        grid-column: span 2 / span 2; /* جعل العنصر يأخذ عرض العمودين */
        display: flex;
        justify-content: center;
    }
    
    ul.grid.grid-cols-2 li:nth-child(5) a {
        width: 100%; /* يمكنك تصغير هذه النسبة إذا أردت الصورة أصغر قليلاً */
    }
}

/* 3. إيقاف تأثير الزوم (التكبير) عند مرور الماوس */
.group:hover .group-hover\:scale-110 {
    transform: none !important;
}

/* تحسين إضافي: ضمان نعومة الانتقال ومنع أي اهتزاز */
.duration-400 {
    transition-duration: 0s !important; /* إلغاء وقت الحركة تماماً */
}
/* 1. تعديل عدد الأعمدة على الكمبيوتر إلى 4 */
@media (min-width: 1024px) {
    ul.grid.lg\:grid-cols-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* 2. جعل العنصر الخامس يتوسط الصف في الجوال بنفس حجم البقية */
@media (max-width: 1023px) {
    ul.grid.grid-cols-2 li:nth-child(5) {
        grid-column: span 2 / span 2 !important; /* يأخذ مساحة العمودين ليتمكن من التوسط */
        display: flex !important;
        justify-content: center !important; /* يدفعه للمنتصف */
    }
    
    ul.grid.grid-cols-2 li:nth-child(5) a {
        /* تحديد العرض بنسبة 50% ناقص المسافة (Gap) ليكون تماماً مثل حجم العناصر بالأعلى */
        width: calc(50% - 12px) !important; 
    }
}

/* 3. إيقاف تأثير الزوم تماماً */
.group:hover .group-hover\:scale-110, 
.group-hover\:scale-110:hover {
    transform: none !important;
    transition: none !important;
}
/* استهداف حاوية التغليف فقط عن طريق ID الخيار */
[data-option-id="704312897"] .s-product-options-grid-mode {
    display: flex !important;
    flex-direction: column !important; /* ترتيب عمودي للمستطيلات */
    gap: 10px !important;
    max-width: 100% !important;
}

/* تصميم المستطيل لهذا القسم فقط */
[data-option-id="704312897"] .s-product-options-grid-mode-span {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    width: 100% !important;
    min-height: 50px !important;
    padding: 0 45px 0 15px !important; /* مساحة للمربع جهة اليمين */
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 0px !important; /* زوايا حادة */
    font-size: 14px !important;
    cursor: pointer !important;
}

/* إخفاء دائرة الراديو الأصلية */
[data-option-id="704312897"] .s-product-options-grid-mode input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
}

/* رسم المربع الصغير الجانبي */
[data-option-id="704312897"] .s-product-options-grid-mode-span::before {
    content: '' !important;
    position: absolute !important;
    right: 15px !important; /* جهة اليمين للعربي */
    width: 18px !important;
    height: 18px !important;
    border: 1.5px solid #ffffff !important;
    background-color: transparent !important;
}

/* التنسيق عند اختيار الخيار (نعم أو لا) */
[data-option-id="704312897"] .s-product-options-grid-mode input:checked + .s-product-options-grid-mode-span::before {
    background-color: #333 !important; /* لون المربع الصغير عند الاختيار */
}

/* رسم علامة الصح باللون الأبيض */
[data-option-id="704312897"] .s-product-options-grid-mode input:checked + .s-product-options-grid-mode-span::after {
    content: '✓' !important;
    position: absolute !important;
    right: 18px !important;
    font-size: 16px !important;
    color: #ffffff !important; /* لون الصح أبيض */
    font-weight: bold !important;
    line-height: 18px !important;
}
/* لفّ الصورة بإطار متحرك */
img[src*="sbc.png"] {
  position: relative;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(
    270deg,
    #c9a14a,
    #f5e7b2,
    #c9a14a
  );
  background-size: 400% 400%;
  animation: borderMove 4s ease infinite;
}

/* حركة الإطار */
@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}