/* MAIN CONTAINER */
#quiz-section {
  position: relative;
  margin-top: 4rem;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
  border-radius: 24px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* HEADINGS */
#quiz-ui h2,
.quiz-message {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  margin: 2.5rem 0 3.5rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#quiz-ui h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #fff;
}

/* BUTTONS */
#quiz-ui .btn-wrap button {
  margin: 1rem;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #0f0f0f, #1c1c1c);
  color: #fff;
  border: 2px solid #f80120;
  border-radius: 50px;
  font-size: 1.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(248, 1, 32, 0.3);
}

#quiz-ui .btn-wrap button:hover {
  background: linear-gradient(45deg, #f80120, #ff4d4d);
  box-shadow: 0 6px 16px rgba(248, 1, 32, 0.5);
}

/* LAYOUT WRAPPERS */
.btn-wrap {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Slider styles */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%) !important;
  padding: 20px 60px;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.slider-inner {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-x;
  user-select: none;
  width: fit-content;
}

.slider-inner .product-card {
  flex: 0 0 200px;
  margin-right: 15px;
  box-sizing: border-box;
}

/* Navigation buttons */
#quiz-wrapper .slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(45deg, #f80120, #ff4d4d);
  border: none;
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 12px rgba(248, 1, 32, 0.4);
  z-index: 10;
}

#quiz-wrapper .slider-button:hover {
  background: linear-gradient(45deg, #d7001a, #ff6666);
  box-shadow: 0 8px 16px rgba(248, 1, 32, 0.6);
}
#quiz-wrapper .slider-button.prev {
  left: 10px;
}

#quiz-wrapper .slider-button.next {
  right: 10px;
}
#quiz-wrapper .slider-button[disabled] {
  background: #4a4a4a;
  opacity: 0.6;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

#quiz-wrapper .slider-button svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

#quiz-wrapper .slider-button:hover svg {
  stroke: #ffffff;
}
/* Back button */
#quiz-section .back-button {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(45deg, #0f0f0f, #1c1c1c);
  border: 2px solid #f80120;
  border-radius: 12px;
  /* width: 48px; */
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(248, 1, 32, 0.3);
  z-index: 20;
}

#quiz-section .back-button:hover {
  box-shadow: 0 6px 16px rgba(248, 1, 32, 0.5);
}

#quiz-section .back-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

#quiz-section .back-button:hover svg {
  stroke: #ffffff;
}
/* Product card */
.product-card {
  background: linear-gradient(145deg, #1c1c1c, #0f0f0f);
  color: #fff;
  border: 1px solid #ff4d4d;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(248, 1, 32, 0.3);
}

.product-card img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
  transform: scale(1.03);
}

/* .product-card h3 {
  font-size: 1.1rem;
  margin: 0.75rem 0;
  font-weight: 600;
} */

.product-card p {
  font-weight: bold;
  margin: 0.75rem 0;
  font-size: 1.6rem;
  color: #fff;
}

.product-card a {
  text-decoration: none;
  color: #ff4d4d;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  margin-top: 0.75rem;
  transition: color 0.3s ease;
}

.product-card a:hover {
  color: #f80120;
}

.fi {
  padding-right: 5px;
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #4a4a4a;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
  background: linear-gradient(45deg, #f80120, #ff4d4d);
  width: 12px;
  height: 12px;
  box-shadow: 0 2px 6px rgba(248, 1, 32, 0.5);
}

.dot:hover {
  background: #ff6666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #quiz-section {
    padding: 2rem 0rem;
    margin: 0rem;
  }
  #quiz-ui .quiz-message,
  #quiz-ui h2 {
    padding: 0px 10px;
  }

  .slider-inner .product-card {
    flex: 0 0 calc(40vw - 12px);
    margin-right: 12px;
    padding: 0.8rem;
  }

  .product-card {
    padding: 1rem;
    border-radius: 16px;
  }

  .product-card img {
    height: auto;
    max-height: 200px;
  }

  .product-card h3 {
    font-size: 1.1rem;
  }

  .product-card p {
    font-size: 1.4rem;
  }

  .slider-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .slider-wrapper {
    padding: 10px 10px !important;
  }

  #quiz-wrapper .slider-button.prev {
    left: -10px;
  }
  #quiz-wrapper .slider-button.next {
    right: -10px;
  }
  #quiz-wrapper .slider-button {
    display: none;
    width: 32px;
    height: 32px;
  }
  #quiz-section .back-button {
    width: 30px;
    height: 30px;
    top: 1rem;
    left: 1rem;
  }

  #quiz-section .back-button svg {
    width: 18px;
    stroke: #ffffff;
    height: 18px;
  }

  .dots-container {
    gap: 15px;
  }

  .dot {
    width: 12px;
    height: 12px;
  }

  .dot.active {
    width: 14px;
    height: 14px;
  }
}


/* ...Zmenšenie výšky product cart na mobile... */

@media (max-width: 600px) {
  .product-card img {
    height: auto;
    max-height: 150px;
  }
  .product-card h3 {
    font-size: 0.7rem;
  }

  .product-card p {
    font-size: 1.3rem;
  }
}




/* ...pôvodný CSS ponechaný... */

/* POPISOK - rovnaké ako v JL_ANG_kviz.css */
.quiz-message-popis {
  font-size: 1.9rem;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 18px;
  text-align: center;
  margin-bottom: 1.4rem;
  margin-top: -2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .quiz-message-popis {
    font-size: 1.3rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
  }
}
