/*
 * Refresh visual Legu (out/2026): rodapé compacto com "glacê", categorias enxutas
 * no celular, aviso de cookies menor, barra fixa de compra e detalhes artísticos.
 * Carregado depois de styles.css; as regras aqui só sobrescrevem o que mudou.
 */

:root {
  --legu-cream: #f7f3ed;
  --legu-frosting: #fffdf8;
  --legu-cherry: #dc5d76;
  --legu-ink: #1f3241;
}

/* ---------- Toque artístico: sublinhado feito à mão nos títulos de seção ---------- */
.section-heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(180px, 70%);
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12'%3E%3Cpath d='M2 8c18-6 30 2 46-1s26-6 42-2 28 4 44 0 26-5 44-1' fill='none' stroke='%236aa89f' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left / 100% 100%;
}
.soft-section .section-heading h2::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12'%3E%3Cpath d='M2 8c18-6 30 2 46-1s26-6 42-2 28 4 44 0 26-5 44-1' fill='none' stroke='%23d7b8c5' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* Brilhinho ao lado da etiqueta da seção */
.section-heading .eyebrow::after {
  content: "✦";
  margin-left: 6px;
  color: #e9b75f;
  font-size: .8em;
}

.section-heading .text-link { white-space: nowrap; }

/* ---------- Cards de produto ---------- */
.product-card .rating.is-new small {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(106, 168, 159, .14);
  color: #3f7567;
  font-weight: 800;
}

/* ---------- Rodapé compacto ---------- */
.site-footer {
  position: relative;
  margin-top: 64px;
  padding: 34px 24px 18px;
  background: linear-gradient(180deg, var(--legu-frosting) 0%, #f3ead9 100%);
  border-top: 0;
}
/* Borda de glacê com a "cereja" (coração) no meio */
.footer-frosting {
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 24px;
  background:
    radial-gradient(circle at 18px 0, transparent 17px, var(--legu-frosting) 18px) 0 0 / 36px 24px repeat-x;
  filter: drop-shadow(0 -3px 2px rgba(170, 140, 110, .10));
  pointer-events: none;
}
.footer-cherry {
  position: absolute;
  left: 50%;
  top: -20px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--legu-frosting);
  color: var(--legu-cherry);
  box-shadow: 0 6px 16px rgba(220, 93, 118, .22);
  transform: translateX(-50%);
  animation: legu-cherry 3.2s ease-in-out infinite;
}
.footer-cherry svg { width: 22px; height: 22px; fill: currentColor; }
@keyframes legu-cherry {
  0%, 100% { transform: translateX(-50%) scale(1); }
  12% { transform: translateX(-50%) scale(1.14); }
  24% { transform: translateX(-50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-cherry { animation: none; }
}

.site-footer .footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-footer .footer-logo { width: 72px; height: 72px; margin: 0; object-fit: contain; }
.footer-brand strong { display: block; color: var(--legu-ink); font-family: Poppins, Nunito, sans-serif; font-size: .98rem; }
.footer-brand p { margin: 4px 0 0; color: #5b6f6b; font-size: .86rem; line-height: 1.4; }

.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.site-footer h3 { margin: 0 0 6px; color: var(--legu-ink); font-size: .9rem; }
.site-footer .footer-links a { display: block; margin: 4px 0; color: #5b6f6b; font-size: .88rem; }
.site-footer .footer-links a:hover { color: #3f7567; }

.footer-contact { display: grid; gap: 12px; }
.site-footer .footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  justify-self: start;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(106, 168, 159, .16);
  color: #2c4b41;
  font-weight: 800;
  font-size: .88rem;
}
.footer-whatsapp svg { width: 18px; height: 18px; }
.site-footer .newsletter { display: grid; gap: 6px; }
.site-footer .newsletter label { color: #5b6f6b; font-size: .84rem; font-weight: 700; }
.newsletter-row { display: flex; gap: 8px; }
.site-footer .newsletter-row input { flex: 1; min-width: 0; margin: 0; padding: 10px 14px; border-radius: 999px; }
.site-footer .newsletter-row .btn { padding: 10px 18px; border-radius: 999px; white-space: nowrap; }

.site-footer .footer-bottom {
  max-width: 1180px;
  margin: 20px auto 0;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: #6a7672;
}
.site-footer .footer-bottom p { margin: 0; }
.site-footer .payment-pill { padding: 5px 11px; font-size: .76rem; }

@media (max-width: 900px) {
  .site-footer { padding: 30px 16px 16px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .site-footer .footer-logo { width: 56px; height: 56px; }
  .site-footer .footer-bottom { flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* O botão do WhatsApp fica dentro do rodapé e herdava "display: block" dos links de lá */
.site-footer .whatsapp-float { display: grid; place-items: center; margin: 0; color: #fff; }
.site-footer .whatsapp-float svg { width: 24px; height: 24px; }

/* Botões flutuantes sobem quando a barra de compra aparece */
body.has-sticky-buy .whatsapp-float { bottom: 156px; }
body.has-sticky-buy .scroll-top { bottom: 90px; }

/* ---------- Categorias da home: blocos compactos no celular ---------- */
@media (max-width: 620px) {
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-category-grid .category-art-card {
    min-height: 0;
    border-radius: 16px;
  }
  .home-category-grid .category-art-media,
  .home-category-grid .category-art-card em,
  .home-category-grid .category-art-card small { display: none; }
  .home-category-grid .category-art-card::after { display: none; }
  .home-category-grid .category-art-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 62px;
  }
  .home-category-grid .category-art-icon { flex: 0 0 36px; width: 36px; height: 36px; }
  .home-category-grid .category-art-card strong { font-size: .9rem; line-height: 1.2; }
  .home-category-grid .category-art-card:nth-child(4n + 1) { background: rgba(106, 168, 159, .14); }
  .home-category-grid .category-art-card:nth-child(4n + 2) { background: rgba(215, 184, 197, .24); }
  .home-category-grid .category-art-card:nth-child(4n + 3) { background: rgba(197, 213, 226, .34); }
  .home-category-grid .category-art-card:nth-child(4n + 4) { background: rgba(217, 216, 229, .4); }
}

/* ---------- Menu de atalhos: indica que dá para arrastar ---------- */
@media (max-width: 900px) {
  .header-menu {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    padding-right: 28px;
  }
}

/* ---------- Aviso de cookies menor no celular ---------- */
@media (max-width: 620px) {
  .consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .consent-banner .consent-icon { display: none; }
  .consent-banner strong { font-size: .9rem; }
  .consent-banner p { margin: 2px 0; font-size: .76rem; line-height: 1.35; }
  .consent-banner .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-banner .consent-actions .btn { padding: 9px 10px; font-size: .82rem; }
}

/* ---------- Barra fixa de compra (página de produto, celular) ---------- */
.sticky-buy { display: none; }
@media (max-width: 900px) {
  .sticky-buy {
    position: fixed;
    z-index: 1100;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 16px;
    border-radius: 18px;
    background: rgba(255, 253, 248, .97);
    box-shadow: 0 16px 40px rgba(31, 50, 65, .2);
    backdrop-filter: blur(12px);
    transform: translateY(140%);
    transition: transform .25s ease;
  }
  .sticky-buy.is-visible { transform: translateY(0); }
  .sticky-buy-price { min-width: 0; }
  .sticky-buy-price small { display: block; overflow: hidden; color: #5b6f6b; font-size: .74rem; white-space: nowrap; text-overflow: ellipsis; }
  .sticky-buy-price strong { color: var(--legu-ink); font-size: 1.15rem; }
  .sticky-buy .btn { flex: 0 0 auto; padding: 12px 18px; }
}
