.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 #d4d4d4;
  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: 760px) {
  .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-fill, minmax(140px, 1fr));
  gap: 20px;
  max-width: 2000px;
  margin: 30 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);
  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 {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  background-color: #0a6629ff;
  margin: 0;
  padding: 6px 12px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  min-height: 41px;
  /* 🔑 Perfect centering */
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  line-height: 1.4;

  /* 🔑 Allow wrapping */
  white-space: normal;
  word-break: break-word;

  border-radius: 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;
}
.bread-crumb-brand-page{
  padding-bottom: 3px;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .product-card-wrapper {
    width: 150px;
  }
}

@media (max-width: 1200px) {
  .product-card-wrapper {
    width: 166px !important;
  }

  .product-title_inbrandView {
    font-size: 11px;
  }
}

@media (max-width: 992px) {
  .product-card-wrapper {
    width: calc(25% - 15px);
  }
}

@media (max-width: 760px) {
  .product-card-wrapper {
    width: calc(35.666% - 14px);
  }
  #productGrid_inbrand_view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    margin-bottom: 16px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .productCard_forBrand {
    height: 150px;
  }

  .productCard_forBrand {
    padding: 15px 10px;
    min-height: 135px;
  }

  .brand-logo_inView-container {
    height: 109px;
  }

  .brand-logo_inView {
    max-height: 82px;
  }
}

@media (max-width: 574px) {
  .product-card-wrapper {
    padding-left: 0px !important;
    padding-right: 0px !important;
    width: 100% !important;
  }
  .shopByBrand_container {
    padding-bottom: 0px !important;
  }

  #productGrid_inbrand_view {
    gap: 8px;
  }
  .brand-logo_inView-container_main {
    width: 130px !important;
    height: 151px !important;
  }
}
