/* src/pages/Inventory/Products.css */

.products-page-container {
  padding: 20px;
  color: #213547;
}

.products-page-container h2 {
  color: #213547;
}

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

.product-card {
  background-color: white;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s;
  color: #213547;
}

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

.add-new-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.2em;
  font-weight: bold;
}

.add-icon {
  font-size: 3em;
  margin-bottom: 10px;
}

.product-image {
  max-width: 100%;
  height: 120px;
  object-fit: contain;
}

.product-info {
  margin-top: 10px;
}

.product-name {
  font-weight: bold;
  margin-bottom: 5px;
  color: #213547;
}

.product-price,
.product-units {
  font-size: 0.9em;
  color: #444;
}

.page-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-filters select {
  color: #213547;
  background-color: white;
  max-width: 250px;
  min-width: 150px;
  flex: 0 1 auto;
}

.page-filters input[type="text"],
.page-filters .filter-search-input {
  color: #213547;
  background-color: white;
  max-width: 300px;
  min-width: 200px;
  flex: 0 1 auto;
  padding: 10px 16px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 0 0 2px #f4f4f4;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  box-sizing: border-box;
}

.page-filters p {
  color: #213547;
}

.products-page-container p {
  color: #213547;
}

.products-filters {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.products-filters .filter-search {
  flex: 1;
  max-width: 280px;
  min-width: 180px;
}

@media (max-width: 768px) {
  .products-filters {
    padding: 12px;
    border-radius: 12px;
    gap: 10px;
  }

  .products-filters .filter-search {
    min-width: 100%;
    max-width: 100%;
    order: -1;
  }

  .products-filters .filter-select {
    min-width: 100%;
  }

  .products-filters .clear-filters-btn {
    width: 100%;
    align-self: stretch;
    margin-top: 8px;
  }
}
