/* ==========================================================
   Waladna Store - Brand Green Main Header Bar (Refined)
   Color: #60af3c | Larger Logo + Blended Shadow | White Burger
   ========================================================== */

header.store-header .main-nav-container {
  background-color: #60af3c !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

header.store-header .main-nav-container .mburger {
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
}

header.store-header .main-nav-container .mburger .sicon-menu {
  color: #ffffff !important;
}

header.store-header .main-nav-container .main-menu {
  display: none !important;
}

header.store-header .main-nav-container .navbar-brand img {
  height: 58px !important;
  max-height: 62px !important;
  width: auto !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.25)) !important;
  -webkit-filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.25)) !important;
}

@media (min-width: 1024px) {
  header.store-header .main-nav-container .navbar-brand img {
    height: 62px !important;
    max-height: 66px !important;
  }
}

header.store-header .main-nav-container .main-menu > li > a,
header.store-header .main-nav-container .s-cart-summary-total,
header.store-header .main-nav-container salla-cart-summary {
  color: #ffffff !important;
}

header.store-header .main-nav-container .header-btn__icon {
  background-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #1b3413 !important;
}

/* ==========================================================
   Mobile Slide-Out Drawer Menu (#mobile-menu)
   Framed in #60af3c | Green Title Bar | White Interior
   ========================================================== */

#mobile-menu {
  font-family: var(--font-main, 'PingARLT', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  background-color: #ffffff !important;
  border: 3px solid #60af3c !important;
  border-bottom: 6px solid #60af3c !important;
  border-start-start-radius: 0 !important;
  border-end-start-radius: 0 !important;
  border-start-end-radius: 20px !important;
  border-end-end-radius: 20px !important;
  overflow: hidden !important;
  max-width: 360px !important;
  box-shadow: -10px 0 32px rgba(27, 52, 19, 0.18) !important;
}

.mm-ocd__content {
  background: transparent !important;
  box-shadow: none !important;
}

#mobile-menu .close-mobile-menu,
.close-mobile-menu {
  color: #ffffff !important;
}

@media (min-width: 1024px) {
  .mm-ocd {
    position: fixed !important;
    inset: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: 9998 !important;
  }

  .mm-ocd__content {
    display: contents !important;
  }

  #mobile-menu {
    pointer-events: auto !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    width: 360px !important;
    height: 100vh !important;
    z-index: 9999 !important;
    transform: translateX(105%) !important;
    transition: transform 0.28s ease !important;
    display: flex !important;
    flex-direction: column !important;
  }

  html[dir="ltr"] #mobile-menu {
    transform: translateX(-105%) !important;
    box-shadow: 10px 0 32px rgba(27, 52, 19, 0.18) !important;
  }

  #mobile-menu.waladna-drawer-open {
    transform: translateX(0) !important;
  }

  #mobile-menu::after {
    content: "القائمة الرئيسية" !important;
    order: -1 !important;
    display: block !important;
    position: relative !important;
    height: 52px !important;
    line-height: 52px !important;
    text-align: center !important;
    background-color: #60af3c !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
  }

  html[dir="ltr"] #mobile-menu::after {
    content: "Main Menu" !important;
  }

  #mobile-menu .main-menu {
    position: static !important;
    display: block !important;
    overflow-y: auto !important;
    flex: 1 !important;
  }

  #mobile-menu .close-mobile-menu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 8px !important;
    inset-inline-end: 10px !important;
    inset-inline-start: auto !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    z-index: 10 !important;
    cursor: pointer !important;
  }
}

#mobile-menu.mm-spn--navbar::after {
  background-color: #60af3c !important;
  color: #ffffff !important;
  opacity: 1 !important;
  font-family: var(--font-main, 'PingARLT', sans-serif) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#mobile-menu .main-menu {
  box-sizing: border-box !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  padding: 0.9rem 1.1rem 1.5rem !important;
  background: transparent !important;
}

#mobile-menu .main-menu > li {
  border: none !important;
  position: relative !important;
}

#mobile-menu .main-menu > li::before,
#mobile-menu .main-menu > li::after {
  display: none !important;
}

#mobile-menu .waladna-drawer-heading {
  padding: 0.55rem 0.2rem 0.35rem !important;
  margin-top: 0.2rem !important;
  display: block !important;
}

#mobile-menu .waladna-drawer-heading > span {
  color: #1b3413 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

#mobile-menu .waladna-drawer-heading > span::before {
  content: "" !important;
  display: inline-block !important;
  width: 4px !important;
  height: 15px !important;
  border-radius: 2px !important;
  background-color: #60af3c !important;
}

#mobile-menu .main-menu > li:not(.waladna-drawer-heading):not(.waladna-drawer-social) > a {
  background: #f5fbf2 !important;
  border: 1px solid #d5ebd0 !important;
  border-radius: 12px !important;
  color: #1b3413 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 0.65rem 0.9rem !important;
  margin-bottom: 0.45rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

#mobile-menu .main-menu > li:not(.waladna-drawer-heading):not(.waladna-drawer-social) > a:hover,
#mobile-menu .main-menu > li:not(.waladna-drawer-heading):not(.waladna-drawer-social) > a:active {
  background: #60af3c !important;
  border-color: #60af3c !important;
  color: #ffffff !important;
}

#mobile-menu .waladna-drawer-link,
#mobile-menu .waladna-drawer-social {
  display: block !important;
  padding: 0 !important;
}

#mobile-menu .waladna-drawer-social {
  padding: 0.35rem 0.1rem 0.5rem !important;
}

#mobile-menu .waladna-drawer-social-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
}

#mobile-menu .waladna-drawer-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: #f5fbf2 !important;
  border: 1px solid #cde5c3 !important;
  color: #4f962f !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

#mobile-menu .waladna-drawer-icon:hover {
  background: #60af3c !important;
  border-color: #60af3c !important;
  color: #ffffff !important;
}

#mobile-menu .waladna-drawer-icon svg {
  width: 17px !important;
  height: 17px !important;
  fill: currentColor !important;
}

/* ==========================================================
   Waladna Store - Modern Fresh-Grocery Footer (v4.1)
   Two-Tone Mint Card + Brand Green (#60af3c) + Compact Mobile
   Font: PingARLT | Scoped strictly to footer.store-footer
   ========================================================== */

footer.store-footer {
  font-family: var(--font-main, 'PingARLT', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  background: #f3faf0 !important;
  color: #1b3413 !important;
  border-top: 4px solid #60af3c !important;
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
  position: relative;
  display: block !important;
  -webkit-text-size-adjust: 100%;
  box-shadow: 0 -4px 20px rgba(96, 175, 60, 0.08) !important;
}

footer.store-footer .store-footer__inner {
  background: #f3faf0 !important;
  padding: 1.75rem 0 1.35rem !important;
  border-bottom: 1px solid #d5ebd0 !important;
}

footer.store-footer salla-apps-icons:empty {
  display: none !important;
}

/* Move social icons into Col 3 under "تواصل معنا" on all screens */
footer.store-footer .store-footer__inner > .container > div:first-child .hidden.lg\:block {
  display: none !important;
}

footer.store-footer .contact-social {
  display: contents !important;
}

/* Desktop Grid (>= 1024px) */
@media (min-width: 1024px) {
  footer.store-footer .store-footer__inner > .container {
    display: grid !important;
    grid-template-columns: 1.35fr 0.9fr 1.15fr !important;
    gap: 2.25rem !important;
    align-items: start !important;
  }

  footer.store-footer .store-footer__inner > .container > div:first-child {
    grid-column: auto !important;
    padding-inline-end: 1rem !important;
  }
}

/* Tablet Grid (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  footer.store-footer .store-footer__inner > .container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  footer.store-footer .store-footer__inner > .container > div:first-child {
    grid-column: 1 / -1 !important;
  }
}

/* Headings */
footer.store-footer h3,
footer.store-footer .s-contacts-title {
  color: #1b3413 !important;
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.05rem) !important;
  font-weight: 700 !important;
  margin: 0 0 0.7rem 0 !important;
  display: inline-block !important;
}

footer.store-footer h3::after,
footer.store-footer .s-contacts-title::after {
  content: "";
  display: block;
  inline-size: 26px;
  block-size: 2.5px;
  background-color: #60af3c !important;
  border-radius: 2px;
  margin-block-start: 0.3rem;
}

/* Store Title & Tagline (Balanced Size & Tight Gap) */
footer.store-footer .store-footer__inner > .container > div:first-child > a h3 {
  font-size: clamp(1.04rem, 0.4vw + 0.95rem, 1.15rem) !important;
  margin-block-end: 0.25rem !important;
}

footer.store-footer .store-footer__inner p {
  color: #435e3a !important;
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
  margin-block-end: 0 !important;
}

footer.store-footer .store-footer__inner .mb-6 {
  margin-block-end: 0.75rem !important;
}

/* Important Links */
footer.store-footer .s-menu-footer-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
}

footer.store-footer .s-menu-footer-item {
  color: #2b4722 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-block-size: 28px !important;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

footer.store-footer .s-menu-footer-item:hover {
  color: #4f962f !important;
  transform: translateX(-4px) !important;
}

/* Col 3: "تواصل معنا" above Phone Icon + Social Icons in ONE row */
footer.store-footer .store-footer__inner > .container > div:nth-child(3) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

footer.store-footer salla-contacts,
footer.store-footer .s-contacts-list,
footer.store-footer #contact-slot,
footer.store-footer .contact-social salla-social,
footer.store-footer .contact-social .s-social-list {
  display: contents !important;
}

footer.store-footer .s-contacts-title {
  flex-basis: 100% !important;
  width: 100% !important;
  margin-block-end: 0.25rem !important;
}

/* Hide WhatsApp duplicate & phone text; style Tel handset as social icon */
footer.store-footer .s-contacts-item[href*="wa.me"],
footer.store-footer .s-contacts-item .unicode {
  display: none !important;
}

footer.store-footer .s-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

footer.store-footer .s-contacts-item[href^="tel:"],
footer.store-footer .s-social-link a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  inline-size: 34px !important;
  block-size: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid #cde5c3 !important;
  color: #4f962f !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

footer.store-footer .s-contacts-item[href^="tel:"]:hover,
footer.store-footer .s-social-link a:hover {
  background: #60af3c !important;
  border-color: #60af3c !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

footer.store-footer .s-contacts-icon,
footer.store-footer .s-social-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: inherit !important;
  border: none !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

footer.store-footer .s-contacts-icon svg {
  display: none !important;
}

footer.store-footer .s-contacts-icon::before {
  content: "" !important;
  display: block !important;
  inline-size: 16px !important;
  block-size: 16px !important;
  background-color: currentColor !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.25 1.01l-2.2 2.2z'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.25 1.01l-2.2 2.2z'/%3E%3C/svg%3E") !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
}

footer.store-footer .s-social-icon svg {
  inline-size: 16px !important;
  block-size: 16px !important;
  fill: currentColor !important;
}

/* Freelance Certificate Badge (Image Hidden, Sleek Pill) */
footer.store-footer .s-trust-badges-image {
  display: none !important;
}

footer.store-footer .s-trust-badges-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: fit-content !important;
  background: #ffffff !important;
  border: 1px solid #cde5c3 !important;
  border-radius: 999px !important;
  padding: 0.28rem 0.65rem !important;
  margin-block-start: 0.15rem !important;
}

footer.store-footer .s-trust-badges-content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  flex-wrap: nowrap !important;
}

footer.store-footer .s-trust-badges-label {
  color: #2b4722 !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

footer.store-footer .s-trust-badges-number {
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  background: #60af3c !important;
  padding: 0.14rem 0.5rem !important;
  border-radius: 999px !important;
  letter-spacing: 0.03em !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

/* Bottom Copyright & Payment Bar (Brand Green - Full Width) */
footer.store-footer > div:last-child {
  background: linear-gradient(90deg, #3a7a20 0%, #4f962f 50%, #3a7a20 100%) !important;
  max-width: 100% !important;
  width: 100% !important;
  padding-block: 0.75rem !important;
  padding-inline: max(10px, calc((100% - 1260px) / 2)) !important;
}

footer.store-footer .copyright-text p {
  color: #eaf7e5 !important;
  font-size: 0.78rem !important;
  margin: 0 !important;
}

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

footer.store-footer .s-payments-list {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

footer.store-footer .s-payments-list-item {
  background: #ffffff !important;
  border-radius: 5px !important;
  padding: 2px 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  block-size: 24px !important;
}

footer.store-footer .s-payments-list-item img {
  max-block-size: 16px !important;
  inline-size: auto !important;
}

/* ==========================================================
   Mobile Ultra-Compact Layout (< 640px)
   Exact Order:
   1. Store Name & Tagline
   2. Important Links
   3. Contact Us + Phone & Social Icons
   4. Freelance Badge (right before green bar)
   ========================================================== */
@media (max-width: 639px) {
  footer.store-footer {
    border-radius: 16px 16px 0 0 !important;
  }

  footer.store-footer .store-footer__inner {
    padding: 0.95rem 0 0.8rem !important;
    text-align: center !important;
  }

  footer.store-footer .store-footer__inner > .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.55rem !important;
  }

  /* Unwrap Col 1 so Freelance Badge can be ordered last */
  footer.store-footer .store-footer__inner > .container > div:first-child {
    display: contents !important;
  }

  footer.store-footer .store-footer__inner > .container > div:first-child > a {
    order: 1 !important;
    justify-content: center !important;
  }

  footer.store-footer .store-footer__inner > .container > div:first-child > .max-w-sm {
    order: 2 !important;
    margin-inline: auto !important;
    margin-block-end: 0.1rem !important;
  }

  footer.store-footer .store-footer__inner > .container > div:nth-child(2) {
    order: 3 !important;
    width: 100% !important;
  }

  footer.store-footer .store-footer__inner > .container > div:nth-child(3) {
    order: 4 !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 0.4rem !important;
  }

  footer.store-footer .store-footer__inner > .container > div:first-child > div.flex {
    order: 5 !important;
    justify-content: center !important;
    margin-block-start: 0.15rem !important;
  }

  footer.store-footer h3,
  footer.store-footer .s-contacts-title {
    font-size: 0.85rem !important;
    margin-block-end: 0.3rem !important;
    text-align: center !important;
  }

  footer.store-footer h3::after,
  footer.store-footer .s-contacts-title::after {
    display: none !important;
  }

  footer.store-footer .store-footer__inner > .container > div:first-child > a h3 {
    font-size: 1.04rem !important;
    margin-block-end: 0.2rem !important;
  }

  footer.store-footer .store-footer__inner p {
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
  }

  /* Horizontal Pill Links on Mobile */
  footer.store-footer .s-menu-footer-list {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  footer.store-footer .s-menu-footer-item {
    background: #ffffff !important;
    border: 1px solid #cde5c3 !important;
    border-radius: 999px !important;
    padding: 0.2rem 0.65rem !important;
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    min-block-size: 26px !important;
    margin: 0 !important;
  }

  footer.store-footer .s-contacts-item[href^="tel:"],
  footer.store-footer .s-social-link a {
    inline-size: 32px !important;
    block-size: 32px !important;
    border-radius: 8px !important;
  }

  /* Compact Bottom Bar */
  footer.store-footer > div:last-child {
    padding-block: 0.65rem 0.8rem !important;
    gap: 0.45rem !important;
  }

  footer.store-footer .copyright-text p {
    font-size: 0.72rem !important;
  }

  footer.store-footer .s-payments-list {
    margin-block-start: 0.25rem !important;
  }

  footer.store-footer .s-payments-list-item {
    block-size: 22px !important;
    padding: 2px 5px !important;
  }

  footer.store-footer .s-payments-list-item img {
    max-block-size: 14px !important;
  }
}