/* =======================================================
   ANA 3ALMi | Quantity Counter (Golden Royal Edition)
   إصدار 2025 — تصميم ناصر الحربي 👑
   ======================================================= */
/* 💙 خلفية ملكية متحركة بأسلوب النصر */
body {
  background-color: #001B5A;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 215, 0, 0.08) 0px,
      rgba(255, 215, 0, 0.08) 2px,
      transparent 2px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 215, 0, 0.06) 0px,
      rgba(255, 215, 0, 0.06) 1px,
      transparent 1px,
      transparent 25px
    ),
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 215, 0, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 215, 0, 0.10) 0%,
      transparent 55%
    ),
    linear-gradient(145deg, #00194F 0%, #002E8A 50%, #0033A0 90%);
  
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 200% 200%;
  animation: royalMove 40s ease-in-out infinite alternate;
  color: #fff;
}

/* ✨ حركة ناعمة للخلفية */
@keyframes royalMove {
  0% { background-position: 0% 0%; }
  50% { background-position: 50% 50%; }
  100% { background-position: 100% 100%; }
}

/* لمسات ذهبية خفيفة */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 60% 40%, rgba(255, 215, 0, 0.05), transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.04), transparent 75%);
  pointer-events: none;
  z-index: -1;
  animation: glowShift 30s ease-in-out infinite alternate;
}

@keyframes glowShift {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.05); }
}

/* 🟦 الهيدر */
.header, header, .site-header {
  background: linear-gradient(145deg, #00194F 0%, #002E8A 60%, #0033A0 100%);
  color: #fff;
  border-bottom: 3px solid #FFD700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* 🔻 الفوتر */
.footer, footer, .site-footer {
  background: linear-gradient(145deg, #00194F 0%, #002E8A 60%, #0033A0 100%);
  color: #ccc;
  border-top: 3px solid #FFD700;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.footer a, .footer p, footer a, footer p {
  color: #f1f1f1 !important;
}

/* 🟨 القائمة اليمنى (مثل القائمة الجانبية أو سلة المشتريات) */
.sidebar, .side-menu, .drawer, .cart-sidebar, .offcanvas {
  background: linear-gradient(150deg, #002975 0%, #0033A0 60%, #00194F 100%);
  border-left: 3px solid #FFD700;
  color: #fff;
  box-shadow: -6px 0 25px rgba(0,0,0,0.35);
}
.sidebar a, .drawer a, .cart-sidebar a {
  color: #FFD700 !important;
  font-weight: 600;
}
.sidebar a:hover, .drawer a:hover, .cart-sidebar a:hover {
  color: #fff !important;
}

/* 🟡 شريط علوي ذهبي خفيف في الهيدر */
.header::after, header::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  opacity: 0.9;
}

/* 🌟 تحسين وضوح النصوص والألوان داخل الفوتر والقوائم */
.footer, footer, .site-footer {
  color: #ffffff !important; /* أبيض صافي */
}

.footer a, footer a, .footer p, footer p, .footer span, footer span {
  color: #ffffff !important; /* خطوط بيضاء واضحة */
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.footer a:hover, footer a:hover {
  color: #FFD700 !important; /* ذهبي عند المرور */
}

/* 🎯 تحسين النصوص العامة داخل الخلفية الزرقاء */
.section, .content, .widget, .menu, .drawer, .sidebar, .offcanvas {
  color: #fefefe !important;
}

.section a, .menu a, .drawer a {
  color: #FFD700 !important;
  font-weight: 600;
}
.section a:hover, .menu a:hover, .drawer a:hover {
  color: #ffffff !important;
}

/* 🟡 تأكيد أن النصوص في الروابط الجانبية تظهر بوضوح */
.sidebar p, .drawer p, .sidebar a, .drawer a {
  color: #fff !important;
  font-weight: 600;
}

/* 🔹 تحسين التباين في العناوين الصغيرة (روابط مهمة، تواصل معنا...) */
h4, h5, h6, .footer-title, .widget-title {
  color: #FFD700 !important; /* ذهبي واضح */
  font-weight: 700;
  letter-spacing: 0.3px;
}
/* تغيير لون النصوص والروابط إلى الأزرق الملكي */
.footer, footer, .site-footer,
.footer a, footer a,
.footer p, footer p,
.footer span, footer span,
.footer-title, .widget-title,
.section-footer, .links, .contact-info {
  color: #0033A0 !important; /* الأزرق النصراوي */
  font-weight: 700;
  text-shadow: none;
}

/* عناوين الأقسام */
h4, h5, h6, .footer-title, .widget-title {
  color: #0033A0 !important;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* روابط hover */
.footer a:hover, footer a:hover {
  color: #FFD700 !important; /* ذهبي عند المرور */
  transition: color 0.2s ease-in-out;
}

/* النصوص العامة داخل الفوتر */
.footer p, footer p, .footer span {
  color: #0033A0 !important;
  opacity: 0.95;
}

/* تحسين لون الأيقونات بجانب النصوص */
.footer i, footer i, .contact-info i {
  color: #0033A0 !important;
}
[class*="review"] { color:#0D0D0D !important; opacity:1 !important; }
/* 🟦 تمييز خلفية أقسام المنتجات */
.section, .collection, .products-section, .home-section {
  background: linear-gradient(160deg, #001b5a 0%, #002f8a 70%, #00194d 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 4px 25px rgba(0,0,0,0.25);
  padding: 20px;
  margin-bottom: 40px;
  position: relative;
}

/* ✨ خط ذهبي أنيق أعلى كل قسم */
.section::before, .collection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  border-radius: 50%;
  opacity: 0.9;
}

/* 💛 عناوين الأقسام (مثل الطقم الأساسي / الثاني...) */
.section h2, .collection-title, .section-title {
  color: #FFD700 !important;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: right;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* 🩵 كروت المنتجات */
.product-item, .product-card, .product {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border-radius: 14px;
  border: 2px solid rgba(0, 51, 160, 0.2);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}
.product-item:hover, .product-card:hover, .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(255, 215, 0, 0.25);
  border-color: #FFD700;
}

/* 💳 السعر */
.price, .product-price {
  color: #0033A0 !important;
  font-weight: 800;
}

/* 🛒 زر إضافة للسلة */
button, .btn-primary, .add-to-cart {
  background: linear-gradient(90deg, #FFD700 0%, #E5C100 100%);
  color: #0D0D0D !important;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.3);
  transition: all 0.2s ease-in-out;
}
button:hover, .btn-primary:hover, .add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 215, 0, 0.4);
}

/* 🟨 تحسين عنوان "عرض الكل" */
a.view-all, .view-all-link {
  color: #FFD700 !important;
  font-weight: 700;
  text-decoration: none;
}
a.view-all:hover, .view-all-link:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);

/* ✨ تنسيق عنوان القسم الفرعي */
.section-title, .collection-title, h2.section-title, .home-section h2 {
  display: inline-block;
  background: linear-gradient(90deg, #FFD700 0%, #E5C100 100%);
  color: #001B5A !important;
  padding: 8px 22px;
  border-radius: 40px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: none;
  box-shadow: 0 4px 16px rgba(255,215,0,0.35);
  border: 2px solid rgba(255,215,0,0.7);
  position: relative;
  z-index: 2;
}

/* 💙 تدرج خاص بالأقسام الزرقاء (لو الخلفية زرقاء) */
.section-title-on-dark, .collection-title-on-dark {
  background: linear-gradient(90deg, #0033A0 0%, #001B5A 100%);
  color: #FFD700 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,215,0,0.5);
}

/* 💫 تأثير خفيف وقت المرور */
.section-title:hover, .collection-title:hover {
  transform: scale(1.03);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 6px 25px rgba(255,215,0,0.5);
}
/* ===== عداد الكمية بأسلوب أنا عالمي الذهبي ===== */

/* الأزرار (+ و -) */
.quantity button,
.quantity .btn,
.quantity .increase,
.quantity .decrease {
  background: linear-gradient(180deg, #FFD700 0%, #E5C100 100%) !important;
  color: #001B5A !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 215, 0, 0.8) !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease-in-out !important;
  box-shadow: 0 3px 10px rgba(255,215,0,0.35);
}

.quantity button:hover,
.quantity .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(255,215,0,0.5);
}

/* الرقم في المنتصف */
.quantity input[type="number"],
.quantity .quantity-input {
  background: rgba(0, 27, 90, 0.85) !important; /* خلفية أزرق ملكي غامق */
  color: #FFD700 !important; /* رقم ذهبي واضح */
  font-weight: 900 !important;
  font-size: 20px !important;
  text-align: center !important;
  border: 2px solid rgba(255, 215, 0, 0.6) !important;
  border-radius: 10px !important;
  width: 60px !important;
  height: 40px !important;
  margin: 0 6px !important;
  box-shadow: 0 4px 12px rgba(255,215,0,0.25);
  letter-spacing: 1px;
}
/* الأزرار (+ و -) */
.quantity button,
.quantity .btn,
.quantity .increase,
.quantity .decrease {
  background: linear-gradient(180deg, #FFD700 0%, #E5C100 100%) !important;
  color: #001B5A !important; /* أزرق نصراوي واضح */
  font-weight: 900 !important;
  font-size: 22px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 215, 0, 0.9) !important;
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease-in-out !important;
  box-shadow: 0 3px 12px rgba(255,215,0,0.35);
}

.quantity button:hover,
.quantity .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255,215,0,0.6);
}

/* حقل الرقم (الكمية) */
.quantity input[type="number"],
.quantity .quantity-input {
  background: #FFFFFF !important; /* خلفية بيضاء واضحة */
  color: #FFD700 !important;       /* رقم ذهبي لامع */
  font-weight: 900 !important;
  font-size: 22px !important;
  text-align: center !important;
  border: 2px solid #FFD700 !important;
  border-radius: 12px !important;
  width: 70px !important;
  height: 42px !important;
  margin: 0 6px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255,215,0,0.5); /* لمعان خفيف للنص */
}

/* إزالة الأسهم الجانبية الافتراضية من المتصفحات */
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ⚡️ وميض خفيف عند تعديل الرقم */
.quantity input[type="number"]:focus {
  box-shadow: 0 0 15px rgba(255,215,0,0.5);
  outline: none !important;
  transition: box-shadow 0.3s ease-in-out;
}

/* لمسة فخمة عند تغيير الكمية */
.quantity input:active {
  transform: scale(1.02);
  transition: transform 0.15s ease;
}

/* تحسين العرض على الجوال */
@media (max-width: 600px) {
  .quantity button,
  .quantity .btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
  }
  .quantity input {
    width: 60px !important;
    font-size: 20px !important;
  }
}

/* 💫 لمسة خفيفة لجعل المجموعة بالكامل وسطية */
.quantity {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
}
/* =======================================================
   ANA 3ALMi | Golden Royal Edition v2
   تطوير: ناصر الحربي 👑 — تحديث 2025
   ======================================================= */

/* 🌀 خطوط هندسية متقاطعة ناعمة (Layer خلفية) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(60deg, rgba(255,215,0,0.04) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(0,51,160,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: overlay;
  opacity: 0.35;
  z-index: -2;
  animation: geoSlide 90s linear infinite alternate;
}

@keyframes geoSlide {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 400px 400px, -400px 200px; }
}

/* ✨ طبقة عمق ضوئي متبدلة */
body::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,215,0,0.06), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,215,0,0.08), transparent 60%),
    linear-gradient(145deg, rgba(0,27,90,0.9), rgba(0,10,30,0.85));
  animation: glowShift 30s ease-in-out infinite alternate;
}

/* 💫 وميض ذهبي خفيف كل 60 ثانية */
@keyframes royalPulse {
  0%,97%,100% { filter: brightness(1); }
  98%,99% { filter: brightness(1.6); }
}
body {
  animation: royalPulse 60s infinite;
}

/* 💎 لمعان متناهي للأزرار */
button, .btn-primary, .add-to-cart {
  position: relative;
  overflow: hidden;
}
button::after, .btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.8s ease;
}
button:hover::after { left: 120%; }

/* ✴️ شكل هندسي ذهبي خلف العناوين */
.section-title::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255,215,0,0.05) 0deg 10deg,
    transparent 10deg 20deg
  );
  z-index: -1;
  animation: spinBg 20s linear infinite;
}
@keyframes spinBg {
  to { transform: rotate(360deg); }
}

/* ⚡ وميض خفيف عند تمرير الصفحة */
@keyframes scrollFlash {
  0%,100% { background-position: 0 0; }
  50% { background-position: 100% 100%; }
}
.section, .collection {
  background-image:
    linear-gradient(160deg, #001b5a 0%, #002f8a 70%, #00194d 100%),
    radial-gradient(circle at 50% 50%, rgba(255,215,0,0.05), transparent 80%);
  background-blend-mode: overlay;
  animation: scrollFlash 120s linear infinite;
}