/* ================================
   استيراد الخط
================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;500;700&display=swap');

/* ================================
   المتغيرات
================================ */
:root {
  --primary-color: #2f4d6a;   /* الأزرق الداكن - اللون الرئيسي */
  --secondary-color: #d98b48; /* البرتقالي النحاسي - اللون الثانوي/الأكسنت */
  --white: #ffffff;
  --gray: #999999;
  --font-main: 'Tajawal', sans-serif;
}

/* ================================
   تعميم الخط
================================ */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, button {
  font-family: var(--font-main) !important;
}

/* ================================
   الأزرار العامة
================================ */
button,
input[type="submit"],
a.button,
.s-button,
.s-button-primary,
.salla-btn,
.cart .btn,
.checkout .btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  text-align: center;
}
button:hover,
input[type="submit"]:hover,
a.button:hover,
.s-button:hover,
.s-button-primary:hover,
.salla-btn:hover,
.cart .btn:hover,
.checkout .btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* أزرار مفرغة على الخلفيات الداكنة بالفوتر */
.s-button-primary-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: bold;
  transition: 0.3s ease;
}
.s-button-primary-outline:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

/* ================================
   المنتجات
================================ */
.product-title,
.product-name,
.product-price {
  color: var(--primary-color);
  font-weight: bold;
  transition: color 0.3s ease;
}
.product-title:hover,
.product-name:hover,
.s-product-card-entry:hover .product-price,
.s-product-card-entry:hover .s-product-card-content-title a {
  color: var(--secondary-color);
}
.s-product-card-entry {
  position: relative;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background-color: #fff;
  transition: 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}
.s-product-card-entry:hover {
  border-color: var(--secondary-color);
  animation: pulse-shadow 0.6s ease-in-out;
}
@keyframes pulse-shadow {
  0%   { box-shadow: 0 0 0 rgba(47, 77, 106, 0); }
  50%  { box-shadow: 0 8px 18px rgba(47, 77, 106, 0.25); }
  100% { box-shadow: 0 4px 10px rgba(47, 77, 106, 0.25); }
}
.s-product-card-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(217, 139, 72, 0.20), transparent);
  transform: skewX(-20deg);
  z-index: 2;
}
.s-product-card-entry:hover::before { animation: shimmer 1s ease forwards; }
@keyframes shimmer { 0% { left: -75%; } 100% { left: 125%; } }

.s-product-card-content { padding: 15px; background-color: transparent; box-shadow: none; }
.s-product-card-image img { width: 100%; border-top-left-radius: 8px; border-top-right-radius: 8px; object-fit: cover; }
.s-product-card-content-title a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
.s-product-card-content-title a:hover { color: var(--secondary-color); text-decoration: underline; }
.s-product-card-entry .s-button,
.s-product-card-entry .s-button-primary-outline {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: bold;
  transition: 0.3s ease;
}
.s-product-card-entry:hover .s-button,
.s-product-card-entry:hover .s-button-primary-outline {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* ================================
   القائمة العلوية + البحث
================================ */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
}
.s-search-icon svg { width: 1rem; height: 1rem; fill: var(--white); }
.s-search-input {
  background-color: #2b2b2b;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 18px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

/* ================================
   العناوين
================================ */
h1, h2, h3, h4 { color: var(--primary-color); }

/* ================================
   تخصيصات إضافية
================================ */
.price.my-1:after {
  content: "السعر شامل الضريبة";
  background-color: var(--secondary-color);
  color: var(--white);
  margin-right: 5px;
  padding: 2px 6px;
  border-radius: 3px;
}
.s-block--features__item .feature-icon {
  background-color: var(--primary-color) !important;
  color: var(--white);
  border-radius: 50%;
  width: 60px; height: 60px;
  display: flex; justify-content: center; align-items: center;
  font-size: 2rem; margin: 0 auto 1rem;
}
.flex.items-center a:hover,
.flex.items-center i:hover { color: var(--secondary-color) !important; }
.s-search-product-price { color: var(--primary-color) !important; font-weight: bold; }

/* ================================
   استجابة الشاشات
================================ */
@media (min-width: 1280px) { .container { max-width: 100%; } }

/* ================================
   الفوتر
================================ */

/* الشريط العلوي داخل الفوتر */
.store-footer__inner {
  background-color: var(--primary-color); /* أزرق داكن */
  color: var(--white);
  padding: 1rem;
  text-align: right !important;
}

/* الوسط (الفوتر الرئيسي) */
.store-footer {
  background-color: var(--primary-color); /* كان برتقالي: صُحح ليتّسق مع الثيم وليوضح النص */
  padding: 2rem 0;
  color: var(--white);
  text-align: right !important;
}
.store-footer h3 {
  color: var(--white) !important;   /* أزلنا الجرانديانت لأنه سبب بهتان */
  font-weight: bold;
  margin: 0; padding: 0.5rem 0;
}
/* نص الوصف وروابط الفوتر */
.store-footer p,
.store-footer a,
.store-footer .s-contacts-title,
.store-footer .unicode {           /* أرقام التواصل/الإيميل */
  color: var(--white) !important;
  opacity: 1 !important;
  transition: 0.3s;
}
.store-footer a:hover { color: var(--secondary-color) !important; }

/* الشريط السفلي للفوتر */
.footer-bottom {
  background-color: var(--secondary-color); /* برتقالي */
  color: var(--white);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
.footer-bottom a { color: var(--white); }
.footer-bottom a:hover { color: var(--primary-color); }


body::before {
  content: "استخدم الكوبون M10 للحصول على خصم إضافي";
  display: block;
  background-color: #2f4d6a; /* لون الخلفية */
  color: #ffffff;           /* لون النص */
  text-align: center;
  padding: 21px 20px;
  font-size: 16px;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}