/* Brand directory: one horizontal language for featured brands and country discovery. */
.edc-brand-featured {
  position: relative;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  background: transparent;
}
.edc-brand-section-head {
  min-height: 52px;
  display: flex;
  align-items: center;
}
.edc-brand-featured .edc-brand-section-head h2,
.edc-brand-featured h2 {
  margin: 0;
  font-family: "Onest", Arial, sans-serif;
  font-size: 18px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.edc-brand-rail-controls {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}
.edc-brand-rail-controls button {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--edc-equipment-line, #dfe1dc);
  border-radius: var(--edc-equipment-control, 7px);
  background: #fff;
  color: var(--edc-equipment-ink, #111210);
  box-shadow: 0 6px 20px rgba(17,18,16,.12);
  transform: translateY(-50%);
  pointer-events: auto;
  transition: border-color 160ms cubic-bezier(.23,1,.32,1), background-color 160ms cubic-bezier(.23,1,.32,1), transform 120ms cubic-bezier(.23,1,.32,1), opacity 160ms ease;
}
.edc-brand-rail-controls [data-edc-horizontal-prev] { left: 10px; }
.edc-brand-rail-controls [data-edc-horizontal-next] { right: 10px; }
.edc-brand-rail-controls button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.edc-brand-rail-controls button:active:not(:disabled) { transform: translateY(-50%) scale(.97); }
.edc-brand-rail-controls button:disabled { opacity: 0; pointer-events: none; }
.edc-brand-rail-controls button:focus-visible,
.edc-brand-featured__rail:focus-visible,
.edc-brand-country-filter:focus-visible {
  outline: 2px solid var(--edc-focus, #1a5fa8);
  outline-offset: 2px;
}
.edc-brand-featured__frame {
  position: relative;
  min-width: 0;
  min-height: 82px;
  border-block: 1px solid var(--edc-equipment-line, #dfe1dc);
  background: #fff;
}
.edc-brand-featured__rail {
  min-width: 0;
  min-height: 80px;
  display: flex !important;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  padding: 0;
  background: #fff;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}
.edc-brand-featured__rail::-webkit-scrollbar,
.edc-brand-country-filter::-webkit-scrollbar { display: none; }
.edc-brand-featured__rail.is-dragging,
.edc-brand-country-filter.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.edc-brand-featured__rail > a {
  min-width: 0;
  min-height: 80px;
  flex: 0 0 12.5%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 10px 14px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  scroll-snap-align: start;
}
.edc-brand-featured__rail > a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 34px;
  background: var(--edc-line, #dfe1dc);
  transform: translateY(-50%);
}
body.edc-page .edc-brand-featured__rail img {
  width: min(100%, 132px);
  height: 42px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  transition: opacity 150ms cubic-bezier(.23,1,.32,1);
}
.edc-brand-country { margin: 0 0 34px; }
.edc-brand-country__stage {
  position: relative;
  min-width: 0;
  border-block: 1px solid var(--edc-equipment-line, #dfe1dc);
}
.edc-brand-index-page .edc-brand-country-filter {
  min-width: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  padding: 8px 2px;
  scrollbar-width: none;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
  cursor: grab;
}
.edc-brand-index-page .edc-brand-country-filter button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 13px;
  gap: 8px;
  border-radius: var(--edc-equipment-control, 7px);
  scroll-snap-align: start;
  transition: border-color 160ms cubic-bezier(.23,1,.32,1), background-color 160ms cubic-bezier(.23,1,.32,1), color 160ms cubic-bezier(.23,1,.32,1), transform 120ms cubic-bezier(.23,1,.32,1);
}
.edc-brand-index-page .edc-brand-country-filter button:active { transform: scale(.98); }
.edc-brand-index-page .edc-country-flag {
  pointer-events: none;
  user-select: none;
}
.edc-brand-index-page .edc-brand-group__links a {
  position: relative;
  padding-right: 16px;
}
.edc-brand-index-page .edc-brand-link__identity {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}
.edc-brand-link__title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.edc-brand-link__country {
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  display: inline-flex;
}
.edc-brand-link__country .edc-country-flag {
  width: 22px;
  height: 16px;
}
.edc-brand-index-page .edc-brand-link__categories {
  min-width: 0;
  align-self: center;
}
@media (hover: hover) and (pointer: fine) {
  .edc-brand-rail-controls button:not(:disabled):hover {
    border-color: var(--edc-equipment-control-hover, #aeb2aa);
    background: var(--edc-equipment-surface, #eef0ee);
  }
  .edc-brand-featured__rail a:hover img { opacity: .66; }
}
@media (max-width: 1120px) {
  .edc-brand-featured__rail > a { flex-basis: 16.6667%; }
}
@media (max-width: 700px) {
  .edc-brand-section-head { min-height: 48px; }
  .edc-brand-featured .edc-brand-section-head h2,
  .edc-brand-featured h2 { font-size: 16px; }
  .edc-brand-rail-controls { display: none; }
  .edc-brand-featured__frame { min-height: 74px; }
  .edc-brand-featured__rail {
    min-height: 72px;
    gap: 12px !important;
    scroll-snap-type: x proximity;
  }
  .edc-brand-featured__rail > a {
    min-height: 72px;
    flex: 0 0 calc((100% - 24px) / 2.3333) !important;
    padding-inline: 8px;
  }
  .edc-brand-featured__rail > a + a::before { display: none; }
  body.edc-page .edc-brand-featured__rail img {
    width: min(100%, 104px);
    height: 34px;
  }
  .edc-brand-index-page .edc-brand-country-filter {
    padding: 8px 28px 8px 0;
    scroll-padding-inline: 0 28px;
  }
  .edc-brand-index-page .edc-brand-country-filter button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .edc-brand-rail-controls button,
  .edc-brand-featured__rail img,
  .edc-brand-index-page .edc-brand-country-filter button { transition: none; }
}

/* Match the one-pixel divider beneath the brand alphabet. */
.edc-brand-index-rule {
  height: 1px;
  margin: 0 0 22px;
  background: var(--edc-line);
}
.edc-brand-featured__rail > a:focus-visible {
  outline: 2px solid var(--edc-focus, #1a5fa8);
  outline-offset: -3px;
}
.edc-brand-featured__rail > a > span {
  font-family: "Onest", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.edc-category-brands .edc-brand-featured__rail > a[aria-current="true"] {
  background: var(--edc-equipment-surface, #eef0ee);
  box-shadow: inset 0 -2px var(--edc-equipment-ink, #111210);
}
@media (hover: hover) and (pointer: fine) {
  .edc-category-brands .edc-brand-featured__rail > a:hover { background: var(--edc-equipment-surface, #eef0ee); }
}
@media (max-width: 700px) {
  .edc-brand-index-rule { margin-bottom: 16px; }
}
