/* Skisport Drápela – custom styles (Systedo). Template: Classic. Units in px only. */

:root {
  --systedo-blue: #0088bf;
  --systedo-navy: #0b2540;
  --systedo-ice: #eaf5fb;
}

/* ---------- HP category hub (rozcestník) ---------- */

.systedo-hub {
  margin: 24px 0 8px;
}

/* Until the script moves the hub under the carousel it sits inside the welcome text at the bottom. */
.welcome .systedo-hub {
  margin-bottom: 32px;
}

.systedo-hub .systedo-hub__title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--systedo-navy);
  text-align: center;
}

.systedo-hub .systedo-hub__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.systedo-hub .systedo-hub__item {
  margin: 0;
  padding: 0;
}

.systedo-hub .systedo-hub__item::before {
  display: none !important; /* Classic bullets inside content lists */
}

.systedo-hub .systedo-hub__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 12px 12px 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--systedo-ice);
  color: var(--systedo-navy);
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.systedo-hub .systedo-hub__link:hover,
.systedo-hub .systedo-hub__link:focus-visible {
  border-color: var(--systedo-blue);
  box-shadow: 0 8px 20px rgba(11, 37, 64, 0.12);
  transform: translateY(-2px);
}

.systedo-hub .systedo-hub__link:focus-visible {
  outline: 3px solid var(--systedo-navy);
  outline-offset: 2px;
}

.systedo-hub .systedo-hub__img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin: 0 auto 8px;
}

.systedo-hub .systedo-hub__label {
  margin-top: auto;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.systedo-hub .systedo-hub__label::after {
  content: " \203A"; /* › */
  color: var(--systedo-blue);
}

/* Bazar tile – highlighted, text only */
.systedo-hub .systedo-hub__item--bazar .systedo-hub__link {
  justify-content: center;
  gap: 10px;
  background: var(--systedo-blue);
  color: #fff;
  text-align: center;
}

.systedo-hub .systedo-hub__item--bazar .systedo-hub__link:hover,
.systedo-hub .systedo-hub__item--bazar .systedo-hub__link:focus-visible {
  border-color: var(--systedo-navy);
}

.systedo-hub .systedo-hub__bazar-kicker {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.systedo-hub .systedo-hub__bazar-text {
  max-width: 220px;
  font-size: 15px;
  line-height: 1.35;
}

.systedo-hub .systedo-hub__item--bazar .systedo-hub__label {
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 6px;
  background: #fff;
  color: var(--systedo-navy);
  font-size: 15px;
}

.systedo-hub .systedo-hub__item--bazar .systedo-hub__label::after {
  color: var(--systedo-blue);
}

/* Wide desktop: all 8 tiles in one compact row */
@media (min-width: 1200px) {
  .systedo-hub .systedo-hub__list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
  }

  .systedo-hub .systedo-hub__link {
    padding: 10px 8px 12px;
  }

  .systedo-hub .systedo-hub__label {
    font-size: 15px;
  }

  .systedo-hub .systedo-hub__bazar-kicker {
    font-size: 19px;
  }

  .systedo-hub .systedo-hub__bazar-text {
    font-size: 13px;
  }

  .systedo-hub .systedo-hub__item--bazar .systedo-hub__label {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* Mobile: one horizontally scrollable strip, so products stay close to the top */
@media (max-width: 767px) {
  .systedo-hub {
    margin-top: 16px;
  }

  .systedo-hub .systedo-hub__title {
    font-size: 20px;
  }

  .systedo-hub .systedo-hub__list {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 40%;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .systedo-hub .systedo-hub__item {
    scroll-snap-align: start;
  }

  .systedo-hub .systedo-hub__link {
    padding: 8px 8px 10px;
  }

  .systedo-hub .systedo-hub__label {
    font-size: 15px;
  }

  .systedo-hub .systedo-hub__bazar-kicker {
    font-size: 19px;
  }

  .systedo-hub .systedo-hub__bazar-text {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .systedo-hub .systedo-hub__link {
    transition: none;
  }

  .systedo-hub .systedo-hub__link:hover {
    transform: none;
  }
}
