html, body {
  margin: 0;
  padding: 0;
  padding-top: 3%;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('../images/slingerbackground2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

main {
  margin-top: 3%;
  width: 100%;
  max-width: 1440px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  justify-items: center;
  align-items: stretch;
}

.product-item {
  width: 100%;
  max-width: 320px;
  height: 100%;
  min-height: 480px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.product-item h1 {
  font-size: 18px;
  color: white;
  margin-top: auto;
  margin-bottom: 0;
  padding: 10px 0 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
  word-break: break-word;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-item h1 {
  font-size: 22px;
  color: white;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1080px) {
  .product-container {
    margin-top: 100px;
    grid-template-columns: repeat(2, 1fr);
  }

  .product-item img {
    margin: 10px auto;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .product-container {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .product-item img {
    max-width: 95%;
  }

  .product-item h1 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .product-item img {
    max-width: 100%;
    border-radius: 8px;
  }

  .product-item h1 {
    font-size: 18px;
    margin: 10px 0;
  }
}
