/* PRODUCTS SECTION */
.products-section {
  padding: 40px 20px;
}

.products-section h2 {
  font-size: 2em;
  color: white;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  font-family: "Audiowide", sans-serif;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: #222;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  color: white;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #00d4ff;
}

.product-image {
  width: 100%;
  height: 200px;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.9em;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #00d4ff;
}

.product-specs {
  font-size: 0.85em;
  color: #aaa;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-price {
  font-size: 1.3em;
  color: #00d4ff;
  font-weight: bold;
  margin-top: 10px;
}

/* SORT CONTROLS */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  padding: 0 20px;
}

.sort-controls label {
  color: white;
  font-weight: bold;
  font-size: 1.1em;
}

.sort-controls select {
  padding: 10px 15px;
  background-color: #222;
  color: white;
  border: 1px solid #00d4ff;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.sort-controls select:hover {
  border-color: #00d4ff;
}

.sort-controls select:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* Add category title styling */
.category-section {
  margin-bottom: 60px;
}

.category-title {
  font-size: 2em;
  color: #00d4ff;
  margin-bottom: 30px;
  font-family: "Audiowide", sans-serif;
  text-align: center;
}

@media (min-width: 768px) {
  .category-title {
    font-size: 2.5em;
  }
}

/* TABLET+ */
@media (min-width: 481px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* DESKTOP */
@media (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .products-section h2 {
    font-size: 2.5em;
  }
}
