/* General Reset */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

/* Header */
.header {
  background-color: #033870;
  color: white;
}

.header i {
  margin-right: 5px;
}

/* Navbar */
.navbar-light .navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #0d6efd;
}

.navbar-brand .logo img {
  height: 30px;
}

/* Page Header */
.page-header {
  background-color: #004080;
  color: white;
  padding: 3rem 0;
}

.page-header h1 {
  margin-bottom: 1rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Enhanced Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Product Image Container */
.product-image {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  padding: 1rem;
}

.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Product Info */
.product-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  min-height: 48px;
}

.product-info p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #666;
}

/* View Product Button */
.product-info .btn {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border: none;
  border-radius: 30px;
  transition: background 0.3s ease, transform 0.3s ease;
  color: #fff;
}

.product-info .btn:hover {
  background: linear-gradient(90deg, #0056b3, #007bff);
  transform: translateY(-2px);
}

/* Optional: Availability Badge */
.badge {
  font-size: 0.75rem;
  padding: 0.35em 0.6em;
  border-radius: 12px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding-left: 0;
}

.page-item {
  margin: 0 5px;
}

.page-link {
  display: block;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  color: #007bff;
  text-decoration: none;
  border-radius: 4px;
}

.page-item.active .page-link {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
