/* استيراد خط احترافي */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&display=swap');

:root {
  --main-color: #6C5CE7;
  --secondary-color: #00CEC9;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
}

body {
  font-family: 'Cairo', sans-serif;
  background: #f1f5f9;
  scroll-behavior: smooth;
}

/* حركة ناعمة لكل العناصر */
* {
  transition: all .3s ease-in-out;
}

/* تحسين الهيدر */


/* البانر */
.hero, .main-slider {
  border-radius: 25px;
  overflow: hidden;
  margin: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* بطاقات المنتجات */
.product-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(108,92,231,0.08), transparent);
  transform: rotate(25deg);
  top: -100%;
  left: -100%;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-card:hover::before {
  top: 100%;
  left: 100%;
  transition: 0.8s;
}

/* صورة المنتج */
.product-card img {
  border-radius: 15px;
}

/* اسم المنتج */
.product-title {
  font-weight: 700;
  font-size: 17px;
  margin-top: 10px;
}

/* السعر */
.product-price {
  font-weight: 800;
  color: var(--main-color);
  font-size: 20px;
}

/* زر احترافي متحرك */
.btn-primary, .add-to-cart-btn {
  background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
  border: none;
  border-radius: 50px;
  padding: 12px 22px;
  color: #fff;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  width: 300%;
  height: 300%;
  background: rgba(255,255,255,0.2);
  top: -100%;
  left: -100%;
  transform: rotate(25deg);
}

.btn-primary:hover::after {
  top: 100%;
  left: 100%;
  transition: .6s;
}

.btn-primary:hover {
  transform: scale(1.07);
}

/* تأثير ظهور عند التمرير */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* خلفية فوتر احترافية */
footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff !important;
    padding: 60px 0;
}

/* عناوين الفوتر */
footer h2,
footer h3,
footer h4 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 15px;
}

/* نصوص وروابط الفوتر */
footer p,
footer a {
    color: #cbd5e1 !important;
    opacity: 1 !important;
    font-size: 14px;
}

/* تأثير عند المرور */
footer a:hover {
    color: #00CEC9 !important;
    transform: translateX(-3px);
}

/* أيقونات السوشيال */
footer .social-icons a,
footer .social a,
footer .footer-social a {
    background: rgba(255,255,255,0.08);
    color: #ffffff !important;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 5px;
    transition: 0.3s ease;
}

/* عند المرور على الأيقونات */
footer .social-icons a:hover,
footer .social a:hover,
footer .footer-social a:hover {
    background: linear-gradient(135deg, #6C5CE7, #00CEC9);
    color: #ffffff !important;
    transform: translateY(-5px);
}

/* أيقونات داخلية (FontAwesome) */
footer i {
    color: inherit !important;
    font-size: 16px;
}

/* خط سفلي خفيف */
footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
}
/* إصلاح مشكلة الطبقة البيضاء بدون التأثير على التخطيط */

footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #6C5CE7, #9B59B6) !important;
}

/* إزالة أي overlay فقط إذا كان موجود */
footer::before,
footer::after {
    content: none !important;
    display: none !important;
}

/* إصلاح النصوص */
footer p,
footer a,
footer span,
footer h2,
footer h3,
footer h4 {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* إصلاح أي عنصر يسبب امتداد من اليمين */
body {
    overflow-x: hidden;
}
footer * {
    background-color: transparent !important;
}