/* ============================================================
   TRILHA DOS BICHOS — estilos
   Mobile-first, cores da natureza + vibrantes, tipografia arredondada
   ============================================================ */

:root {
  /* Natureza */
  --verde: #2E5D3B;
  --verde-esc: #1F4A2C;
  --verde-claro: #4E8C4A;
  --marrom: #7B4B2A;
  --marrom-esc: #5C3A22;

  /* Vibrantes */
  --laranja: #FF7A3D;
  --laranja-esc: #F26419;
  --mostarda: #F2C14E;
  --amarelo: #FFD166;

  /* Verdes de folhagem (para os detalhes de floresta) */
  --folha: #4E8C4A;
  --folha-clara: #66B85F;
  --folha-esc: #3F7D3A;

  /* Neutros — tons esverdeados para dar cara de floresta */
  --creme: #E9F2DC;
  --creme-2: #D6E7C2;
  --tinta: #223020;
  --tinta-suave: #5c554c;
  --branco: #ffffff;

  --sombra-sm: 0 4px 14px rgba(41, 36, 30, .10);
  --sombra: 0 12px 32px rgba(41, 36, 30, .14);
  --sombra-lg: 0 24px 55px rgba(41, 36, 30, .20);

  --raio: 18px;
  --raio-lg: 28px;
  --transicao: .28s cubic-bezier(.34, 1.56, .64, 1);

  --fonte-titulo: 'Baloo 2', system-ui, sans-serif;
  --fonte-corpo: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Garante que o atributo hidden esconda de verdade, mesmo em elementos
   com display: grid/flex (ex.: contador do carrinho, aviso de mochila vazia). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fonte-corpo);
  color: var(--tinta);
  background-color: var(--creme);
  background-image:
    radial-gradient(60% 40% at 100% 0%, rgba(78, 140, 74, .12), transparent 60%),
    radial-gradient(55% 45% at 0% 30%, rgba(63, 125, 58, .10), transparent 60%),
    radial-gradient(50% 40% at 100% 70%, rgba(102, 184, 95, .10), transparent 60%);
  background-attachment: fixed;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--fonte-titulo); line-height: 1.12; letter-spacing: -.01em; }

.container { width: min(1180px, 92%); margin-inline: auto; }

[data-lucide] { width: 1.15em; height: 1.15em; stroke-width: 2.4; vertical-align: -.18em; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--laranja);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1rem;
  padding: .72em 1.4em; border: none; border-radius: 999px;
  background: var(--btn-bg); color: #fff; cursor: pointer;
  box-shadow: 0 8px 20px rgba(242, 100, 25, .32);
  transition: transform var(--transicao), background var(--transicao), box-shadow var(--transicao);
  white-space: nowrap;
}
.btn:hover { transform: scale(1.07) translateY(-2px); background: var(--laranja-esc); box-shadow: 0 14px 28px rgba(242, 100, 25, .42); }
.btn:active { transform: scale(.98); }
.btn-lg { font-size: 1.12rem; padding: .85em 1.7em; }

.btn-ghost {
  background: transparent; color: var(--verde-esc);
  box-shadow: inset 0 0 0 2.5px var(--verde);
}
.btn-ghost:hover { background: var(--verde); color: #fff; box-shadow: inset 0 0 0 2.5px var(--verde); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26, 63, 37, .94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--folha-clara);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(20, 45, 27, .35); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.35rem; color: #fff; }
.brand-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--mostarda); color: var(--verde-esc);
  transform: rotate(-8deg); box-shadow: var(--sombra-sm);
}
.brand-icon [data-lucide] { width: 24px; height: 24px; }
.brand-accent { color: var(--mostarda); }

.main-nav { display: flex; gap: .35rem; }
.main-nav a {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--fonte-titulo); font-weight: 600; font-size: .98rem;
  color: #EAF3E0; padding: .5em .9em; border-radius: 999px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.main-nav a [data-lucide] { color: var(--mostarda); }

.nav-toggle { display: none; background: rgba(255, 255, 255, .16); border: none; color: #fff; width: 46px; height: 46px; border-radius: 14px; cursor: pointer; }
.nav-toggle [data-lucide] { width: 26px; height: 26px; }

/* ---------- Ações do header / carrinho ---------- */
.header-actions { display: flex; align-items: center; gap: .6rem; }

.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--verde); color: #fff; box-shadow: var(--sombra-sm);
  transition: transform var(--transicao), background var(--transicao);
}
.cart-btn:hover { transform: scale(1.09) translateY(-2px); background: var(--laranja); }
.cart-btn [data-lucide] { width: 23px; height: 23px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--laranja-esc); color: #fff; border: 2px solid var(--creme);
  font-family: var(--fonte-titulo); font-weight: 800; font-size: .74rem; line-height: 1;
  animation: pop .35s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes pop { from { transform: scale(0); } }

/* ---------- Gaveta do carrinho ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 190; background: rgba(31, 74, 44, .5);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease;
}
.cart-overlay.show { opacity: 1; }

.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 200;
  width: min(420px, 100%); height: 100dvh;
  background: var(--creme); box-shadow: var(--sombra-lg);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem; background: var(--verde-esc); color: #fff;
}
.cart-head h3 { font-size: 1.3rem; display: inline-flex; align-items: center; gap: .5em; }
.cart-head [data-lucide] { color: var(--amarelo); }
.cart-close {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: none; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff;
  transition: transform var(--transicao), background var(--transicao);
}
.cart-close:hover { background: var(--laranja); transform: scale(1.1) rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; }

.cart-item {
  display: grid; grid-template-columns: 52px 1fr auto; gap: .85rem; align-items: center;
  background: #fff; border-radius: var(--raio); padding: .8rem;
  box-shadow: var(--sombra-sm); border: 2px solid rgba(123, 75, 42, .06);
  animation: slideIn .35s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }

.cart-item-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(150deg, var(--verde), var(--verde-claro)); color: #fff;
}
.cart-item-icon [data-lucide] { width: 26px; height: 26px; }
.cart-item-info h4 { font-size: 1rem; color: var(--verde-esc); line-height: 1.2; }
.cart-item-info .cart-item-price { font-weight: 700; font-size: .88rem; color: var(--marrom); }

.cart-item-qty { display: flex; align-items: center; gap: .3rem; }
.qty-btn {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  border: none; cursor: pointer; background: var(--creme-2); color: var(--verde-esc);
  transition: background var(--transicao), transform var(--transicao);
}
.qty-btn:hover { background: var(--laranja); color: #fff; transform: scale(1.12); }
.qty-btn [data-lucide] { width: 15px; height: 15px; }
.qty-num { font-family: var(--fonte-titulo); font-weight: 800; min-width: 20px; text-align: center; }

.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 2rem; text-align: center; color: var(--tinta-suave); }
.cart-empty [data-lucide] { width: 60px; height: 60px; color: var(--verde-claro); opacity: .55; stroke-width: 1.6; }
.cart-empty p { font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.1rem; color: var(--verde-esc); }
.cart-empty small { font-family: var(--fonte-corpo); font-size: .9rem; color: var(--tinta-suave); font-weight: 600; }

.cart-foot { padding: 1.2rem 1.3rem 1.4rem; background: #fff; border-top: 2px dashed rgba(123, 75, 42, .18); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.cart-total span { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.1rem; color: var(--tinta-suave); }
.cart-total strong { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.85rem; color: var(--marrom); }
.cart-checkout { width: 100%; justify-content: center; }
.cart-checkout:disabled { opacity: .7; cursor: wait; transform: none; }
.cart-secure { margin-top: .85rem; text-align: center; font-size: .8rem; font-weight: 700; color: var(--tinta-suave); display: flex; align-items: center; justify-content: center; gap: .4em; }
.cart-secure [data-lucide] { color: var(--verde-claro); width: 15px; height: 15px; }

/* ---------- Modal de checkout ---------- */
.checkout-overlay {
  position: fixed; inset: 0; z-index: 210; background: rgba(31, 74, 44, .55);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease;
}
.checkout-overlay.show { opacity: 1; }

.checkout-modal {
  position: fixed; z-index: 220; top: 50%; left: 50%;
  width: min(560px, 94%); max-height: 92dvh; overflow-y: auto;
  transform: translate(-50%, -46%) scale(.96); opacity: 0;
  background: var(--creme); border-radius: var(--raio-lg); box-shadow: var(--sombra-lg);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}
.checkout-modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.checkout-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; background: var(--verde-esc); color: #fff;
  border-radius: var(--raio-lg) var(--raio-lg) 0 0;
}
.checkout-head h3 { font-size: 1.2rem; display: inline-flex; align-items: center; gap: .5em; }
.checkout-head [data-lucide] { color: var(--amarelo); }
.checkout-close {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: none; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff;
  transition: transform var(--transicao), background var(--transicao); flex-shrink: 0;
}
.checkout-close:hover { background: var(--laranja); transform: scale(1.1) rotate(90deg); }

.checkout-form { padding: 1.3rem 1.4rem 1.6rem; }
.checkout-intro { font-weight: 700; color: var(--marrom); margin-bottom: 1.1rem; }

.field { margin-bottom: .9rem; display: flex; flex-direction: column; }
.field label { font-family: var(--fonte-titulo); font-weight: 600; font-size: .9rem; color: var(--verde-esc); margin-bottom: .3rem; }
.field input {
  border: 2px solid rgba(123, 75, 42, .18); border-radius: 12px; padding: .7em .9em;
  font-family: var(--fonte-corpo); font-weight: 600; font-size: 1rem; color: var(--tinta);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(255, 122, 61, .2); }
.field input.invalido { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field-cep { position: relative; }
.field-uf input { text-transform: uppercase; }
.cep-status { font-size: .78rem; font-weight: 700; margin-top: .25rem; min-height: 1em; }
.cep-status.buscando { color: var(--marrom); }
.cep-status.ok { color: var(--verde-claro); }
.cep-status.erro { color: #B3261E; }

.checkout-resumo {
  background: #fff; border: 2px dashed rgba(123, 75, 42, .2); border-radius: 14px;
  padding: .9rem 1rem; margin: 1rem 0; font-weight: 700;
}
.checkout-resumo .linha-resumo { display: flex; justify-content: space-between; padding: .2rem 0; color: var(--tinta-suave); font-size: .92rem; }
.checkout-resumo .linha-total { display: flex; justify-content: space-between; margin-top: .5rem; padding-top: .5rem; border-top: 2px solid rgba(123, 75, 42, .15); }
.checkout-resumo .linha-total span { font-family: var(--fonte-titulo); font-size: 1.05rem; color: var(--tinta); }
.checkout-resumo .linha-total strong { font-family: var(--fonte-titulo); font-size: 1.35rem; color: var(--marrom); }

.checkout-erro { background: #FDE7E5; color: #B3261E; font-weight: 700; padding: .7em 1em; border-radius: 12px; margin-bottom: 1rem; }
.checkout-submit { width: 100%; justify-content: center; margin-top: .3rem; }
.checkout-submit:disabled { opacity: .7; cursor: wait; transform: none; }

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-numero, .field-uf { max-width: 140px; }
}

/* ---------- Faixa: loja em modo centavos ---------- */
.aviso-teste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center; gap: .6em;
  padding: .7em 1.2em; text-align: center;
  background: repeating-linear-gradient(45deg, var(--mostarda) 0 14px, #e8b23f 14px 28px);
  color: var(--marrom-esc); font-weight: 700; font-size: .88rem;
  box-shadow: 0 -6px 18px rgba(41, 36, 30, .18);
  animation: slideUpBar .5s ease;
}
@keyframes slideUpBar { from { transform: translateY(100%); } }
.aviso-teste [data-lucide] { flex-shrink: 0; width: 20px; height: 20px; }
.aviso-teste code { background: rgba(255,255,255,.55); padding: .1em .4em; border-radius: 6px; font-size: .95em; }
@media (max-width: 620px) { .aviso-teste { font-size: .78rem; text-align: left; } }

/* ---------- Aviso/erro flutuante ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 300; transform: translate(-50%, 25px);
  background: var(--verde-esc); color: #fff; font-weight: 700; font-size: .95rem;
  padding: .85em 1.4em; border-radius: 999px; box-shadow: var(--sombra-lg);
  display: flex; align-items: center; gap: .5em; opacity: 0;
  transition: opacity .3s ease, transform .3s ease; pointer-events: none;
  max-width: min(90vw, 460px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.erro { background: #B3261E; }
.toast [data-lucide] { color: var(--amarelo); flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 8vw, 5rem) 0 7rem; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(242, 193, 78, .28), transparent 52%),
    radial-gradient(115% 95% at 15% 110%, rgba(46, 93, 59, .30), transparent 60%),
    radial-gradient(90% 70% at 95% 100%, rgba(102, 184, 95, .30), transparent 55%),
    linear-gradient(160deg, #D8ECC4 0%, #EAF3E0 45%, #C7E3B6 100%);
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5em;
  background: #fff; color: var(--marrom); font-weight: 700; font-size: .9rem;
  padding: .5em 1em; border-radius: 999px; box-shadow: var(--sombra-sm);
  margin-bottom: 1.2rem;
}
.hero-badge [data-lucide] { color: var(--laranja-esc); }

.hero-title { font-size: clamp(1.7rem, 4.4vw, 2.9rem); font-weight: 800; color: var(--verde-esc); margin-bottom: .9rem; }
.hero-title .hl { color: var(--laranja-esc); }
.hero-sub-joke { display: block; font-size: .5em; font-weight: 600; color: var(--marrom); margin-top: .4rem; }
.hero-sub-joke [data-lucide] { color: var(--verde-claro); }

.hero-subtitle { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--tinta-suave); font-weight: 600; max-width: 34ch; margin-bottom: 1.8rem; }

.hero-actions { display: flex; flex-wrap: nowrap; gap: .8rem; margin-bottom: 2.2rem; }

.hero-stats { list-style: none; display: flex; flex-wrap: nowrap; gap: 1.4rem; }
.hero-stats li { display: flex; flex-direction: column; min-width: 0; }
.hero-stats strong { font-family: var(--fonte-titulo); font-size: 1.9rem; color: var(--verde-esc); line-height: 1; }
.hero-stats span { font-size: .82rem; font-weight: 700; color: var(--marrom); text-transform: uppercase; letter-spacing: .04em; }

/* Mobile: botões e contadores lado a lado, compactos */
@media (max-width: 600px) {
  .hero-actions { gap: .55rem; }
  .hero-actions .btn {
    flex: 1 1 0; min-width: 0; justify-content: center; text-align: center;
    white-space: normal; line-height: 1.15; font-size: .9rem; padding: .7em .7em; gap: .35em;
  }
  .hero-actions .btn [data-lucide] { flex-shrink: 0; }
  .hero-stats { gap: .7rem; justify-content: space-between; }
  .hero-stats li { flex: 1 1 0; }
  .hero-stats strong { font-size: 1.3rem; }
  .hero-stats span { font-size: .62rem; letter-spacing: .01em; }
}

/* Colagem de fotos de trilha (hero) — reagem ao mouse (parallax) */
.hero-collage { display: none; position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; justify-self: center; }
@keyframes bob { 50% { transform: translateY(-12px); } } /* usado também nas páginas de status */

.hero-photo {
  position: absolute; margin: 0; overflow: hidden;
  border-radius: 20px; border: 5px solid #fff; background: #fff;
  box-shadow: var(--sombra-lg);
  rotate: var(--rot, 0deg);      /* rotação base (separada do translate) */
  will-change: translate;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Flutuação suave — as fotos se movem poucos pixels, fora de sincronia */
@keyframes flutuaA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes flutuaB { 0%, 100% { translate: 0 0; } 50% { translate: 3px 5px; } }

/* Espalhadas de forma orgânica (alturas, tamanhos e posições variados) */
.hp-1 { width: 40%; aspect-ratio: 4 / 5; top: 1%;    left: 6%;  z-index: 3; --rot: -6deg; animation: flutuaA 6.5s ease-in-out 0s  infinite; }
.hp-2 { width: 34%; aspect-ratio: 1;     top: 8%;    right: 0;  z-index: 5; --rot:  7deg; animation: flutuaB 7.6s ease-in-out .5s infinite; }
.hp-3 { width: 44%; aspect-ratio: 4 / 3; top: 32%;   left: 0;   z-index: 2; --rot: -3deg; animation: flutuaA 8.0s ease-in-out .3s infinite; }
.hp-4 { width: 31%; aspect-ratio: 1;     top: 43%;   left: 42%; z-index: 6; --rot:  5deg; animation: flutuaB 6.9s ease-in-out .9s infinite; }
.hp-5 { width: 38%; aspect-ratio: 1;     bottom: 3%; right: 2%; z-index: 4; --rot: -5deg; animation: flutuaA 7.2s ease-in-out .2s infinite; }
.hp-6 { width: 34%; aspect-ratio: 4 / 5; bottom: 0;  left: 12%; z-index: 3; --rot:  4deg; animation: flutuaB 8.4s ease-in-out .7s infinite; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }
.hero-wave path { fill: var(--creme); }

/* ============================================================
   SEÇÕES GERAIS
   ============================================================ */
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section-alt { background: var(--creme-2); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .92rem;
  color: var(--laranja-esc); background: rgba(255, 122, 61, .12);
  padding: .4em 1em; border-radius: 999px; margin-bottom: 1rem;
}
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.9rem); color: var(--verde-esc); margin-bottom: .7rem; }
.section-head p { color: var(--tinta-suave); font-size: 1.05rem; font-weight: 600; }
.squiggle { position: relative; color: var(--laranja-esc); white-space: nowrap; }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: .35em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 Q 30 -2 60 6 T 118 5' stroke='%234E8C4A' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ============================================================
   CARDS DE DICAS (PERRENGUES)
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; }

.tip-card {
  position: relative;
  background: #fff; border-radius: var(--raio-lg); overflow: hidden;
  box-shadow: var(--sombra-sm); display: flex; flex-direction: column;
  transition: transform var(--transicao), box-shadow var(--transicao);
  border: 2px solid rgba(123, 75, 42, .06);
}
.tip-card:hover { transform: translateY(-8px); box-shadow: var(--sombra-lg); }
/* link que cobre o card inteiro (torna a trilha clicável) */
.tip-link { position: absolute; inset: 0; z-index: 3; }
.tip-card .tip-body h3 { transition: color .2s; }
.tip-card:hover .tip-body h3 { color: var(--laranja-esc); }

.tip-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.tip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tip-card:hover .tip-media img { transform: scale(1.08); }

.tip-tag {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .8rem; color: #fff;
  padding: .35em .8em; border-radius: 999px; box-shadow: var(--sombra-sm);
  backdrop-filter: blur(2px);
}
.tag-easy { background: var(--verde-claro); }
.tag-mid { background: var(--laranja); }
.tag-hard { background: var(--laranja-esc); }

.tip-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.tip-body h3 { font-size: 1.28rem; color: var(--verde-esc); }
.tip-body p { color: var(--tinta-suave); font-weight: 600; font-size: .97rem; flex: 1; }

.tip-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; padding-top: .9rem; border-top: 2px dashed rgba(123, 75, 42, .15); }
.tip-time { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .85rem; color: var(--marrom); }

/* Patinhas de dificuldade (geradas via JS com ícones paw-print) */
.paws { display: inline-flex; gap: 3px; align-items: center; }
.paws svg { width: 18px; height: 18px; }

/* ============================================================
   GALERIA MASONRY
   ============================================================ */
.masonry { columns: 1; column-gap: 1.2rem; }
.masonry-item {
  position: relative; break-inside: avoid; margin-bottom: 1.2rem;
  border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra-sm);
  transition: transform var(--transicao), box-shadow var(--transicao); cursor: pointer;
}
.masonry-item img { width: 100%; transition: transform .6s ease, filter .4s ease; }
.masonry-item:hover { transform: translateY(-4px); box-shadow: var(--sombra-lg); }
.masonry-item:hover img { transform: scale(1.07); filter: brightness(.6); }
.masonry-item figcaption {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 1.2rem; color: #fff; font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.05rem;
  background: linear-gradient(to top, rgba(31, 74, 44, .85), transparent 65%);
  opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease;
}
.masonry-item:hover figcaption, .masonry-item:focus-within figcaption { opacity: 1; transform: translateY(0); }

/* ============================================================
   LOJINHA
   ============================================================ */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.6rem; }

.product-card {
  background: #fff; border-radius: var(--raio-lg); overflow: hidden;
  box-shadow: var(--sombra-sm); display: flex; flex-direction: column;
  border: 2px solid rgba(123, 75, 42, .06);
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--sombra-lg); }

.product-media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--verde) 0%, var(--verde-claro) 100%);
  overflow: hidden;
}
.product-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 55%);
}
/* Foto do produto: cobre o card por cima do ícone. Se a foto não existir,
   o onerror remove a <img> e o ícone (embaixo) aparece no lugar. */
.product-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; transition: transform .5s ease;
}
.product-card:hover .product-img { transform: scale(1.07); }
/* Medalha: mostra a peça inteira sobre fundo claro (a foto tem fundo próprio) */
.product-card[data-produto="medalha"] .product-media { background: #E9E5DD; }
.product-card[data-produto="medalha"] .product-img { object-fit: contain; }

.product-icon {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 26px;
  background: rgba(255, 255, 255, .18); color: #fff; z-index: 0;
  transition: transform var(--transicao);
}
.product-icon [data-lucide] { width: 46px; height: 46px; stroke-width: 2; }
.product-card:hover .product-icon { transform: scale(1.12) rotate(-6deg); }

.product-flag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .78rem; color: #fff;
  padding: .35em .75em; border-radius: 999px; box-shadow: var(--sombra-sm);
}
.flag-hot { background: var(--laranja-esc); }
.flag-new { background: var(--folha-clara); color: #12350f; }

.product-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-body h3 { font-size: 1.22rem; color: var(--verde-esc); }
.product-body p { color: var(--tinta-suave); font-weight: 600; font-size: .92rem; flex: 1; }

.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .5rem; }
.price { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.5rem; color: var(--marrom); }
.price span { font-size: .95rem; }
.btn-buy { font-size: .92rem; padding: .6em 1.05em; }

/* Produto "Em breve" */
.product-card.indisponivel { opacity: .92; }
.product-card.indisponivel .product-media { filter: grayscale(.35); }
.em-breve { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.15rem; color: var(--marrom); }
.btn-buy:disabled,
.product-card.indisponivel .btn-buy {
  background: var(--tinta-suave); opacity: .7; cursor: not-allowed; box-shadow: none; transform: none;
}

.shop-note { text-align: center; margin-top: 2.4rem; font-weight: 700; color: var(--marrom); display: flex; align-items: center; justify-content: center; gap: .5em; }
.shop-note [data-lucide] { color: var(--laranja-esc); }

/* ============================================================
   PARCEIROS
   ============================================================ */
.parceiros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.parceiro-card {
  background: #fff; border-radius: var(--raio-lg); padding: 1.4rem;
  box-shadow: var(--sombra-sm); border: 2px solid rgba(46, 93, 59, .07);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.parceiro-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-lg); }
.parceiro-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.parceiro-avatar {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--verde), var(--folha)); color: #fff; flex-shrink: 0;
}
.parceiro-avatar [data-lucide] { width: 28px; height: 28px; }
.parceiro-tipo {
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .78rem; color: var(--verde-esc);
  background: var(--creme-2); padding: .35em .8em; border-radius: 999px;
}
.parceiro-card h3 { font-size: 1.25rem; color: var(--verde-esc); }
/* Cidade do parceiro — destaque para saber a origem antes de contatar */
.parceiro-local {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .9rem; color: var(--marrom-esc);
  background: var(--mostarda); padding: .35em .85em; border-radius: 999px;
}
.parceiro-local [data-lucide] { width: 15px; height: 15px; color: var(--laranja-esc); }
.parceiro-card p { color: var(--tinta-suave); font-weight: 600; font-size: .95rem; flex: 1; }

.parceiro-contatos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.btn-contato {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .88rem; color: #fff;
  padding: .55em 1em; border-radius: 999px;
  transition: transform var(--transicao), filter var(--transicao);
}
.btn-contato:hover { transform: scale(1.05); filter: brightness(1.08); }
.btn-contato.wpp { background: #25D366; }
.btn-contato.insta { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }

/* Card "seja parceiro" */
.parceiro-cta {
  align-items: center; text-align: center; justify-content: center;
  background: linear-gradient(160deg, #fff, var(--creme-2));
  border: 2px dashed rgba(46, 93, 59, .3);
}
.parceiro-cta .parceiro-avatar { background: linear-gradient(135deg, var(--laranja), var(--laranja-esc)); }
.parceiro-cta .btn { margin-top: .4rem; }

/* Feedback ao clicar comprar */
.btn-buy.added { background: var(--verde-claro) !important; box-shadow: 0 8px 20px rgba(78,140,74,.35) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; background: var(--verde-esc); color: #EAF3E0; padding-top: 4rem; margin-top: 2rem; }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; line-height: 0; transform: translateY(-99%); }
.footer-wave svg { width: 100%; height: 60px; }
.footer-wave path { fill: var(--verde-esc); }

.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.brand-footer { color: #fff; }
.footer-brand p { margin: .8rem 0 1.1rem; color: #C9DEBB; font-weight: 600; max-width: 32ch; }

.socials { display: flex; gap: .7rem; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: transform var(--transicao), background var(--transicao);
}
.socials a:hover { transform: scale(1.12) translateY(-3px); background: var(--laranja); }

.footer-links, .footer-news { display: flex; flex-direction: column; }
.footer-links h4, .footer-news h4 { font-size: 1.15rem; color: var(--amarelo); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .5em; }
.footer-links a { color: #C9DEBB; font-weight: 600; padding: .3rem 0; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #fff; padding-left: .4rem; }

.footer-news p { color: #C9DEBB; font-weight: 600; margin-bottom: 1rem; }
.news-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.news-form input {
  flex: 1; min-width: 160px; border: none; border-radius: 999px; padding: .75em 1.1em;
  font-family: var(--fonte-corpo); font-weight: 600; font-size: .95rem; color: var(--tinta);
  background: #fff; outline: 3px solid transparent; transition: outline-color .2s;
}
.news-form input:focus { outline-color: var(--mostarda); }
.news-feedback { margin-top: .7rem; font-weight: 700; color: var(--amarelo); min-height: 1.2em; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.4rem 0; text-align: center; }
.footer-bottom p { width: min(1180px, 92%); margin: 0 auto; font-size: .9rem; color: #B7CFA8; font-weight: 600; display: inline-flex; align-items: center; gap: .4em; flex-wrap: wrap; justify-content: center; }
.footer-bottom [data-lucide] { color: var(--laranja); }

/* ============================================================
   BOTÃO VOLTAR AO TOPO
   ============================================================ */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 52px; height: 52px; border-radius: 16px; border: none; cursor: pointer;
  background: var(--laranja); color: #fff; box-shadow: var(--sombra);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(20px) scale(.8);
  transition: opacity .3s, transform .3s, background .3s;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--laranja-esc); transform: scale(1.1) translateY(-3px); }
.to-top [data-lucide] { width: 26px; height: 26px; }

/* ============================================================
   PÁGINAS DE RETORNO DO PAGAMENTO
   ============================================================ */
.status-page {
  min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1.2rem;
  background:
    radial-gradient(110% 80% at 80% 0%, rgba(255, 209, 102, .5), transparent 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(78, 140, 74, .3), transparent 60%),
    var(--creme);
}
.status-card {
  background: #fff; border-radius: var(--raio-lg); box-shadow: var(--sombra-lg);
  padding: clamp(2rem, 6vw, 3.2rem); text-align: center; max-width: 560px;
  border: 2px solid rgba(123, 75, 42, .07);
  animation: cardIn .6s cubic-bezier(.22, 1, .36, 1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(28px) scale(.97); } }

.status-icon {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px;
  margin: 0 auto 1.4rem; color: #fff; animation: bob 3s ease-in-out infinite;
}
.status-icon [data-lucide] { width: 46px; height: 46px; stroke-width: 2; }
.icon-ok { background: linear-gradient(150deg, var(--verde), var(--verde-claro)); }
.icon-wait { background: linear-gradient(150deg, var(--mostarda), var(--laranja)); }
.icon-fail { background: linear-gradient(150deg, var(--marrom), var(--marrom-esc)); }

.status-card h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--verde-esc); margin-bottom: .5rem; }
.status-lead { font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.2rem; color: var(--laranja-esc); margin-bottom: .8rem; }
.status-card p { color: var(--tinta-suave); font-weight: 600; }
.status-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }

/* ============================================================
   ANIMAÇÕES DE ENTRADA (reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }
/* delays em cascata para grids */
.cards-grid .tip-card:nth-child(2), .shop-grid .product-card:nth-child(2) { transition-delay: .08s; }
.cards-grid .tip-card:nth-child(3), .shop-grid .product-card:nth-child(3) { transition-delay: .16s; }
.cards-grid .tip-card:nth-child(4), .shop-grid .product-card:nth-child(4) { transition-delay: .24s; }
.cards-grid .tip-card:nth-child(5) { transition-delay: .32s; }
.cards-grid .tip-card:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (min-width: 620px) {
  .masonry { columns: 2; }
}

@media (min-width: 760px) {
  .hero-inner { grid-template-columns: .8fr 1.06fr; align-items: center; }
  .hero-collage { display: block; }
}

@media (min-width: 980px) {
  .masonry { columns: 3; }
  .footer-inner { grid-template-columns: 1.4fr .6fr 1.2fr; }
}

/* Menu mobile */
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: .3rem; padding: 1rem 6% 1.4rem;
    background: rgba(26, 63, 37, .98); border-bottom: 3px solid var(--folha-clara);
    box-shadow: var(--sombra);
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .35s ease, opacity .35s ease;
  }
  .main-nav.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .main-nav a { font-size: 1.08rem; padding: .7em 1em; }
}
