  .product-search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    align-items: stretch;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1000px;
    margin: 0 auto 20px auto;
  }

  .product-search-container select,
  .product-search-container input {
    flex: 1 1 250px;
    min-width: 250px;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 12px;
    border: 1.5px solid #ccc;
    box-sizing: border-box;
    color: #000;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
  }

    #category-select{
      height: 49px;
      border-radius: 12px;
    }

  .product-search-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='16' height='16' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 12px;
    padding-right: 40px;
    cursor: pointer;
  }

  .product-search-container select:focus,
  .product-search-container input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    outline: none;
  }

  .product-search-container button {
    flex: 0 0 140px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background-color: #000;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 100%;
  }

  .product-search-container button:hover {
    background-color: #FFD700;
    color: #000;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.6);
  }

  @media (max-width: 768px) {
    .product-search-container {
      flex-direction: column;
      gap: 15px;
      padding: 20px 15px;
    }

    .product-search-container select,
    .product-search-container input,
    .product-search-container button {
      width: 100%;
      min-width: unset;
      flex: none;
    }

    .product-search-container select {
      padding-right: 40px;
      background-position: right 16px center;
    }

    .product-search-container button {
      margin-top: 5px;
    }
  }


  .row-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* default for mobile */
    gap: 20px;
  }

  
  @media (max-width: 992px) {
    .row-products {
      grid-template-columns: repeat(2, 1fr); /* desktop: 4 per row */
    }
  }

  @media (max-width: 768px) {
    .row-products {
      grid-template-columns: repeat(1, 1fr); /* tablets */
    }
  }
  .service-item-product{
    max-width: 242px;
  }
  @media (max-width: 768px) {
    .service-item-product{
      max-width: max-content;
    }
  }
  .service-item-product img{
    border-radius: 20px !important;
  }
  .col-product a{
    text-decoration: none !important;
  }
  .service-item-product .title-product {
    position: relative;
    font-family: "Montserrat", Sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #744a36;
    margin: 25px 0 20px 0;
    text-decoration: none;
  }

  .service-item-product .title-product::after{
    position: absolute;
    content: "";
    bottom: -5px;
    left: 0;
    width: 45px;
    height: 4px;
    background: #744a36;
  }

  .service-item-product .productnumber{
    font-family: "Montserrat", Sans-serif;
    font-weight: 400;
    color: #7A7A7A;
    text-decoration: none;
  }

  .search-message {
  display: none;
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.search-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  margin-bottom: 15px;
}

.search-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
    margin-bottom: 15px;
}

/* Center loader in single column */
.row-products.loading {
    grid-template-columns: repeat(1, 1fr); /* default for mobile */
}

.loader-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  margin: 0 auto;
  text-align: center;
}

.loader-spinner:after {
  content: "";
  width: 40px;
  height: 40px;
  border: 5px solid #ddd;
  border-top: 5px solid #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
