/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scrolling if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be adjusted */
  max-width: 600px;
  border-radius: 8px;
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.shop-controls {
    display: flex;
    gap: 0px;
    padding: 0px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  #searchInput {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #2C2D3F3b;
  }
  
  #searchInput{
      border-radius: 8px 0 0 8px;
      margin: 10px 0 10px 10px;
  }
  
  #loadMoreBtn {
    display: block;
    margin: 30px auto;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
  }
  
  #loadMoreBtn:hover {
    background: #0056b3;
  }

.products-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
 grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px;
    padding: 20px;
}

.product-card {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card img {
    border: 1px solid #2C2D3F;
    border-radius: 8px;
    width: 100%;
    height: auto;
     transition: 0.3s linear;
}

.product-card img:hover{
    filter; invert(10%);
    transform: scale(0.95);
}

.product-card h2 {
    font-size: 18px;
    margin: 10px 0 5px;
    transition: 0.3s;
    color: #2C2D3F;
}

.product-card h2:hover{
    translate: 4px 0 0;
    color: #1A76D1;
}
.product-card p {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 10px;
}


/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
       .products-container{
         grid-template-columns: 1fr 1fr;
    }
}
