@import './variables.css';

/* Banner */
.banner-products {
  position: relative;
  min-height: 40vh;
  background: linear-gradient(
    135deg,
    var(--color-primary-800) 0%,
    var(--color-primary-600) 50%,
    var(--color-primary-400) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-products h1 {
  text-align: center;
  align-items: center;
  padding: 40px 0;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-gray-50);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-badge {
  margin: 0 auto;;
  position: relative;
  width: fit-content;
  text-align: center;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: var(--color-gray-50);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
  font-size: 1.2rem;
  color: var(--color-secondary);
}

.bcrumb {
  padding-left: 0.5rem;
  font-weight: 600;
  color: var(--color-primary-900);
  text-decoration: none;
  padding-left: 8vw;
}

.bcrumb:hover {
  color: var(--color-primary-900);
  padding-left: 8vw;
}

.bcrumb1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-700);
  text-decoration: none;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.bcrumb2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-700);
  text-decoration: none;
  padding-left: 0.5rem;
}

.bcrumb1:hover {
  text-decoration: underline;
}

.bcrumb2:hover {
  text-decoration: underline;
}

/* Categorias */
.product-category {
  background-color: var(--color-gray-50);
}

#ponto-eletronico {
  padding-top: 60px;
}

#controle-acesso {
  padding-top: 60px;
  padding-bottom: 60px;
}

.product-category p {
  color: var(--color-gray-600);
  max-width: 900px;
}

/* Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Cards linkados (similar ao index) */
.product-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  translate: 0 -6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.product-card .imagem-wrapper {
  width: 100%;
  height: 220px;
  background: var(--color-gray-100);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.product-card .imagem-wrapper img {
  height: 100%;
  width: auto;
  padding: 20px 10px 40px;
  transition: transform 0.3s ease;
}

.product-card:hover .imagem-wrapper img {
  transform: scale(1.05);
}

.product-card .product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: 0;
}

.product-card .product-info p {
  font-size: 14px;
  color: var(--color-gray-600);
  flex: 1;
  margin-bottom: 0;
}

.product-card .link-produto {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-600);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-card:hover .link-produto {
  color: var(--color-primary-800);
  text-decoration: underline;
}

/* Label do produto */
.product-label {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  z-index: 2;
}

/* Alinhamento lateral */
.product-category .container-fluid,
.banner-products .container-fluid {
  padding-left: 140px;
  padding-right: 140px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gray-800);
  margin-bottom: 1rem;
}

/* Estilos para pesquisa */
@keyframes searchHighlight {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.search-result {
  transition: all 0.3s ease;
}

.search-result:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
}

.no-results-message {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  transition: all 0.3s ease;
}

.clear-search:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white !important;
}

/* Ocultar seções sem resultados */
.product-category[style*='none'] {
  display: none !important;
}

/* Responsividade */
@media (max-width: 1600px) {
  .product-category .container-fluid,
  .banner-products .container-fluid {
    padding-left: 100px;
    padding-right: 100px;
  }
}

@media (max-width: 992px) {
  .product-category .container-fluid,
  .banner-products .container-fluid {
    padding: 60px 10px;
  }

  #ponto-eletronico {
    padding-top: 40px;
  }

  #controle-acesso {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .banner-products {
    min-height: 200px;
    padding: 30px 10px 0;
  }

  .banner-products h1 {
    font-size: 36px;
  }
}
