/* =========================================================
   Footer
   ========================================================= */
.eshet-footer {
  background: var(--c-beige);
  margin-top: 64px;
}
.eshet-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 48px;
  align-items: start;
  padding-block: 56px;
}
.eshet-footer__brand .eshet-logo--footer svg { width: 180px; }

.eshet-footer__menus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  align-content: start;
}
.eshet-footer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-black);
  text-align: left;
  margin-bottom: 10px;
  cursor: default;
}
.eshet-footer__title svg { flex: none; }
.eshet-footer__list li { margin-bottom: 8px; }
.eshet-footer__list a {
  font-size: var(--fs-sm);
  color: var(--c-black);
  opacity: .8;
}
.eshet-footer__list a:hover { opacity: 1; }

.eshet-footer__social {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: flex-end;
}
.eshet-footer__social-link {
  color: var(--c-black);
  display: inline-flex;
}
.eshet-footer__social-link svg { width: 26px; height: 26px; }
.eshet-footer__social-link:hover { color: var(--c-gold); }

.eshet-footer__copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-block: 8px 40px;
}
.eshet-footer__copyright-main {
  font-size: var(--fs-sm);
  color: var(--c-gold);
  letter-spacing: 1px;
}
.eshet-footer__copyright-legal {
  font-size: 13px;
  color: var(--c-gold);
  opacity: .85;
}
.eshet-footer__copyright-legal a { color: inherit; }
.eshet-footer__copyright-legal a:hover { text-decoration: underline; }
.eshet-footer__dot { margin: 0 6px; }

.eshet-footer__credits {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.eshet-footer__credits-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-black);
  opacity: .7;
}
.eshet-footer__credits-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-black);
  border-radius: 8px;
  padding: 8px 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.eshet-footer__credits-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.eshet-footer__credits-link img {
  height: 30px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .eshet-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .eshet-footer__menus { grid-template-columns: 1fr; gap: 0; }
  .eshet-footer__col { border-bottom: 1px solid var(--c-gray-light); padding-block: 14px; }
  .eshet-footer__title { cursor: pointer; margin-bottom: 0; }
  .eshet-footer__title svg { transition: transform .25s ease; }
  .eshet-footer__col.is-open .eshet-footer__title svg { transform: rotate(180deg); }
  .eshet-footer__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, margin .3s ease;
    margin: 0;
  }
  .eshet-footer__col.is-open .eshet-footer__list {
    max-height: 320px;
    margin-top: 12px;
  }
  .eshet-footer__social { flex-direction: row; gap: 20px; }
}

/* =========================================================
   WhatsApp flutuante (global)
   ========================================================= */
.eshet-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--c-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.eshet-whatsapp:hover { transform: scale(1.06); }
.eshet-whatsapp svg { width: 34px; height: 34px; }
/* Oculta o botão flutuante quando um drawer (menu/cart/wishlist) está aberto. */
.eshet-menu-open .eshet-whatsapp,
.eshet-cart-open .eshet-whatsapp {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

/* =========================================================
   Botão "Voltar ao topo"
   ========================================================= */
.eshet-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 92px; /* acima do botão do WhatsApp (bottom 24 + ~58 + gap) */
  z-index: 49;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  background: var(--c-black);
  color: var(--c-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.eshet-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.eshet-back-to-top:hover {
  background: var(--c-gold);
  color: var(--c-black);
}
.eshet-back-to-top svg { display: block; }

/* Esconde quando um drawer está aberto (igual ao WhatsApp). */
.eshet-menu-open .eshet-back-to-top,
.eshet-cart-open .eshet-back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .eshet-back-to-top {
    right: 16px;
    bottom: 76px; /* acompanha o WhatsApp menor/recuado no mobile */
    width: 42px;
    height: 42px;
  }
  /* FAB do WhatsApp menor e mais recuado no mobile. */
  .eshet-whatsapp { width: 48px; height: 48px; right: 16px; bottom: 16px; }
  .eshet-whatsapp svg { width: 28px; height: 28px; }
}
