.fed-stockists {
  --fg: #1f1f1f;
  --muted: #6b7280;
  --line: #ececec;
  --accent: #1f1f1f;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 20px 12px;
  box-sizing: border-box;
}

.fed-stockists * {
  box-sizing: border-box;
}

.fed-stockists .fed-stk-head {
  text-align: center;
  margin: 0 auto 10px;
  max-width: 680px;
}

.fed-stockists .fed-stk-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.fed-stockists .fed-stk-head p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.fed-stockists .fed-stk-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  text-decoration: none;
  /* background: #fff; */
  /* border: 1px solid var(--line); */
  border-radius: 18px;
  padding: 30px 22px 24px;
  min-height: 248px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  /* box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); */
  height: 100%;
}

.fed-stockists .fed-stk-card:hover {
  transform: translateY(-5px);
  border-color: #d8d8d8;
}

.fed-stockists .fed-stk-logo {
  height: 73px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.fed-stockists .fed-stk-logo img {
  max-height: 58px;
  max-width: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
}

.fed-stockists .fed-stk-logo.is-badge img {
  max-height: 100%;
}

.fed-stockists .fed-stk-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.3;
}

.fed-stockists .fed-stk-pin {
  flex: 0 0 auto;
  opacity: 0.8;
}

.fed-stockists .fed-stk-visit {
  margin-top: 0;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 1;
  transform: none;
}

/* Grid mode */
.fed-stockists:not(.is-slider) .fed-stk-swiper-wrap {
  display: none;
}

.fed-stockists:not(.is-slider) .fed-stk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .fed-stockists:not(.is-slider) .fed-stk-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
  }

  .fed-stockists .fed-stk-logo {
    margin-bottom: 20px;
  }

  .fed-stockists .fed-stk-visit {
    margin-top: 0;
    padding-top: 9px;
  }
}

@media (max-width: 767px) {
  .fed-stockists .fed-stk-card {
    min-height: 210px;
    padding: 24px 14px 20px;
  }

  .fed-stockists .fed-stk-logo {
    height: 64px;
    margin-bottom: 14px;
  }

  .fed-stockists .fed-stk-logo img {
    max-height: 42px;
    max-width: 75%;
  }

  .fed-stockists .fed-stk-logo.is-badge img {
    max-height: 58px;
  }

  .fed-stockists .fed-stk-visit {
    opacity: 1;
    transform: none;
    margin-top: 8px;
    padding-top: 10px;
  }

  .fed-stockists.is-slider .fed-stk-swiper-wrap {
    padding: 0;
  }

  .fed-stockists.is-slider .fed-stk-nav {
    display: none;
  }

  .fed-stockists.is-slider .fed-stk-swiper {
    overflow: visible;
  }
}

/* Slider */
.fed-stockists .fed-stk-swiper-wrap {
  position: relative;
  padding: 0 44px;
}

.fed-stockists.is-slider .fed-stk-grid {
  display: none;
}

.fed-stockists .fed-stk-swiper {
  overflow: hidden;
}

@media (min-width: 768px) {
  .fed-stockists.is-slider .fed-stk-swiper {
    overflow: hidden;
  }
}

.fed-stockists .fed-stk-swiper .swiper-slide {
  height: auto;
}

.fed-stockists .fed-stk-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease;
}

.fed-stockists .fed-stk-nav:hover {
  border-color: #d8d8d8;
}

.fed-stockists .fed-stk-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.fed-stockists .fed-stk-nav--prev {
  left: 0;
}

.fed-stockists .fed-stk-nav--next {
  right: 0;
}

.fed-stockists .fed-stk-pagination {
  display: none;
}

@media (max-width: 767px) {
  .fed-stockists.is-slider .fed-stk-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    position: static;
    width: 100%;
  }

  .fed-stockists.is-slider .fed-stk-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: var(--muted);
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .fed-stockists.is-slider .fed-stk-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent);
    transform: scale(1.15);
  }
}

@media (max-width: 520px) {
  .fed-stockists:not(.is-slider) .fed-stk-swiper-wrap {
    padding: 0 36px;
  }

  .fed-stockists .fed-stk-nav {
    width: 34px;
    height: 34px;
  }
}

/* White theme */
.fed-stockists.is-white {
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.75);
  --line: rgba(255, 255, 255, 0.3);
  --accent: #fff;
}

.fed-stockists.is-white .fed-stk-logo img {
  filter: grayscale(100%) invert(1);
}

.fed-stockists.is-white .fed-stk-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.fed-stockists.is-white .fed-stk-nav {
  background: transparent;
  color: #fff;
}

.fed-stockists.is-white .fed-stk-nav:hover {
  border-color: rgba(255, 255, 255, 0.6);
}
