/* --- LAYOUT --- */
.layout {
  margin: 40px auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  max-width: 1200px;
  padding: 0 20px;
  flex-wrap: wrap;
}

/* LEVÝ BLOK */
.left_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 500px;
  max-width: 600px;
}

/* PRAVÝ BLOK – trochu širší */
.right_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 450px;
  max-width: 550px;
}

/* POPIS */
.description_container {
  margin-top: 20px;
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px 20px;
  text-align: left;
  width: 100%;
}

.price {
    font-weight: bold;
    color: #e44d26;
    margin: 20px 0px;
    font-size: 24px;
}

/* TLAČÍTKO */
.add_to_cart_btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.1s;
  align-self: center;
}

.add_to_cart_btn:hover {
  background-color: #f0a500;
  cursor: pointer;
  transform: translateY(-2px);
}

/* SLIDER */
.slider {
  position: relative;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slides {
  position: relative;
  width: 100%;
  height: auto;
}

.slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 10px;
  object-fit: cover;
}

.slides img.active {
  position: relative;
  opacity: 1;
  z-index: 2;
}

/* TLAČÍTKA ŠIPEK */
button.prev, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
  user-select: none;
  border-radius: 5px;
  transition: background 0.2s;
  z-index: 3;
}

button.prev:hover,
button.next:hover {
  background: rgba(0,0,0,0.7);
}

button.prev { left: 10px; }
button.next { right: 10px; }

/* PARAMETRY */
.parameters_container {
  margin-top: 25px;
  width: 100%;
}

.parameter_category_block {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px 25px;
  margin-bottom: 20px;
  background-color: #fafafa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  width: 100%;
}

.parameter_category_block h4 {
  margin-top: 0;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
  color: #333;
  font-size: 1.1rem;
}

.parameter_container {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  gap: 20px;
}

.param_name {
  font-weight: 500;
  color: #444;
  min-width: 180px;
}

.param_value {
  flex: 1;
  text-align: right;
  color: #222;
}

.stock {
  color: green;
  margin-bottom: 20px;
}