/* css/style.css - VERSÃO FINAL PREMIUM (SEM CONFLITOS) */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Archivo+Black&display=swap");

:root {
  --primary-color: #000000; /* Preto luxo */
  --accent-color: #0d6efd; /* Azul destaque */
  --bg-color: #000000; /* Fundo preto */
  --card-radius: 15px; /* Arredondamento */
}

body {
  font-family: "Archivo", sans-serif;
  background-color: var(--bg-color);
  color: #f4f6f8;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

.font-display {
  font-family: "Archivo Black", sans-serif;
}

/* --- SIDEBAR DE FILTROS (baseado no product-listing.tsx de referência) --- */

/* Remove a caixa branca/sombra/arredondado: fica só texto sobre o fundo preto */
#sidebarFiltros .bg-white {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Cabeçalho "Filtros" */
#sidebarFiltros h5.text-dark {
  color: #f4f6f8 !important;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Botão "Limpar" */
#sidebarFiltros .btn-light.text-danger {
  background: transparent !important;
  color: #9a9a9a !important;
  font-size: 0.75rem;
  text-transform: uppercase;
}

#sidebarFiltros .btn-light.text-danger:hover {
  color: #f4f6f8 !important;
}

/* Campo de busca */
#sidebarFiltros .input-group {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#sidebarFiltros .form-control {
  background: #000000 !important;
  color: #f4f6f8 !important;
}

#sidebarFiltros .form-control::placeholder {
  color: #9a9a9a;
}

#sidebarFiltros .btn-light.text-primary {
  background: #000000 !important;
  color: #f4f6f8 !important;
}

/* Títulos dos grupos (Versão / Modelo / Marca) */
#sidebarFiltros h6.text-dark {
  color: #f4f6f8 !important;
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 0.6rem;
}

/* Linhas de filtro (Versão / Modelo / Marca) geradas pelo JS */
.filtro-lateral-item.text-dark {
  color: #f4f6f8 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.filtro-lateral-item:hover {
  color: #ffffff !important;
}

.filtro-lateral-item .badge {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #9a9a9a !important;
}

/* Estado selecionado: monocromático (branco), não azul */
.filtro-lateral-item.text-primary {
  color: #ffffff !important;
}

.filtro-lateral-item .badge.bg-primary {
  background: #f4f6f8 !important;
  color: #000000 !important;
  border-color: #f4f6f8 !important;
}

/* Quadradinho de checkbox (igual ao FilterCheck do design de referência) */
.filtro-check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  transition: all 0.15s ease;
}

.filtro-check-icon {
  width: 10px;
  height: 10px;
  color: #000000;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.filtro-checked .filtro-check-box {
  background: #f4f6f8;
  border-color: #f4f6f8;
}

.filtro-checked .filtro-check-icon {
  opacity: 1;
}

.filtro-checked .filtro-check-label {
  font-weight: 700;
  color: #ffffff;
}

.filtro-check-label {
  color: #cfcfcf;
}

/* Chip de filtro ativo (aparece acima dos produtos) */
.filtro-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f6f8;
  color: #000000;
  border: none;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.filtro-chip:hover {
  opacity: 0.85;
}

/* --- PÁGINA DE PRODUTO (produto.html) --- */
.produto-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #161616;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.produto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produto-thumb.active,
.produto-thumb:hover {
  border-color: #ffffff;
}

.produto-tamanho-btn {
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #f4f6f8;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.produto-tamanho-btn:hover {
  border-color: #ffffff;
}

.produto-tamanho-btn.active {
  background: #f4f6f8;
  color: #000000;
  border-color: #f4f6f8;
}

/* Linha sutil embaixo do cabeçalho "Todos os Produtos" (em vez do branco padrão do Bootstrap) */
.container.mt-5 > .border-bottom {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Título "Todos os Produtos": igual ao h1 do product-listing.tsx de referência */
#titulo-secao {
  color: #f4f6f8 !important;
  font-family: "Archivo Black", sans-serif;
  font-size: 2.25rem !important; /* text-4xl */
  line-height: 1 !important; /* leading-none */
  letter-spacing: -0.025em; /* tracking-tight */
  text-transform: uppercase;
}

@media (min-width: 640px) {
  #titulo-secao {
    font-size: 3rem !important; /* sm:text-5xl */
  }
}

/* Contador "X produtos encontrados" */
#contador-produtos {
  color: #9a9a9a !important;
}

/* Select "Ordenar": fundo escuro, borda fina, texto claro (em vez de caixa branca) */
#filtro-ordem {
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f4f6f8 !important;
  border-radius: 0 !important;
  text-transform: uppercase;
}

#filtro-ordem:focus {
  border-color: #ffffff !important;
  box-shadow: none !important;
}

/* --- NAVBAR (VIDRO) --- */
.navbar {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 15px 0;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- MENU DROPDOWN --- */
@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease;
  }
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px;
}

.dropdown-item {
  border-radius: 5px;
  padding: 8px 15px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: #f0f2f5;
  color: var(--accent-color);
  transform: translateX(5px);
}

/* =========================================
   BARRA DE ROLAGEM PERSONALIZADA (ESTILO APP)
   ========================================= */

/* Isso garante que a barra apareça no container certo */
#scroll-container {
  overflow-x: auto;
  padding-bottom: 10px; /* Espaço para a barra não colar no ícone */
}

/* Tamanho da barra */
#scroll-container::-webkit-scrollbar {
  height: 6px; /* Altura fina e elegante */
}

/* O fundo (trilho) */
#scroll-container::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
  margin: 0 10px;
}

/* A barra preta (o indicador) */
#scroll-container::-webkit-scrollbar-thumb {
  background: #212529;
  border-radius: 10px;
  cursor: grab;
}

/* Hover na barra */
#scroll-container::-webkit-scrollbar-thumb:hover {
  background: #000000;
}

/* --- CARDS DE PRODUTO --- */
.produto-card {
  border: none;
  border-radius: var(--card-radius);
  background: white;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.produto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.produto-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.2rem;
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  margin-bottom: 5px;
}

.badge-tamanho {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 8px;
}

/* --- CARDS DE PRODUTO (baseado no product-card.tsx de referência) --- */

/* Card: sem caixa, borda finíssima que clareia no hover */
.produto-card.bg-white {
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 0;
  transition: border-color 0.25s ease;
}

.produto-card.bg-white:hover {
  border-color: #ffffff !important;
}

.produto-card:hover {
  transform: none; /* sem "levantar" o card, só zoom na foto */
  box-shadow: none;
}

.produto-card.text-dark,
.produto-card .text-dark {
  color: #f4f6f8 !important; /* nome do produto em texto claro */
}

.produto-card .text-muted {
  color: #9a9a9a !important; /* categoria/tipo em cinza claro */
}

.produto-card .card-body {
  padding: 1rem;
}

.produto-card .card-title {
  font-size: 0.875rem;
}

.produto-card .fs-5.fw-bold {
  color: #ffffff !important; /* preço em branco */
  font-size: 1.05rem !important;
}

/* Fundo da foto: cinza bem escuro, formato quadrado (aspect-square) */
.produto-img-wrapper.bg-light {
  background-color: #161616 !important;
  aspect-ratio: 1 / 1;
}

.produto-img {
  transition: transform 0.5s ease;
}

.produto-card:hover .produto-img {
  transform: scale(1.05);
}

/* Selo de tamanhos (canto superior direito): contorno fino, transparente */
.produto-badge-tamanho {
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f4f6f8 !important;
  font-size: 0.65rem;
}

/* Selo "Novo" (canto superior esquerdo): fundo claro, texto escuro */
.produto-badge-novo {
  background: #f4f6f8 !important;
  color: #000000 !important;
}

/* Selo de status no rodapé: "Pronta Entrega" claro / demais categorias em cinza escuro */
.produto-badge-pronta {
  background: #f4f6f8 !important;
  color: #000000 !important;
}

.produto-badge-secundario {
  background: #242424 !important;
  color: #f4f6f8 !important;
}

/* Botão "+" no hover: quadrado claro, ícone escuro */
.produto-btn-plus {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: #f4f6f8 !important;
  color: #000000 !important;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.produto-card:hover .produto-btn-plus {
  opacity: 1;
  transform: translateY(0);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- UTILITÁRIOS --- */
input[list]::-webkit-calendar-picker-indicator {
  display: none !important;
}

/* --- CORREÇÃO TOM SELECT --- */
.ts-dropdown,
.ts-wrapper.single.input-active .ts-control {
  z-index: 999999 !important;
}
.ts-control {
  min-height: 38px;
  border-radius: 0.375rem;
  border-color: #dee2e6;
}
.ts-wrapper.form-control {
  padding: 0 !important;
  border: none !important;
}
.ts-dropdown .active {
  background-color: var(--accent-color) !important;
  color: #fff !important;
}

/* --- BARRA DE CONFIANÇA --- */
.barra-confianca {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

/* --- NAVEGAÇÃO DE ÍCONES (CAT-ITEMS) --- */
.nav-categorias {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 5px;
  scroll-behavior: smooth;
  /* IMPORTANTE: Removi o código que escondia a barra aqui para o PC */
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  cursor: pointer;
  transition: transform 0.2s;
}

.cat-item:hover {
  transform: translateY(-5px);
}

.cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 8px;
  overflow: hidden;
  padding: 0;
}

.cat-item.active .cat-icon {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.cat-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: #444;
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s ease;
}

.cat-item:hover .cat-icon img {
  transform: scale(1.1);
}

/* --- MOBILE: AJUSTES ESPECÍFICOS --- */
@media (max-width: 768px) {
  .nav-categorias {
    gap: 12px;
    padding: 10px 20px;
    -webkit-overflow-scrolling: touch;

    /* Só esconde a barra NO CELULAR, pois usa o dedo */
    scrollbar-width: none;
  }

  .nav-categorias::-webkit-scrollbar {
    display: none;
  }

  .cat-item {
    min-width: 85px;
    width: 85px;
  }

  .cat-icon {
    width: 55px;
    height: 55px;
  }
}

/* --- BOTÕES DE ROLAGEM (SETINHAS) --- */
.btn-scroll {
  /* Estilo base removido pois já definimos no HTML com classes Bootstrap, 
     mas mantivemos a animação de hover aqui */
  transition: all 0.2s ease;
}

/* ... (seu código anterior termina aqui) */

.btn-scroll:hover {
  background-color: #f8f9fa;
  transform: translateY(-50%) scale(1.1);
}

/* =========================================
   1. VISUAL PADRÃO (COMPUTADOR / NOTEBOOK) 🖥️
   Aqui tudo será GRANDE e ESPAÇOSO
   ========================================= */

#aba-estoque table {
  table-layout: auto; /* Deixa a tabela se espalhar livremente */
}

.table td,
.table th {
  vertical-align: middle;
  padding: 15px !important; /* Bastante espaço nas células */
  font-size: 1.1rem; /* Letra maior (17px) */
}

/* Foto no PC: Bem grande para ver detalhes */
.col-produto img {
  width: 70px !important;
  height: 70px !important;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Badge de Tamanho (P, M, G) no PC */
.col-produto .badge {
  font-size: 1rem !important; /* Letra grande */
  padding: 6px 12px !important;
  margin-left: 10px;
}

/* Coluna de Ações no PC: Larga para botões ficarem lado a lado */
.col-acoes {
  width: 250px;
  text-align: right;
}

.col-acoes .btn {
  padding: 8px 12px; /* Botões mais "gordinhos" e fáceis de clicar */
  font-size: 0.95rem;
}

/* =========================================
   2. VISUAL MOBILE (CELULAR) 📱
   Só ativa se a tela for pequena. Comprime tudo.
   ========================================= */
@media (max-width: 768px) {
  /* Trava a tabela para não vazar */
  #aba-estoque table {
    table-layout: fixed;
    width: 100%;
  }

  /* Aperta o espaçamento */
  .table td,
  .table th {
    padding: 8px 2px !important;
    font-size: 0.85rem; /* Letra menor para caber */
  }

  /* Foto no Celular (Média, nem gigante nem minúscula) */
  .col-produto img {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px;
  }

  /* Badge no Celular */
  .col-produto .badge {
    font-size: 0.85rem !important;
    padding: 4px 6px !important;
    margin-left: 0;
    margin-top: 4px;
    display: inline-block;
  }

  /* Coluna Produto: Quebra linha */
  .col-produto {
    width: 45%;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
  }

  /* Coluna Ações: Aperta para caber na direita */
  .col-acoes {
    width: 70px;
  }

  /* Botões menores no celular */
  .col-acoes .btn {
    padding: 4px 6px;
    font-size: 0.75rem;
    margin-bottom: 2px;
  }

  /* Esconde o "Custo" embaixo do preço se precisar economizar espaço */
  td small.text-muted {
    font-size: 0.7rem !important;
  }

  /* 1. Altura da área cinza da foto (Bem menor agora) */
  #modalProduto .bg-light {
    min-height: 180px !important; /* Baixei de 250 pra 180px */
    height: 180px !important;
  }

  /* 2. A foto obedece a nova altura */
  #modalProduto .carousel-inner img {
    max-height: 170px !important;
    object-fit: contain;
  }

  /* 3. Remove margens e padding excessivos da área de texto */
  #modalProduto .col-lg-6.p-4.p-md-5 {
    padding: 10px 15px !important; /* Bordas bem finas */
  }

  /* 4. Título menor e mais colado */
  #modal-nome {
    font-size: 1.1rem;
    margin-top: 5px;
    margin-bottom: 5px !important;
  }

  /* 5. Badge de tamanho menor */
  #modal-tamanho {
    font-size: 0.8rem !important;
    padding: 2px 8px !important;
    margin-bottom: 5px !important;
  }

  /* 6. Preço um pouco menor e com menos espaço embaixo */
  #modal-preco {
    font-size: 1.5rem !important;
    margin-bottom: 10px !important;
  }

  /* 7. Reduz o espaço do aviso de encomenda */
  #modal-aviso-encomenda {
    margin-bottom: 10px !important;
  }
}

/* Efeito Mega Menu: Escudo pula ao passar o mouse */
.hover-escudo {
  transition: all 0.3s ease;
}
.hover-escudo:hover div {
  transform: translateY(-5px);
  border-color: #0d6efd !important; /* Muda a borda pra azul */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.hover-escudo:hover span {
  color: #0d6efd;
}

/* ============================================================ */
/* MEGA MENU - CORREÇÃO DE POSIÇÃO E EFEITO HOVER               */
/* ============================================================ */

/* 1. Força o item "Clubes" a ser o ponto de referência certo */
.navbar .position-static {
  position: static !important;
}

/* 2. Trava o menu na esquerda e na direita para não vazar a tela */
.navbar .dropdown-menu.w-100 {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  border-top: 1px solid #eee !important; /* Dá um acabamento fino */
}

@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    margin-top: 0 !important;
    transition: all 0.3s ease-in-out;
  }

  /* 1. A PONTE INVISÍVEL: Cria um bloco transparente colado em cima do menu */
  .navbar .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -25px; /* Sobe a ponte para encostar no botão */
    left: 0;
    right: 0;
    height: 25px;
    background: transparent;
  }

  /* 2. Mantém o item "Clubes" branco enquanto navega no menu */
  .navbar .nav-item.dropdown:hover .nav-link {
    color: #fff;
  }
}

/* Efeito da setinha no Mega Menu */
.icone-seta {
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}
.list-group-item.active .icone-seta {
  color: #0d6efd !important; /* Fica azulzinho */
  transform: translateX(4px); /* Dá um pulinho pra direita */
}

@keyframes pulse-soft {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.pulse-animation {
  animation: pulse-soft 2s infinite;
}

/* ========================================================
   🔥 ESTILOS EXCLUSIVOS - ÂBE STREETWEAR
   ======================================================== */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600;800&display=swap");

/* Fontes e Textos */
.font-street {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1.5px;
}
.font-inter {
  font-family: "Inter", sans-serif;
}

/* Banner com Efeito Parallax Suave */
#banner-streetwear {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  transition: all 0.3s ease;
}

/* Cards de Produto Estilo Boutique (COM CAIXINHA LIMITADORA) */
.card-street {
  border: 1px solid #e5e5e5 !important; /* Cria a linhazinha do quadrado */
  border-radius: 12px; /* Deixa as pontas levemente arredondadas */
  background-color: #ffffff; /* Fundo branco pra prender o texto */
  transition: all 0.3s ease;
  overflow: hidden; /* Garante que a foto não vaze da caixa */
}
.card-street:hover {
  border-color: #d0d0d0 !important; /* Escurece a borda quando passa o mouse */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06) !important;
}
.card-street .img-container {
  background-color: #f4f4f4; /* Fundo cinza só na parte da foto */
  border-bottom: 1px solid #e5e5e5; /* Linha separando a foto do texto */
  position: relative;
  overflow: hidden;
}
.card-street img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  mix-blend-mode: multiply;
}
.card-street:hover img {
  transform: scale(1.08); /* Zoom na foto */
}

/* Botão de Hover no PC */
.btn-comprar-hover {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  width: 80%;
}
.card-street:hover .btn-comprar-hover {
  bottom: 15px;
  opacity: 1;
}

/* ========================================== */
/* EFEITOS DA NAVBAR PREMIUM (MODO CLARO)     */
/* ========================================== */

/* Links da navbar no modo claro */
.nav-link-custom-light {
  color: #252525 !important; /* Força o texto a ficar escuro */
  transition: color 0.3s ease;
}
.nav-link-custom-light,
.navbar-nav .nav-link {
  font-weight: 800 !important; /* Peso extra-bold (mais forte que o normal) */
  letter-spacing: 1.5px !important; /* Espaçamento entre as letras */
}

.nav-link-custom-light:hover,
.nav-link-custom-light:focus {
  color: #000000 !important;
}

/* Ícones (Lupa, usuário, sacola) escuros */
.nav-icon-btn-light i {
  color: #252525 !important;
}

.nav-icon-btn-light:hover {
  opacity: 0.6;
}
