/* ===================================================
    CSS/recentes.css - ESTILOS PREMIUM RECÉM-CHEGADOS 
   =================================================== */

/* ===== VARIÁVEIS ADICIONAIS (ATUALIZADAS PARA DARK) ===== */
:root {
  --success-color: #00a65a;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --info-color: #2196f3;
  --skeleton-color: #2a2a2a;
  --skeleton-highlight: #333;
  
  /* NOVAS VARIAVEIS DO CARD */
  --brand-orange: #FF6600;
  --card-bg-gradient: linear-gradient(165deg, #161616 0%, #241c19 100%);
  --card-border: #332e2b;
}

/* --- Layout Geral das Seções de Coleção --- */
.collection-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}

.collection-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.collection-section .section-header {
    flex-direction: column;
    align-items: flex-start; /* Alinha tudo à esquerda como uma vitrine de luxo */
    text-align: left;
}

.section-titleRECEM {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #ff6600 0%, #ff9100 100%);
    color: #fff !important; /* FORÇA O TEXTO BRANCO PARA APARECER NA CAIXA */
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    margin-bottom: 15px !important;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    border-left: 5px solid #fff; 
    animation: pulseBadge 2s infinite;
    font-family: var(--font-mono);
    /* REMOVA AS LINHAS DE COLOR TRANSPARENT E BACKGROUND-CLIP */
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.section-titleRECEM::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-titleRECEM::after {
    display: none !important;
}

.section-title {
    margin-top: 10px !important;
    display: block;
    width: 100%;
}

/* --- Botões de Navegação dos Carrosséis --- */
.collection-nav {
  display: flex;
  gap: var(--space-sm);
  position: relative;
  z-index: 10;
}

.collection-nav button,
[class*="collection-prev-"],
[class*="collection-next-"] {
  width: 56px;
  height: 56px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.collection-nav button::before,
[class*="collection-prev-"]::before,
[class*="collection-next-"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}

.collection-nav button:hover,
[class*="collection-prev-"]:hover,
[class*="collection-next-"]:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.3);
}

.collection-nav button:hover::before,
[class*="collection-prev-"]:hover::before,
[class*="collection-next-"]:hover::before {
  left: 100%;
}

.collection-nav button.swiper-button-disabled,
[class*="collection-prev-"].swiper-button-disabled,
[class*="collection-next-"].swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --- Estrutura dos Carrosséis (Swiper) --- */
.swiper[class*="collection-swiper"] {
  width: 100%;
  padding: var(--space-xl) calc((100% - 1300px) / 2 + 1.5rem);
  position: relative;
}

.swiper[class*="collection-swiper"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* --- CORREÇÃO DE LARGURA DO SLIDE --- */
.swiper[class*="collection-swiper"] .swiper-slide {
  width: 320px !important;
  max-width: 85vw;
  transition: transform 0.3s ease;
  height: auto;
}

.swiper[class*="collection-swiper"] .swiper-slide:hover {
  transform: translateY(-5px);
}

.swiper[class*="collection-swiper"] .swiper-scrollbar {
  background: var(--surface);
  height: 6px !important;
  border-radius: 3px;
  margin-top: var(--space-xl);
}

.swiper[class*="collection-swiper"] .swiper-scrollbar-drag {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
}

/* ==========================================================
   ===== CARD DE PRODUTO PREMIUM (ATUALIZADO DARK) =====
   ========================================================== */
.product-card {
  background: var(--card-bg-gradient); /* Fundo Dark Degradê */
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: visible; /* Permite a sombra sair */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Sombra inicial suave */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--brand-orange);
  /* Sombra Hover com brilho laranja */
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(255, 102, 0, 0.15);
}

/* Badge Novo */
.product-card::after {
  content: 'NOVO';
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== CONTAINER DA IMAGEM (CORREÇÃO DEFINITIVA) ===== */
.product-image-wrapper {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible; /* Permite sombra */
  
  /* AQUI: O !important VAI FORÇAR O TRANSPARENTE SOBRE O CATÁLOGO */
  background-color: transparent !important; 
  
  /* PADDING 15PX */
  padding: 15px; 
  
  flex-shrink: 0;
  cursor: pointer;
}

/* IMAGEM FLUTUANTE */
.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Sombra 3D no objeto */
  filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.5));
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.12) rotate(-3deg);
  filter: drop-shadow(0px 20px 25px rgba(0, 0, 0, 0.7));
}

/* Informações do Produto (Dark Mode) */
.product-info {
  padding: var(--space-lg);
  background: transparent; /* Fundo transparente para herdar o gradiente */
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex-grow: 1;
  position: relative;
}

.product-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #666; /* Cinza para contraste */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  color: #FFF; /* Título Branco */
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-height: 2.8em;
  text-transform: uppercase;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-orange);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

/* Tag de Frete Grátis (NOVO) */
.product-info .shipping-tag {
  background: transparent;
  color: var(--success-color); /* Verde Neon */
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: none;
}

.product-info .shipping-tag i {
    font-size: 0.85rem;
}

/* Botão Adicionar ao Carrinho (Style Outline) */
.add-to-cart-btn {
  background: transparent;
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  background: var(--brand-orange);
  color: #000;
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* ========================================================
   ===== CARD "VER TODOS" (NOVO) ==========================
   ======================================================== */
.see-all-card {
    height: 100%;
    min-height: 440px; 
    background: linear-gradient(145deg, #121212, #1a1a1a);
    border: 2px dashed #444;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    gap: 15px;
    cursor: pointer;
}

.see-all-card:hover {
    border-color: var(--brand-orange);
    background: linear-gradient(145deg, #1a1a1a, #222);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.see-all-card span {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.see-all-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin: 0;
    padding: 0 10px;
}

.see-all-card:hover h3 {
    color: var(--brand-orange);
}

.see-all-card i {
    font-size: 2rem;
    color: #fff;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.see-all-card:hover i {
    transform: translateX(10px);
    color: var(--brand-orange);
}

/* ===================================================
    APENAS MOBILE - CORREÇÃO DAS IMAGENS SEM BORDAS
   =================================================== */

/* Mobile (até 768px) */
@media (max-width: 768px) {
  .collection-section {
    padding: var(--space-lg) 0;
  }
  
  .collection-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    position: relative;
  }

  /* --- DENTRO DO @media (max-width: 768px) --- */
  .section-titleRECEM {
        padding: 6px 15px; /* Menor no mobile */
        font-size: 0.75rem !important;
        border-left-width: 4px;
        margin-bottom: 10px !important;
    }
    
    .section-title {
        font-size: 2rem !important; /* Ajuste para não ocupar a tela toda */
        margin-top: 5px !important;
    }

  /* Removi a chave que estava sobrando aqui */
  .section-titleRECEM::after {
      display: none !important;
  }

  .collection-section .collection-nav {
      position: absolute;
      bottom: 0;
      right: 1rem;
  }

  .collection-nav button,
  [class*="collection-prev-"],
  [class*="collection-next-"] {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .swiper[class*="collection-swiper"] {
    padding: 1rem !important;
  }

  .swiper[class*="collection-swiper"] .swiper-slide {
    width: 260px !important;
  }

  .product-card, .see-all-card {
    min-height: 400px;
    border-radius: 14px;
  }
  
  .product-card {
    background: var(--card-bg-gradient);
  }

  /* === CORREÇÃO DAS IMAGENS NO MOBILE (10px) === */
  .product-image-wrapper {
    height: 180px !important;
    
    /* PADDING 10PX NO MOBILE */
    padding: 10px !important; 
    
    margin: 0 !important;
    
    /* GARANTINDO TRANSPARENTE TAMBÉM NO MOBILE */
    background-color: transparent !important; 
  }

  .product-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Contain para não cortar a sombra */
    filter: drop-shadow(0px 8px 10px rgba(0,0,0,0.5));
  }

  .product-info {
    padding: 1rem !important;
    gap: 0.5rem;
  }

  .product-name {
    font-size: 0.9rem !important;
    min-height: 2.4em;
    line-height: 1.3;
  }

  .product-price {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem;
  }

  .product-brand {
    font-size: 0.7rem !important;
  }

  .add-to-cart-btn {
    padding: 0.7rem 1rem !important;
    font-size: 0.75rem !important;
    min-height: 38px;
    border-radius: 8px;
  }

  .product-info .shipping-tag {
    font-size: 0.5rem;
    padding: 0;
    margin-top: 4px;
  }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
  .swiper[class*="collection-swiper"] .swiper-slide {
    width: 200px !important;
  }

  .product-image-wrapper {
    height: 150px !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
  }

  .product-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .product-info {
    padding: 0.75rem !important;
  }

  .product-name {
    font-size: 0.85rem !important;
    min-height: 2.2em;
  }

  .product-price {
    font-size: 1rem !important;
  }

  .add-to-cart-btn {
    padding: 0.6rem 0.8rem !important;
    font-size: 0.7rem !important;
    min-height: 36px;
  }

  .see-all-card {
      min-height: 380px;
  }
}

/* Mobile Muito Pequeno (até 360px) */
@media (max-width: 360px) {
  .swiper[class*="collection-swiper"] .swiper-slide {
    width: 180px !important;
  }

  .product-image-wrapper {
    height: 130px !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
  }

  .product-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center;
  }

  .product-name {
    font-size: 0.8rem !important;
    min-height: 2em;
  }

  .product-price {
    font-size: 0.9rem !important;
  }

  .add-to-cart-btn {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.65rem !important;
    min-height: 34px;
  }

  .product-brand {
    font-size: 0.65rem !important;
  }
}

/* Tablet (769px a 1024px) - MANTÉM DESKTOP */
@media (min-width: 769px) and (max-width: 1024px) {
  .collection-section .section-header {
    padding: 0 var(--space-md);
  }

  .swiper[class*="collection-swiper"] {
    padding: var(--space-xl) var(--space-md);
  }

  .swiper[class*="collection-swiper"] .swiper-slide {
    width: 300px !important;
  }
  
  .product-image-wrapper {
    height: 250px;
    /* AQUI TAMBÉM: GARANTIR TRANSPARÊNCIA */
    background-color: transparent !important;
  }
  
  /* TABLET: também usa contain para não cortar */
  .product-image-wrapper img {
    object-fit: contain;
  }
}

/* Desktop Grande (acima de 1440px) - EXATAMENTE COMO ANTES */
@media (min-width: 1440px) {
  .swiper[class*="collection-swiper"] {
    padding: var(--space-xl) calc((100% - 1400px) / 2 + 1.5rem);
  }
}

/* Animações de entrada */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card, .see-all-card {
  animation: slideUpFade 0.6s ease forwards;
}

/* Efeitos de foco para acessibilidade */
.product-card:focus-within {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.add-to-cart-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Loading state para imagens */
.product-image-wrapper {
  position: relative;
}

.product-image-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  border-top: 2px solid var(--brand-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
}

.product-image-wrapper.loading::after {
  opacity: 1;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Preparação para Animações GSAP */
.hero-title span, .section-titleRECEM,
/* Garante que os cards apareçam normalmente sem animação de entrada */
.product-card {
    opacity: 1 !important;
    visibility: visible !important;
}

.gsap-reveal {
    overflow: hidden;
    display: block;
}