/* ── 17. Footer ── */
.main-footer {
  background: linear-gradient(to bottom, #ffffff, #f0f0f0);
  padding: 28px 20px 16px;
  border-top: 1px solid #e0e0e0;
  font-family: system-ui, -apple-system, sans-serif;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}
.brand-section { flex: 0 1 200px; }
.company-logo  { max-width: 180px; height: auto; }
.main-nav      { flex: 2; }

/* ── nav columns ── */
.nav-columns { display: flex; gap: clamp(12px, 3vw, 32px); }
.nav-column  { flex: 1; }
.nav-column h3 { color: #2c3e50; font-size: 16px; margin-bottom: 5px; font-weight: 600; }
.nav-column ul { list-style: none; padding: 0; margin: 0; }
.nav-column ul li { margin-bottom: 3px; }
.nav-column ul li a { color: #495057; text-decoration: none; font-size: 14px; transition: color 0.3s; }
.nav-column ul li a:hover { color: #007bff; }

/* ── social ── */
.social-payments { flex: 1; }
.social-payments h3 { color: #2c3e50; font-size: 16px; margin-bottom: 15px; font-weight: 600; }
.social-icon { display: flex; gap: 15px; margin-bottom: 12px; }
.social-icon img { width: 40px; height: 40px; }
.social-icon a { transition: transform 0.3s; }
.social-icon a:hover { transform: translateY(-3px); }

/* ── payment ── */
.payment-methods { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.payment-methods img { max-width: 52px; max-height: 52px; filter: grayscale(100%); transition: filter 0.3s; }
.payment-methods img:hover { filter: grayscale(0%); }
.payment-title { color: #2c3e50; font-size: 14px; font-weight: 600; margin: 10px 0 6px; }

/* ── seo / bottom ── */
.seo-keywords { max-width: 1200px; margin: 1px auto; padding: 10px 0; border-top: 1px solid #dee2e6; }
.seo-keywords nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.seo-keywords a { color: #6c757d; text-decoration: none; font-size: 13px; transition: color 0.3s; padding: 5px 10px; }
.seo-keywords a:hover { color: #007bff; }
.footer-bottom { text-align: center; margin-top: 5px; padding-top: 10px; border-top: 1px solid #dee2e6; color: #495057; font-size: 14px; }

/* ══════════════════════════════════════════════════
   ── 18. App Download + QR ──
   ══════════════════════════════════════════════════ */
.app-section-title { color: #2c3e50; font-size: 14px; font-weight: 600; margin: 10px 0 8px; }

.app-download-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* כפתור + QR בשורה אחת */
.app-btn-qr-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── כפתור ── */
.app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-family: system-ui, -apple-system, sans-serif;
  transition: background .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.app-download-btn:hover { background: #333; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.app-download-btn:active { transform: translateY(0); }
.app-download-btn .btn-icon { width: 22px; height: 22px; flex-shrink: 0; }
.app-download-btn .btn-text { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.app-download-btn .btn-text .small-label { font-size: 9px; opacity: .75; }
.app-download-btn .btn-text .big-label   { font-size: 13px; font-weight: 700; }

/* ── Coming Soon ── */
.app-download-btn.coming-soon { background: #6c757d; cursor: default; position: relative; overflow: hidden; }
.app-download-btn.coming-soon:hover { background: #6c757d; transform: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.coming-soon-badge {
  position: absolute; top: 4px; left: -20px;
  background: #ff9800; color: #fff;
  font-size: 8px; font-weight: 700;
  padding: 2px 20px;
  transform: rotate(-35deg);
  white-space: nowrap; pointer-events: none;
}

/* ── QR mini ── */
.qr-trigger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.qr-mini-img {
  width: 48px; height: 48px;
  border-radius: 6px;
  border: 2px solid #e0e0e0;
  background: #fff;
  padding: 2px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: block;
  image-rendering: pixelated;
}
.qr-trigger:hover .qr-mini-img,
.qr-trigger:focus .qr-mini-img {
  border-color: #007bff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,123,255,.2);
}
.qr-mini-label { font-size: 9px; color: #6c757d; white-space: nowrap; }

/* ── QR Popup (modal מעל הכל) ── */
.qr-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qr-popup-overlay.active { display: flex; }
.qr-popup-box {
  background: #fff;
  border-radius: 18px;
  padding: 28px 32px 24px;
  text-align: center;
  box-shadow: 0 16px 56px rgba(0,0,0,0.25);
  position: relative;
  width: 100%;
  max-width: 280px;
}
.qr-popup-close {
  position: absolute; top: 12px; left: 14px;
  background: #f0f0f0; border: none;
  font-size: 16px; cursor: pointer; color: #555;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.qr-popup-close:hover { background: #e0e0e0; }
.qr-popup-title { font-size: 14px; font-weight: 600; color: #2c3e50; margin-bottom: 16px; }
.qr-large-img {
  width: 200px; height: 200px;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
  image-rendering: pixelated;
}
.qr-popup-hint { font-size: 12px; color: #6c757d; margin-top: 12px; }

/* ══════════════════════════════════════════════════
   ── Responsive Mobile ──
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* nav 3 עמודות */
  .nav-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
  }
  .nav-column { text-align: right; }
  .nav-column ul { text-align: right; }

  /* Column 3 תופסת שורה שלמה מתחת */
  .nav-col-combined {
    grid-column: 1 / -1;
    border-top: 1px solid #e0e0e0;
    padding-top: 14px;
    margin-top: 8px;
  }

  /* סושיאל ואפליקציה — שורה אופקית */
  .nav-col-combined .social-icon {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }
  .nav-col-combined .social-icon img { width: 30px; height: 30px; }

  /* App section במובייל — שורה אחת: 2 כפתורים + QR */
  .app-download-section {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .app-btn-qr-wrapper {
    gap: 8px;
  }

  /* QR מוצג גם במובייל — המשתמש יכול ללחוץ לפתוח */
  .qr-trigger { display: flex; }

  /* תשלומים */
  .payment-methods { gap: 6px; }
  .payment-methods img { max-width: 44px; max-height: 44px; }

  /* SEO */
  .seo-keywords { margin: 20px 0; padding: 15px 0; }
  .seo-keywords nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: center; }
  .seo-keywords a { display: block; padding: 8px; background: #f8f9fa; border-radius: 4px; margin: 0; font-size: 12px; width: 100%; box-sizing: border-box; }
}

/* ── Order section overrides ── */
@media (min-width: 769px){ #order-section .form-columns{ grid-template-columns: 1fr !important; } }
@media (min-width: 769px){
  #order-section .mobile-accordion{ padding: 0 !important; margin: 0 0 16px 0 !important; overflow: hidden !important; }
  #order-section .mobile-accordion:last-of-type{ margin-bottom: 0 !important; }
  #order-section .mobile-accordion .accordion-header{ cursor: pointer !important; padding: 16px !important; margin: 0 !important; background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%) !important; color: #fff !important; border-radius: 10px !important; border: 0 !important; }
  #order-section .coupon-section .accordion-header{ background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important; }
  #order-section .shipping-fieldset .accordion-header{ background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%) !important; }
  #order-section .accordion-icon{ display: block !important; }
  #order-section .mobile-accordion .accordion-content{ max-height: 0 !important; overflow: hidden !important; padding: 0 16px !important; background: #fafafa !important; }
  #order-section .mobile-accordion.active .accordion-content{ max-height: 3000px !important; padding: 16px !important; padding-top: 20px !important; }
}
@media (min-width: 769px){ #order-section .form-columns{ gap: 16px !important; row-gap: 16px !important; } }
#order-section fieldset, #order-section .modern-fieldset, #order-section .mobile-accordion { margin-bottom: 15px !important; margin-top: 0 !important; }
#order-section .form-columns > fieldset:first-child, #order-section .form-columns > .modern-fieldset:first-child { margin-top: 0 !important; }
#order-section fieldset:last-of-type, #order-section .modern-fieldset:last-of-type { margin-bottom: 15px !important; }
#order-section .form-group { margin-bottom: 16px !important; margin-top: 0 !important; }
#order-section .btn-wrapper { margin-top: 25px !important; margin-bottom: 0 !important; }
@media (min-width: 769px) {
  #order-section .form-container-wrapper { display: flex; gap: 40px; align-items: flex-start; }
  #order-section .form-content { flex: 1; }
  #order-section .form-image-container { flex: 0 0 420px; position: sticky; top: 120px; align-self: flex-start; }
  #order-section .form-image-container img { width: 100%; height: auto; min-height: 700px; max-height: 900px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); background-color: #fafafa; }
}
@media (max-width: 768px) { #order-section .form-image-container { display: none !important; } }
section.container, div.container { margin-bottom: 0; }
.content-grid { gap: 1rem; padding: 1rem 0; }
.content-box  { padding: 1rem; }
@media (min-width: 769px) { .content-grid { gap: 1.25rem; padding: 1.25rem 0; } .content-box { padding: 1.5rem; } }
html, body { overflow-x: hidden !important; max-width: 100% !important; }
*, *::before, *::after { box-sizing: border-box !important; }
img, video, iframe { max-width: 100% !important; }

/* ── English footer: move icons to the LEFT ── */
.lang-en .social-icon { justify-content: flex-start; }
.lang-en .payment-methods { justify-content: flex-start; }
.lang-en .app-download-btn .btn-text { text-align: left; }
.lang-en .app-download-btn { flex-direction: row; }
.lang-en .nav-col-combined { text-align: left; direction: ltr; }
.lang-en .nav-col-combined .social-icon { justify-content: flex-start; }
.lang-en .nav-col-combined .app-download-section { align-items: flex-start; }
.lang-en .nav-col-combined h3 { text-align: left; }
