/**
 * @author    Veo by Kebes <hola@kebes.es>
 * @copyright 2026 Veo by Kebes
 * @license   https://opensource.org/licenses/AFL-3.0  Academic Free License 3.0 (AFL-3.0)
 */
/* Minimal layout; colours, fonts and sizes belong to the theme. */
.veohc {
  padding-block: 3rem;
}

.veohc__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.veohc__title {
  margin: 0;
}

.veohc__link {
  font-weight: 600;
}

.veohc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.veohc__chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.625rem;
  color: inherit;
  text-decoration: none;
}

.veohc__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.veohc__tab {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 2rem;
  background: none;
  color: inherit;
  cursor: pointer;
}

.veohc__tab.is-active {
  border-color: var(--bs-primary, #000);
  background: var(--bs-primary, #000);
  color: #fff;
}

/* Two columns on phones, as on most shop listings (Hummingbird shows one) */
@media (width < 576px) {
  .veohc .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

/* Carousel: the same row of products, sliding sideways with scroll-snap */
.veohc--carousel .veohc__panel {
  position: relative;
}

.veohc--carousel .products {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.veohc--carousel .products::-webkit-scrollbar {
  display: none;
}

.veohc--carousel .products > * {
  flex: 0 0 calc((100% - 3 * 1.5rem) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

.veohc__arrows {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.veohc__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.veohc__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (width < 992px) {
  .veohc--carousel .products > * {
    flex-basis: calc((100% - 2 * 1.5rem) / 3);
  }
}

@media (width < 576px) {
  .veohc--carousel .products {
    gap: 0.75rem;
  }

  .veohc--carousel .products > * {
    flex-basis: calc((100% - 0.75rem) / 2.2);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .veohc--carousel .products {
    scroll-behavior: smooth;
  }
}
