/* Product page FBT hero - eid 19899 / mockup Miłosz (dig2 polish 2026-09-06) */

.traktor-fbt-hero {
  --fbt-lime: #e4fd71;
  --fbt-card: #f2f2f2;
  --fbt-muted: #6b6b6b;
  --fbt-avail: #22c55e;
  --fbt-arrow-gutter: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 40px 0 48px;
  padding: 0;
  font-family: var(--font-family-family-primary, Sora, sans-serif);
  color: #000;
  box-sizing: border-box;
  overflow-x: clip;
  overflow-anchor: none;
}

.traktor-fbt-hero *,
.traktor-fbt-hero *::before,
.traktor-fbt-hero *::after {
  box-sizing: border-box;
}

.traktor-fbt-hero__inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.traktor-fbt-hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.traktor-fbt-hero__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  flex: 0 1 auto;
  max-width: min(100%, 420px);
  white-space: nowrap;
}

.traktor-fbt-hero__tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 16px;
  margin: 0 0 0 auto;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  padding-right: 12px;
}

.traktor-fbt-hero__tabs::-webkit-scrollbar {
  display: none;
}

/* Soft fade so last tab never looks hard-clipped */
.traktor-fbt-hero__head::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 40px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 75%);
}

.traktor-fbt-hero__tab,
.traktor-fbt-hero__all {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.traktor-fbt-hero__tab.is-active {
  color: #000;
  border-bottom-color: var(--fbt-lime);
}

.traktor-fbt-hero__all {
  color: #888;
}

.traktor-fbt-hero__all:hover {
  color: #000;
}

/* Karta = szerokość tytułu; strzałki w gutterze poza kartą (nie zwężają treści) */
.traktor-fbt-hero__carousel {
  position: relative;
  display: block;
  margin-left: calc(-1 * var(--fbt-arrow-gutter));
  margin-right: calc(-1 * var(--fbt-arrow-gutter));
  padding-left: var(--fbt-arrow-gutter);
  padding-right: var(--fbt-arrow-gutter);
}

.traktor-fbt-hero__card {
  background: var(--fbt-card);
  border-radius: 16px;
  overflow: visible;
  min-width: 0;
  width: 100%;
}

.traktor-fbt-hero__stage {
  position: relative;
  touch-action: pan-y;
  overflow: hidden;
}

.traktor-fbt-hero__slide {
  display: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 24px 40px;
  align-items: center;
  padding: 40px 48px;
  min-height: 360px;
}

.traktor-fbt-hero__slide.is-active {
  display: grid;
}

.traktor-fbt-hero__copy {
  position: relative;
  z-index: 3;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.traktor-fbt-hero__name {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.traktor-fbt-hero__name a {
  color: inherit;
  text-decoration: none;
}

.traktor-fbt-hero__name a:hover {
  text-decoration: underline;
}

.traktor-fbt-hero__fits {
  margin: 0 0 18px;
  color: var(--fbt-muted);
  font-size: 15px;
  line-height: 1.4;
}

.traktor-fbt-hero__price {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}

.traktor-fbt-hero__avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fbt-avail);
  margin: 0 0 16px;
}

.traktor-fbt-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fbt-avail);
  display: inline-block;
  flex-shrink: 0;
}

.traktor-fbt-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  position: relative;
  z-index: 3;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--fbt-lime);
  color: #000;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.traktor-fbt-hero__cta:hover,
.traktor-fbt-hero__cta:focus {
  color: #000;
  text-decoration: none;
  filter: brightness(0.97);
}

.traktor-fbt-hero__cta:disabled {
  opacity: 0.85;
  cursor: default;
  filter: none;
}

.traktor-fbt-hero__cta.is-added,
.traktor-fbt-hero__cta.is-added:hover,
.traktor-fbt-hero__cta.is-added:focus {
  background: #1f3d2b;
  color: var(--fbt-lime);
  cursor: pointer;
  filter: none;
  text-decoration: none;
}

.traktor-fbt-hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  text-decoration: none;
  overflow: visible;
}

.traktor-fbt-hero__rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(108%, 480px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle,
      transparent 0 28%,
      rgba(228, 253, 113, 0.7) 28% 28.9%,
      transparent 28.9% 40%,
      rgba(228, 253, 113, 0.55) 40% 40.9%,
      transparent 40.9% 52%,
      rgba(228, 253, 113, 0.4) 52% 52.9%,
      transparent 52.9% 64%,
      rgba(228, 253, 113, 0.28) 64% 64.9%,
      transparent 64.9% 76%,
      rgba(228, 253, 113, 0.18) 76% 76.9%,
      transparent 76.9%
    );
}

.traktor-fbt-hero__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.traktor-fbt-hero__noimg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 220px;
  background: #ececec;
  border-radius: 12px;
}

.traktor-fbt-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.traktor-fbt-hero__arrow--prev {
  left: 0;
}

.traktor-fbt-hero__arrow--next {
  right: 0;
}

.traktor-fbt-hero__arrow:hover {
  background: #fafafa;
  border-color: #ccc;
}

.traktor-fbt-hero__carousel.is-single .traktor-fbt-hero__arrow {
  visibility: hidden;
  pointer-events: none;
}

.traktor-fbt-hero__dashes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  min-height: 8px;
}

.traktor-fbt-hero__dashes[hidden] {
  display: none;
}

.traktor-fbt-hero__dash {
  height: 4px;
  width: 28px;
  border: 0;
  padding: 0;
  background: #d9d9d9;
  border-radius: 2px;
  cursor: pointer;
}

.traktor-fbt-hero__dash.is-active {
  background: var(--fbt-lime);
  width: 40px;
}

.traktor-fbt-hero__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 1080;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.traktor-fbt-hero__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1199px) {
  .traktor-fbt-hero__title {
    font-size: 15px;
  }

  .traktor-fbt-hero__tab,
  .traktor-fbt-hero__all {
    font-size: 12px;
    padding: 8px 0;
  }

  .traktor-fbt-hero__tabs {
    gap: 0 12px;
  }
}

@media (max-width: 991px) {
  .traktor-fbt-hero {
    --fbt-arrow-gutter: 20px;
    margin: 28px 0 36px;
    padding: 0;
  }

  .traktor-fbt-hero__head {
    position: relative;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    /* border only under title; tabs keep own scroll + underline */
    border-bottom: 0;
  }

  .traktor-fbt-hero__title {
    max-width: none;
    flex: 1 1 100%;
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    white-space: normal;
  }

  .traktor-fbt-hero__tabs {
    position: relative;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 0 16px;
    padding: 0 20px 0 0;
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
  }

  /* fixed fade on the right edge - scroll hint */
  .traktor-fbt-hero__head::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 42px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%);
  }

  .traktor-fbt-hero__tab,
  .traktor-fbt-hero__all {
    font-size: 13px;
    padding: 10px 0;
  }

  .traktor-fbt-hero__slide {
    display: none;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px 24px;
    min-height: 0;
  }

  .traktor-fbt-hero__slide.is-active {
    display: grid;
  }

  .traktor-fbt-hero__copy {
    max-width: none;
    order: 2;
  }

  .traktor-fbt-hero__media {
    order: 1;
    min-height: 200px;
  }

  .traktor-fbt-hero__name {
    font-size: 20px;
  }

  .traktor-fbt-hero__price {
    font-size: 22px;
  }

  .traktor-fbt-hero__cta {
    width: 100%;
  }

  .traktor-fbt-hero__media img {
    max-height: 220px;
  }

  .traktor-fbt-hero__rings {
    width: min(100%, 280px);
  }

  .traktor-fbt-hero__arrow {
    width: 40px;
    height: 40px;
  }

  .traktor-fbt-hero__toast {
    bottom: 110px;
  }
}

@media (max-width: 575px) {
  .traktor-fbt-hero {
    --fbt-arrow-gutter: 0px;
  }

  .traktor-fbt-hero__title {
    font-size: 13px;
  }

  .traktor-fbt-hero__carousel {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .traktor-fbt-hero__slide {
    padding: 20px 16px 24px;
  }

  .traktor-fbt-hero__arrow {
    display: none;
  }

  .traktor-fbt-hero__card {
    border-radius: 12px;
  }
}
