/***************************************************
 * Synergy Core – Brand layouts
 * - Featured Brands cards
 * - Featured Brands Lite logo wall
 * - Featured Brands A–Z
 ***************************************************/

/* ========== Featured Brands – Card layout ========== */

.syngsc-featured-brands .supplier-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin: 40px 0;
}

.syngsc-featured-brands .supplier-card {
  width: 260px;
  flex: 0 0 auto;
  min-height: 380px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.syngsc-featured-brands .supplier-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.syngsc-featured-brands .supplier-card .logo-wrapper {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.syngsc-featured-brands .supplier-card img {
  max-width: 160px;
  max-height: 72px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.syngsc-featured-brands .supplier-card p {
  font-size: 1.05rem;
  color: #2a2a2a;
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
}

.syngsc-featured-brands .supplier-card a.supplier-button {
  background: #ffc72c !important;
  color: #004494 !important;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 10px 20px;
  text-decoration: none !important;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: auto;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.syngsc-featured-brands .supplier-card a.supplier-button:hover {
  background: #e0b021 !important;
}

@media (max-width: 768px) {
  .syngsc-featured-brands .supplier-card {
    min-height: 0;
  }
}

/* ========== Featured Brands Lite – Logo wall ========== */

.fblite {
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border: 0;

  display: grid;
  gap: 28px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Optional column overrides via [cols] attribute */
.fblite[data-cols="4"] { grid-template-columns: repeat(4, minmax(0,1fr)); }
.fblite[data-cols="5"] { grid-template-columns: repeat(5, minmax(0,1fr)); }
.fblite[data-cols="6"] { grid-template-columns: repeat(6, minmax(0,1fr)); }

.fblite__cell {
  display: grid;
  place-items: center;
  min-height: 96px;
}

.fblite__link {
  display: inline-block;
  line-height: 0;
}

.fblite__img {
  max-width: 100%;
  max-height: 64px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Responsive tweaks */
@media (max-width: 1024px) { .fblite { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 768px)  { .fblite { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; } }
@media (max-width: 520px)  { .fblite { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; } }

/* Ultra-defensive reset so theme “cards” don’t bleed in */
.fblite * {
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* ========== Featured Brands A–Z (logo grid + heading) ========== */

.syngsc-featured-brands-az {
  margin: 40px 0;
}

/* simple in-page A–Z nav (if/when we add it) */
.syngsc-featured-brands-az .az-nav {
  text-align: center;
  margin: 20px 0;
}

.syngsc-featured-brands-az .az-nav-link {
  display: inline-block;
  padding: 6px 12px;
  margin: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.syngsc-featured-brands-az .az-nav-link:hover {
  background-color: #f5f5f5;
  border-color: #999;
  color: #000;
}

.syngsc-brand-az-group {
  margin-bottom: 32px;
}

.syngsc-brand-az-heading {
  font-weight: 700;
  margin: 24px 0 12px;
}

.syngsc-brand-az-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.syngsc-brand-az-cell {
  width: 150px;
  height: 120px;
  padding: 10px;
  margin: 4px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}

.syngsc-brand-az-logo {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
}

.syngsc-brand-az-name {
  font-size: 0.85rem;
}

/* Smooth scrolling for on-page anchors (if used) */
.syngsc-featured-brands-az [id] {
  scroll-margin-top: 120px;
}

/* ---------- Brand header (single brand page) ---------- */
.syngsc-brand-header {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 10px 12px 0;
}

.syngsc-brand-header__logo img {
  max-width: 260px;
  height: auto;
  display: inline-block;
  border-radius: 8px;
}

.syngsc-brand-header__title {
  margin: 18px 0 10px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 600;
}

.syngsc-brand-header__intro {
  margin: 0 auto;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- A–Z page ---------- */

.syngsc-brands-az__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 30px;
}

.syngsc-brands-az__navbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;

  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;

  color: var(--awb-color6, #0a3d62); /* CDA navy text */
  font-weight: 600;
  text-decoration: none;

  transition: all 0.15s ease;
}

.syngsc-brands-az__navbtn:hover,
.syngsc-brands-az__navbtn:focus {
  background: var(--awb-color6, #0a3d62); /* CDA navy */
  border-color: var(--awb-color6, #0a3d62);
  color: #fff;
  outline: none;
}

.syngsc-brands-az__navbtn.is-empty,
.syngsc-brands-az__navbtn.is-empty:hover,
.syngsc-brands-az__navbtn.is-empty:focus {
  opacity: 0.35;
  cursor: default;
  background: #fff;
  border-color: #e6e6e6;
  color: #888;
}

.syngsc-brands-az__group {
  margin: 24px 0 34px;
  border-top: 1px solid #e6e6e6;
  padding-top: 18px;
}

.syngsc-brands-az__heading {
  font-size: 22px;
  margin: 0 0 14px;
}

.syngsc-brands-az__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.syngsc-brands-az__tile {
  display: block;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  text-decoration: none;
}

.syngsc-brands-az__tile:hover {
  border-color: #cfcfcf;
}

.syngsc-brands-az__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.syngsc-brands-az__logo img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.syngsc-brands-az__nologo {
  width: 100%;
  height: 70px;
  border-radius: 6px;
  background: #f3f3f3;
}

@media (max-width: 1100px) {
  .syngsc-brands-az__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .syngsc-brands-az__grid { grid-template-columns: repeat(2, 1fr); }
}

.syngsc-location-brands {
    display: grid;
    grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
    gap: 26px 40px;
    align-items: center;
}

.syngsc-location-brands__cell {
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Container (you already have this right) */
.syngsc-location-brands__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 105px;
}

/* Image behaviour */
.syngsc-location-brands__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hover effect */
.syngsc-location-brands__img:hover {
    transform: scale(1.05);
    opacity: 0.85;
}