/* ==========================================================================
   VITRINE HERO - Nível Premium
   Imagens com fundos diferentes resolvidos com overlay inteligente
   ========================================================================== */

:root {
  --befu-red: #DE0412;
  --befu-yellow: #FDD01D;
  --befu-bg: #0A0A0F;
  --befu-text: #FFFFFF;
  --befu-text-secondary: rgba(255, 255, 255, 0.85);
  --befu-text-tertiary: rgba(255, 255, 255, 0.5);
  --befu-radius: 14px;
}















/* ==========================================
   CONTAINER - Sempre 1 card
   ========================================== */
.befu-vitrine-hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  font-family: 'Inter', sans-serif;
}












/* ==========================================
   HEADER
   ========================================== */
.befu-vitrine-hero .header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.befu-vitrine-hero .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.befu-vitrine-hero .header-left .icon {
  font-size: 28px;
}

.befu-vitrine-hero .header-left .title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.befu-vitrine-hero .header-left .title span {
  background: linear-gradient(135deg, #DE0412, #FDD01D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.befu-vitrine-hero .header-left .subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.befu-vitrine-hero .header-right {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  padding: 4px 14px;
  border-radius: 20px;
  border: 0 solid rgba(255,255,255,0.06);
}











/* ==========================================
   TRACK - Scroll horizontal (sempre 1 card)
   ========================================== */
.befu-vitrine-hero .track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
  margin: 0 -4px;
  scrollbar-width: none;
}

.befu-vitrine-hero .track::-webkit-scrollbar {
  display: none;
}











/* ==========================================
   CARD HERO - Imagem Dominante
   ========================================== */
.befu-vitrine-hero .card {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  border-radius: var(--befu-radius);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  max-height: 320px;
  background: var(--befu-bg);
  transition: box-shadow 0.4s ease;
}


.befu-vitrine-hero .card:active {
  transform: scale(0.97);
}

@media (min-width: 768px) {
  .befu-vitrine-hero .card:hover {
    transform: scale(1.01);
  }
}



/* ==========================================
   IMAGEM - Sempre cobre o card
   ========================================== */
.befu-vitrine-hero .card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.befu-vitrine-hero .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: cinematicZoom 8s ease-in-out infinite alternate;
}

.befu-vitrine-hero .card:hover .card-image img {
  transform: scale(1.05);
}


@keyframes cinematicZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}


.befu-vitrine-hero .card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(222,4,18,0.05) 50%,
    rgba(253,208,29,0.05) 60%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: holographic 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes holographic {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}





/* ==========================================
   OVERLAY - Solução mágica para fundos diferentes
   Gradiente + blur suave = fusão perfeita
   ========================================== */
.befu-vitrine-hero .card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Gradiente que escurece a imagem e cria área para texto */
  background: linear-gradient(
    to right,
    rgba(10, 10, 15, 0.85) 0%,
    rgba(10, 10, 15, 0.5) 35%,
    rgba(10, 10, 15, 0.15) 60%,
    transparent 80%
  );
  /* Segunda camada: gradiente vertical para suavizar */
  background-blend-mode: multiply;
}

/* Camada extra de blur para imagens com fundo muito claro */
.befu-vitrine-hero .card-overlay-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0.3;
  pointer-events: none;
}

/* ==========================================
   CONTEÚDO - Texto sobre a imagem
   ========================================== */
.befu-vitrine-hero .card-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  max-height: 320px;
}

/* Badge */
.befu-vitrine-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 10px;
  background: rgba(222, 4, 18, 0.25);
  color: #FF6B7A;
  backdrop-filter: blur(4px);
}

.befu-vitrine-hero .badge.trending { background: rgba(222, 4, 18, 0.25); color: #FF6B7A; border-color: rgba(222, 4, 18, 0.2); }
.befu-vitrine-hero .badge.cart { background: rgba(255, 107, 53, 0.2); color: #FF8A5C; border-color: rgba(255, 107, 53, 0.15); }
.befu-vitrine-hero .badge.search { background: rgba(108, 99, 255, 0.2); color: #9B94FF; border-color: rgba(108, 99, 255, 0.15); }
.befu-vitrine-hero .badge.recompra { background: rgba(0, 184, 148, 0.2); color: #55D6B0; border-color: rgba(0, 184, 148, 0.15); }











/* Nome do produto */
.befu-vitrine-hero .name {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 2px 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.befu-vitrine-hero .name small {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0;
}









/* Avaliação */
.befu-vitrine-hero .rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 6px;
}

.befu-vitrine-hero .rating .stars {
  color: #FDD01D;
  font-size: 14px;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(253, 208, 29, 0.2);
}

.befu-vitrine-hero .rating .count {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}












/* Preço */
.befu-vitrine-hero .price {
  font-size: 30px;
  font-weight: 900;
  color: #FDD01D;
  margin: 4px 0 12px;
  text-shadow: 0 0 40px rgba(253, 208, 29, 0.15);
}














/* Botão */
.befu-vitrine-hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #DE0412, #B0030E);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: fit-content;
  box-shadow: 0 4px 24px rgba(222, 4, 18, 0.25);
}

.befu-vitrine-hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(222, 4, 18, 0.35);
}

.befu-vitrine-hero .btn .arrow {
  transition: transform 0.3s;
}

.befu-vitrine-hero .btn:hover .arrow {
  transform: translateX(6px);
}















/* ==========================================
   DOTS
   ========================================== */
.befu-vitrine-hero .dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.befu-vitrine-hero .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.befu-vitrine-hero .dot.active {
  width: 36px;
  background: linear-gradient(90deg, #DE0412, #FDD01D);
  border-radius: 4px;
}











/* ==========================================
   CONTADOR FLUTUANTE
   ========================================== */
.befu-vitrine-hero .counter-float {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -28px;
  position: relative;
  z-index: 10;
  padding-right: 6px;
}

.befu-vitrine-hero .counter-float span {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}








/* ==========================================
   RESPONSIVO - SEMPRE 1 CARD
   ========================================== */
@media (min-width: 768px) {
  .befu-vitrine-hero {
    padding: 20px 24px;
  }
  
  .befu-vitrine-hero .card {
    min-height: 280px;
    max-height: 380px;
  }
  
  .befu-vitrine-hero .card-content {
    padding: 32px 28px;
    min-height: 280px;
    max-height: 380px;
  }
  
  .befu-vitrine-hero .name {
    font-size: 38px;
  }
  
  .befu-vitrine-hero .name small {
    font-size: 20px;
  }
  
  .befu-vitrine-hero .price {
    font-size: 38px;
  }
  
  .befu-vitrine-hero .dots {
    display: none;
  }
  
  .befu-vitrine-hero .counter-float {
    display: none;
  }
}

@media (min-width: 1024px) {
  .befu-vitrine-hero .card {
    min-height: 340px;
    max-height: 440px;
  }
  
  .befu-vitrine-hero .card-content {
    padding: 40px 36px;
    min-height: 340px;
    max-height: 440px;
  }
  
  .befu-vitrine-hero .name {
    font-size: 48px;
  }
  
  .befu-vitrine-hero .name small {
    font-size: 24px;
  }
  
  .befu-vitrine-hero .price {
    font-size: 44px;
  }
}

@media (min-width: 1400px) {
  .befu-vitrine-hero .card {
    min-height: 400px;
    max-height: 500px;
  }
  
  .befu-vitrine-hero .card-content {
    padding: 48px 44px;
    min-height: 400px;
    max-height: 500px;
  }
  
  .befu-vitrine-hero .name {
    font-size: 56px;
  }
  
  .befu-vitrine-hero .name small {
    font-size: 28px;
  }
  
  .befu-vitrine-hero .price {
    font-size: 52px;
  }
}