
/* Página de produtos */

.products-hero {
  min-height: 420px;
  background-image:
    linear-gradient(
      90deg,
      #050505 0%,
      #050505 30%,
      rgba(5, 5, 5, 0.6) 52%,
      rgba(5, 5, 5, 0) 100%
    ),
    url("img/HeroProdutos.jpg");
  background-size: cover;
  background-position: center right;
  color: #fff;
  display: flex;
  align-items: center;
}

.products-hero-text {
  max-width: 460px;
}

.products-hero-text h1 {
  font-size: 54px;
  line-height: 1.05;
  margin: 16px 0 22px;
}

.products-hero-text h1 strong {
  display: block;
  color: #e30613;
}

.products-hero-text p {
  font-size: 18px;
  line-height: 1.7;
}

.products-page {
  background: #fff;
  padding: 42px 0 56px;
}

.products-page-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

.products-sidebar h2 {
  color: #111;
  font-size: 26px;
  margin-bottom: 28px;
}

.products-sidebar h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: #e30613;
  margin-top: 14px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-item {
  height: 66px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 0 18px;
  background: #fff;
  color: #111;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font: inherit;
  font-weight: bold;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, background-color 0.2s ease;
}

.category-item:not(.active):hover {
  transform: translateX(5px);
  border-color: #e30613;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-item:focus-visible {
  outline: 2px solid #e30613;
  outline-offset: 3px;
}

.category-item.active {
  background: #050505;
  color: #fff;
}

.products-main {
  min-width: 0;
}

.products-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.products-top p {
  color: #555;
  font-size: 16px;
}

.products-top p strong {
  color: #e30613;
}

.products-top select {
  border: none;
  background: transparent;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.products-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card de produto */


.product-card {
  display: block;

  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;

  color: #111;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

/* Imagem */

.product-card img {
  width: 100%;
  height: 210px;

  object-fit: cover;
  object-position: center;

  display: block;

  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.03);
}

/* Parte de baixo do card */

.product-info {
  min-height: 92px;
  padding: 16px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Categoria e nome */

.product-text {
  min-width: 0;
}

.product-category {
  color: #777;
  font-size: 12px;
  text-transform: uppercase;

  margin: 0 0 6px;
}

.product-info h3 {
  color: #111;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;

  margin: 0;
}

/* Seta */

.product-arrow {
  color: #e30613;
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease;
}

.product-arrow i {
  font-size: 23px;
}

.product-card:hover .product-arrow {
  transform: translateX(4px);
}

/* Footer */

.footer {
  background: #050505;
  color: #fff;
  padding: 18px 0;
  border-top: 1px solid #222;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-bottom p {
  color: #aaa;
  font-size: 12px;
}

.footer-bottom p:last-child {
  text-align: right;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
}

.footer-bottom a:hover {
  color: #e30613;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-social a {
  color: #aaa;
  font-size: 12px;
  text-decoration: none;
}

/* Responsividade da página de produtos */

@media (max-width: 900px) {
  .products-hero {
    min-height: 360px;
  }

  .products-hero-text h1 {
    font-size: 44px;
  }

  .products-page-content {
    grid-template-columns: 200px 1fr;
    gap: 30px;
  }

  .products-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 650px) {
  .products-hero {
    min-height: 330px;
    padding: 42px 0;

    background-position: 62% center;
    background-image:
      linear-gradient(
        90deg,
        #050505 0%,
        rgba(5, 5, 5, 0.9) 55%,
        rgba(5, 5, 5, 0.3) 100%
      ),
      url("img/HeroProdutos.jpg");
  }

  .products-hero-text h1 {
    font-size: 38px;
    margin: 12px 0 18px;
  }

  .products-hero-text p {
    font-size: 15px;
  }

  .products-page {
    padding: 34px 0 46px;
  }

  .products-page-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .products-sidebar h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-item {
    width: 100%;
    height: 56px;
    padding: 0 14px;
    font-size: 14px;
  }

  .category-item:not(.active):hover {
    transform: none;
  }

  .products-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .products-top select {
    width: 100%;
    min-height: 44px;

    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
  }

  .products-page-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-card img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .product-info {
    min-height: 86px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .footer-bottom p,
  .footer-bottom p:last-child {
    text-align: center;
  }
}