/*
Theme Name: A Vila das Letras - Full Site
Theme URI: https://aviladasletras.com.br
Author: A Vila das Letras / Generated
Description: Theme generated with the entire homepage content from a_vila_das_letras_v9.html (full site).
Version: 1.0
Text Domain: avila-theme
Tags: custom-logo, ecommerce, responsive
*/

:root {
      --color-bg: #F7F2ED;
      --color-text: #432219;
      --color-muted: #A25C48;
      --color-accent: #E39458;
      --color-accent-2: #8AA87E;
      --color-paper: #F4E2D7;
      --color-ink: #432219;
      --radius: 16px;
      --shadow: 0 8px 24px rgba(67,34,25,.08);
      --maxw: 1200px;
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{margin:0;background:var(--color-bg);color:var(--color-text);font:16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial}
    a{color:inherit;text-decoration:none}
    img{max-width:100%;display:block}
    .container{max-width:var(--maxw);margin-inline:auto;padding:0 24px}
    .btn{display:inline-block;padding:12px 20px;border-radius:999px;border:1px solid var(--color-ink);background:var(--color-ink);color:#fff;box-shadow:var(--shadow);cursor:pointer}
    .btn.ghost{background:transparent;color:var(--color-ink)}
    .btn.accent{background:var(--color-accent);border-color:var(--color-accent)}
    header{position:sticky;top:0;background:#fff;border-bottom:4px solid var(--color-accent);z-index:50}
    .nav{display:flex;align-items:center;gap:16px;padding:14px 0}
    .brand{display:flex;align-items:center;gap:12px}
    .brand .logo{height:56px;width:auto}
    .navlinks{margin-left:auto;display:flex;gap:18px;flex-wrap:wrap}
    .navlinks a{padding:8px 12px;border-radius:10px}
    .navlinks a.active,.navlinks a:hover{background:var(--color-paper)}
    .hamburger{display:none;margin-left:auto;width:44px;height:44px;border-radius:12px;border:1px solid #ddd;background:#fff;align-items:center;justify-content:center}
    .hamburger span{display:block;width:20px;height:2px;background:var(--color-ink);position:relative}
    .hamburger span:before,.hamburger span:after{content:"";position:absolute;left:0;width:20px;height:2px;background:var(--color-ink)}
    .hamburger span:before{top:-6px}
    .hamburger span:after{top:6px}
    .mobile-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:4px solid var(--color-accent);box-shadow:0 8px 24px rgba(0,0,0,.06)}
    .mobile-nav a{display:block;padding:14px 24px;border-top:1px solid #eee}

    .hero{background:linear-gradient(180deg,#fff, var(--color-paper));padding:64px 0}
    .hero-wrap{display:grid;grid-template-columns:1.2fr .8fr;gap:32px;align-items:center}
    .kicker{letter-spacing:.08em;text-transform:uppercase;color:var(--color-muted);font-weight:600}
    h1{font-size:clamp(28px,5vw,44px);line-height:1.12;margin:10px 0 14px}
    .lead{font-size:18px;color:#555;margin:0 0 24px}
    .hero-visual{aspect-ratio:4/3;background:#fff;border:1px dashed #ccc;border-radius:var(--radius);display:grid;place-items:center;color:#aaa}
    .section{padding:72px 0}
    .section h2{font-size:clamp(24px,3.8vw,34px);margin:0 0 12px}
    .section p.lead{margin-top:6px}
    .grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
    .card{background:#fff;border:1px solid #eee;border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
    .icon{width:48px;height:48px;border-radius:14px;background:var(--color-accent-2);border:1px solid #cfd8d3}
    .product-card{display:flex;flex-direction:column;gap:16px}
    .product-thumb{aspect-ratio:4/3;border:1px dashed #ccc;border-radius:var(--radius);background:#fff;display:grid;place-items:center;color:#aaa}
    .price{font-weight:700}
    .pill{display:inline-block;padding:6px 10px;border-radius:999px;background:var(--color-paper);font-size:12px}

    /* Vídeos */
    .video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
    .video-thumb{position:relative;aspect-ratio:16/9;border-radius:14px;border:1px dashed #ccc;background:#fff;display:grid;place-items:center;color:#aaa}
    .play{position:absolute;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;background:var(--color-ink);opacity:.9;display:grid;place-items:center}
    .play:after{content:"";border-style:solid;border-width:10px 0 10px 16px;border-color:transparent transparent transparent #fff;margin-left:3px}

    /* Depoimentos */
    .testimonials{background:#fff}
    .t-wrap{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}
    .t-item{background:var(--color-paper);border:1px solid #ead3c9;border-radius:16px;padding:20px;box-shadow:var(--shadow)}
    .t-author{margin-top:10px;font-weight:600;color:var(--color-text)}
    .t-role{font-size:13px;color:var(--color-muted)}

    /* Carrinho (simulação) */
    .cart-fab{position:fixed;right:20px;bottom:20px;background:var(--color-accent);color:#fff;border:none;padding:14px 18px;border-radius:999px;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px;cursor:pointer;z-index:60}
    .cart-count{background:#fff;color:var(--color-accent);border-radius:999px;padding:2px 8px;font-weight:700}
    .cart-panel{position:fixed;right:-420px;top:0;width:380px;height:100vh;background:#fff;border-left:4px solid var(--color-accent);box-shadow:-8px 0 24px rgba(0,0,0,.08);padding:20px;transition:right .3s ease;z-index:70;display:flex;flex-direction:column}
    .cart-panel.open{right:0}
    .cart-items{flex:1;overflow:auto;display:grid;gap:12px;margin-top:8px}
    .cart-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;border-bottom:1px solid #eee;padding-bottom:10px}
    .cart-row img{width:48px;height:48px;background:#f7f7f7;border-radius:10px;border:1px solid #eee}
    .cart-row .qty{display:flex;align-items:center;gap:6px}
    .cart-row button{border:1px solid #ddd;background:#fff;border-radius:8px;padding:4px 8px;cursor:pointer}
    .cart-footer{border-top:1px solid #eee;padding-top:12px}
    .cart-total{display:flex;justify-content:space-between;font-weight:700}

    footer{background:var(--color-accent-2);color:#fff;text-align:center;padding:48px 0 24px;margin-top:64px}
    footer img{width:160px;margin:0 auto 16px}
    footer p{margin:0;font-size:14px;opacity:.9}
    footer .social{margin-top:16px;display:flex;justify-content:center;gap:16px}
    footer .social a{color:#fff;font-weight:600}
    footer small{display:block;margin-top:12px;font-size:12px;opacity:.7}

    @media(max-width:960px){
      .navlinks{display:none}
      .hamburger{display:flex}
      .hero-wrap{grid-template-columns:1fr}
      .t-wrap{grid-template-columns:1fr}
      .video-grid{grid-template-columns:1fr 1fr}
    }
    @media(max-width:500px){.video-grid{grid-template-columns:1fr}}
  
    /* Alt background for grouping 'Para quem é' + 'Vídeos' */
    .alt-section{
      background: rgba(175,197,136,0.06); /* suave, da paleta #AFC588 */
      padding: 28px 0;
      border-radius: 10px;
    }
    .video-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:12px;}
    @media (max-width:900px){ .video-grid{grid-template-columns:repeat(2,1fr);} }
    @media (max-width:560px){ .video-grid{grid-template-columns:1fr;} }

/* ensure cart link matches other nav links and svg alignment */
.navlinks a, .mobile-nav a { color: var(--color-2); font-weight:500; text-decoration:none; }
.nav-item-cart svg { opacity:0.9; }
.nav-item-cart { display:inline-flex; align-items:center; gap:6px; }

/* Minimal card style for FAQ accordion with +/- icons */
.accordion { background: transparent; border-radius: 10px; overflow: visible; }
.accordion-item { border-bottom: 1px solid rgba(67,34,25,0.06); padding: 0; }
.accordion-toggle { background:transparent; border:0; width:100%; text-align:left; padding:16px 12px; font-weight:600; cursor:pointer; font-size:16px; color:var(--color-2); position:relative; display:flex; align-items:center; justify-content:space-between; }
.accordion-toggle::before { content: "+"; font-weight:700; margin-right:12px; display:inline-block; width:20px; height:20px; text-align:center; border-radius:4px; background:transparent; color:var(--color-2); }
.accordion-toggle[aria-expanded="true"]::before { content: "−"; }
.accordion-panel { padding:12px 12px 18px 12px; display:none; color:var(--color-2); line-height:1.6; background: #fff; }
.accordion-item:first-of-type { border-top-left-radius:8px; border-top-right-radius:8px; }
.accordion-item:last-of-type { border-bottom-left-radius:8px; border-bottom-right-radius:8px; border-bottom: none; }
.accordion { box-shadow: 0 1px 0 rgba(67,34,25,0.04); }

.accordion { border-radius:12px; overflow:hidden; }
.accordion-item { border-top:1px solid rgba(67,34,25,0.06); }
.accordion-toggle { background:transparent; border:0; width:100%; text-align:left; padding:14px; font-weight:600; cursor:pointer; font-size:16px; color:var(--color-2); }
.accordion-panel { padding:0 14px 14px 14px; display:none; color:var(--color-2); line-height:1.5; }
.accordion-toggle[aria-expanded="true"] { background:rgba(67,34,25,0.02); }

/* FAQ cards style - responsive */
.faq-grid { grid-template-columns: repeat(2,1fr); }
@media (max-width:900px){ .faq-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .faq-grid{ grid-template-columns:1fr;} }

.faq-card { background: #fff; border: 1px solid rgba(67,34,25,0.06); border-radius:10px; padding:0; overflow:hidden; box-shadow: 0 1px 0 rgba(67,34,25,0.03); }
.faq-toggle { background:transparent; border:0; width:100%; text-align:left; padding:16px; font-weight:700; cursor:pointer; font-size:15px; color:var(--color-2); display:flex; align-items:center; justify-content:space-between; }
.faq-toggle::after { content: "+"; display:inline-block; width:26px; height:26px; border-radius:6px; text-align:center; line-height:26px; font-weight:700; color:var(--color-2); background:transparent; }
.faq-toggle[aria-expanded="true"]::after { content: "−"; }
.faq-panel { display:none; padding:12px 16px 18px 16px; color:var(--color-2); line-height:1.6; font-weight:400; }


/* v39 visual adjustments: harmonize product card height, spacing, and button alignment */
.product-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 520px !important;
    padding-bottom: 24px !important;
}

.product-buy-options {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 16px !important;
}

.product-buy-options button {
    flex: 1 1 auto !important;
    text-align: center !important;
}

.product-card p {
    margin-bottom: 16px !important;
}


/* v40: uniform card height + consistent content alignment */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 560px !important;  /* uniform height */
    padding: 24px !important;
}

.product-card h3 {
    margin-bottom: 12px !important;
}

.product-card p {
    flex-grow: 1 !important; 
    margin-bottom: 20px !important;
}

.product-buy-options {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.product-buy-options button {
    flex: 1 1 auto !important;
    text-align: center !important;
}


/* v41: fix buttons outside card — reduce spacing + remove fixed height */
.product-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 520px !important; /* flexible but consistent */
    height: auto !important;       /* allow expansion */
    padding: 20px !important;
}

.product-card p {
    margin-bottom: 12px !important;
    flex-grow: 1 !important;
}

.product-buy-options {
    margin-top: 12px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
}

.product-buy-options button {
    flex: 1 1 auto !important;
}


/* Adjust kit-card to align buttons with other cards */
.kit-card .product-buy-options {
  margin-top: 6px !important;
}
.kit-card p { margin-bottom: 8px !important; }


/* v43: stronger nudge for kit-card buttons to align with other cards */
.kit-card .product-buy-options {
  margin-top: -10px !important;
  align-self: stretch !important;
}
.kit-card p { margin-bottom: 4px !important; }
.kit-card .price { margin-bottom: 6px !important; }


/* v44: precise alignment for product buttons - place buy-options anchored to card bottom */
.product-card { position: relative !important; padding-bottom: 88px !important; }
.product-card .product-buy-options { 
  position: absolute !important; 
  left: 20px !important; 
  right: 20px !important; 
  bottom: 20px !important; 
  display:flex !important; 
  gap:12px !important; 
  justify-content:center !important;
}
.product-card .product-buy-options button { flex:1 1 auto !important; max-width: 280px; }
@media (max-width:900px) {
  .product-card { padding-bottom: 120px !important; }
  .product-card .product-buy-options { position: static !important; margin-top:12px !important; }
}


/* Ensures consistent product thumbnail sizing */
.product-thumb {
    width: 100%;
    height: 260px;
    border: 1px dashed #ccc;
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* overrides */
.brand .logo{height:64px!important;width:auto!important;}
.cart-fab{position:fixed;right:18px;bottom:28px;border-radius:28px;background:#d98e5f;color:#fff;padding:10px 18px;}
