/* bazowo */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; background: #fff; }

/* ukryty seed */
.seed { display: none; }

/* kontener */
.katalog{
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* tło możesz mieć hidden */
  display: grid;
  place-items: center;
}

/* karuzela */
.wheel{
  position: relative;
  width: min(92vmin, 780px);
  height: min(92vmin, 780px);
  overflow: visible; /* ważne */
}

.wheel .item{
  position: absolute;
  width: var(--itemSize, 160px);
  height: var(--itemSize, 160px);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.wheel .item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* viewer */
.viewer{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.viewer.is-open{ display: flex; }

.viewer img{
  width: min(86vw, 520px);
  height: min(86vw, 520px);
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 22px 80px rgba(0,0,0,0.45);
}

.viewer__close{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 26px;
  line-height: 44px;
  z-index: 9999;
}

/* FILTER DOCK */
.filterDock{
  position: fixed;
  left: -6vw;     /* wystaje */
  bottom: -4vh;   /* wystaje */
  width: 340px;
  max-width: 78vw;
  padding: 14px 14px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.22);
  z-index: 9999;
}

.filterDock__title{
  font-weight: 700;
  font-size: 13px;
  opacity: 0.75;
  margin: 0 0 10px;
}

.filterWheel{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.filterWheel::-webkit-scrollbar{ height: 6px; }
.filterWheel::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.18); border-radius: 999px; }

.filterChip{
  flex: 0 0 auto;
  border: 0;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  scroll-snap-align: start;
  user-select: none;
}

.filterChip.is-active{
  background: rgba(0,0,0,0.86);
  color: #fff;
}