/* ============================================================
   TEMPLATES.CSS — estilos extra para páginas internas
   (produto / artigo / página genérica)
   Carregar APÓS style.css em templates/*.html
   ============================================================ */

/* Sub-hero compacto para páginas internas */
.subhero {
    position: relative;
    background: linear-gradient(135deg, var(--ink) 0%, #0a1f15 100%);
    color: var(--white);
    padding: 160px 6vw 80px;
    overflow: hidden;
}
.subhero::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(0,168,107,.25), transparent 60%);
    pointer-events: none;
}
.subhero__inner {
    max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 1;
}
.subhero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 16px 0 20px;
}
.subhero__title em {
    font-style: italic;
    color: var(--green);
    font-weight: 400;
}
.subhero__lede {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: rgba(255,255,255,.78);
    max-width: 720px;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}
.breadcrumb a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: color .2s;
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb__sep { opacity: .4; }
.breadcrumb--light { color: rgba(13,20,16,.5); }
.breadcrumb--light a { color: var(--ink); }

/* Meta info (autor, data, tags) */
.post-meta {
    display: flex; flex-wrap: wrap; gap: 24px;
    align-items: center;
    margin-top: 24px;
    font-size: .9rem;
    color: rgba(255,255,255,.65);
}
.post-meta__item { display: flex; align-items: center; gap: 8px; }
.post-meta__avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--green); color: var(--white);
    display: grid; place-items: center;
    font-weight: 600; font-size: .85rem;
}

/* Container de conteúdo (artigo / página) */
.content-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 80px 6vw 120px;
}
.content-wrap--wide {
    max-width: 1100px;
}

/* Tipografia editorial para corpo de artigo */
.prose {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ink-2, #2a3530);
}
.prose > * + * { margin-top: 1.2em; }
.prose h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    margin-top: 2.2em;
    letter-spacing: -.01em;
}
.prose h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 1.8em;
}
.prose p { margin-bottom: 1.2em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--green-deep, #007a4d); }
.prose a {
    color: var(--green-deep, #007a4d);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s;
}
.prose a:hover { color: var(--green); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul li, .prose ol li { margin-bottom: .6em; }
.prose ul li::marker { color: var(--green); }
.prose blockquote {
    border-left: 3px solid var(--green);
    padding: 8px 0 8px 24px;
    margin: 2em 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--ink);
}
.prose img,
.prose figure img {
    width: 100%;
    border-radius: 12px;
    margin: 2em 0;
    display: block;
}
.prose figure figcaption {
    text-align: center;
    font-size: .85rem;
    color: rgba(13,20,16,.55);
    margin-top: -1em;
    margin-bottom: 2em;
}
.prose hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(13,20,16,.2), transparent);
    margin: 3em 0;
}
.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(0,168,107,.08);
    color: var(--green-deep, #007a4d);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .92em;
}

/* Card hero do produto (galeria + dados) */
.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 6vw;
    align-items: start;
}
@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
}
.product-gallery {
    background: var(--paper, #fafaf7);
    border-radius: 16px;
    padding: 40px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: sticky;
    top: 100px;
}
.product-gallery img {
    width: 100%; height: 100%;
    object-fit: contain;
}
@media (max-width: 900px) {
    .product-gallery { position: static; aspect-ratio: 4/3; padding: 24px; }
}
.product-info__category {
    display: inline-block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--green-deep, #007a4d);
    background: rgba(0,168,107,.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.product-info__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 8px;
}
.product-info__sub {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--green-deep, #007a4d);
    margin-bottom: 24px;
}
.product-info__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-2, #2a3530);
    margin-bottom: 32px;
}
.product-info__price {
    display: flex; align-items: baseline; gap: 14px;
    margin-bottom: 32px;
    padding: 20px 0;
    border-top: 1px solid rgba(13,20,16,.08);
    border-bottom: 1px solid rgba(13,20,16,.08);
}
.product-info__price-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--ink);
}
.product-info__price-label {
    font-size: .85rem;
    color: rgba(13,20,16,.5);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.product-info__features {
    list-style: none;
    padding: 0; margin: 0 0 32px;
    display: grid; gap: 12px;
}
.product-info__features li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: .98rem;
    line-height: 1.5;
    color: var(--ink-2, #2a3530);
}
.product-info__features li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.product-info__actions {
    display: flex; flex-wrap: wrap; gap: 12px;
}

/* Cards relacionados */
.related {
    background: var(--paper, #fafaf7);
    padding: 80px 6vw;
}
.related__inner { max-width: 1200px; margin: 0 auto; }
.related__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 40px;
    letter-spacing: -.01em;
}
.related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    border: 1px solid rgba(13,20,16,.06);
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0,168,107,.25);
    border-color: rgba(0,168,107,.3);
}
.related-card__media {
    aspect-ratio: 4/3;
    background: var(--paper, #fafaf7);
    display: grid; place-items: center;
    padding: 24px;
}
.related-card__media img { width: 100%; height: 100%; object-fit: contain; }
.related-card__body { padding: 20px 22px 24px; }
.related-card__cat {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--green-deep, #007a4d);
    margin-bottom: 8px;
}
.related-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}
