/* Brand directory: the reference site's warm, quiet brand-gallery treatment.
   Scoped to Products so the shared navigation and other pages stay unchanged. */
body.af-system.catalog-reference {
  background: #fff;
}

body.af-system.catalog-reference .product-brand-directory {
  padding: 38px clamp(24px, 4vw, 76px) 64px;
  background: #fff;
  color: #171717;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

body.af-system.catalog-reference .directory-inner {
  max-width: 1440px;
  margin: 0 auto;
}

body.af-system.catalog-reference .product-type-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  overflow: visible;
}

body.af-system.catalog-reference .product-type-filter {
  min-height: 46px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4d4944;
  font: 400 16px/1.4 Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

body.af-system.catalog-reference .product-type-filter:hover {
  background: rgba(255, 255, 255, .7);
  color: #111;
}

body.af-system.catalog-reference .product-type-filter[aria-pressed="true"] {
  background: #111;
  color: #fff;
}

body.af-system.catalog-reference .brand-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.7vw, 24px);
}

body.af-system.catalog-reference .brand-directory-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: clamp(168px, 15vw, 220px);
  padding: 24px;
  border: 1px solid rgba(174, 194, 207, .52);
  border-radius: 20px;
  background: #fff;
  color: #163f36;
  text-decoration: none;
  box-shadow:
    0 18px 48px rgba(29, 52, 66, .09),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(181, 201, 214, .2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.af-system.catalog-reference .brand-directory-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

body.af-system.catalog-reference .brand-directory-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 160, 179, .72);
  box-shadow:
    0 24px 58px rgba(29, 52, 66, .14),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(181, 201, 214, .28);
}

body.af-system.catalog-reference .brand-directory-card img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 116px;
  object-fit: cover;
  object-position: center;
}

body.af-system.catalog-reference .brand-directory-card--logo-wide img {
  object-fit: contain;
}

body.af-system.catalog-reference .brand-wordmark {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
  text-align: center;
}

body.af-system.catalog-reference .brand-directory-card[href*="brand=NEXCELL"] .brand-wordmark {
  font-size: clamp(21px, 1.8vw, 29px);
}

body.af-system.catalog-reference .brand-directory-label {
  max-width: 100%;
  color: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

body.af-system.catalog-reference .product-type-filter:focus-visible,
body.af-system.catalog-reference .brand-directory-card:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 4px;
}

.brand-products-panel {
  display: none;
}

@media (max-width: 760px) {
  body.af-system.catalog-reference .product-brand-directory {
    padding: 24px 20px 40px;
  }

  body.af-system.catalog-reference .product-type-filters {
    gap: 6px;
    margin-bottom: 24px;
  }

  body.af-system.catalog-reference .product-type-filter {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }

  body.af-system.catalog-reference .brand-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.af-system.catalog-reference .brand-directory-card {
    min-height: 142px;
    padding: 20px 14px;
    border-radius: 16px;
  }

  body.af-system.catalog-reference .brand-directory-card img {
    max-width: 170px;
    height: 90px;
  }

  body.af-system.catalog-reference .brand-wordmark {
    font-size: 16px;
    letter-spacing: .12em;
  }

  body.af-system.catalog-reference .brand-directory-card[href*="brand=NEXCELL"] .brand-wordmark {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  body.af-system.catalog-reference .product-type-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.af-system.catalog-reference .product-type-filter {
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  body.af-system.catalog-reference .product-brand-directory {
    padding-right: 14px;
    padding-left: 14px;
  }

  body.af-system.catalog-reference .brand-directory-card {
    min-height: 124px;
    padding: 16px 10px;
  }

  body.af-system.catalog-reference .brand-directory-card img {
    height: 76px;
  }

  body.af-system.catalog-reference .brand-wordmark {
    font-size: 14px;
    letter-spacing: .1em;
  }

  body.af-system.catalog-reference .brand-directory-card[href*="brand=NEXCELL"] .brand-wordmark {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.af-system.catalog-reference .product-type-filter,
  body.af-system.catalog-reference .brand-directory-card {
    transition: none;
  }
}
