:root{
  --afva-home-bg:#f7f3ea;
  --afva-home-text:#49433e;
  --afva-home-muted:#777069;
  --afva-home-sage:#7f8b67;
  --afva-home-terr:#b8775f;
  --afva-home-gap:24px;
  --afva-home-peek:clamp(72px,7vw,122px);
}
.afva-home-products,
.afva-home-products *{box-sizing:border-box;}
.afva-home-products{
  position:relative;
  width:100%;
  overflow:hidden;
  padding:68px 0 76px;
  background:var(--afva-home-bg);
  color:var(--afva-home-text);
  font-family:"Manrope",Arial,sans-serif;
  isolation:isolate;
}
.afva-home-products__inner{position:relative;z-index:1;width:min(1160px,calc(100% - 56px));margin:0 auto;}
.afva-home-products__header{display:grid;grid-template-columns:minmax(0,700px) auto;align-items:start;justify-content:space-between;gap:42px;margin-bottom:34px;}
.afva-home-products__heading{min-width:0;}
.afva-home-products__eyebrow{margin:0 0 11px!important;color:#879078!important;font-size:11px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:.17em!important;text-transform:uppercase!important;}
.afva-home-products__heading h2{max-width:660px;margin:0!important;color:var(--afva-home-text)!important;font-family:"Newsreader",Georgia,serif!important;font-size:clamp(48px,4.1vw,67px)!important;line-height:.96!important;font-weight:500!important;letter-spacing:-.035em!important;}
.afva-home-products__subtitle{max-width:620px;margin:18px 0 0!important;color:var(--afva-home-muted)!important;font-size:14px!important;line-height:1.7!important;font-weight:400!important;}
.afva-home-products__controls{display:flex;flex-direction:column;align-items:flex-end;gap:22px;padding-top:5px;}
.afva-home-products__all{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:13px!important;min-height:49px!important;padding:0 22px!important;border-radius:999px!important;background:#47443a!important;color:#fff!important;text-decoration:none!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important;white-space:nowrap;transition:transform .2s ease,background .2s ease!important;}
.afva-home-products__all:hover{transform:translateY(-1px);background:#34322c!important;color:#fff!important;}
.afva-home-products__all .afva-home-icon{width:17px;height:17px;}
.afva-home-products__arrows{display:flex;align-items:center;gap:10px;}
.afva-home-products__arrow{display:grid!important;place-items:center!important;width:48px!important;height:48px!important;min-width:48px!important;padding:0!important;border:1px solid rgba(73,67,62,.08)!important;border-radius:50%!important;background:rgba(255,255,255,.82)!important;color:#4f4943!important;box-shadow:0 9px 24px rgba(67,60,53,.05)!important;cursor:pointer!important;transition:transform .2s ease,background .2s ease!important;}
.afva-home-products__arrow:hover{transform:translateY(-1px);background:#fff!important;}
.afva-home-products__arrow .afva-home-icon{display:block;width:20px;height:20px;}
.afva-home-products__arrow[hidden]{display:grid!important;}
.afva-home-products__arrow:disabled,
.afva-home-products__arrow[aria-disabled="true"]{
  opacity:.42!important;
  cursor:default!important;
  transform:none!important;
}
.afva-home-products__arrow:disabled:hover,
.afva-home-products__arrow[aria-disabled="true"]:hover{
  transform:none!important;
  background:rgba(255,255,255,.82)!important;
}

/* Full-bleed "Netflix" ribbon. The inner header remains aligned to the site grid. */
.afva-home-products__viewport{position:relative;width:100vw;margin-left:calc(50% - 50vw);overflow:hidden;}
.afva-home-products__track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:clamp(300px,21vw,350px);
  gap:var(--afva-home-gap);
  width:100%;
  max-width:none!important;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0 0 10px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:var(--afva-home-peek);
  scrollbar-width:none;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
}
.afva-home-products__track::-webkit-scrollbar{display:none;}
.afva-home-products__track:focus{outline:none;}
.afva-product-card{position:relative;display:flex;min-width:0;flex-direction:column;scroll-snap-align:start;background:transparent;color:var(--afva-home-text);}
.afva-product-card[data-afva-clone="1"]{pointer-events:auto;}
.afva-product-card__media{position:relative;display:block;aspect-ratio:1/1.04;overflow:hidden;border-radius:20px;background:#e9e2d8;text-decoration:none!important;box-shadow:none!important;}
.afva-product-card__media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(26,24,20,.08) 0%,rgba(26,24,20,0) 32%,rgba(26,24,20,.06) 100%);pointer-events:none;}
.afva-product-card__media img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;transition:transform .5s cubic-bezier(.2,.7,.2,1);}
@media(hover:hover) and (pointer:fine){.afva-product-card:hover .afva-product-card__media img{transform:scale(1.025);}}
.afva-product-card__placeholder{display:grid;place-items:center;width:100%;height:100%;color:#66715d;background:linear-gradient(135deg,#e7ecdf,#f4eee4);}
.afva-product-card__placeholder .afva-home-icon{width:46px;height:46px;}
.afva-product-card__media-top{position:absolute;z-index:3;top:14px;left:14px;right:14px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;}
.afva-product-card__category,.afva-product-card__availability{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:rgba(255,253,249,.93);color:#625b54;font-size:10px;font-weight:800;line-height:1;text-transform:uppercase;letter-spacing:.055em;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);white-space:nowrap;}
.afva-product-card__category{max-width:58%;overflow:hidden;text-overflow:ellipsis;}
.afva-product-card__availability{gap:7px;color:#725a31;text-transform:none;letter-spacing:0;font-size:10.5px;}
.afva-product-card__status-dot{width:6px;height:6px;border-radius:50%;background:#81955e;box-shadow:0 0 0 3px rgba(129,149,94,.10);}
.afva-product-card__availability.is-sob-encomenda .afva-product-card__status-dot{background:#b18b52;box-shadow:0 0 0 3px rgba(177,139,82,.11);}
.afva-product-card__availability.is-indisponivel{color:#89564f;}
.afva-product-card__availability.is-indisponivel .afva-product-card__status-dot{background:#b36a61;box-shadow:0 0 0 3px rgba(179,106,97,.10);}
.afva-product-card__image-arrow{position:absolute;z-index:3;right:14px;bottom:14px;display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:rgba(255,253,249,.94);color:var(--afva-home-text);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:transform .2s ease;}
.afva-product-card:hover .afva-product-card__image-arrow{transform:translate(2px,-2px);}
.afva-product-card__image-arrow .afva-home-icon{width:18px;height:18px;}
.afva-product-card__body{display:flex;flex:1;flex-direction:column;padding:15px 8px 0;}
.afva-product-card__title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;}
.afva-product-card__title-row h3{min-width:0;margin:0!important;font-family:"Newsreader",Georgia,serif!important;font-size:23px!important;line-height:1.08!important;font-weight:500!important;letter-spacing:-.025em!important;}
.afva-product-card__title-row h3 a{color:var(--afva-home-text)!important;text-decoration:none!important;}
.afva-product-card__price{flex:0 0 auto;padding-top:4px;color:#5e5852;font-size:11.5px;font-weight:800;white-space:nowrap;}
.afva-product-card__description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:43px;margin:9px 0 17px!important;color:var(--afva-home-muted)!important;font-size:12px!important;line-height:1.6!important;}
.afva-product-card__actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;}
.afva-product-card__link{display:inline-flex;align-items:center;gap:7px;color:var(--afva-home-terr)!important;text-decoration:none!important;font-size:11px!important;font-weight:800!important;white-space:nowrap;}
.afva-product-card__link .afva-home-icon{width:15px;height:15px;transition:transform .2s ease;}
.afva-product-card__link:hover .afva-home-icon{transform:translateX(3px);}
.afva-product-card__whatsapp{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:39px!important;padding:0 13px!important;border-radius:999px!important;background:#47443a!important;color:#fff!important;text-decoration:none!important;font-size:10px!important;line-height:1!important;font-weight:700!important;box-shadow:none!important;transition:transform .2s ease,background .2s ease!important;white-space:nowrap;}
.afva-product-card__whatsapp:hover{transform:translateY(-1px);background:#33312c!important;color:#fff!important;}
.afva-product-card__whatsapp .afva-home-icon{width:15px;height:15px;}
.afva-home-products__progress{display:flex;justify-content:center;margin-top:30px;}
.afva-home-products__progress-track{position:relative;display:block;width:min(345px,45vw);height:4px;border-radius:999px;background:rgba(94,96,76,.12);overflow:hidden;}
.afva-home-products__progress-thumb{position:absolute;left:0;top:0;display:block;width:24%;height:100%;border-radius:inherit;background:#7e8961;transition:transform .18s ease;}

@media(max-width:1100px){
  .afva-home-products{padding:62px 0 72px;}
  .afva-home-products__track{grid-auto-columns:clamp(295px,31vw,330px);}
  .afva-home-products__heading h2{font-size:52px!important;}
}
@media(max-width:767px){
  .afva-home-products{padding:48px 0 62px;}
    .afva-home-products__inner{width:calc(100% - 34px);}
  .afva-home-products__header{grid-template-columns:1fr;gap:20px;margin-bottom:25px;}
  .afva-home-products__heading h2{font-size:clamp(38px,10vw,48px)!important;}
  .afva-home-products__subtitle{margin-top:13px!important;font-size:13px!important;line-height:1.65!important;}
  .afva-home-products__controls{width:100%;flex-direction:row;align-items:center;justify-content:space-between;padding-top:0;}
  .afva-home-products__all{min-height:44px!important;padding:0 16px!important;font-size:11px!important;}
  .afva-home-products__arrow{width:42px!important;height:42px!important;min-width:42px!important;}
  .afva-home-products__track{grid-auto-columns:84%;gap:15px;--afva-home-peek:28px;}
  .afva-product-card__media{border-radius:19px;}
  .afva-product-card__body{padding:14px 6px 0;}
  .afva-product-card__title-row h3{font-size:23px!important;}
  .afva-home-products__progress{margin-top:24px;}
  .afva-home-products__progress-track{width:52vw;}
}
@media(max-width:520px){
  .afva-home-products__controls{align-items:flex-start;gap:12px;}
  .afva-home-products__all span{max-width:130px;white-space:normal;text-align:center;line-height:1.2;}
  .afva-home-products__track{grid-auto-columns:88%;}
  .afva-product-card__media-top{top:11px;left:11px;right:11px;}
  .afva-product-card__category{max-width:50%;}
  .afva-product-card__actions{align-items:flex-start;flex-direction:column;}
  .afva-product-card__whatsapp{width:100%;}
}
@media(prefers-reduced-motion:reduce){
  .afva-home-products__track{scroll-behavior:auto;}
  .afva-product-card__media img,.afva-product-card__image-arrow,.afva-home-products__arrow,.afva-product-card__whatsapp,.afva-home-products__progress-thumb{transition:none!important;}
}

/* Elementor live preview */
body.elementor-editor-active .afva-home-products{width:100%!important;max-width:100%!important;overflow:hidden!important;}
body.elementor-editor-active .afva-home-products__inner{width:min(1160px,calc(100% - 40px))!important;max-width:1160px!important;}
body.elementor-editor-active .afva-home-products__viewport{width:100%!important;margin-left:0!important;}
body.elementor-editor-active .afva-home-products__track{width:100%!important;max-width:100%!important;min-width:0!important;grid-auto-columns:calc((100% - 48px)/3)!important;}
body.elementor-editor-active .afva-product-card{min-width:0!important;max-width:none!important;}
body.elementor-editor-active .afva-product-card__media{width:100%!important;max-width:100%!important;}
body.elementor-editor-active .afva-product-card__media img{width:100%!important;height:100%!important;max-width:none!important;}
body.elementor-editor-active .afva-home-products__arrow{font-size:0!important;line-height:0!important;}
body.elementor-editor-active .afva-home-products__arrow .afva-home-icon{display:block!important;width:20px!important;height:20px!important;}
@media(max-width:1024px){body.elementor-editor-active .afva-home-products__track{grid-auto-columns:calc((100% - 24px)/2)!important;}}
@media(max-width:767px){body.elementor-editor-active .afva-home-products__track{grid-auto-columns:86%!important;}}


/* v0.9.3 — até 3 produtos ficam alinhados ao grid do conteúdo.
   O efeito carrossel infinito só entra com 4+ produtos. */
.afva-home-products.is-static .afva-home-products__viewport{
  width:100%;
  margin-left:0;
  overflow:visible;
}
.afva-home-products.is-static .afva-home-products__track{
  display:grid;
  width:100%;
  max-width:100%;
  overflow:visible;
  padding:0;
  scroll-snap-type:none;
  scroll-padding-inline:0;
  grid-auto-flow:initial;
}
.afva-home-products.is-static.count-1 .afva-home-products__track{
  grid-template-columns:minmax(0,360px);
}
.afva-home-products.is-static.count-2 .afva-home-products__track{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.afva-home-products.is-static.count-3 .afva-home-products__track{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.afva-home-products.is-static .afva-product-card{
  width:100%;
  min-width:0;
  margin:0;
}
.afva-home-products.is-static .afva-home-products__arrows,
.afva-home-products.is-static .afva-home-products__progress{
  display:none!important;
}

/* Preview no Elementor para 1–3 produtos */
body.elementor-editor-active .afva-home-products.is-static .afva-home-products__viewport{
  width:100%!important;
  margin-left:0!important;
  overflow:visible!important;
}
body.elementor-editor-active .afva-home-products.is-static .afva-home-products__track{
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  grid-auto-flow:initial!important;
  padding:0!important;
}
body.elementor-editor-active .afva-home-products.is-static.count-1 .afva-home-products__track{
  grid-template-columns:minmax(0,360px)!important;
}
body.elementor-editor-active .afva-home-products.is-static.count-2 .afva-home-products__track{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body.elementor-editor-active .afva-home-products.is-static.count-3 .afva-home-products__track{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.elementor-editor-active .afva-home-products.is-static .afva-product-card{
  max-width:none!important;
}
body.elementor-editor-active .afva-home-products.is-static .afva-home-products__arrows,
body.elementor-editor-active .afva-home-products.is-static .afva-home-products__progress{
  display:none!important;
}

@media(max-width:1024px){
  .afva-home-products.is-static.count-2 .afva-home-products__track,
  .afva-home-products.is-static.count-3 .afva-home-products__track{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.elementor-editor-active .afva-home-products.is-static.count-2 .afva-home-products__track,
  body.elementor-editor-active .afva-home-products.is-static.count-3 .afva-home-products__track{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:767px){
  .afva-home-products.is-static.count-1 .afva-home-products__track,
  .afva-home-products.is-static.count-2 .afva-home-products__track,
  .afva-home-products.is-static.count-3 .afva-home-products__track{
    grid-template-columns:1fr;
  }
  .afva-home-products.is-static .afva-product-card{
    max-width:420px;
    margin:0 auto;
  }
  body.elementor-editor-active .afva-home-products.is-static.count-1 .afva-home-products__track,
  body.elementor-editor-active .afva-home-products.is-static.count-2 .afva-home-products__track,
  body.elementor-editor-active .afva-home-products.is-static.count-3 .afva-home-products__track{
    grid-template-columns:1fr!important;
  }
}

.afva-product-card__availability.is-misto{
  color:#68714d;
}
.afva-product-card__availability.is-misto .afva-product-card__status-dot{
  background:#8d9a68;
  box-shadow:0 0 0 3px rgba(141,154,104,.11);
}


/* v0.9.13 — proteção mobile do carrossel público */
@media(max-width:767px){
  .afva-home-products{
    overflow:hidden!important;
  }
  .afva-home-products__inner{
    width:calc(100% - 28px)!important;
    max-width:100%!important;
  }
  .afva-home-products__header,
  .afva-home-products__heading,
  .afva-home-products__controls{
    max-width:100%!important;
    min-width:0!important;
  }
  .afva-home-products__heading h2{
    font-size:clamp(36px,10.5vw,46px)!important;
    overflow-wrap:anywhere!important;
  }
  .afva-home-products__controls{
    gap:10px!important;
    flex-wrap:wrap!important;
  }
  .afva-home-products__all{
    max-width:100%!important;
  }
  .afva-home-products.is-static .afva-product-card{
    width:100%!important;
    max-width:420px!important;
  }
  .afva-product-card__title-row{
    min-width:0!important;
  }
  .afva-product-card__title-row h3{
    min-width:0!important;
    overflow-wrap:anywhere!important;
  }
  .afva-product-card__actions{
    width:100%!important;
  }
}


/* ==========================================================================
   v0.9.16 — CTAs centralizados no carrossel mobile
   ========================================================================== */
@media(max-width:767px){
  .afva-product-card__actions{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:14px!important;
    width:100%!important;
    margin-top:auto!important;
    text-align:center!important;
  }

  .afva-product-card__link{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    margin:0 auto!important;
    text-align:center!important;
  }

  .afva-product-card__whatsapp{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    text-align:center!important;
  }
}

/* Mesmo comportamento dentro do preview mobile do Elementor. */
@media(max-width:767px){
  body.elementor-editor-active .afva-product-card__actions{
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
  body.elementor-editor-active .afva-product-card__link{
    margin-inline:auto!important;
    justify-content:center!important;
  }
  body.elementor-editor-active .afva-product-card__whatsapp{
    margin-inline:auto!important;
    justify-content:center!important;
  }
}


/* ==========================================================================
   v0.9.17 — mobile: primeiro card sem corte e leitura alinhada
   ========================================================================== */
@media(max-width:767px){
  /* No mobile, o ribbon deixa de ser full-bleed para o primeiro card não cortar. */
  .afva-home-products__viewport{
    width:100%!important;
    margin-left:0!important;
    overflow:hidden!important;
  }

  .afva-home-products__track{
    grid-auto-columns:88%!important;
    gap:16px!important;
    padding:0 0 10px!important;
    scroll-padding-inline:0!important;
  }

  .afva-product-card{
    min-width:0!important;
  }

  .afva-product-card__body{
    padding:14px 2px 0!important;
    overflow:visible!important;
  }

  .afva-product-card__title-row,
  .afva-product-card__description,
  .afva-product-card__actions{
    width:100%!important;
    min-width:0!important;
  }

  .afva-product-card__description,
  .afva-product-card__title-row h3,
  .afva-product-card__price{
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
}

/* Preview mobile do Elementor com o mesmo alinhamento. */
@media(max-width:767px){
  body.elementor-editor-active .afva-home-products__viewport{
    width:100%!important;
    margin-left:0!important;
  }
  body.elementor-editor-active .afva-home-products__track{
    grid-auto-columns:88%!important;
    gap:16px!important;
    padding:0 0 10px!important;
    scroll-padding-inline:0!important;
  }
}


/* ==========================================================================
   v0.10.2 — WhatsApp mais limpo no carrossel da Home
   ========================================================================== */
.afva-product-card__whatsapp{
  gap:0!important;
  padding-inline:16px!important;
}
.afva-product-card__whatsapp .afva-home-icon{
  display:none!important;
}


/* v0.10.3 — botão de WhatsApp sem ícone, mais clean */
.afva-product-card__whatsapp{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;padding-inline:16px!important;}
.afva-product-card__whatsapp .afva-home-icon{display:none!important;}
