.search-container {
  position: relative;
  margin-bottom: 2rem;
}

.search-input {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 50px 12px 16px;
  font-size: 14px;
  width: 100%;
  max-width: 400px;
}

.search-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-btn {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
}

.dropdown-toggle {
  border: 1px solid #dee2e6;
  background: white;
  color: #495057;
  padding: 12px 20px;
  border-radius: 8px;
  min-width: 120px;
}

.dropdown-toggle:focus {
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.search_brand_view_row {
  margin-bottom: 0px !important;
}

@media (max-width: 768px) {
  .dropdown-toggle{
    margin-bottom: 11px;
  }
  .search-input {
    max-width: 98%;
    margin-bottom: 15px;
  }
  .search-container {
    margin-bottom: 0px;
  }
  .search-input {
    margin-bottom: 8px;
  }

  .brand-card {
    margin-bottom: 15px;
  }
}

/* Brand Grid Container */
#productGrid_inbrand_view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center; /* Centers items horizontally within their grid cell */
  padding: 20px;
  max-width: 2000px;
  margin: 0 auto;
}

/* Product Card Wrapper */
.product-card-wrapper {
  flex: 0 0 auto;
  width: 160px;
}

.product-card-wrapper .product-card {
  box-shadow: none !important;
  border: 1px solid #0a6629ff !important;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #007bff;
}

/* Brand Logo Container */
.brand-logo_inView-container {
  width: 100%;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/* Brand Logo */
.brand-logo_inView {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
  align-items: center;
  justify-content: center;
}

/* Product Title */
.product-title_inbrandView {
  height: 35px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #0a6629ff;
  margin: 0;
  padding: 8px 12px;
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  border-radius: 4px;
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
}

/* Loading State */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  width: 100%;
}

.loading .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #007bff;
}

.loading p {
  color: #666;
  font-size: 16px;
  margin-top: 15px;
}

/* No Products State */
.no-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  width: 100%;
  text-align: center;
}

.no-products p {
  color: #666;
  font-size: 16px;
  margin-bottom: 15px;
}

.no-products .btn {
  margin-top: 10px;
}

.productCard_forBrand {
  padding: 0 !important;
  border-radius: 4px !important;
}
.productCard_forBrand{
  min-height: 147px;
  height: 152px;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .product-card-wrapper {
    width: 150px;
  }
}

@media (max-width: 1200px) {
  .product-card-wrapper {
    width: 140px !important;
  }

  .product-title_inbrandView {
    font-size: 11px;
  }
}

@media (max-width: 992px) {
  .product-card-wrapper {
    width: calc(25% - 15px);
  }
}

@media (max-width: 768px) {
  .product-card-wrapper {
    width: calc(35.666% - 14px);
  }
  #productGrid_inbrand_view {
    display: flex;
    padding: 0px;
    justify-content: center;
    margin-bottom: 16px;
  }
  .productCard_forBrand{
    height: 150px;
  }

  .productCard_forBrand {
    padding: 15px 10px;
    min-height: 135px;
  }

  .brand-logo_inView-container {
    height: 109px;
  }

  .brand-logo_inView {
    max-height: 70px;
  }
  .brand_view_container_section {
    padding-right: 10px !important;
  }
}

@media (max-width: 574px) {
  .product-card-wrapper {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  .shopByBrand_container{
    padding-bottom: 0px !important;
  }

  #productGrid_inbrand_view {
    gap: 5px;
  }
  .brand-logo_inView-container_main {
    width: 130px !important;
    height: 151px !important;
  }

}
