/* ============================================
   SCOPED FOOTER CONTAINER - Sherif Store
   (نفس تصميم ملف الـ HTML الأصلي بالضبط)
============================================ */
#sherif-footer {
  --primary: rgb(214, 0, 0);
  --primary-hover: #B00000;
  --primary-light: #FFF0F0;
  --secondary: #FFFFFF;
  --bg-color: #F5F5F5;
  --footer-bg: #8A0000;
  --footer-bg-2: #FF1F1F;
  --footer-bg-3: #600000;
  --card-bg: transparent;
  --card-border: rgba(255, 255, 255, 0.35);
  --border-color: #E5E5E5;
  --footer-border: rgba(255, 255, 255, 0.18);
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --chip-bg: rgba(255, 255, 255, 0.1);
  --icon-bg: #FFFFFF;
  --footer-text: rgba(255, 255, 255, 0.92);
  --footer-text-dim: rgba(255, 255, 255, 0.68);
  --radius: 18px;
  --radius-sm: 10px;
  --card-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  direction: rtl;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--primary) 0%, var(--footer-bg-3) 100%);
  color: var(--footer-text);
  margin-top: 40px;
}

#sherif-footer *,
#sherif-footer *::before,
#sherif-footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

#sherif-footer a { text-decoration: none; color: inherit; }

#sherif-footer .footer-inner {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 0;
}

/* ---------- Brand column ---------- */
#sherif-footer .footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

#sherif-footer .footer-brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

#sherif-footer .footer-brand-name {
  display: block;
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 1px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 12px;
}

@media (max-width: 600px) {
  #sherif-footer .footer-brand-name {
    font-size: 28px;
    margin-bottom: 8px;
  }
}

#sherif-footer .footer-tagline {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Social icons */
#sherif-footer .footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto;
}

#sherif-footer .social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--icon-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

#sherif-footer .social-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-3px);
}

#sherif-footer .social-btn svg { width: 21px; height: 21px; }
#sherif-footer .social-btn i { font-size: 21px; line-height: 1; }

/* ---------- توحيد لون أي أيقونة سوشيال ميديا مُضافة ---------- */
/* بيغطي: أيقونات Font Awesome (وسم i)، أيقونات SVG ملونة، وأيقونات Duotone
   بيخليها تاخد نفس لون باقي الأيقونات (أحمر عادي / أبيض عند الهوفر)
   من غير ما يأثر على الأيقونات الأساسية (واتساب/فيسبوك/انستجرام/تيك توك) لأنها أصلاً بتستخدم currentColor */
#sherif-footer .social-btn i {
  color: currentColor !important;
}

#sherif-footer .social-btn svg:not([fill="none"]),
#sherif-footer .social-btn svg [fill]:not([fill="none"]) {
  fill: currentColor !important;
}

#sherif-footer .social-btn svg [stroke]:not([stroke="none"]) {
  stroke: currentColor !important;
}

#sherif-footer .social-btn i,
#sherif-footer .social-btn svg {
  --fa-primary-color: currentColor !important;
  --fa-secondary-color: currentColor !important;
  --fa-primary-opacity: 1 !important;
  --fa-secondary-opacity: 1 !important;
}

/* تارجت مباشر لنظام أيقونات إليمنتور الجديد (svg.e-font-icon-svg)
   ده اللي بيتحط لما تختار أيقونة من مكتبة إليمنتور (Font Awesome) */
#sherif-footer .social-btn svg.e-font-icon-svg,
#sherif-footer .social-btn svg.e-font-icon-svg path,
#sherif-footer .social-btn svg[class*="e-fab-"],
#sherif-footer .social-btn svg[class*="e-fab-"] path,
#sherif-footer .social-btn svg[class*="e-far-"],
#sherif-footer .social-btn svg[class*="e-far-"] path,
#sherif-footer .social-btn svg[class*="e-fas-"],
#sherif-footer .social-btn svg[class*="e-fas-"] path {
  fill: currentColor !important;
  color: currentColor !important;
}

/* ---------- Links grid ---------- */
#sherif-footer .footer-links-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 22px 0 26px;
}

#sherif-footer .footer-col {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: center;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 16px 12px;
  transition: var(--transition);
}

#sherif-footer .footer-col:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

@media (min-width: 640px) {
  #sherif-footer .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 28px 0 34px;
  }
  #sherif-footer .footer-col {
    padding: 22px 20px;
  }
  #sherif-footer .footer-branches-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (min-width: 960px) {
  #sherif-footer .footer-links-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px;
    padding: 48px 0 44px;
  }
  #sherif-footer .footer-col,
  #sherif-footer .footer-brand-col {
    max-width: none;
    padding: 30px 28px;
  }
}

#sherif-footer .footer-col-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#sherif-footer .footer-col-title-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--icon-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#sherif-footer .footer-col-title-icon svg { width: 14px; height: 14px; }

#sherif-footer .footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#sherif-footer .footer-links-list a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
}

#sherif-footer .footer-links-list a:hover {
  color: #FFFFFF;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(-3px);
}

#sherif-footer .footer-links-list a svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Phone: branches side by side (matches mobile default) */
@media (max-width: 639px) {
  #sherif-footer .footer-branches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
}

/* Contact col */
#sherif-footer .footer-contact-list {
  display: grid;
  grid-template-columns: auto auto;
  width: fit-content;
  margin: 0 auto;
  gap: 14px 10px;
}

#sherif-footer .footer-contact-item {
  display: contents;
}

#sherif-footer .footer-contact-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--icon-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

#sherif-footer .footer-contact-icon svg { width: 14px; height: 14px; }

#sherif-footer .footer-contact-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-main);
}

#sherif-footer .footer-contact-text a:hover { color: var(--primary); }

#sherif-footer .footer-contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* ---------- Bottom bar ---------- */
#sherif-footer .footer-bottom {
  padding: 20px 16px 24px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border-top: 1px solid var(--footer-border);
}

#sherif-footer .footer-copyright {
  font-size: 12px;
  font-weight: 600;
  color: var(--footer-text-dim);
}

#sherif-footer .footer-copyright strong {
  color: var(--footer-text);
  font-weight: 800;
}

#sherif-footer .footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

#sherif-footer .footer-bottom-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--footer-text-dim);
  transition: var(--transition);
}

#sherif-footer .footer-bottom-links a:hover { color: #FFFFFF; text-decoration: underline; }

/* Phone: contact (phone + email) side by side, same idea as branches section */
@media (max-width: 639px) {
  #sherif-footer .footer-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 14px 12px;
  }

  #sherif-footer .footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: var(--chip-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
  }

  #sherif-footer .footer-contact-item .footer-contact-icon {
    margin-top: 0;
  }

  #sherif-footer .footer-contact-item .footer-contact-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
