/* ═══════════════════════════════════════════════════════
   Zovino — footer.css
   فوتر اختصاصی شیشه‌ای (Glassmorphism) + دکمه بازگشت به بالا
═══════════════════════════════════════════════════════ */

/* --- مخفی کردن فوتر پیش‌فرض قالب اصلی (ایران‌کالا) ---
   سلکتور دقیق تأیید شده: body > footer.main-footer */
body > footer.main-footer {
  display: none !important;
}

#zv-footer, #zv-footer * { box-sizing: border-box; }
#zv-footer {
  --blue: #2563EB; --blue-l: #60A5FA; --blue-d: #1D4ED8;
  --navy: #0F172A; --navy-2: #0e1f3a;
  --white: #FFFFFF; --slate: #F8FAFC;
  --ink: #0F172A; --sub: #64748B; --muted: #94A3B8;
  --border: rgba(15,23,42,0.07);
  --radius: 20px;
  --ff: 'Vazirmatn', sans-serif;
  --fe: 'Inter', sans-serif;

  direction: rtl;
  font-family: var(--ff);
  margin-top: 60px;
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: rgba(255,255,255,.75);
}

/* لکه‌های نوری تزئینی پس‌زمینه، هم‌خانواده بقیه بخش‌های تیره سایت */
#zv-footer::before,
#zv-footer::after{
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
#zv-footer::before{ width: 380px; height: 380px; background: rgba(37,99,235,.18); top: -120px; inset-inline-start: -80px; }
#zv-footer::after{ width: 320px; height: 320px; background: rgba(96,165,250,.12); bottom: -100px; inset-inline-end: -60px; }

#zv-footer a{ text-decoration: none; color: inherit; }
#zv-footer .zv-en{ font-family: var(--fe); direction: ltr; unicode-bidi: isolate; }

#zv-footer .zv-f-con{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* --- گرید ستون‌ها --- */
#zv-footer .zv-f-top{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

#zv-footer .zv-f-title{
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

#zv-footer .zv-f-links{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#zv-footer .zv-f-links a{ font-size: 13.5px; transition: color .2s, transform .2s; display: inline-block; }
#zv-footer .zv-f-links a:hover{ color: #fff; transform: translateX(-3px); }

/* --- ستون برند --- */
#zv-footer .zv-f-logo{ margin-bottom: 16px; }
#zv-footer .zv-f-logo img{ max-height: 38px; width: auto; }
#zv-footer .zv-f-logo-text{
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  font-family: var(--fe);
  letter-spacing: .5px;
}

#zv-footer .zv-f-logo-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
#zv-footer .zv-f-logo-img{
  height: 36px;
  width: auto;
  display: block;
}

#zv-footer .zv-f-desc{ font-size: 13.5px; line-height: 1.9; max-width: 320px; }
#zv-footer .zv-f-brand .zv-f-desc{ margin-bottom: 20px; }

#zv-footer .zv-f-social{ display: flex; gap: 10px; }
#zv-footer .zv-f-social-btn{
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 16px;
  transition: transform .2s, background .2s;
}
#zv-footer .zv-f-social-btn img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
#zv-footer .zv-f-social-btn:hover{ transform: translateY(-3px); background: rgba(255,255,255,.12); }

/* --- ستون خبرنامه --- */
#zv-footer .zv-f-form{
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
}
#zv-footer .zv-f-form input{
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  padding: 12px 14px; color: #fff; font-family: var(--ff); font-size: 13px;
}
#zv-footer .zv-f-form input::placeholder{ color: rgba(255,255,255,.45); }
#zv-footer .zv-f-form button{
  border: none; cursor: pointer; padding: 0 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-l));
  color: #fff; font-weight: 700; font-size: 12.5px; font-family: var(--ff);
  transition: filter .2s;
}
#zv-footer .zv-f-form button:hover{ filter: brightness(1.1); }

/* --- نمادهای اعتماد --- */
#zv-footer .zv-f-trust{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#zv-footer .zv-f-trust-item{
  height: 58px; min-width: 130px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px dashed rgba(255,255,255,.18);
  padding: 8px 16px;
}
#zv-footer .zv-f-trust-item img{ max-height: 40px; max-width: 100%; object-fit: contain; }
#zv-footer .zv-f-trust-placeholder{ font-size: 11.5px; color: rgba(255,255,255,.4); text-align: center; }

/* --- نوار پایین --- */
#zv-footer .zv-f-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}

/* --- دکمه بازگشت به بالا --- */
#zv-scroll-top{
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
  z-index: 300;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
#zv-scroll-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
#zv-scroll-top:hover{ background: var(--blue); }

/* --- ریسپانسیو --- */
@media (max-width: 992px){
  #zv-footer .zv-f-top{ grid-template-columns: 1fr 1fr; gap: 34px; }
  #zv-footer .zv-f-brand{ grid-column: 1 / -1; }
}

@media (max-width: 600px){
  #zv-footer{ padding-top: 50px; }
  /* برند و خبرنامه تمام‌عرض؛ دسته‌ها + خدمات در یک ردیف */
  #zv-footer .zv-f-top{
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  #zv-footer .zv-f-brand,
  #zv-footer .zv-f-newsletter{
    grid-column: 1 / -1;
  }
  /* در RTL: ستون اول (دسته‌ها) راست، ستون دوم (خدمات) چپ */
  #zv-footer .zv-f-cats{ grid-column: 1; }
  #zv-footer .zv-f-services{ grid-column: 2; }
  #zv-footer .zv-f-title{ font-size: 14px; margin-bottom: 12px; }
  #zv-footer .zv-f-links{ gap: 10px; }
  #zv-footer .zv-f-links a{ font-size: 12.5px; }
  #zv-footer .zv-f-bottom{ flex-direction: column; align-items: flex-start; }
  #zv-scroll-top{ inset-inline-start: 16px; bottom: 16px; width: 42px; height: 42px; }
}
