/* ==========================================================================
   🏺 BOGHCHEH DESIGN SYSTEM - MEGA FOOTER COMPONENT
   Modular, Responsive, Multi-Column Footer with Newsletter & Trust Badges
   ========================================================================== */

.section-MegaFooter {
  position: relative;
  padding: 70px 0 30px 0;
  background-color: #0d0c0b;
  color: #ffffff;
  direction: rtl;
  overflow: clip;
  font-size: 14px;
  width: 100%;
  max-width: 100%;
}

/* 🔦 Ambient Glow Effect */
.section-MegaFooter::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  max-width: 100%;
  height: 800px;
  background: radial-gradient(circle, rgba(196, 106, 43, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container-MegaFooter {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-divider-MegaFooter {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  margin: 36px 0;
}

/* =======================================================================
   ✉️ LAYER 1: NEWSLETTER & VIP CLUB
   ======================================================================= */
.footer-newsletter-MegaFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.newsletter-info-MegaFooter {
  flex: 1;
}

.newsletter-title-MegaFooter {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.newsletter-desc-MegaFooter {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.6;
}

.newsletter-form-MegaFooter {
  flex: 0 0 440px;
}

.input-wrapper-MegaFooter {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 5px 6px;
  transition: all 0.3s ease;
}

.input-wrapper-MegaFooter:focus-within {
  border-color: var(--primary, #8B5E3C);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 20px rgba(196, 106, 43, 0.2);
}

.newsletter-input-MegaFooter {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}

.newsletter-input-MegaFooter::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-submit-MegaFooter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary, #8B5E3C);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-submit-MegaFooter svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.newsletter-submit-MegaFooter:hover {
  background: var(--secondary, #c46a2b);
  box-shadow: 0 4px 12px rgba(196, 106, 43, 0.3);
}

.newsletter-submit-MegaFooter:hover svg {
  transform: translateX(-4px);
}

/* =======================================================================
   🧩 LAYER 2: 4-COLUMN LINK GRID
   ======================================================================= */
.footer-main-grid-MegaFooter {
  display: grid;
  grid-template-columns: 2.4fr 1.4fr 1.4fr 2fr;
  gap: 36px;
}

.footer-col-title-MegaFooter {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title-MegaFooter::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 2px;
  background: var(--primary, #8B5E3C);
  border-radius: 2px;
}

.footer-brand-wrapper-MegaFooter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-img-MegaFooter {
  height: 42px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
  filter: brightness(1.08) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.25s ease;
}

.footer-logo-link-MegaFooter {
  text-decoration: none;
  display: inline-block;
}

.footer-logo-link-MegaFooter:hover .footer-logo-img-MegaFooter {
  transform: scale(1.06);
}

.footer-brand-name-MegaFooter {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.footer-mobile-brand-MegaFooter {
  display: none;
}

.footer-brand-bio-MegaFooter {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin: 0 0 20px 0;
  font-size: 13px;
}

.footer-socials-MegaFooter {
  display: flex;
  gap: 10px;
}

.social-icon-MegaFooter {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}

.social-icon-MegaFooter svg {
  width: 16px;
  height: 16px;
}

.social-icon-MegaFooter:hover {
  background: var(--primary, #8B5E3C);
  border-color: var(--primary, #8B5E3C);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(139, 94, 60, 0.3);
}

.footer-links-list-MegaFooter,
.footer-contact-list-MegaFooter {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links-list-MegaFooter a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13.5px;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-links-list-MegaFooter a:hover {
  color: var(--secondary, #c46a2b);
  transform: translateX(-5px);
}

.footer-contact-list-MegaFooter li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  font-size: 13px;
}

.footer-contact-link-MegaFooter {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-contact-link-MegaFooter:hover {
  color: var(--secondary, #c46a2b);
}

.footer-contact-role-MegaFooter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.developer-credit-MegaFooter {
  margin: 10px 0 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.developer-credit-MegaFooter a {
  color: var(--secondary, #c46a2b);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.developer-credit-MegaFooter a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact-list-MegaFooter svg {
  width: 18px;
  height: 18px;
  color: var(--primary, #8B5E3C);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =======================================================================
   🛡️ LAYER 3: COPYRIGHT & TRUST BADGES
   ======================================================================= */
.footer-bottom-MegaFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-MegaFooter p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 10px 0;
  font-size: 13px;
}

.copyright-MegaFooter strong {
  color: #ffffff;
}

.bottom-links-MegaFooter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.bottom-links-MegaFooter a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.bottom-links-MegaFooter a:hover {
  color: #ffffff;
}

.dot-MegaFooter {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.trust-badges-MegaFooter {
  display: flex;
  gap: 14px;
  align-items: center;
}

.trust-badges-MegaFooter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.trust-img-MegaFooter {
  height: 48px;
  width: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  filter: grayscale(100%) opacity(0.65);
  transition: all 0.3s ease;
  cursor: pointer;
  object-fit: contain;
}

.trust-img-MegaFooter:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* =======================================================================
   📱 RESPONSIVE MOBILE & TABLET (بدون تغییر در نسخه دسکتاپ)
   ======================================================================= */
@media (max-width: 991px) {
  .section-MegaFooter {
    padding: 40px 0 85px 0; /* فاصله از پایین برای بار ناوبری شناور موبایل */
  }

  .container-MegaFooter {
    padding: 0 20px;
  }

  /* 🌟 لایه اول فوتر در موبایل/تبلت: برند، لوگو و شبکه‌های اجتماعی (در بالای صفحه) */
  .footer-mobile-brand-MegaFooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
  }

  .footer-mobile-brand-MegaFooter .footer-brand-wrapper-MegaFooter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .footer-mobile-brand-MegaFooter .footer-logo-img-MegaFooter {
    height: 38px;
    width: auto;
    max-width: 95px;
    object-fit: contain;
  }

  .footer-mobile-brand-MegaFooter .footer-brand-name-MegaFooter {
    font-size: 21px;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0;
  }

  .footer-mobile-brand-MegaFooter .footer-brand-bio-MegaFooter {
    max-width: 460px;
    margin: 0 auto 16px auto;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
  }

  .footer-mobile-brand-MegaFooter .footer-socials-MegaFooter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
  }

  /* 🌟 لایه دوم فوتر: کلوپ مشتریان و خبرنامه */
  .footer-newsletter-MegaFooter {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }

  .newsletter-title-MegaFooter {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
  }

  .newsletter-desc-MegaFooter {
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 420px;
    margin: 0 auto;
  }

  .newsletter-form-MegaFooter {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    flex: none;
  }

  .input-wrapper-MegaFooter {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 4px 6px;
    width: 100%;
  }

  .newsletter-input-MegaFooter {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 14px;
    height: 40px;
  }

  .newsletter-submit-MegaFooter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary, #8B5E3C);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .newsletter-submit-MegaFooter svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
  }

  /* خطوط دیوایدر در موبایل */
  .footer-divider-MegaFooter {
    margin: 24px 0;
  }

  /* 🌟 لایه سوم: شبکه‌ی لینک‌ها و دسترسی‌ها */
  .footer-main-grid-MegaFooter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
    margin-bottom: 24px;
  }

  /* ستون برند اصلی در گرید دسکتاپ، داخل موبایل مخفی است چون بالا رندر شده */
  .footer-main-grid-MegaFooter .brand-col-MegaFooter {
    display: none !important;
  }

  .customers-col-MegaFooter {
    grid-column: 1;
    padding: 0 4px;
  }

  .sellers-col-MegaFooter {
    grid-column: 2;
    padding: 0 4px;
  }

  .footer-col-title-MegaFooter {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    position: relative;
    padding-bottom: 8px;
    white-space: nowrap; /* 🚨 عنوان ستون‌ها هرگز نشکند */
  }

  .footer-col-title-MegaFooter::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 2px;
    background: var(--primary, #8B5E3C);
    border-radius: 2px;
  }

  .footer-links-list-MegaFooter {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-links-list-MegaFooter a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 12.5px;
    line-height: 1.5;
    display: inline-block;
    transition: color 0.2s ease;
  }

  .footer-links-list-MegaFooter a:hover {
    color: var(--secondary, #c46a2b);
  }

  /* 🌟 لایه چهارم: اطلاعات تماس به صورت تمام‌عرض زیر لینک‌ها */
  .contact-col-MegaFooter {
    grid-column: span 2;
    margin-top: 4px;
    padding: 0 4px;
  }

  .contact-col-MegaFooter .footer-col-title-MegaFooter {
    text-align: right;
  }

  .footer-contact-list-MegaFooter {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-contact-list-MegaFooter li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
  }

  .footer-contact-link-MegaFooter {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-contact-link-MegaFooter:hover {
  color: var(--secondary, #c46a2b);
}

.footer-contact-role-MegaFooter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.developer-credit-MegaFooter {
  margin: 10px 0 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.developer-credit-MegaFooter a {
  color: var(--secondary, #c46a2b);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.developer-credit-MegaFooter a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact-list-MegaFooter svg {
    width: 18px;
    height: 18px;
    color: var(--primary, #8B5E3C);
    flex-shrink: 0;
  }

  /* 🌟 لایه پنجم: کپی‌رایت، نمادهای اعتماد و قوانین */
  .footer-bottom-MegaFooter {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .bottom-links-MegaFooter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .bottom-links-MegaFooter .dot-MegaFooter {
    display: none;
  }

  .developer-credit-MegaFooter {
    text-align: center;
    margin-top: 6px;
  }

  .trust-badges-MegaFooter {
    display: flex;
    justify-content: center;
    gap: 14px;
  }
}

/* 📱 تنظیمات اضافی برای گوشی‌های کوچک (<= 480px) */
@media (max-width: 480px) {
  .container-MegaFooter {
    padding: 0 16px;
  }

  .footer-mobile-brand-MegaFooter .footer-brand-name-MegaFooter {
    font-size: 19px;
  }

  .footer-mobile-brand-MegaFooter .footer-logo-img-MegaFooter {
    height: 36px;
    max-width: 90px;
  }

  .newsletter-title-MegaFooter {
    font-size: 16.5px;
  }

  .newsletter-desc-MegaFooter {
    font-size: 12px;
  }

  .footer-newsletter-MegaFooter {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .input-wrapper-MegaFooter {
    padding: 4px 5px;
  }

  .newsletter-input-MegaFooter {
    padding: 0 10px;
    font-size: 12px;
  }

  .newsletter-submit-MegaFooter {
    padding: 8px 14px;
    font-size: 12px;
  }

  .footer-col-title-MegaFooter {
    font-size: 13.5px;
  }

  .footer-links-list-MegaFooter a {
    font-size: 12px;
  }
}

/* 📱 موبایل‌های بسیار کوچک (<= 360px) */
@media (max-width: 360px) {
  .footer-col-title-MegaFooter {
    font-size: 12.5px;
  }

  .footer-mobile-brand-MegaFooter .footer-brand-name-MegaFooter {
    font-size: 18px;
  }
}
