/* =========================================
   CAROUSEL – GRAFIKARNA.CZ (UPGRADE)
========================================= */

/* WRAPPER */
.carousel-kontejner .carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 25px;
}

/* TRACK */
.carousel-kontejner .carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  padding: 0 50px; /* prostor pro šipky */
  transition: transform 0.3s ease;
}

/* ITEM */
.carousel-kontejner .carousel-item {
  flex: 0 0 200px;
  max-width: 200px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* IMAGE */
.carousel-kontejner .carousel-item img {
  width: 100%;
  display: block;
}

/* TEXT */
.carousel-kontejner .carousel-item span {
  display: block;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
}

/* HOVER */
.carousel-kontejner .carousel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ACTIVE */
.carousel-kontejner .carousel-item.active {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* BUTTONS */
.carousel-kontejner .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.carousel-kontejner .carousel-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-50%) scale(1.1);
}

.carousel-kontejner .carousel-btn.prev {
  left: 5px;
}

.carousel-kontejner .carousel-btn.next {
  right: 5px;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px){

  .carousel-kontejner .carousel-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0;
  }

  .carousel-kontejner .carousel-item {
    flex: 0 0 140px;
    max-width: 140px;
    scroll-snap-align: start;
  }

  .carousel-kontejner .carousel-btn {
    display: none;
  }

}