/* ==========================================================================
   MyAayurveda Exact Custom Footer Styles
   ========================================================================== */

/* Reset any unwanted site-footer wrapper rules from the parent theme */
.site-footer {
  border-top: none !important;
  padding: 0 !important;
  background-color: transparent !important;
  margin-top: 0 !important;
}

.myaayurveda-custom-footer {
  width: 100%;
  background-color: #dfe5e1;
  color: #111111;
  font-family: "Roboto", sans-serif !important;
  line-height: 1.5;
  box-sizing: border-box;
  position: relative;
}

.myaayurveda-custom-footer,
.myaayurveda-custom-footer *,
.myaayurveda-custom-footer *::before,
.myaayurveda-custom-footer *::after {
  box-sizing: border-box;
  font-family: "Roboto", sans-serif !important;
}

.mya-footer-container {
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  padding: 0px;
}

/* ==========================================================================
   1. NEWSLETTER SUBSCRIPTION ROW
   ========================================================================== */
.mya-footer-newsletter-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 38px 0;
  background-color: #14442A;
}

.mya-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.mya-newsletter-text {
  flex: 1 1 auto;
}

.mya-newsletter-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.mya-newsletter-desc {
  font-size: 14.5px;
  color: #d1fae5;
  margin: 0;
  opacity: 0.9;
}

.mya-newsletter-form-wrap {
  flex: 1 1 auto;
  max-width: 520px;
}

.mya-newsletter-form {
  display: flex;
  width: 100%;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mya-newsletter-input {
  flex: 1;
  background: #ffffff !important;
  color: #1f2937 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 13px 22px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  margin: 0 !important;
  border-radius: 9999px 0 0 9999px !important;
}

.mya-newsletter-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.mya-newsletter-btn {
  background: #caa237 !important;
  color: #1a1a1a !important;
  border: none !important;
  outline: none !important;
  padding: 0 32px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border-radius: 0 9999px 9999px 0 !important;
  transition: background 0.2s ease !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mya-newsletter-btn:hover {
  background: #b58d24 !important;
  color: #000000 !important;
}

/* ==========================================================================
   2. MAIN FOOTER CONTENT (5 Columns Layout)
   ========================================================================== */
.mya-footer-main-row {
  padding: 50px 0 44px;
  background-color: #dfe5e1;
  color: #111111;
}

.mya-footer-grid {
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1.25fr !important;
  gap: 36px !important;
  align-items: start !important;
}

/* Column 1: Brand & Logo */
.mya-footer-col-brand {
  max-width: 300px;
}

.mya-footer-logo-card {
  background: transparent !important;
  padding: 0 0 14px 0 !important;
  margin-bottom: 0 !important;
}

.mya-footer-logo-img {
  height: 52px;
  max-height: 65px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply !important;
}

.mya-footer-brand-desc {
  color: #111111 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Column 2, 3, 4: Headings */
.myaayurveda-custom-footer .mya-footer-col-title,
.myaayurveda-custom-footer .mya-footer-col h1,
.myaayurveda-custom-footer .mya-footer-col h2,
.myaayurveda-custom-footer .mya-footer-col h3,
.myaayurveda-custom-footer .mya-footer-col h4,
.myaayurveda-custom-footer .mya-footer-col .widget-title,
.myaayurveda-custom-footer .mya-footer-col .wp-block-heading {
  color: #111111 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.3 !important;
}

/* Lists in all columns: No bullets, no bottom lines */
.myaayurveda-custom-footer .mya-footer-links-list,
.myaayurveda-custom-footer .mya-footer-col ul,
.myaayurveda-custom-footer .mya-footer-col ol,
.myaayurveda-custom-footer .mya-footer-col .wp-block-list,
.myaayurveda-custom-footer .mya-footer-col .widget ul,
.myaayurveda-custom-footer .mya-footer-col .menu {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.myaayurveda-custom-footer .mya-footer-links-list li,
.myaayurveda-custom-footer .mya-footer-col li,
.myaayurveda-custom-footer .mya-footer-col .widget li,
.myaayurveda-custom-footer .mya-footer-col .wp-block-list li,
.myaayurveda-custom-footer .mya-footer-col .wp-block-navigation-item {
  list-style: none !important;
  list-style-type: none !important;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}

/* Links inside all columns */
.myaayurveda-custom-footer .mya-footer-links-list li a,
.myaayurveda-custom-footer .mya-footer-col a,
.myaayurveda-custom-footer .mya-footer-col .widget a,
.myaayurveda-custom-footer .mya-footer-col .wp-block-list a {
  color: #111111 !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  transition: color 0.15s ease, padding-left 0.15s ease !important;
  display: inline-block !important;
}

.myaayurveda-custom-footer .mya-footer-links-list li a:hover,
.myaayurveda-custom-footer .mya-footer-col a:hover,
.myaayurveda-custom-footer .mya-footer-col .widget a:hover,
.myaayurveda-custom-footer .mya-footer-col .wp-block-list a:hover {
  color: #0A4122 !important;
  padding-left: 4px !important;
  text-decoration: none !important;
}

/* ==========================================================================
   Column 5: 6 Icons & Certificates (2 rows, 3 images per row)
   ========================================================================== */
.mya-footer-col-badges {
  max-width: 270px;
}

.mya-badges-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px 14px !important;
  max-width: 250px !important;
  margin-top: 4px !important;
}

.mya-badge-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
  cursor: pointer;
}

.mya-badge-item:hover {
  transform: translateY(-2px) !important;
  opacity: 0.92 !important;
}

.mya-badge-img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block !important;
  mix-blend-mode: multiply !important;
}

/* ==========================================================================
   3. BOTTOM COPYRIGHT & DISCLAIMER ROW
   ========================================================================== */
.mya-footer-bottom-row {
  border-top: 1px solid #cdd8d1;
  padding: 24px 0 28px;
  background-color: #dfe5e1;
}

.mya-footer-bottom-inner {
  text-align: center;
}

.mya-footer-copyright {
  color: #000000;
  font-size: 13px;
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
}

.mya-footer-disclaimer {
  color: #000000;
  font-size: 11.5px;
  line-height: 1.6;
  max-width: 960px;
  margin: 0 auto;
}

/* ==========================================================================
   4. FLOATING STICKY CART BADGE
   ========================================================================== */
.mya-floating-cart {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  background-color: #ffffff;
  border: 2px solid #173d2b;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mya-floating-cart:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.mya-floating-cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background-color: #0b2e1e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  line-height: 1;
}

#block-8 {
  margin-top: 20px;
}

/* ==========================================================================
   RESPONSIVE FOOTER STYLES
   ========================================================================== */
@media (max-width: 1200px) {
  .mya-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr !important;
    gap: 28px !important;
  }

  .mya-footer-col-badges {
    grid-column: 1 / -1 !important;
    margin-top: 10px;
  }

  .mya-badges-grid {
    max-width: 320px !important;
  }
}

@media (max-width: 860px) {
  .mya-footer-newsletter-row {
    padding: 28px 0;
  }

  .mya-newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .mya-newsletter-text {
    flex: none !important;
    width: 100% !important;
  }

  .mya-newsletter-form-wrap {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mya-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 20px !important;
  }

  .mya-footer-col-brand {
    grid-column: 1 / -1 !important;
  }

  .mya-footer-col-links {
    grid-column: 1 / 2 !important;
  }

  .mya-footer-col-account {
    grid-column: 2 / 3 !important;
  }

  .mya-footer-col-legal {
    grid-column: 1 / 2 !important;
  }

  .mya-footer-col-badges {
    grid-column: 2 / 3 !important;
  }

  .mya-footer-main-row {
    padding: 36px 10px 28px 10px !important;
  }

  .mya-footer-container {
    padding: 0 10px !important;
  }

  .mya-badges-grid {
    max-width: 100% !important;
    gap: 10px 8px !important;
  }

  .mya-floating-cart {
    bottom: 20px;
    left: auto;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .mya-badge-img {
    width: 100% !important;
    max-width: 60px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* Mobile View:
   Row 1: Brand Logo & Text (100%)
   Row 2: Quick Links (50%) | My Account (50%)
   Row 3: Legal Pages (50%) | Icons & Certificates (50%)
*/
@media (max-width: 640px) {
  .mya-newsletter-text {
    flex: none !important;
    width: 100% !important;
  }

  .mya-newsletter-form-wrap {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mya-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 26px 14px !important;
  }

  .mya-footer-col-brand {
    grid-column: 1 / -1 !important;
    max-width: 100%;
  }

  #block-8 {
    margin-top: 30px;
  }

  .mya-footer-col-links {
    grid-column: 1 / 2 !important;
    width: 100% !important;
  }

  .mya-footer-col-account {
    grid-column: 2 / 3 !important;
    width: 100% !important;
  }

  .mya-footer-col-legal {
    grid-column: 1 / 2 !important;
    width: 100% !important;
  }

  .mya-footer-col-badges {
    grid-column: 2 / 3 !important;
    width: 100% !important;
  }

  .myaayurveda-custom-footer .mya-footer-col-title {
    font-size: 13px !important;
    margin-bottom: 12px !important;
  }

  .myaayurveda-custom-footer .mya-footer-links-list li {
    margin-bottom: 7px !important;
  }

  .myaayurveda-custom-footer .mya-footer-links-list li a {
    font-size: 15px !important;
  }

  .mya-badges-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 100% !important;
    gap: 8px 6px !important;
    margin-top: 0 !important;
  }

  .mya-badge-img {
    width: 100% !important;
    max-width: 46px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
}