/* Loja 24K — peças globais: menu de departamentos e rodapé completo. */

/* Menu de departamentos (abaixo da busca) */
.main-nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  white-space: nowrap;
}

.main-nav .main-nav__ofertas {
  color: var(--gold-deep);
  font-weight: 800;
}

/* Rodapé */
.rod {
  margin-top: clamp(32px, 4vw, 48px);
  background: #12100c;
  color: #cfc6b4;
}

.rod__cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 60px) clamp(32px, 4vw, 44px);
}

.rod__logo {
  display: inline-block;
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  text-decoration: none;
}

.rod__marca p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a99f8c;
}

.rod__redes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rod__redes a {
  padding: 7px 14px;
  border: 1px solid rgba(227, 191, 76, 0.35);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.rod__redes a:hover {
  background: rgba(227, 191, 76, 0.12);
}

.rod__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.rod__col h3 {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.rod__col a {
  font-size: 0.9rem;
  color: #d9d1c1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.rod__col a:hover {
  color: var(--gold);
}

.rod__col a.rod__email {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--gold);
  word-break: break-all;
}

.rod__horario {
  font-size: 0.78rem;
  color: #8f8777;
}

.rod__faixa {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.rod__faixa-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 18px;
}

.rod__pag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.rod__rotulo {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f8777;
}

.rod__selos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rod__selos li {
  display: grid;
  place-items: center;
  width: 52px;
  height: 32px;
  padding: 5px 7px;
  border-radius: 7px;
  background: #fff;
}

.rod__selos img {
  max-width: 100%;
  max-height: 20px;
  object-fit: contain;
}

.rod__seguro {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}

.rod__seguro svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

.rod__seguro span {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: #a99f8c;
}

.rod__seguro b {
  font-size: 0.85rem;
  color: #fff;
}

.rod__copy {
  margin: 0 auto;
  padding-block: 16px 20px;
  font-size: 0.78rem;
  color: #7d7566;
}

@media (max-width: 900px) {
  .rod__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rod__marca {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .rod__cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    padding-block: 32px 24px;
  }

  .rod__col--dep {
    display: none;
  }

  .rod__logo {
    font-size: 1.7rem;
  }

  .rod__marca p {
    font-size: 0.84rem;
  }

  .rod__col {
    gap: 2px;
  }

  .rod__col h3 {
    margin-bottom: 6px;
  }

  /* Links com área de toque confortável */
  .rod__col a {
    padding-block: 7px;
    font-size: 0.86rem;
  }

  .rod__col a.rod__email {
    margin-top: 0;
    font-size: 0.8rem;
  }

  .rod__faixa-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .rod__pag {
    flex-direction: column;
    align-items: flex-start;
  }

  .rod__selos li {
    width: 48px;
    height: 30px;
  }

  .rod__copy {
    padding-block: 14px 16px;
    font-size: 0.72rem;
    text-align: center;
  }
}

/* ---------- Foto do produto que se ajusta ao card (productFoto) ---------- */
.pfoto {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #f7f4ef;
}

.pfoto img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  padding: 0 !important;
}

.pfoto__fundo {
  object-fit: cover !important;
  filter: blur(22px) saturate(1.1);
  transform: scale(1.25);
  opacity: 0.8;
}

.pfoto__img {
  object-fit: contain !important;
  transition: transform 0.45s ease;
}

.card:hover .pfoto__img,
.h24-card:hover .pfoto__img {
  transform: scale(1.04);
}

/* =====================================================================
   Celular com cara de app: barra de abas para todos e rodapé compacto
   ===================================================================== */
@media (max-width: 768px) {
  .app-tabbar__ico {
    position: relative;
    display: inline-flex;
  }

  .app-tabbar__badge {
    position: absolute;
    top: -5px;
    right: -9px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--gold-dark, #8f6f38);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 13px;
    text-align: center;
    box-sizing: border-box;
  }

  .app-tabbar__item {
    min-height: 48px;
    justify-content: center;
  }

  /* O espaço da barra fica dentro do rodapé escuro (sem faixa clara embaixo) */
  body.has-app-tabbar {
    padding-bottom: 0 !important;
  }

  body.has-app-tabbar .f24 {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Nomes de produto aparecem como foram cadastrados (sem "200 Ml") */
.pd h1,
.pd-info__title,
a.card__name,
.crumbs a,
.crumbs span:last-child {
  text-transform: none !important;
}

/* Página do produto no celular: foto grande, na largura do cartão (como nos apps) */
@media (max-width: 768px) {
  .pd-page .pd-gallery,
  .pd-page .pd-gallery__layout {
    width: 100% !important;
    max-width: none !important;
  }

  .pd-page .pd-gallery__frame {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 18px !important;
  }
}

/* Home no celular: o espaço da barra de abas já fica no rodapé; sem buraco antes dele */
@media (max-width: 760px) {
  html body.landing-home.has-app-tabbar main.site-main {
    padding-bottom: 0 !important;
  }
}

/* Campos: aviso de erro ao sair do campo (assets/js/campos.js) */
.input.is-invalido,
input.is-invalido,
textarea.is-invalido {
  border-color: #c0473a !important;
  background: #fff8f7 !important;
  box-shadow: 0 0 0 3px rgba(192, 71, 58, 0.12) !important;
}

.campo-erro {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  color: #b23a2e;
}

.campo-erro:empty {
  display: none;
}

.rod__empresa {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #6f685b;
}

/* Campo de senha com botão "mostrar senha" (assets/js/campos.js) */
.campo-senha {
  position: relative;
  display: block;
}

.campo-senha input {
  width: 100%;
  padding-right: 48px !important;
}

.campo-senha__olho {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.campo-senha__olho svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.campo-senha__olho.is-visivel {
  color: var(--gold-deep, #8a6a1f);
}

.campo-senha__olho.is-visivel svg {
  stroke-width: 2.2;
}
