/* =========================================================
   UNIFRUTAS · VERSÃO 2 — páginas de produto (ficha técnica)
   ========================================================= */

.pg {
  --fruit: var(--accent);
  --fruit-escura: color-mix(in oklab, var(--fruit) 70%, #1d0700);
  padding-top: var(--nav-h);
}

/* ---------- topo ---------- */
.pg-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(32px, 5vw, 72px) clamp(28px, 4vw, 48px);
}
.pg-hero-texto { display: grid; justify-items: start; gap: 20px; }
.pg-hero-texto > * { animation: sobe .9s var(--ease) backwards; }
.pg-hero-texto > :nth-child(2) { animation-delay: .08s; }
.pg-hero-texto > :nth-child(3) { animation-delay: .16s; }
.pg-hero-texto > :nth-child(4) { animation-delay: .24s; }
.pg-hero-texto > :nth-child(5) { animation-delay: .32s; }
.migalha { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.migalha a { text-decoration: none; transition: color .25s; }
.migalha a:hover { color: var(--accent-ink); }
.migalha [aria-current] { color: var(--ink); }
.pg-hero h1 { font-size: clamp(48px, 7.2vw, 104px); line-height: .95; }
.pg-desc { font-size: clamp(16px, 1.3vw, 18.5px); color: var(--muted); max-width: 58ch; }

.pg-arte { position: relative; justify-self: center; width: 100%; max-width: 560px; aspect-ratio: 1.1; }
.pg-arte::before {
  content: ""; position: absolute; inset: 5% 13%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--fruit) 40%, var(--sun)), var(--fruit) 86%);
  animation: sobe 1s var(--ease) backwards .1s;
}
.pg-arte::after {
  content: ""; position: absolute; inset: -4%; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 40px, color-mix(in oklab, var(--fruit) 22%, transparent) 40px 41px);
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%);
  mask-image: radial-gradient(circle, #000 40%, transparent 70%);
  pointer-events: none;
}
.pg-arte img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, .22));
  animation: boia 7s ease-in-out infinite;
}

/* ---------- faixa de dados ---------- */
.pg-fatos { margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-block: 1px solid var(--line); }
.pg-fatos div { padding: 16px 16px 16px 0; }
.pg-fatos div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.pg-fatos dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pg-fatos dd { margin: 3px 0 0; font-weight: 650; font-size: 15px; line-height: 1.35; }

/* ---------- abas ---------- */
.pg-detalhes { padding-block: clamp(40px, 5vw, 72px); }
.abas {
  display: flex; gap: 4px; width: max-content; max-width: 100%;
  padding: 5px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.abas::-webkit-scrollbar { display: none; }
.abas button {
  padding: 10px 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  font-weight: 650; font-size: 15.5px; white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.abas button:hover { color: var(--ink); }
.abas button[aria-selected="true"] { background: var(--ink); color: #fff; }
.pg-painel { padding-top: 34px; }
.pg-painel:focus-visible { outline-offset: 8px; }
.js .pg-painel + .pg-painel { margin-top: 0; }
.pg-painel.is-troca > * { animation: sobe .55s var(--ease) backwards; }

.pg-spec { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.pg-foto { margin: 0; }
.pg-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; box-shadow: 0 40px 70px -46px rgba(15, 58, 37, .6); }

.nutri { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 14px; }
.nutri > div { display: grid; gap: 4px; padding: 24px 26px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nutri b { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: clamp(56px, 7vw, 88px); color: var(--fruit-escura); font-variant-numeric: tabular-nums; }
.nutri b small { font-family: var(--body); font-weight: 650; font-size: 18px; letter-spacing: 0; color: var(--muted); }
.nutri > div > span { font-size: 16px; color: var(--muted); }

.pg-safra { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pg-cal { display: grid; gap: 12px; padding: clamp(18px, 3vw, 30px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.temp-cal-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pg-saz { display: grid; gap: 14px; }
.pg-saz p { color: var(--muted); }
.saz-lista { list-style: none; margin: 0; padding: 0; }
.saz-lista li { padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }

.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 650; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  background: var(--tint); color: var(--ink);
  transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq summary:hover::after { background: color-mix(in oklab, var(--tint) 60%, var(--accent)); }
.faq details p { margin: 0 0 20px; max-width: 70ch; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.faq details[open] p { animation: sobe .45s var(--ease); }

/* ---------- relacionados ---------- */
.pg-rel { display: grid; gap: 20px; padding-bottom: clamp(56px, 7vw, 96px); }
.pg-rel-titulo { font-size: clamp(26px, 2.6vw, 36px); }
.rel-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rel {
  --fruit: var(--accent);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px; border-radius: 22px;
  background: color-mix(in oklab, var(--fruit) 15%, #fff);
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .4s var(--ease), background-color .3s;
}
.rel:hover { transform: translateY(-4px); background: color-mix(in oklab, var(--fruit) 24%, #fff); }
.rel img { width: 64px; height: 64px; object-fit: contain; transition: transform .5s var(--ease); }
.rel:hover img { transform: rotate(-10deg) scale(1.08); }
.rel .arr { margin-left: auto; transition: transform .3s var(--ease); }
.rel:hover .arr { transform: translateX(4px); }

/* ---------- chamada final ---------- */
.pg-cta { background: var(--deep); color: var(--on-deep); }
.pg-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(48px, 6vw, 80px); }
.pg-cta h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 20ch; }
.pg-cta p { margin-top: 10px; color: var(--deep-muted); max-width: 52ch; }

@media (max-width: 900px) {
  .pg-hero, .pg-spec, .pg-safra { grid-template-columns: 1fr; }
  .pg-arte { order: -1; max-width: 380px; }
  .pg-fatos { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .pg-fatos div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pg-fatos div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pg-fatos div:nth-child(odd):last-child { grid-column: 1 / -1; }
  .pg-foto { max-width: 440px; }
  .rel-grade { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nutri { grid-template-columns: 1fr 1fr; }
  .nutri > div { padding: 18px; }
}
