/* ============================================
   إصلاحات إضافية - Siyana24
   ============================================ */

/* تحسين الفوتر للموبايل - 2 أعمدة جنب بعض */
@media (max-width: 991px) and (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }
}

@media (max-width: 599px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 16px !important;
  }
  
  .footer-grid > div:first-child {
    grid-column: 1 / -1;  /* العمود الأول (من نحن) ياخد عرض كامل */
    margin-bottom: 10px;
  }
  
  .footer h3 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
  }
  
  .footer-links li {
    padding: 4px 0 !important;
    font-size: 12.5px !important;
  }
  
  .footer-links li a {
    font-size: 12.5px !important;
  }
  
  .footer-bottom {
    text-align: center !important;
  }
}

/* تحسين شكل أزرار التواصل في الفوتر */
.footer-contact {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}

/* زرار التليفون - أساسي ذهبي */
.footer-contact a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 11px 18px !important;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05)) !important;
  border: 1.5px solid rgba(212,175,55,0.4) !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  flex: 0 1 auto !important;
}

.footer-contact a:hover {
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)) !important;
  border-color: var(--gold-500) !important;
  color: #1a2030 !important;
  box-shadow: 0 8px 24px rgba(212,175,55,0.4) !important;
}

.footer-contact a i {
  font-size: 16px !important;
  color: var(--gold-500) !important;
}

.footer-contact a:hover i {
  color: #1a2030 !important;
}

/* زرار الواتساب - أخضر مميز */
.footer-contact a[href*="wa.me"] {
  background: linear-gradient(135deg, rgba(37,211,102,0.18), rgba(37,211,102,0.06)) !important;
  border-color: rgba(37,211,102,0.5) !important;
}

.footer-contact a[href*="wa.me"] i {
  color: #25D366 !important;
  font-size: 18px !important;
}

.footer-contact a[href*="wa.me"]:hover {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  border-color: #25D366 !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4) !important;
}

.footer-contact a[href*="wa.me"]:hover i {
  color: #fff !important;
}

@media (max-width: 599px) {
  .footer-contact {
    gap: 8px !important;
  }
  
  .footer-contact a {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

/* الـ live counter في الهوم */
.live-counters-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.live-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 13px;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
}

.live-counter strong {
  color: var(--gold-500);
  font-size: 14px;
  margin: 0 2px;
}

.live-counter .pulse-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.live-counter .pulse-dot::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: #25D366;
  border-radius: 50%;
  opacity: 0.4;
  animation: liveDot 1.8s ease-out infinite;
}

@keyframes liveDot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

@media (max-width: 599px) {
  .live-counter {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* تحسين نموذج الحجز على الموبايل */
@media (max-width: 768px) {
  .booking-modal {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
  }
  
  .booking-modal.active {
    transform: none !important;
  }
  
  .booking-modal-header {
    position: sticky !important;
    top: 0;
    z-index: 10;
    padding: 14px 16px !important;
  }
  
  .booking-modal-body {
    padding: 16px !important;
    padding-bottom: 100px !important;
  }
  
  .booking-step-content .step-buttons {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    padding: 14px 16px !important;
    border-top: 2px solid var(--gold-500) !important;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12) !important;
    margin: 0 !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 20 !important;
  }
  
  .booking-step-content .step-buttons .btn {
    flex: 1 !important;
    padding: 12px 8px !important;
    font-size: 14px !important;
    min-height: 48px !important;
  }
  
  .booking-modal .device-grid,
  .booking-modal .brand-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}

/* ==========================================================
   الهندسية للصيانة — تعديلات اللوجو + الهيدر الثابت + الأزرار + التنويه
   ========================================================== */

/* (أ) لوجو الصورة في الهيدر */
.logo.logo-image-only { gap: 0; }
.logo .logo-img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .logo .logo-img { height: 44px; max-width: 160px; }
}

/* (ب) الهيدر — عادي مع الصفحة (مش ثابت) */
@media (max-width: 1023px) {
  main, main[role="main"] { padding-bottom: 80px; }
}

/* (ج) زر الاتصال العائم فوق الواتساب */
.float-btn.call {
  background: linear-gradient(135deg, #E63946, #DC2F3C);
  color: #fff;
  position: relative;
}
.float-btn.call::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid #E63946;
  border-radius: 50%;
  animation: pulse-ring 2s ease infinite;
  pointer-events: none;
}
.float-btn.call svg { animation: phone-ring 2s ease infinite; }

@media (max-width: 1023px) {
  .float-buttons { bottom: 80px; }
}

/* (د) إصلاح زر الاتصال في bottom-nav الموبايل */
.bottom-nav-item.call-btn {
  width: 62px !important;
  height: 62px !important;
  margin-top: -26px !important;
  border-radius: 50% !important;
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(230,57,70,0.5);
}
.bottom-nav-item.call-btn i {
  font-size: 22px !important;
  margin: 0 !important;
  line-height: 1 !important;
}
.bottom-nav-item.call-btn span {
  font-size: 9px !important;
  margin-top: 2px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* (هـ) التنويه القانوني في الفوتر */
.footer-legal-disclaimer {
  margin-top: 30px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.04);
  border-right: 3px solid #d4af37;
  border-radius: 8px;
}
.footer-legal-disclaimer p {
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.footer-legal-disclaimer strong {
  color: #d4af37;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}
.footer-legal-disclaimer i {
  color: #d4af37;
}
@media (max-width: 600px) {
  .footer-legal-disclaimer { padding: 14px 16px; }
  .footer-legal-disclaimer p { font-size: 12px; }
}

/* ==========================================================
   إصلاح Breadcrumb وStats في الموبايل (v3.1)
   ========================================================== */

/* (و) Breadcrumb في صف واحد - مفيش لف للموبايل */
.breadcrumb {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb a,
.breadcrumb .current {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 12.5px !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
  }
  .breadcrumb i.fa-chevron-left { font-size: 9px !important; }
}

/* (ز) Features Strip - عمودين على الموبايل بدل عمود واحد */
.features-strip-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}
@media (min-width: 768px) {
  .features-strip-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }
}

/* تحسين حجم العناصر داخل features-strip في الموبايل */
@media (max-width: 600px) {
  .feature-strip-item {
    padding: 12px 10px !important;
    gap: 10px !important;
  }
  .feature-strip-item i {
    font-size: 22px !important;
    flex-shrink: 0;
  }
  .feature-strip-text strong {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  .feature-strip-text span {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
}

/* (ح) Cat Hero Features - عمودين دائماً */
.cat-hero-features {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 400px) {
  .cat-hero-features { grid-template-columns: 1fr !important; }
}

/* (ط) عنوان المركز في الفوتر */
.footer-contact .footer-address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}
.footer-contact .footer-address:hover {
  opacity: 1;
  color: #d4af37;
}
.footer-contact .footer-address i {
  color: #d4af37;
  font-size: 14px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .footer-contact .footer-address {
    font-size: 12.5px;
  }
}
