/* Your custom css */

/* Shared brand logo card — homepage "Top Brands" section
   (sections/featured_brands.blade.php) and Brands page (brands.blade.php)
   via components/frontend/basic/brand-card.blade.php.
   Fixed-height flex box + contain-fit logo so logos never distort. */
.small-card {
  gap: 0.75rem;
}

.small-card .small-card-item {
  padding: 0;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px 16px;
  overflow: hidden;
}

.brand-logo-card img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 575px) {
  .small-card {
    gap: 0.5rem;
  }

  .small-card .small-card-item {
    height: 80px;
  }

  .brand-logo-card {
    padding: 10px 12px;
  }
}