/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #333;
  }
  
  /* Navbar */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .logo img {
    height: 40px;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: #444;
    font-weight: bold;
  }
  
  /* Search Section */
  .search-section {
    text-align: center;
    margin: 30px auto;
    position: relative;
    width: 50%;
  }
  
  #searchInput {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border: 2px solid #ffd700;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
    background-color: #fdfdfd;
  }
  
  .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
  }
  
  /* Layout */
  .product-finder {
    display: flex;
    gap: 30px;
    padding: 0 40px 40px;
  }
  
  /* Category Sidebar */
  .categories {
    width: 200px;
  }
  
  .categories h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
  }
  
  .categories ul {
    list-style: none;
    padding: 0;
  }
  
  .categories li {
    margin-bottom: 10px;
  }
  
  .categories label {
    font-size: 1rem;
    cursor: pointer;
  }
  
  .categories input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
  }
  
  /* Product Grid */
  .products {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }
  
  .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 🔥 Vertically center everything */
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 220px; /* Adjust as needed for consistent height */
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .product-card img {
    width: 80%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  
  .product-card p {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .product-finder {
      flex-direction: column;
    }
  
    .categories {
      width: 100%;
      margin-bottom: 20px;
    }
  
    .search-section {
      width: 80%;
    }
  }