/* ==========================================================================
   feature-nav-footer.css
   Mobile bottom navigation + restructured footer + 44x44 tap-target audit.
   Loaded after style.css so we can override/extend safely.
   ========================================================================== */

/* ===== 1) FOOTER — additions on top of existing .site-footer styles ===== */

/* Desktop: 4 equal-ish columns now that we have Brand + Shop + Customer + Legal */
.site-footer__inner {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

/* Brand block — social icons row */
.footer-brand__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.footer-social svg {
  display: block;
}

/* Bottom strip — copyright on the left, payment icons on the right */
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__bottom .footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.site-footer__bottom .footer-payment-icon {
  width: 40px;
  height: 26px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 3px 4px;
  border-radius: 4px;
  opacity: 0.95;
}

/* Tablet: 2 columns; brand spans full row */
@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ===== 2) MOBILE BOTTOM NAVIGATION ===== */

.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid rgba(36, 63, 47, 0.15);
    box-shadow: 0 -2px 12px rgba(36, 63, 47, 0.08);
    z-index: 100;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    min-height: 48px;
    text-decoration: none;
    color: #243F2F;
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    -webkit-tap-highlight-color: rgba(36, 63, 47, 0.1);
    position: relative;
  }
  .bottom-nav__item:hover,
  .bottom-nav__item:focus {
    color: #3A863F;
    outline: none;
  }
  .bottom-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
  }
  .bottom-nav__icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }
  .bottom-nav__label {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .bottom-nav__item--cart {
    position: relative;
  }
  .bottom-nav__badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #243F2F;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
  }
  /* Push page content above the fixed bar (don't double-add to footer's own margin). */
  body {
    padding-bottom: 70px;
  }
  /* Footer already has its own bottom — bring it flush with the bar. */
  .site-footer {
    margin-bottom: 0;
  }
}

/* ===== 3) 44x44 TAP TARGETS AUDIT (mobile only) ===== */
/*
   Apple HIG minimum is 44x44 CSS px. We enforce it via padding where possible
   so existing visual sizes are preserved, and only fall back to min-width/
   min-height for icon-only controls.
*/

@media (max-width: 768px) {

  /* Header icons: hamburger, search trigger, account, wishlist, cart shortcuts.
     The header markup uses .menu-toggle and .header-actions .action-btn. */
  .menu-toggle,
  .header-actions .action-btn,
  .header-actions a.action-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Quantity steppers across cart / wishlist / single product */
  .qty-btn,
  .qty-plus,
  .qty-minus,
  .wishlist-page .wishlist-item__qty .qty-btn,
  .cart-page .cart-item__qty .qty-btn,
  .single-product-container .product-info .add-to-cart-wrapper .qty-selector .qty-btn {
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }

  /* Close buttons / cross icons (modals, drawers, notifications) */
  [class*="close"],
  [class*="cross"],
  button[aria-label="Close"],
  button[aria-label="close"],
  .modal__close,
  .drawer__close,
  .popup-close {
    min-width: 44px;
    min-height: 44px;
  }

  /* Generic icon-only buttons (no text content) */
  button:not([class]):not(.button):not(.btn) {
    min-width: 44px;
    min-height: 44px;
  }

  /* Social icons in footer brand */
  .footer-brand__social .footer-social {
    width: 44px;
    height: 44px;
  }

  /* Footer link rows — give links a generous tap zone without touching layout */
  .footer-col__links a {
    display: inline-block;
    padding: 6px 0;
    min-height: 32px;
  }

  /* Heart / wishlist toggle on product cards */
  .product-card .wishlist-toggle,
  .product-card__wishlist,
  a.wishlist-add,
  button.wishlist-add {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
}
