/*
 * Makerique Boutique theme for OpenCart 4
 * Copyright (c) 2026 Heliopsy. All Rights Reserved.
 * https://makerique.com
 * SPDX-License-Identifier: LicenseRef-Proprietary
 * Proprietary and confidential. Unauthorized copying, distribution, or
 * modification of this file, by any means, is strictly prohibited.
 */

/* =========================================================================
   Makerique Boutique : homepage brand / manufacturer logo strip
   Two layouts (carousel = horizontal scroll-snap, grid = wrapping row),
   both dependency-free. Optional grayscale-until-hover treatment.
   ========================================================================= */

.mr-brands {
  --mr-brand-h: 60px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Carousel: a native scroll-snap row (no JS, no library). */
.mr-brands--carousel {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.mr-brands--carousel .mr-brands__item {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* Grid: wrap and centre. */
.mr-brands--grid {
  flex-wrap: wrap;
  justify-content: center;
}

.mr-brands__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--mr-brand-h) + 24px);
  min-width: 140px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--mr-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--mr-radius, 12px);
  background: var(--mr-card, #fff);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mr-brands__item:hover {
  border-color: var(--mr-primary, #9e5842);
  transform: translateY(-2px);
}
.mr-brands__item img {
  max-height: var(--mr-brand-h);
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Optional: muted logos that regain colour on hover/focus. */
.mr-brands--grayscale .mr-brands__item img {
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.mr-brands--grayscale .mr-brands__item:hover img,
.mr-brands--grayscale .mr-brands__item:focus-within img {
  filter: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .mr-brands__item {
    transition: border-color 0.15s ease;
  }
  .mr-brands__item:hover {
    transform: none;
  }
}
