/* Add custom CSS styles below */ 
/* =========================================================
   Fitness Axis — Footer redesign for the current Salla theme
   Replace the old footer CSS with this block.
   ========================================================= */

.store-footer {
  --fa-footer-bg: #183a2a;
  --fa-footer-bg-deep: #102a1f;
  --fa-footer-accent: #86b83d;
  --fa-footer-text: #ffffff;
  --fa-footer-muted: rgba(255, 255, 255, 0.74);
  --fa-footer-border: rgba(255, 255, 255, 0.12);

  margin-top: 64px !important;
  background: var(--fa-footer-bg-deep) !important;
  color: var(--fa-footer-text) !important;
}

.store-footer__inner {
  padding: 52px 0 32px !important;
  background: var(--fa-footer-bg) !important;
  color: var(--fa-footer-text) !important;
  border-bottom: 1px solid var(--fa-footer-border) !important;
  border-bottom-style: solid !important;
}

/* Main layout */
.store-footer__inner .container > .flex {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(250px, 0.9fr);
  align-items: start !important;
  gap: 48px !important;
}

.store-footer__inner .container > .flex > div {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  align-items: flex-start !important;
}

/* Brand area */
.store-footer .fa-footer-brand {
  gap: 22px !important;
}

.store-footer .fa-footer-brand > div:first-child {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 18px !important;
}

.store-footer .fa-footer-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.store-footer .fa-footer-identity > img {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  margin: 0 !important;
  padding: 8px;
  object-fit: contain;
  background: #ffffff !important;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  filter: none !important;
  mix-blend-mode: normal !important;
}

.store-footer .fa-footer-brand-copy {
  min-width: 0;
  text-align: right;
}

.store-footer .fa-footer-brand-copy strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 800;
}

.store-footer .fa-footer-brand-copy span {
  display: block;
  color: var(--fa-footer-accent);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.store-footer .fa-footer-brand-copy p {
  max-width: 280px;
  margin: 9px 0 0;
  color: var(--fa-footer-muted);
  font-size: 13px;
  line-height: 1.9;
}

/* There is no mobile app for the store at the moment. */
.store-footer salla-apps-icons {
  display: none !important;
}

/* Trust badges and payments */
.store-footer .fa-footer-brand > div:nth-child(2) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 14px 18px !important;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--fa-footer-border);
}

.store-footer .fa-footer-brand > div:nth-child(2)::before {
  content: "دفع آمن وموثوق";
  flex-basis: 100%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.store-footer .s-payments-list {
  justify-content: flex-start !important;
  gap: 8px !important;
}

.store-footer .s-payments-list-item {
  width: 48px !important;
  height: 32px !important;
  padding: 5px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

.store-footer .s-payments-list-item img,
.store-footer salla-trust-badges img {
  max-width: 100%;
  object-fit: contain;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Links and contacts */
.store-footer__inner .container > .flex > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start !important;
  gap: 36px !important;
}

.store-footer__inner .container > .flex > div:nth-child(2) > * {
  width: 100% !important;
  min-width: 0;
}

.store-footer__inner .container > .flex > div:nth-child(2) > div:first-child {
  padding: 0 !important;
  border: 0 !important;
  text-align: right !important;
}

.store-footer h3,
.store-footer .fa-footer-cta h3 {
  margin: 0 0 18px !important;
  color: #ffffff !important;
  font-size: 17px !important;
  line-height: 1.6;
  font-weight: 800 !important;
  text-align: right !important;
}

.store-footer h3::after,
.store-footer .fa-footer-cta h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 9px;
  background: var(--fa-footer-accent);
  border-radius: 999px;
}

.store-footer salla-menu ul,
.store-footer salla-contacts ul {
  margin: 0 !important;
}

.store-footer salla-menu li,
.store-footer salla-contacts li {
  margin-bottom: 9px !important;
}

.store-footer salla-menu a,
.store-footer salla-contacts a {
  color: var(--fa-footer-muted) !important;
  font-size: 14px !important;
  line-height: 1.85;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.store-footer salla-menu a:hover,
.store-footer salla-contacts a:hover {
  color: #ffffff !important;
}

.store-footer salla-contacts i,
.store-footer salla-contacts svg {
  color: var(--fa-footer-accent) !important;
  fill: currentColor !important;
}

/* Consultation CTA — replaces the newsletter form */
.store-footer .fa-footer-cta-column {
  padding: 24px !important;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--fa-footer-border);
  border-radius: 20px;
}

.store-footer .fa-footer-cta {
  width: 100%;
  text-align: right;
}

.store-footer .fa-footer-cta p {
  margin: 0 0 20px;
  color: var(--fa-footer-muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.store-footer .fa-footer-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  width: 100%;
  padding: 10px 18px;
  color: #153523 !important;
  background: var(--fa-footer-accent);
  border: 1px solid var(--fa-footer-accent);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.store-footer .fa-footer-cta__button:hover {
  opacity: 1 !important;
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.store-footer .fa-footer-cta__button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* Bottom bar */
.store-footer > .container.fa-footer-bottom {
  min-height: 72px;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  color: var(--fa-footer-muted) !important;
  background: var(--fa-footer-bg-deep) !important;
}

.store-footer .fa-footer-copyright,
.store-footer .fa-footer-copyright p {
  margin: 0 !important;
  color: var(--fa-footer-muted) !important;
  font-size: 13px !important;
  line-height: 1.8;
}

.store-footer .fa-footer-copyright a {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
}

/* Social icons — use the actual Salla component classes */
.store-footer .s-social-list {
  align-items: center !important;
  gap: 9px !important;
  margin: 0 !important;
}

.store-footer .s-social-link {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
}

.store-footer .s-social-link::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  z-index: 0 !important;
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid var(--fa-footer-border) !important;
  border-radius: 50% !important;
  clip-path: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.store-footer .s-social-link:hover::before {
  background: var(--fa-footer-accent) !important;
  border-color: var(--fa-footer-accent) !important;
}

.store-footer .s-social-link a {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #ffffff !important;
  border: 0 !important;
}

.store-footer .s-social-link i {
  position: static !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  transform: none !important;
}

.store-footer .s-social-link svg {
  width: 18px !important;
  height: 18px !important;
  color: #ffffff !important;
  fill: currentColor !important;
  transform: none !important;
}

.store-footer a:focus-visible {
  outline: 3px solid rgba(134, 184, 61, 0.5);
  outline-offset: 3px;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .store-footer__inner .container > .flex {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px !important;
  }

  .store-footer .fa-footer-cta-column {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .store-footer {
    margin-top: 40px !important;
  }

  .store-footer__inner {
    padding: 38px 0 24px !important;
  }

  .store-footer__inner .container > .flex {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px !important;
  }

  .store-footer__inner .container > .flex > div {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--fa-footer-border);
  }

  .store-footer__inner .container > .flex > div:last-child {
    padding-bottom: 22px;
    border-bottom: 0;
  }

  .store-footer .fa-footer-identity {
    align-items: center;
  }

  .store-footer .fa-footer-identity > img {
    width: 84px !important;
    height: 84px !important;
    max-width: 84px !important;
    max-height: 84px !important;
    border-radius: 16px;
  }

  .store-footer .fa-footer-brand-copy strong {
    font-size: 18px;
  }

  .store-footer__inner .container > .flex > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px !important;
  }

  .store-footer .fa-footer-cta-column {
    padding: 22px !important;
  }

  .store-footer > .container.fa-footer-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px;
    min-height: 0;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    text-align: center !important;
  }

  .store-footer .fa-footer-copyright,
  .store-footer .fa-footer-copyright p {
    text-align: center !important;
  }

  .store-footer .s-social-list {
    justify-content: center !important;
  }

  /* Keep the existing product-slider spacing rule. */
  .swiper-slide {
    padding: 0 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-footer *,
  .store-footer *::before,
  .store-footer *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}