/* ============================================================
   KI DELÍCIA SALGADOS — home.css (página inicial)
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--surface2);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Fundo decorativo */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 60px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 18px;
}
.hero__title span {
  color: var(--primary-dark);
}

.hero__desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Tags abaixo dos botões */
.hero__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(0,0,0,.06);
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Imagem hero */
.hero__media {
  position: relative;
}
.hero__img-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.hero__img-wrap:hover img { transform: scale(1.04); }

/* Fallback */
.hero__img-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted2);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.hero__img-fallback svg { opacity: .3; }
.hero__img-wrap.no-img .hero__img-fallback { display: flex; }
.hero__img-wrap.no-img img { display: none; }

/* Badge flutuante sobre a imagem */
.hero__badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatBadge 3s ease-in-out infinite;
}
.hero__badge-icon {
  font-size: 28px;
  line-height: 1;
}
.hero__badge-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}
.hero__badge-text span {
  font-size: 11px;
  color: rgba(255,255,255,.55);
}
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── SEÇÃO GENÉRICA ──────────────────────────────────────── */
.section { padding: 56px 0; }
.section--alt { background: var(--surface2); }
.section__head { margin-bottom: 36px; }
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.section__sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
}

/* ── CARDS DE PRODUTO ────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
  cursor: pointer;
}
.pCard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pCard__img {
  height: 200px;
  overflow: hidden;
  background: var(--surface2);
  position: relative;
}
.pCard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.pCard:hover .pCard__img img { transform: scale(1.07); }
.pCard__img.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.pCard__price-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
}

.pCard__body {
  padding: 18px 20px 20px;
}
.pCard__body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 6px;
}
.pCard__body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── CARD ESPECIAL (Kit) ─────────────────────────────────── */
.pCard--kit {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pCard--kit h3 { color: var(--primary); }
.pCard--kit p { color: rgba(255,255,255,.6); }
.pCard--kit:hover { border-color: var(--primary); }

/* ── DESTAQUES (produtos com ativo=1 do BD) ──────────────── */
/* Mostrar mensagem quando vazio */
.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--muted);
  border: 2px dashed var(--border);
  border-radius: var(--r-xl);
  font-size: 15px;
}

/* ── STRIP CTA ───────────────────────────────────────────── */
.strip {
  background: var(--primary);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.strip::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
}
.strip::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -40px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
}
.strip__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.strip__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 6px;
}
.strip__text p {
  font-size: 15px;
  color: rgba(0,0,0,.60);
}

/* ── RESPONSIVO ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 36px;
  }
  .hero__badge { bottom: 12px; left: 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero {
    overflow: visible; /* não corta o badge */
  }
  .hero__grid {
    padding: 28px 0 32px;
    gap: 24px;
  }
  .hero__title {
    font-size: 34px;
  }
  .hero__desc {
    font-size: 15px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__badge {
    position: relative;
    bottom: auto; left: auto;
    display: inline-flex;
    margin-top: 12px;
    width: fit-content;
  }
  .products-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .strip__inner { flex-direction: column; text-align: center; }
  .strip__inner .btn { width: 100%; justify-content: center; }
}
/* ================================
   FIX: Hero (imagem) com respiro no mobile
   ================================ */

/* garante padding padrão do container no mobile */
.container{
  padding-left: 16px;
  padding-right: 16px;
}

/* evita qualquer overflow encostando na tela */
.hero{
  overflow: hidden;
}

/* dá um “respiro” extra na área da mídia no mobile */
@media (max-width: 640px){
  .hero__media{
    margin-top: 14px;
  }
}
/* Área da imagem do card */
.pCard__img{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;   /* padrão bonito */
  background: #f5f5f5;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagem dentro do card */
.pCard__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 🔥 AQUI é o segredo */
  object-position: center;
  display: block;
}
.container{ padding-left: 18px; padding-right: 18px; }

/* ================================
   CARDS — IMAGENS PADRÃO BONITAS
================================ */
.pCard__img{
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #f6f6f6;
  aspect-ratio: 16 / 10;     /* padroniza altura */
  position: relative;
}
.pCard__img img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;         /* comida fica linda */
  object-position: center;
}

/* bebidas/embalagens (não cortar) */
.pCard__img--contain img{
  object-fit: contain;
  padding: 14px;
  background: #fff;
}

/* ================================
   DESCONTO — BORDA + PULSO
================================ */
.pCard--discount{
  border: 2px solid rgba(231, 76, 60, .30);
  box-shadow: 0 10px 30px rgba(231,76,60,.10);
  animation: cardPulse 1.6s ease-in-out infinite;
}
@keyframes cardPulse{
  0%   { transform: translateY(0);   box-shadow: 0 10px 30px rgba(231,76,60,.10); }
  50%  { transform: translateY(-2px);box-shadow: 0 14px 36px rgba(231,76,60,.18); }
  100% { transform: translateY(0);   box-shadow: 0 10px 30px rgba(231,76,60,.10); }
}

/* badge % */
.pCard__off-badge{
  position:absolute;
  right: 12px;
  bottom: 12px;
  background: #e74c3c;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(231,76,60,.25);
  border: 1px solid rgba(255,255,255,.45);
}

/* ================================
   DESCONTO — BORDA + PULSO (SEM BRIGAR COM HOVER)
================================ */
.pCard--discount{
  border: 2px solid rgba(231, 76, 60, .35);
  box-shadow: 0 10px 30px rgba(231,76,60,.10);
}

/* badge % com pulso */
.pCard__off-badge{
  position:absolute;
  right: 12px;
  bottom: 12px;
  background: #e74c3c;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(231,76,60,.25);
  border: 1px solid rgba(255,255,255,.45);
  z-index: 3;
  animation: badgePulse 1.2s ease-in-out infinite;
}

/* anel pulsando */
.pCard__off-badge::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  border: 2px solid rgba(231,76,60,.35);
  opacity: 0;
  transform: scale(.9);
  animation: ringPulse 1.2s ease-out infinite;
}

@keyframes badgePulse{
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.06); }
}

@keyframes ringPulse{
  0%   { opacity: .55; transform: scale(.9); }
  100% { opacity: 0;   transform: scale(1.35); }
}
.pCard__old s{
  text-decoration-thickness: 2px;
  opacity: .9;
}
/* Alinha preço antigo e botão lado a lado */
.pCard__actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

/* Preço antigo */
.pCard__old{
  font-size: 16px;
  font-weight: 800;
  color: #FF0000;
  white-space: nowrap;
}

.pCard__old s{
  text-decoration-thickness: 2px;
}
.pCard__actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.pCard__prices{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.pCard__price{
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

.pCard__old{
  font-size: 12px;
  font-weight: 700;
  color: #888;
}

.pCard__old s{
  text-decoration-thickness: 2px;
}
.products-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* tablet */
@media (max-width: 900px){
  .products-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* celular */
@media (max-width: 640px){
  .products-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
/* =================================
   TITULO DO PRODUTO MAIS BONITO
================================= */
.pCard__body h3{
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;      /* máximo 2 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =================================
   PREÇO + BOTÃO ALINHADOS
================================= */
.pCard__actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.pCard__price{
  font-size:16px;
  font-weight:900;
}

/* botão menor no mobile */
@media (max-width:640px){

  .pCard__body{
    padding:12px 14px 14px;
  }

  .pCard__actions .btn{
    font-size:12px;
    padding:8px 12px;
    border-radius:999px;
    white-space:nowrap;
  }

}