/* =========================================================
   VJ Help Card – finální CSS
   Verze: 7 (správné pořadí všech elementů + flex-grow)
   ========================================================= */


/* =========================================================
   1) Pravý sloupec - flex column
   ========================================================= */

.p-detail .p-info-wrapper{
  display: flex !important;
  flex-direction: column !important;
}


/* =========================================================
   2) Pořadí elementů v pravém sloupci
   1: nadpis, 2: hvězdičky, 3: popis, 4: tabulka, 5: detailní info
   10: cena, 11: poradenský box (roste), 12: ikonky
   ========================================================= */

.p-detail .p-info-wrapper > .p-detail-inner-header{
  order: 1 !important;
}

.p-detail .p-info-wrapper > .p-detail-info{
  order: 2 !important;
}

.p-detail .p-info-wrapper > .p-short-description{
  order: 3 !important;
}

.p-detail .p-info-wrapper > table.detail-parameters{
  order: 4 !important;
}

.p-detail .p-info-wrapper > p[data-testid="productCardDescr"]{
  order: 5 !important;
}

.p-detail .p-info-wrapper > .price-line{
  order: 10 !important;
  margin-top: 14px !important;
}

.p-detail .p-info-wrapper > section.vj-hc{
  order: 11 !important;
  margin-top: 14px !important;
}

.p-detail .p-info-wrapper > .social-buttons-wrapper{
  order: 12 !important;
}


/* =========================================================
   3) Roztažení "Potřebujete poradit?" boxu na desktopu
   aby vyplnil prostor a vyrovnal sloupce
   ========================================================= */

@media (min-width: 992px) {
  .p-detail .p-info-wrapper > section.vj-hc{
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .p-detail .p-info-wrapper > section.vj-hc > .vj-hc__inner{
    flex-grow: 1 !important;
    height: auto !important;
  }
}


/* =========================================================
   4) Vzhled karty (PC)
   ========================================================= */

.vj-hc{
  margin-top: 14px;
}

.vj-hc__inner{
  display: flex;
  gap: 14px;
  align-items: center;

  padding: 14px;
  border: 2px solid #1f6f2b;
  border-radius: 14px;
  background: #eaf5ea;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);

  box-sizing: border-box;
}

.vj-hc__media{
  flex: 0 0 210px;
  max-width: 210px;
}

.vj-hc__photo{
  width: 210px !important;
  height: 128px !important;

  border-radius: 12px;

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 38% 18%;
  background-color: #ffffff;

  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.vj-hc__content{
  flex: 1 1 auto;
  min-width: 0;
}

.vj-hc__title{
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: #1b4b22;
}

.vj-hc__text{
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #1b1b1b;
}

.vj-hc__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 8px 0;
}

.vj-hc__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 14px;
  border-radius: 999px;

  border: 2px solid #1f6f2b;
  color: #1f6f2b;
  background: #ffffff;

  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.vj-hc__btn--primary{
  background: #1f6f2b;
  color: #ffffff;
}

.vj-hc__note{
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #2b2b2b;
}


/* =========================================================
   5) Mobil (do 768px) - vrátit normální chování
   ========================================================= */

@media (max-width: 768px){

  /* Box bez roztažení */
  .p-detail .p-info-wrapper > section.vj-hc{
    flex-grow: 0 !important;
    display: block !important;
  }

  .vj-hc__inner{
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }

  .vj-hc__media{
    flex: 0 0 auto;
    max-width: none;
  }

  .vj-hc__photo{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: 38% 18%;
  }

  .vj-hc__actions{
    gap: 8px;
  }

  .vj-hc__btn{
    flex: 1 1 auto;
    text-align: center;
  }
}


/* =========================================================
   6) Hint (volitelný element pod tlačítky)
   ========================================================= */

.vj-hc__hint{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #1b4b22;
  background: rgba(31,111,43,0.08);
  border: 1px solid rgba(31,111,43,0.25);
  padding: 8px 10px;
  border-radius: 10px;
  display: none;
}
