/* =========================================================================
   PD 7. VYBERTE SI MANUKU / Selektor variant MGO
   Vyzaduje: assets/mth-base.css + product/_shared.css

   Tri varianty jako tlacitka/odkazy. Kazda ma vlastni tridu a obrazek
   se zobrazi pres ::before pseudo-element na zaklade tridy.
   ========================================================================= */
.mth-pd-select .mth-pd__row {
  grid-template-columns: 1fr;
}
.mth-pd-select__title {
  text-align: left;
  margin: 0;
  font-size: 16px;
  color: #4a443a;
}

/* Grid se tremi slozkami vedle sebe */
.mth-pd-select__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 100%;
}

/* Jednotliva varianta jako odkaz */
.mth-pd-select__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 2px solid #ece4d4;
  background: white;
  border-radius: var(--mth-radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.mth-pd-select__item:hover {
  border-color: var(--mth-brown);
}

.mth-pd-select__item.is-selected {
  border-color: #c2601f;
  background: #fbeee0;
}

/* Text je skryt */
.mth-pd-select__sr {
  display: none;
  color: #9a9080;
  font-size: 12px;
}
.mth-pd-select__item.is-selected .mth-pd-select__sr {
  display: block;
}
/* Text varianty */
.mth-pd-select__label {
  text-align: center;
}
.mth-pd-select__label strong {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 0;
  color: #c2601f;
}

/* Responsive - na mobilech 1 sloupec */
@media (max-width: 767px) {
  .mth-pd-select__grid {
    grid-template-columns: 1fr;
  }
  .mth-pd-select__title {
    font-size: 22px;
    margin-bottom: 24px;
  }
}

/* Na tabletech - 2 sloupce */
@media (min-width: 768px) and (max-width: 991px) {
  .mth-pd-select__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================================
   VELIKOST BALENI / Selektor velikosti
   ========================================================================= */
.mth-pd-size .mth-pd__row {
  grid-template-columns: 1fr;
}

.mth-pd-size__title {
  text-align: left;
  margin-bottom: 10px;
  font-size: 12px;
  color: #4a443a;
}

/* Grid se dvema moznosti (250g, 90g) */
.mth-pd-size__grid {
  display: flex;
  gap: 16px;
  max-width: 100%;
}

/* Jednotliva velikost jako odkaz */
.mth-pd-size__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 24px;
  border: 2px solid #ece4d4;
  background: white;
  border-radius: var(--mth-radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.mth-pd-size__item:hover {
  border-color: var(--mth-brown);
}
.mth-pd-size__item.is-selected {
  border-color: #c2601f;
  background: #fbeee0;
}

/* Text je skryt */
.mth-pd-size__sr {
  display: none;
}
.mth-pd-size__item.is-selected .mth-pd-size__sr {
  display: block;
}

/* Text velikosti */
.mth-pd-size__label {
  text-align: center;
}
.mth-pd-size__label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #c2601f;
}

/* Responsive - na mobilech az 1 sloupec */
@media (max-width: 543px) {
  .mth-pd-size__grid {
    grid-template-columns: 1fr;
  }
}
