/* ============================================================
   D'LICIAS GOURMET — COMPONENTES
   Botões, header, cards, slider e botões flutuantes
   ============================================================ */

/* ------------------------------------------------------------
   BOTÕES
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-corpo);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--branco);
  background: var(--rosa-forte);
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  text-align: center;
  transition: transform var(--t-rapida), box-shadow var(--t), color var(--t-rapida), background var(--t-rapida), border-color var(--t-rapida);
  box-shadow: var(--sombra-sm);
}

.btn:hover  { transform: translateY(-3px); box-shadow: var(--sombra); }
.btn:active { transform: translateY(-1px); }

.btn__icon { width: 18px; height: 18px; flex: none; }
.icon-whats { fill: currentColor; stroke: none; }

/* Verde WhatsApp — a ação principal do site */
.btn--whats {
  background: linear-gradient(135deg, #25D366 0%, #17A34A 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(23, 163, 74, .3);
}
.btn--whats:hover {
  background: linear-gradient(135deg, #2AE372 0%, #129242 100%);
  box-shadow: 0 16px 38px rgba(23, 163, 74, .4);
}

/* Dourado — acabamento da marca */
.btn--gold {
  background: var(--grad-dourado);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #4A3608;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: var(--sombra-gold);
  transition: background-position .6s ease, transform var(--t-rapida), box-shadow var(--t);
}
.btn--gold:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 44px rgba(166, 124, 31, .38);
}

/* Contorno */
.btn--outline {
  background: transparent;
  color: var(--rosa-escuro);
  border-color: var(--rosa-suave);
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--branco);
  border-color: var(--rosa-medio);
  color: var(--rosa-forte);
}

/* Branco (sobre fundo colorido) */
.btn--white {
  background: var(--branco);
  color: var(--rosa-escuro);
}
.btn--white:hover { color: var(--rosa-forte); }

.btn--sm { padding: .62rem 1.25rem; font-size: .82rem; }
.btn--lg { padding: 1.05rem 2.3rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(217, 85, 123, .08);
  transition: height var(--t), background var(--t), box-shadow var(--t);
}

.header.is-scrolled {
  height: 66px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 6px 30px rgba(178, 59, 94, .09);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
}

.logo__img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform var(--t);
}
.logo__img.is-missing { display: none; }
.logo:hover .logo__img { transform: rotate(-4deg) scale(1.05); }

.logo__text { display: flex; flex-direction: column; line-height: 1; }

.logo__name {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  background: var(--grad-dourado-texto);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--dourado);
}

.logo__sub {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--rosa-forte);
  margin-top: 2px;
}

/* Navegação */
.nav__list { display: flex; align-items: center; gap: .35rem; }

.nav__link {
  position: relative;
  display: block;
  padding: .5rem .85rem;
  font-size: .87rem;
  font-weight: 500;
  color: var(--tinta-suave);
  border-radius: 999px;
  transition: color var(--t-rapida);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-dourado);
  transform: translateX(-50%);
  transition: width var(--t);
}

.nav__link:hover { color: var(--rosa-forte); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 22px; }
.nav__link.is-active { color: var(--rosa-forte); font-weight: 600; }

/* Botão de WhatsApp dentro do menu — só aparece no mobile */
.nav__cta { display: none; }

/* Véu do menu — ativado apenas no responsivo */
.nav-overlay { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: none;
}

/* Botão hambúrguer */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 50%;
  background: var(--rosa-claro);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--rosa-escuro);
  transition: transform var(--t), opacity var(--t-rapida);
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   ELEMENTOS DE SEÇÃO
------------------------------------------------------------ */
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section__eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rosa-forte);
  margin-bottom: .9rem;
}

.section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--grad-dourado);
  vertical-align: middle;
  margin-right: .7rem;
}

.section__title { margin-bottom: 1.1rem; }

.section__lead {
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  color: var(--tinta-suave);
  max-width: 60ch;
}
.section__lead--center { margin-inline: auto; }

/* Chamada de WhatsApp no fim de cada seção */
.section__cta {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  text-align: center;
}

.section__cta-text {
  font-family: var(--font-titulo);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: var(--rosa-escuro);
  margin-bottom: 1rem;
}

/* Etiqueta com pontinho */
.tagline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1.1rem .45rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--rosa-suave);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--rosa-escuro);
  box-shadow: var(--sombra-sm);
}

.tagline__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rosa-forte);
  box-shadow: 0 0 0 0 rgba(217, 85, 123, .6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(217, 85, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 85, 123, 0); }
}

/* ------------------------------------------------------------
   MOLDURAS DE IMAGEM (placeholder enquanto não há foto)
------------------------------------------------------------ */
.frame__placeholder,
.hero__placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-align: center;
  padding: 1rem;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .5) 0 12px, transparent 12px 24px),
    var(--grad-rosa);
  color: var(--branco);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
}

.frame__placeholder svg,
.hero__placeholder svg { width: 34px; height: 34px; opacity: .9; }

.is-empty img { display: none; }
.is-empty .frame__placeholder,
.is-empty .hero__placeholder { display: flex; }

/* ------------------------------------------------------------
   SLIDER (seção Sobre)
------------------------------------------------------------ */
.slider {
  position: relative;
  border-radius: var(--raio-xl) var(--raio-xl) var(--raio-lg) var(--raio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-lg);
  border: 8px solid var(--branco);
  background: var(--rosa-claro);
}

.slider__viewport {
  position: relative;
  aspect-ratio: 3 / 4;
}

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transform: scale(1.04);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform 1.4s cubic-bezier(.16, 1, .3, 1);
}

/* A foto que sai continua opaca por baixo — evita o efeito "fantasma"
   de ver as duas imagens transparentes ao mesmo tempo. */
.slider__slide.is-prev {
  opacity: 1;
  z-index: 1;
  transition: none;
}

.slider__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Setas */
.slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .88);
  color: var(--rosa-escuro);
  box-shadow: var(--sombra-sm);
  opacity: 0;
  transition: opacity var(--t), background var(--t-rapida), color var(--t-rapida);
}

.slider:hover .slider__nav,
.slider__nav:focus-visible { opacity: 1; }

.slider__nav:hover { background: var(--rosa-forte); color: #fff; }
.slider__nav svg { width: 20px; height: 20px; }

.slider__nav--prev { left: 12px; }
.slider__nav--next { right: 12px; }

/* Pontinhos */
.slider__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: .45rem;
  transform: translateX(-50%);
  padding: .4rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(6px);
}

.slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rosa-suave);
  transition: width var(--t), background var(--t-rapida);
}

.slider__dot.is-active {
  width: 26px;
  background: var(--grad-dourado);
}

/* ------------------------------------------------------------
   CARD DE PRODUTO
------------------------------------------------------------ */
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border-radius: var(--raio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  border: 1px solid rgba(217, 85, 123, .07);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-lg);
  border-color: var(--rosa-suave);
}

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rosa-claro);
}

/* ---- Álbum de fotos do card ---- */
.pgal {
  position: absolute;
  inset: 0;
}

.pgal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity .45s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
}

/* A foto que sai continua opaca por baixo — evita ver as duas ao mesmo tempo */
.pgal__img.is-prev   { opacity: 1; z-index: 1; transition: none; }
.pgal__img.is-active { opacity: 1; z-index: 2; }

.product:hover .pgal__img.is-active { transform: scale(1.06); }

/* Setas */
.pgal__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .9);
  color: var(--rosa-escuro);
  box-shadow: var(--sombra-sm);
  opacity: 0;
  transition: opacity var(--t), background var(--t-rapida), color var(--t-rapida);
}

.product:hover .pgal__nav,
.pgal__nav:focus-visible { opacity: 1; }

.pgal__nav:hover { background: var(--rosa-forte); color: #fff; }
.pgal__nav svg { width: 17px; height: 17px; }

.pgal__nav--prev { left: 10px; }
.pgal__nav--next { right: 10px; }

/* Contador */
.pgal__count {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 4;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: rgba(58, 42, 48, .55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.pgal__count b { font-weight: 700; }

/* Pontinhos (só quando são poucas fotos) */
.pgal__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 4;
  display: flex;
  gap: .35rem;
  transform: translateX(-50%);
  padding: .3rem .5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(5px);
}

.pgal__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--rosa-suave);
  transition: width var(--t), background var(--t-rapida);
}

.pgal__dot.is-active {
  width: 20px;
  background: var(--grad-dourado);
}

/* Fundo decorado. Fica sempre no fundo do card: se não houver foto
   cadastrada — ou se alguma falhar ao carregar — ele aparece sozinho,
   sem imagem quebrada. */
.product__ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  background: linear-gradient(150deg, var(--rosa-claro) 0%, #fff 55%, var(--dourado-luz) 130%);
}

.product__ph-emoji {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(178, 59, 94, .18));
}

.product__ph-text {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rosa-medio);
}

.product__badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 5;   /* acima das fotos do álbum */
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--grad-dourado);
  color: #4A3608;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(166, 124, 31, .3);
}

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
  padding: 1.3rem 1.4rem 1.5rem;
}

.product__cat {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rosa-medio);
}

.product__name { font-size: 1.28rem; line-height: 1.2; }

.product__desc {
  font-size: .87rem;
  color: var(--tinta-suave);
  line-height: 1.6;
  flex: 1;
}

/* Botão de WhatsApp do card */
.product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .8rem;
  padding: .78rem 1.1rem;
  border-radius: 999px;
  background: #F0FAF3;
  color: #17A34A;
  font-size: .84rem;
  font-weight: 600;
  transition: background var(--t-rapida), color var(--t-rapida), box-shadow var(--t);
}

.product__cta svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }

.product__cta:hover {
  background: linear-gradient(135deg, #25D366 0%, #17A34A 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 163, 74, .28);
}

/* ------------------------------------------------------------
   FILTROS
------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.filter {
  padding: .6rem 1.35rem;
  border-radius: 999px;
  background: var(--branco);
  border: 1px solid rgba(217, 85, 123, .16);
  color: var(--tinta-suave);
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--t-rapida);
  box-shadow: var(--sombra-sm);
}

.filter:hover {
  color: var(--rosa-forte);
  border-color: var(--rosa-medio);
  transform: translateY(-2px);
}

.filter.is-active {
  background: var(--grad-rosa);
  border-color: transparent;
  color: var(--branco);
  box-shadow: 0 8px 22px rgba(217, 85, 123, .3);
}

.filter__count {
  display: inline-block;
  margin-left: .4rem;
  font-size: .7rem;
  opacity: .65;
}

/* ------------------------------------------------------------
   CARD DE BENEFÍCIO (revenda)
------------------------------------------------------------ */
.card-benefit {
  padding: 2rem 1.7rem;
  background: var(--branco);
  border-radius: var(--raio-lg);
  border: 1px solid rgba(217, 85, 123, .08);
  box-shadow: var(--sombra-sm);
  text-align: center;
  transition: transform var(--t), box-shadow var(--t);
}
.card-benefit:hover { transform: translateY(-7px); box-shadow: var(--sombra); }

.card-benefit__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--rosa-claro), var(--dourado-luz));
  font-size: 1.6rem;
}

.card-benefit h3 { margin-bottom: .5rem; }
.card-benefit p { font-size: .88rem; color: var(--tinta-suave); }

/* ------------------------------------------------------------
   CARD DE CONTATO
------------------------------------------------------------ */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.4rem;
  background: var(--branco);
  border-radius: var(--raio);
  border: 1px solid rgba(217, 85, 123, .08);
  box-shadow: var(--sombra-sm);
  transition: transform var(--t-rapida), box-shadow var(--t), border-color var(--t);
}

a.contact-card:hover {
  transform: translateX(6px);
  box-shadow: var(--sombra);
  border-color: var(--rosa-suave);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--rosa-claro), var(--dourado-luz));
  font-size: 1.35rem;
}

.contact-card strong {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rosa-medio);
}

.contact-card__value {
  display: block;
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tinta);
  line-height: 1.25;
}

.contact-card small { font-size: .78rem; color: var(--tinta-fraca); }

/* ------------------------------------------------------------
   BOTÕES FLUTUANTES
------------------------------------------------------------ */
.fab-whats {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  height: 58px;
  padding: 0 20px 0 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366, #129E4E);
  color: #fff;
  box-shadow: 0 12px 30px rgba(18, 158, 78, .38);
  transition: transform var(--t), box-shadow var(--t);
}

.fab-whats:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(18, 158, 78, .45);
}

.fab-whats svg { width: 27px; height: 27px; fill: currentColor; stroke: none; flex: none; }
.fab-whats__label { font-size: .88rem; font-weight: 600; white-space: nowrap; }

.fab-whats::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: ring 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes ring {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.fab-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--branco);
  color: var(--rosa-forte);
  box-shadow: var(--sombra);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--t);
}

.fab-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab-top:hover { background: var(--rosa-forte); color: #fff; }
.fab-top svg { width: 19px; height: 19px; }
