/* Home store discovery. Splide owns movement; this file owns appearance. */
.stores-carousel {
  visibility: visible;
}

.stores-carousel .splide__track {
  padding-block: 8px 18px;
  margin-top: -8px;
}

.stores-carousel .splide__slide {
  height: auto;
}

.stores-carousel .store-card {
  height: 100%;
}

.stores-carousel .store-card h3 {
  line-height: 1.8;
}

/* An inset ring stays visible on cards at the track's clipped side edges. */
.stores-carousel .store-card:focus-within {
  outline-offset: -3px;
  box-shadow: none;
}

.stores-carousel .store-logo img {
  -webkit-user-drag: none;
}

.stores-carousel-footer,
.stores-carousel .splide__arrows {
  display: flex;
  align-items: center;
}

.stores-carousel-footer {
  justify-content: space-between;
  gap: 16px;
}

.stores-carousel-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-muted, #647066);
  font-size: 10px;
}

.stores-carousel-hint svg {
  width: 20px;
  height: 20px;
}

.stores-carousel .splide__arrows {
  gap: 6px;
}

.stores-carousel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dfe7e3;
  border-radius: 8px;
  background: #fff;
  color: #1c1c4d;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.stores-carousel button svg {
  width: 18px;
  height: 18px;
}

.stores-carousel button:focus-visible {
  outline: 3px solid #178567;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .stores-carousel button:hover {
    background: #1c1c4d;
    border-color: #1c1c4d;
    color: #fff;
  }
}

/* No library / no JavaScript: every original store remains readable and linked. */
.stores-carousel:not(.is-initialized) .splide__track {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c5dfd3 transparent;
}

.stores-carousel:not(.is-initialized) .splide__list {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stores-carousel:not(.is-initialized) .splide__slide {
  flex: 0 0 270px;
}

.stores-carousel:not(.is-initialized) .stores-carousel-footer {
  display: none;
}

@media (max-width: 640px) {
  .stores-carousel .store-card {
    min-height: 84px;
  }

  .stores-carousel:not(.is-initialized) .splide__slide {
    flex-basis: 220px;
  }

  .stores-carousel-footer {
    gap: 8px;
  }

  .stores-carousel-hint {
    font-size: 9px;
    gap: 6px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .stores-carousel button {
    transition: none;
  }
}
