/* --------------------------------------------------------------------------
   Pasek kategorii (widok mobilny) - pigułki z ikoną, przewijane poziomo
   -------------------------------------------------------------------------- */

.rk-pasek-wrap {
  position: relative;
}

.rk-pasek {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rk-pasek::-webkit-scrollbar {
  display: none;
}

.rk-pasek__lista {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  list-style: none;
}

/* ostatnia pigułka nie może kleić się do krawędzi ekranu */
.rk-pasek__pozycja:last-child {
  padding-right: 0.75rem;
}

.rk-pasek__pigulka {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid #e8e3da;
  border-radius: 999px;
  background: #fff;
  color: var(--rk-ink, #1b2733);
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
}

.rk-pasek__pigulka:hover,
.rk-pasek__pigulka:focus {
  color: var(--rk-ink, #1b2733);
  text-decoration: none;
}

.rk-pasek__pigulka.is-active {
  border-color: var(--rk-blue, #131310);
  color: var(--rk-blue, #131310);
  font-weight: 600;
}

.rk-pasek__ikona {
  display: inline-flex;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--rk-blue, #131310);
}

.rk-pasek__ikona svg {
  width: 100%;
  height: 100%;
}

/* --- strzałki przewijania --- */

.rk-pasek__wstecz,
.rk-pasek__dalej {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  width: 56px;
  height: 100%;
  padding: 0;
  border: 0;
  color: var(--rk-blue, #131310);
}

.rk-pasek__dalej {
  right: 0;
  justify-content: flex-end;
  padding-right: 0.25rem;
  /* delikatne wygaszenie pod strzałką, żeby pigułka nie urywała się ostro */
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 45%);
}

.rk-pasek__wstecz {
  left: 0;
  justify-content: flex-start;
  padding-left: 0.25rem;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff 45%);
}

.rk-pasek__wstecz svg,
.rk-pasek__dalej svg {
  width: 20px;
  height: 20px;
}

/* skraje listy - nie ma czego pokazywać w tę stronę */
.rk-pasek-wrap.is-koniec .rk-pasek__dalej,
.rk-pasek-wrap.is-poczatek .rk-pasek__wstecz {
  display: none;
}

/* Panel mega menu - modul rkmegamenu.
   Style dotycza WYLACZNIE menu desktopowego; menu mobilne hummingbirda
   nie jest tu w zaden sposob ruszane. */

.rk-mega {
  position: relative;
  padding: 1.75rem 0 2rem;
}

/* panel ze zdjęciem dostaje pas u dołu, żeby grafika nie wchodziła
   pod tekst ostatniej kolumny (widać to zwłaszcza w niskim panelu Soczewek) */
.rk-mega--zfoto {
  padding-bottom: 6.5rem;
}

/* zdjęcie w prawym dolnym rogu panelu - dekoracja pod treścią */
.rk-mega__foto {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  /* wysokość liczona od panelu - w niskich panelach (Soczewki) zdjęcie
     musi zejść z drogi tekstowi ostatniej kolumny */
  width: auto;
  height: auto;
  max-width: min(28%, 520px);
  max-height: 50%;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;

  /* zdjęcia bywają ciemne (okulary przeciwsłoneczne) i wchodziłyby pod tekst
     ostatniej kolumny - maska wygasza je od góry i od lewej */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 45%),
    linear-gradient(to left, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 45%),
    linear-gradient(to left, #000 55%, transparent 100%);
  mask-composite: intersect;
}

.rk-mega__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 24fr) minmax(0, 52fr) minmax(0, 24fr);
  gap: 0;
  max-width: var(--rk-container, 1320px);
  margin: 0 auto;
  padding: 0 12px;
}

/* --- kolumna z galeziami (dziala jak zakladki) --- */

.rk-mega__branches {
  padding-right: 1.75rem;
}

.rk-mega__label {
  margin: 0 0 0.875rem;
  font-size: 0.75rem;
  color: var(--rk-muted, #5b6875);
}

.rk-mega__branch {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  color: var(--rk-ink, #1b2733);
  text-decoration: none;
  transition: background-color 0.15s ease-in-out;
}

.rk-mega__branch + .rk-mega__branch {
  margin-top: 0.5rem;
}

.rk-mega__branch.is-active,
.rk-mega__branch:hover {
  background: #f7f3ec;
  color: var(--rk-ink, #1b2733);
  text-decoration: none;
}

.rk-mega__branch-icon,
.rk-mega__item-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--rk-blue, #131310);
}

.rk-mega__branch-icon svg,
.rk-mega__item-icon svg {
  width: 100%;
  height: 100%;
}

.rk-mega__branch-text,
.rk-mega__item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.rk-mega__branch-name,
.rk-mega__item-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rk-ink, #1b2733);
}

.rk-mega__branch-sub,
.rk-mega__item-sub {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--rk-muted, #5b6875);
}

.rk-mega__chevron {
  flex: 0 0 auto;
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #98a2b0;
}

.rk-mega__chevron svg {
  width: 100%;
  height: 100%;
}

/* --- kolumny z pozycjami --- */

.rk-mega__groups {
  border-left: 1px solid #efece7;
  border-right: 1px solid #efece7;
  padding: 0 1.75rem;
}

/* widoczny jest komplet kolumn tylko dla wybranej galezi */
.rk-mega__set {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.rk-mega__set.is-active {
  display: grid;
}

.rk-mega__group-title {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rk-blue, #131310);
}

.rk-mega__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid #f3f1ec;
  color: var(--rk-ink, #1b2733);
  text-decoration: none;
}

.rk-mega__item:last-of-type {
  border-bottom: 0;
}

.rk-mega__item:hover {
  color: var(--rk-blue, #131310);
  text-decoration: none;
}

.rk-mega__item:hover .rk-mega__item-name {
  color: var(--rk-blue, #131310);
}

.rk-mega__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rk-blue, #131310);
  text-decoration: none;
}

.rk-mega__all svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s ease-in-out;
}

.rk-mega__all:hover svg {
  transform: translateX(3px);
}

/* --- kolumny redakcyjne (typ opraw, polecane, blok partnera) --- */

.rk-mega__col {
  padding-left: 1.75rem;
}

/* ostatnia kolumna to blok informacyjny - bez linii miedzy pozycjami */
.rk-mega__col--pro .rk-mega__item {
  border-bottom: 0;
  padding: 0.5rem 0;
}

/* pozycja bez adresu: wyglada tak samo, ale nie reaguje jak odnosnik */
.rk-mega__item--statyczna {
  cursor: default;
}

.rk-mega__item--statyczna:hover,
.rk-mega__item--statyczna:hover .rk-mega__item-name {
  color: var(--rk-ink, #1b2733);
}

.rk-mega__item--statyczna .rk-mega__chevron {
  display: none;
}

/* --- wariant plaski: cztery rownorzedne kolumny (Oprawy) --- */

.rk-mega--lista .rk-mega__inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 0;
}

/* menu bez kolumn redakcyjnych (np. Okulary przeciwsłoneczne) - same kategorie
   w dwoch kolumnach, zeby panel nie byl w 3/4 pusty */
.rk-mega--kol1 .rk-mega__inner {
  grid-template-columns: minmax(0, 1fr);
}

.rk-mega--kol1 .rk-mega__col--kategorie {
  column-count: 2;
  column-gap: 3.5rem;
}

.rk-mega--kol1 .rk-mega__col--kategorie .rk-mega__group-title {
  column-span: all;
}

.rk-mega--kol2 .rk-mega__inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rk-mega--kol3 .rk-mega__inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rk-mega--lista .rk-mega__col--kategorie {
  padding-left: 0;
  padding-right: 1.75rem;
}

.rk-mega--lista .rk-mega__col--2,
.rk-mega--lista .rk-mega__col--3 {
  border-left: 1px solid #efece7;
  padding-right: 1.75rem;
}

.rk-mega--lista .rk-mega__col--4 {
  border-left: 1px solid #efece7;
}

/* --- ponizej XL menu desktopowe i tak sie nie pokazuje --- */

@media (max-width: 1399.98px) {
  .rk-mega__inner {
    grid-template-columns: minmax(0, 26fr) minmax(0, 48fr) minmax(0, 26fr);
  }

  .rk-mega__branches,
  .rk-mega__groups,
  .rk-mega__col {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .rk-mega__branches {
    padding-left: 0;
  }

  .rk-mega__col:last-child {
    padding-right: 0;
  }

  .rk-mega--lista .rk-mega__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rk-mega--lista .rk-mega__col--kategorie {
    padding-left: 0;
  }
}

/* ==========================================================================
   UKLAD Z GRUPAMI (makieta HOSSA, 2026-09-06)
   Kolumny tematyczne definiowane w module, pozycje wskazuja na kategorie.
   ========================================================================== */

.rk-mega--grupy {
  padding: 2rem 0 0;
}

.rk-mega--grupy .rk-mega__inner {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.rk-mega--grupy .rk-mega__kol--grupa {
  padding: 0 1.5rem;
  /* pionowa kreska miedzy kolumnami; ostatnia jej nie potrzebuje */
  border-right: 1px solid var(--rk-line, #ececec);
}

.rk-mega--grupy .rk-mega__kol--grupa:last-child {
  border-right: 0;
}

.rk-mega--grupy .rk-mega__kol--grupa:first-child {
  padding-left: 0;
}

/* --- naglowek kolumny: ikona w kolku + tytul + podtytul --- */

.rk-mega__kol-head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.rk-mega__kol-ikona {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0.75rem;
  border-radius: 999px;
  /* jasny bez z logo - kolko ma byc tlem dla ikony, nie plama koloru */
  background: #f7efe3;
  color: var(--rk-blue, #b08a4e);
}

.rk-mega__kol-ikona svg {
  width: 100%;
  height: 100%;
}

.rk-mega__kol-tekst {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding-top: 0.25rem;
}

.rk-mega__kol-tytul {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rk-ink, #1b2733);
  line-height: 1.25;
}

.rk-mega__kol-sub {
  font-size: 0.8125rem;
  color: var(--rk-muted, #5b6875);
  line-height: 1.35;
}

/* --- pozycje kolumny --- */

.rk-mega--grupy .rk-mega__item {
  gap: 0.75rem;
  padding: 0.4375rem 0.5rem;
}

.rk-mega--grupy .rk-mega__item-icon {
  width: 22px;
  height: 22px;
}

.rk-mega--grupy .rk-mega__item-name {
  font-size: 0.9375rem;
}

/* --- pasek atutow pod kolumnami --- */

.rk-mega__atuty {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: var(--rk-container, 1320px);
  margin: 2rem auto 0;
  padding: 1.25rem 12px;
  border-top: 1px solid var(--rk-line, #ececec);
}

.rk-mega__atut {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  border-right: 1px solid var(--rk-line, #ececec);
}

.rk-mega__atut:last-child {
  border-right: 0;
}

.rk-mega__atut:first-child {
  padding-left: 0;
}

.rk-mega__atut-ikona {
  flex: 0 0 auto;
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: var(--rk-blue, #b08a4e);
}

.rk-mega__atut-ikona svg {
  width: 100%;
  height: 100%;
}

.rk-mega__atut-tekst {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.rk-mega__atut-tytul {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rk-ink, #1b2733);
}

.rk-mega__atut-sub {
  font-size: 0.8125rem;
  color: var(--rk-muted, #5b6875);
}

/* ponizej 1400 px piec kolumn robi sie za ciasne - schodzimy do trzech,
   a pasek atutow do dwoch */
@media (max-width: 1399.98px) {
  .rk-mega--grupy .rk-mega__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2rem;
  }

  .rk-mega--grupy .rk-mega__kol--grupa:nth-child(3n) {
    border-right: 0;
  }

  .rk-mega__atuty {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1rem;
  }

  .rk-mega__atut:nth-child(2n) {
    border-right: 0;
  }
}
