/* =====================================================
   ameaccessories - Safe Footer + Product Text Fix
   احذف الأكواد السابقة الخاصة بـ footer/product وضع هذا فقط
   ===================================================== */

/* ---------- إصلاح الفوتر فقط بدون التأثير على المنتجات ---------- */

footer,
.site-footer,
.store-footer,
.footer {
  background: linear-gradient(135deg, #160824 0%, #24113a 50%, #351f50 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  padding-top: 45px !important;
  padding-bottom: 45px !important;
  border-radius: 34px 34px 0 0 !important;
}

/* نصوص الفوتر فقط */
footer p,
footer span,
footer div,
footer li,
footer small,
footer strong,
.site-footer p,
.site-footer span,
.site-footer div,
.site-footer li,
.site-footer small,
.site-footer strong,
.store-footer p,
.store-footer span,
.store-footer div,
.store-footer li,
.store-footer small,
.store-footer strong,
.footer p,
.footer span,
.footer div,
.footer li,
.footer small,
.footer strong {
  color: rgba(255, 255, 255, 0.95) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
  opacity: 1 !important;
  line-height: 1.9 !important;
  text-shadow: none !important;
}

/* عناوين الفوتر */
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.store-footer h1,
.store-footer h2,
.store-footer h3,
.store-footer h4,
.store-footer h5,
.store-footer h6,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* روابط الفوتر */
footer a,
.site-footer a,
.store-footer a,
.footer a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

footer a:hover,
.site-footer a:hover,
.store-footer a:hover,
.footer a:hover {
  color: #f2ddff !important;
  -webkit-text-fill-color: #f2ddff !important;
  text-decoration: underline !important;
}

/* صور وشعارات الدفع والتوثيق داخل الفوتر */
footer img,
.site-footer img,
.store-footer img,
.footer img {
  opacity: 1 !important;
  filter: none !important;
}

/* ---------- إصلاح عناوين المنتجات فقط ---------- */

/* كرت المنتج */
.product-item,
.product-card,
.product-box,
.product {
  background: #ffffff !important;
  border: 1px solid #eadff5 !important;
  border-radius: 18px !important;
}

/* عنوان المنتج */
.product-item h1,
.product-item h2,
.product-item h3,
.product-item h4,
.product-card h1,
.product-card h2,
.product-card h3,
.product-card h4,
.product-box h1,
.product-box h2,
.product-box h3,
.product-box h4,
.product h1,
.product h2,
.product h3,
.product h4,
.product-title,
.product-name {
  color: #1f1f1f !important;
  -webkit-text-fill-color: #1f1f1f !important;
  opacity: 1 !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
  text-shadow: none !important;
}

/* روابط عناوين المنتجات */
.product-item h1 a,
.product-item h2 a,
.product-item h3 a,
.product-item h4 a,
.product-card h1 a,
.product-card h2 a,
.product-card h3 a,
.product-card h4 a,
.product-box h1 a,
.product-box h2 a,
.product-box h3 a,
.product-box h4 a,
.product h1 a,
.product h2 a,
.product h3 a,
.product h4 a,
.product-title a,
.product-name a {
  color: #1f1f1f !important;
  -webkit-text-fill-color: #1f1f1f !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

/* النصوص داخل عنوان المنتج إذا كانت span */
.product-item h1 span,
.product-item h2 span,
.product-item h3 span,
.product-item h4 span,
.product-card h1 span,
.product-card h2 span,
.product-card h3 span,
.product-card h4 span,
.product-box h1 span,
.product-box h2 span,
.product-box h3 span,
.product-box h4 span,
.product h1 span,
.product h2 span,
.product h3 span,
.product h4 span,
.product-title span,
.product-name span {
  color: #1f1f1f !important;
  -webkit-text-fill-color: #1f1f1f !important;
  opacity: 1 !important;
}

/* السعر */
.product-item .price,
.product-card .price,
.product-box .price,
.product .price,
.product-price,
.sale-price,
.current-price {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

/* زر أضف للسلة داخل المنتج */
.product-item button,
.product-card button,
.product-box button,
.product button,
.product-item .add-to-cart,
.product-card .add-to-cart,
.product-box .add-to-cart,
.product .add-to-cart {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

/* منع أي لون أبيض غير مقصود على نصوص كروت المنتجات */
.product-item p,
.product-card p,
.product-box p,
.product p,
.product-item span,
.product-card span,
.product-box span,
.product span {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  opacity: 1 !important;
}

/* إعادة تأكيد عنوان المنتج بعد span العام */
.product-item h3,
.product-card h3,
.product-box h3,
.product h3,
.product-title,
.product-name,
.product-item h3 span,
.product-card h3 span,
.product-box h3 span,
.product h3 span,
.product-title span,
.product-name span {
  color: #1f1f1f !important;
  -webkit-text-fill-color: #1f1f1f !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

/* للجوال */
@media (max-width: 768px) {
  footer,
  .site-footer,
  .store-footer,
  .footer {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .product-item h3,
  .product-card h3,
  .product-box h3,
  .product h3,
  .product-title,
  .product-name {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
}
/* =====================================================
   Fix Single Product Page Title - ameaccessories
   إصلاح عنوان المنتج داخل صفحة المنتج
   ===================================================== */

/* عنوان المنتج في صفحة المنتج */
.product-details h1,
.product-page h1,
.product-info h1,
.product-title,
.product-name,
[class*="product"] h1,
[class*="product"] [class*="title"],
[class*="Product"] h1,
[class*="Product"] [class*="title"],
div[class*="product"] h1,
section[class*="product"] h1 {
  color: #1f1f1f !important;
  -webkit-text-fill-color: #1f1f1f !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  line-height: 1.6 !important;
  text-shadow: none !important;
  background: transparent !important;
}

/* أي span أو a داخل عنوان المنتج */
.product-details h1 *,
.product-page h1 *,
.product-info h1 *,
.product-title *,
.product-name *,
[class*="product"] h1 *,
[class*="product"] [class*="title"] *,
[class*="Product"] h1 *,
[class*="Product"] [class*="title"] * {
  color: #1f1f1f !important;
  -webkit-text-fill-color: #1f1f1f !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

/* إصلاح كرت عنوان المنتج الظاهر في يمين صفحة المنتج */
.product-details,
.product-page,
.product-info,
[class*="product-details"],
[class*="product-info"],
[class*="ProductDetails"],
[class*="ProductInfo"] {
  color: #1f1f1f !important;
  -webkit-text-fill-color: initial !important;
}

/* إصلاح النصوص داخل جدول تفاصيل المنتج */
.product-details table,
.product-details table *,
.product-page table,
.product-page table *,
.product-info table,
.product-info table *,
[class*="product"] table,
[class*="product"] table * {
  color: #1f1f1f !important;
  -webkit-text-fill-color: #1f1f1f !important;
  opacity: 1 !important;
}

/* السعر في صفحة المنتج */
.product-details .price,
.product-page .price,
.product-info .price,
.product-price,
.sale-price,
.current-price,
[class*="price"] {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  opacity: 1 !important;
  font-weight: 900 !important;
}

/* أزرار الشراء لا تتأثر */
.product-details button,
.product-page button,
.product-info button,
.add-to-cart,
.product-add-to-cart,
button[type="submit"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}