/* ========================================
   واتساب عائم - تصميم أنيق
   ======================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  box-shadow: 0 8px 25px rgba(0,0,0,.22);
  transition: .3s ease;
  text-decoration: none;
  animation: whatsappPulse 2.5s infinite ease-in-out;
}

.whatsapp-floating:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 35px rgba(0,0,0,.28);
}

.whatsapp-floating svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transition: .3s;
  pointer-events: none;
}

.whatsapp-floating:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media(max-width:768px) {
  .whatsapp-floating {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
  .whatsapp-floating svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

@media(max-width:480px) {
  .whatsapp-floating {
    width: 50px;
    height: 50px;
    right: 14px;
    bottom: 14px;
  }
  .whatsapp-floating svg {
    width: 24px;
    height: 24px;
  }
}

/* ========================================
   إخفاء أي واتساب عائم مكرر
   ======================================== */
.floating-whatsapp,
.whatsapp-float,
[class*="whatsapp-float"]:not(.whatsapp-floating),
[class*="whatsapp_float"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ========================================
   PREMIUM FOOTER
   ======================================== */
:root {
  --footer-primary: #0B2F8A;
  --footer-secondary: #1EA8F2;
  --footer-accent: #28C7FF;
  --footer-text: #344054;
  --footer-text-light: #667085;
  --footer-border: rgba(11,47,138,0.08);
  --footer-shadow: rgba(30,168,242,0.08);
  --footer-radius: 16px;
  --footer-transition: .3s cubic-bezier(.4,0,.2,1);
}

.store-footer {
  position: relative !important;
  background: #fff !important;
  padding: 24px 16px 40px !important;
  margin: 0 !important;
  color: var(--footer-text) !important;
  border: none !important;
  box-shadow: 0 -2px 30px rgba(0,0,0,.03) !important;
  font-family: inherit !important;
  animation: footerFade .6s ease-out forwards !important;
}

.store-footer__inner {
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.footer-items-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

.footer-item {
  background: #fff !important;
  border: 1px solid var(--footer-border) !important;
  border-radius: var(--footer-radius) !important;
  padding: 18px 20px !important;
  box-shadow: 0 2px 12px var(--footer-shadow) !important;
  transition: all var(--footer-transition) !important;
  width: 100% !important;
  position: relative !important;
  text-align: center !important;
}

.footer-item:hover {
  border-color: rgba(30,168,242,.15) !important;
  box-shadow: 0 4px 24px rgba(11,47,138,.06) !important;
  transform: translateY(-2px) !important;
}

.footer-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--footer-primary) !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: .2px !important;
  position: relative !important;
  padding-bottom: 8px !important;
  display: inline-block !important;
  text-align: center !important;
}

.footer-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 28px !important;
  height: 2.5px !important;
  background: linear-gradient(90deg,var(--footer-secondary),var(--footer-accent)) !important;
  border-radius: 4px !important;
}

.footer-item:first-child {
  text-align: center !important;
  padding: 24px 16px !important;
}

.footer-item:first-child .store-footer__logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.footer-item:first-child .store-footer__logo img {
  max-height: 44px !important;
  width: auto !important;
  filter: none !important;
  transition: transform var(--footer-transition) !important;
}

.footer-item:first-child .store-footer__logo img:hover {
  transform: scale(1.04) !important;
}

.footer-item:first-child .store-footer__description {
  font-size: 13px !important;
  line-height: 1.8 !important;
  color: var(--footer-text) !important;
  font-weight: 400 !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.footer-item:first-child .store-footer__description span {
  color: var(--footer-text-light) !important;
  font-size: 12px !important;
  display: block !important;
  margin-top: 4px !important;
}

.footer-item:has(.contact-info),
.footer-item:has([class*="contact"]) {
  background: linear-gradient(135deg,#f8faff 0,#eef5ff 100%) !important;
  border: 1.5px solid rgba(11,47,138,.08) !important;
  text-align: center !important;
  padding: 20px 20px !important;
  position: relative !important;
  overflow: hidden !important;
}

.footer-item:has(.contact-info)::before,
.footer-item:has([class*="contact"])::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  right: -30% !important;
  width: 200% !important;
  height: 200% !important;
  background: radial-gradient(circle at 70% 30%,rgba(40,199,255,.04),transparent 60%) !important;
  pointer-events: none !important;
}

.footer-item:has(.contact-info):hover,
.footer-item:has([class*="contact"]):hover {
  border-color: var(--footer-secondary) !important;
  box-shadow: 0 4px 24px rgba(11,47,138,.08) !important;
}

.contact-info {
  position: relative !important;
  z-index: 1 !important;
}

.contact-info .contact-icon {
  font-size: 32px !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.contact-info .contact-label {
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: var(--footer-primary) !important;
  font-weight: 600 !important;
  margin-bottom: 2px !important;
  opacity: .6 !important;
}

.contact-info .contact-number {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--footer-primary) !important;
  letter-spacing: .3px !important;
  display: block !important;
  margin: 2px 0 !important;
}

.contact-info .contact-number a {
  color: var(--footer-primary) !important;
  text-decoration: none !important;
  transition: color var(--footer-transition) !important;
}

.contact-info .contact-number a:hover {
  color: var(--footer-secondary) !important;
}

.contact-info .contact-sub {
  font-size: 13px !important;
  color: var(--footer-text-light) !important;
  font-weight: 400 !important;
  margin-top: 2px !important;
}

.salla-menu,
.salla-user-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  align-items: center !important;
}

.salla-menu li,
.salla-user-menu li {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.salla-menu a,
.salla-user-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: var(--footer-text) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  transition: all var(--footer-transition) !important;
  background: transparent !important;
  position: relative !important;
  width: 100% !important;
}

.salla-menu a::before,
.salla-user-menu a::before {
  content: '›' !important;
  font-size: 18px !important;
  color: var(--footer-secondary) !important;
  font-weight: 300 !important;
  transition: all var(--footer-transition) !important;
  opacity: .5 !important;
}

.salla-menu a:hover,
.salla-user-menu a:hover {
  background: rgba(30,168,242,.06) !important;
  color: var(--footer-primary) !important;
  transform: translateX(4px) !important;
}

.salla-menu a:hover::before,
.salla-user-menu a:hover::before {
  opacity: 1 !important;
  color: var(--footer-accent) !important;
  transform: scale(1.2) !important;
}

.salla-social {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
  padding: 4px 0 !important;
}

.salla-social a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: #f5f8ff !important;
  border: 1.5px solid var(--footer-border) !important;
  color: var(--footer-primary) !important;
  font-size: 20px !important;
  text-decoration: none !important;
  transition: all var(--footer-transition) !important;
  box-shadow: 0 2px 8px rgba(11,47,138,.04) !important;
}

.salla-social a:hover {
  transform: translateY(-4px) scale(1.05) !important;
  background: linear-gradient(135deg,var(--footer-primary),var(--footer-secondary)) !important;
  border-color: var(--footer-primary) !important;
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(11,47,138,.15) !important;
}

.salla-social a svg,
.salla-social a i {
  transition: transform var(--footer-transition) !important;
}

.salla-social a:hover svg,
.salla-social a:hover i {
  transform: scale(1.1) !important;
}

@keyframes footerFade {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media(max-width:767px) {
  .store-footer { padding: 20px 12px 30px !important; }
  .store-footer__inner { max-width: 100% !important; gap: 14px !important; }
  .footer-items-wrapper { gap: 14px !important; }
  .footer-item { padding: 14px 16px !important; border-radius: 14px !important; text-align: center !important; }
  .footer-item:first-child { padding: 18px 12px !important; }
  .footer-item:first-child .store-footer__logo img { max-height: 38px !important; }
  .footer-item:first-child .store-footer__description { font-size: 12px !important; line-height: 1.7 !important; }
  .footer-title { display: none !important; }
  .salla-menu,.salla-user-menu { display: flex !important; flex-direction: column !important; gap: 2px !important; max-height: none !important; height: auto !important; overflow: visible !important; opacity: 1 !important; }
  .salla-menu li,.salla-user-menu li { display: block !important; opacity: 1 !important; max-height: none !important; }
  .contact-info { display: block !important; }
  .salla-social { display: flex !important; }
  .footer-item { max-height: none !important; overflow: visible !important; }
  .footer-item * { max-height: none !important; overflow: visible !important; }
  .salla-menu a,.salla-user-menu a { font-size: 13px !important; padding: 6px 10px !important; justify-content: center !important; }
  .contact-info .contact-number { font-size: 22px !important; }
  .contact-info .contact-icon { font-size: 28px !important; }
  .salla-social a { width: 44px !important; height: 44px !important; font-size: 18px !important; }
  .salla-social { gap: 8px !important; }
}

@media(min-width:768px)and(max-width:1024px) {
  .store-footer { padding: 32px 24px 40px !important; }
  .store-footer__inner { max-width: 720px !important; }
  .footer-items-wrapper { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
  .footer-item { text-align: center !important; padding: 18px 20px !important; }
  .footer-item:first-child { grid-column: 1/-1 !important; text-align: center !important; padding: 24px 32px !important; }
  .footer-item:first-child .store-footer__logo { justify-content: center !important; }
  .footer-item:first-child .store-footer__logo img { max-height: 48px !important; }
  .footer-item:first-child .store-footer__description { max-width: 500px !important; margin: 0 auto !important; font-size: 14px !important; }
  .footer-title { text-align: center !important; }
  .footer-title::after { left: 50% !important; transform: translateX(-50%) !important; }
  .salla-menu a,.salla-user-menu a { justify-content: center !important; }
  .contact-info .contact-number { font-size: 26px !important; }
  .salla-social a { width: 48px !important; height: 48px !important; font-size: 20px !important; }
  .salla-social { gap: 12px !important; }
}

@media(min-width:1025px) {
  .store-footer { padding: 40px 40px 20px !important; }
  .store-footer__inner { max-width: 1200px !important; padding: 0 !important; }
  .footer-items-wrapper { display: grid !important; grid-template-columns: 1fr 1fr 1fr 1fr !important; gap: 24px !important; align-items: stretch !important; }
  .footer-item { padding: 20px 24px !important; border-radius: var(--footer-radius) !important; text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; min-height: 200px !important; }
  .footer-item:first-child { grid-column: auto !important; text-align: center !important; padding: 20px 24px !important; min-height: 200px !important; }
  .footer-item:first-child .store-footer__logo { justify-content: center !important; }
  .footer-item:first-child .store-footer__logo img { max-height: 50px !important; }
  .footer-item:first-child .store-footer__description { max-width: 100% !important; margin: 0 !important; font-size: 14px !important; }
  .footer-title { text-align: center !important; margin-bottom: 14px !important; }
  .footer-title::after { left: 50% !important; transform: translateX(-50%) !important; }
  .salla-menu,.salla-user-menu { align-items: center !important; }
  .salla-menu a,.salla-user-menu a { justify-content: center !important; font-size: 14px !important; padding: 6px 10px !important; }
  .contact-info .contact-number { font-size: 24px !important; }
  .salla-social { justify-content: center !important; }
  .salla-social a { width: 46px !important; height: 46px !important; font-size: 18px !important; }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

.salla-menu a:focus-visible,
.salla-user-menu a:focus-visible,
.salla-social a:focus-visible,
.contact-info .contact-number a:focus-visible,
.whatsapp-floating:focus-visible {
  outline: 2px solid var(--footer-secondary) !important;
  outline-offset: 2px !important;
}

.store-footer,
.store-footer * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.store-footer {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}