/* ==========================================================================
   BAG-PDP GLOBAL — sdílený styl pro produktové karty (Bagniaristore)
   Patří do Redesign.css (globální soubor), NE do jednotlivých popisků produktů.
   Do popisku produktu pak jde jen čisté HTML s těmito třídami, bez <style>.
   ========================================================================== */

/* ==========================================================================
   ČÁST 1 — ÚVODNÍ BLOK (nad "Detailní popis produktu")
   Ikony benefitů, perex, checklist, expert citace. Třídy: .bag-pdp-wrap
   ========================================================================== */

.bag-pdp-wrap { font-family: Arial, Helvetica, sans-serif; max-width: 860px; margin: 0 auto 40px auto; }

.bag-pdp-top { display: flex !important; gap: 24px; margin-bottom: 32px; }
.bag-pdp-benefit { flex: 1; display: flex; align-items: center; gap: 12px; }
.bag-pdp-benefit-icon { flex-shrink: 0; width: 40px; height: 40px; border: 2px solid #E3916C; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.bag-pdp-benefit-text { font-size: 14px; font-weight: 700; color: #2e2e2e; line-height: 1.35; }

.bag-pdp-intro { font-size: 15px; line-height: 1.7; color: #444; margin: 0 0 32px 0; }

.bag-pdp-divider { border: none; border-top: 1px solid #ede8e0; margin: 0 0 32px 0; }

.bag-pdp-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-bottom: 40px; }
.bag-pdp-item { display: flex; align-items: flex-start; gap: 10px; }
.bag-pdp-check { flex-shrink: 0; width: 22px; height: 22px; background: #E3916C; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; font-size: 13px; color: #fff; font-weight: 700; line-height: 1; }
.bag-pdp-item-text { font-size: 14px; color: #444; line-height: 1.55; }

/* Poznámka: tahle .bag-pdp-expert je varianta jen pro úvodní blok (fotka 96px,
   šedé pozadí #FBF7F2, bez rámečku vlevo). Liší se od .bag-pdp-content .bag-pdp-expert
   níž (popisná část) — jsou to dvě odlišně vypadající komponenty se stejným názvem
   třídy, proto musí zůstat zanořené pod .bag-pdp-wrap / .bag-pdp-content. */
.bag-pdp-wrap .bag-pdp-expert { display: flex; gap: 20px; align-items: flex-start; background: #FBF7F2; border-radius: 12px; padding: 24px; margin-bottom: 32px; }
.bag-pdp-wrap .bag-pdp-expert-photo { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.bag-pdp-wrap .bag-pdp-expert-name { font-size: 15px; font-weight: 700; color: #2e2e2e; margin: 0 0 2px 0; }
.bag-pdp-wrap .bag-pdp-expert-title { font-size: 13px; color: #8a8a8a; margin: 0 0 10px 0; }
.bag-pdp-wrap .bag-pdp-expert-quote { font-size: 14px; font-style: italic; color: #444; line-height: 1.6; margin: 0; }

@media (max-width: 600px) {
  .bag-pdp-grid { grid-template-columns: 1fr; }
  .bag-pdp-wrap .bag-pdp-expert { flex-direction: column; align-items: center; text-align: center; }
  .bag-pdp-top { flex-direction: column !important; gap: 14px !important; }
  .bag-pdp-benefit { flex-direction: row; align-items: center; text-align: left; gap: 12px; width: 100%; }
  .bag-pdp-benefit-icon { width: 40px; height: 40px; font-size: 18px; }
  .bag-pdp-benefit-text { font-size: 16px; line-height: 1.35; }
}

/* ==========================================================================
   ČÁST 2 — POPISNÁ ČÁST (Detailní popis produktu)
   Nadpisy, bloky, karty, tabulky, expert citace v širším formátu. Třídy: .bag-pdp-content
   ========================================================================== */

.bag-pdp-content { font-family: Arial, Helvetica, sans-serif; }

/* ---- Nadpisy ---- */
.bag-pdp-content .bag-section-title {
  clear: both !important;
  font-size: 32px !important;
  line-height: 1.25 !important;
  margin: 48px 0 16px !important;
}
.bag-pdp-content h2:first-child.bag-section-title { margin-top: 0 !important; }
.bag-pdp-content .bag-pdp-row-text .bag-section-title {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}
.bag-pdp-content h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--bag-primary) !important;
  margin: 24px 0 10px !important;
  line-height: 1.3 !important;
}
.bag-pdp-content h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--bag-primary) !important;
  margin: 16px 0 6px !important;
  line-height: 1.35 !important;
}
.bag-pdp-content p {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: var(--bag-text) !important;
  margin: 0 0 14px !important;
}

/* ---- Seznamy s fajfkou ---- */
.bag-pdp-content ul.bag-pdp-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
}
.bag-pdp-content ul.bag-pdp-list li {
  position: relative !important;
  padding-left: 30px !important;
  margin: 0 0 8px !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--bag-text) !important;
  list-style: none !important;
}
.bag-pdp-content ul.bag-pdp-list li::before {
  content: "\2713" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: var(--bag-primary) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  text-align: center !important;
}
.bag-pdp-content ul.bag-pdp-list--lg li {
  font-size: 18px !important;
  padding-left: 32px !important;
  margin-bottom: 14px !important;
}
.bag-pdp-content ul.bag-pdp-list--lg li::before {
  width: 24px !important;
  height: 24px !important;
  font-size: 15px !important;
  line-height: 24px !important;
}

/* ---- Dvousloupcový row (text + obrázek) ---- */
.bag-pdp-content .bag-pdp-row-media {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}
.bag-pdp-content .bag-pdp-row-media img {
  width: auto !important;
  height: auto !important;
  max-width: 300px !important;
  max-height: 280px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  display: block !important;
  margin: 0 auto !important;
}
.bag-pdp-content .bag-pdp-row {
  display: grid !important;
  grid-template-columns: 45fr 55fr !important;
  gap: 32px !important;
  align-items: start !important;
  margin: 48px 0 32px !important;
}
.bag-pdp-content .bag-pdp-row-text p:last-child,
.bag-pdp-content .bag-pdp-row-text ul:last-child { margin-bottom: 0 !important; }
.bag-pdp-content .bag-pdp-row--img-left .bag-pdp-row-media { order: -1 !important; }
.bag-pdp-content .bag-pdp-row--img-left { grid-template-columns: 55fr 45fr !important; }
.bag-pdp-content .bag-pdp-row--center { align-items: center !important; }
.bag-pdp-content .bag-pdp-row--img-lg .bag-pdp-row-media img {
  max-width: 420px !important;
  max-height: 480px !important;
}

/* ---- Kroky (dávkování / postup) ---- */
.bag-pdp-content .bag-pdp-step { margin: 0 0 28px !important; }
.bag-pdp-content .bag-pdp-step:last-child { margin-bottom: 0 !important; }
.bag-pdp-content .bag-pdp-step-title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--bag-dark) !important;
  margin: 0 0 8px !important;
}
.bag-pdp-content .bag-pdp-step p:not(.bag-pdp-step-title) {
  margin: 0 0 0 42px !important;
  width: calc(100% - 42px) !important;
  font-size: 16px !important;
}
.bag-pdp-content .bag-step-num {
  flex-shrink: 0 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: var(--bag-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--bag-white) !important;
  line-height: 1 !important;
}

/* ---- Karty (kombinace s produkty) ----
   auto-fit řeší 2, 3 i 4 karty automaticky, není třeba přepisovat sloupce ručně */
.bag-pdp-content .bag-pdp-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 24px !important;
  margin: 0 0 32px !important;
}
.bag-pdp-content .bag-pdp-card {
  display: block !important;
  background: var(--bag-white) !important;
  border: 1px solid var(--bag-border) !important;
  border-radius: var(--bag-radius) !important;
  padding: 20px !important;
}
.bag-pdp-content .bag-pdp-card img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: var(--bag-radius-sm) !important;
  margin: 0 0 14px !important;
  display: block !important;
}
.bag-pdp-content .bag-pdp-card h3 { margin: 0 0 6px !important; }
.bag-pdp-content .bag-pdp-card p {
  margin: 0 0 14px !important;
  font-size: 14px !important;
  color: var(--bag-text) !important;
}
.bag-pdp-content .bag-pdp-card-link {
  display: inline-block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--bag-primary) !important;
  text-decoration: none !important;
}
.bag-pdp-content .bag-pdp-card-link:hover { text-decoration: underline !important; }

/* ---- Infobox (krátké upozornění, žlutá/lososová linka vlevo) ---- */
.bag-pdp-content .bag-pdp-infobox {
  background: var(--bag-primary-light) !important;
  border-left: 4px solid var(--bag-primary) !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 16px 20px !important;
  margin: 0 0 32px !important;
}
.bag-pdp-content .bag-pdp-infobox p { margin: 0 !important; font-size: 14px !important; }

/* ---- Expertní citace — sjednocená verze ----
   .bag-pdp-expert-photo je volitelná (necháš pryč, pokud citace nemá foto)
   .bag-pdp-expert--narrow přidej, když expert sedí v úzkém sloupci vedle textu */
.bag-pdp-content .bag-pdp-expert {
  display: flex !important;
  gap: 20px !important;
  align-items: flex-start !important;
  background: #fff !important;
  border-left: 4px solid var(--bag-primary) !important;
  border-radius: 0 16px 16px 0 !important;
  padding: 24px 28px !important;
  margin: 0 0 40px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
  box-sizing: border-box !important;
}
.bag-pdp-content .bag-pdp-expert--narrow { max-width: 480px !important; margin-bottom: 0 !important; }
.bag-pdp-content img.bag-pdp-expert-photo {
  flex: 0 0 80px !important;
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--bag-primary) !important;
  display: block !important;
}
.bag-pdp-content .bag-pdp-expert-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--bag-dark) !important;
  margin: 0 0 2px !important;
}
.bag-pdp-content .bag-pdp-expert-title {
  font-size: 13px !important;
  color: var(--bag-primary) !important;
  margin: 0 0 10px !important;
}
.bag-pdp-content .bag-pdp-expert-quote {
  font-size: 14px !important;
  font-style: italic !important;
  line-height: 1.7 !important;
  color: var(--bag-dark) !important;
  margin: 0 !important;
}
.bag-pdp-content .bag-pdp-expert-quote strong { font-weight: 700 !important; color: inherit !important; }
@media (max-width: 600px) {
  .bag-pdp-content .bag-pdp-expert { flex-direction: column !important; align-items: center !important; text-align: center !important; max-width: 100% !important; }
}

/* ---- Tabulka složení ---- */
.bag-pdp-content .bag-pdp-table-wrap {
  overflow-x: auto !important;
  margin: 0 0 32px !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10) !important;
  padding: 4px !important;
}
.bag-pdp-content table.bag-pdp-table { width: 100% !important; border-collapse: collapse !important; font-size: 14px !important; }
.bag-pdp-content table.bag-pdp-table th,
.bag-pdp-content table.bag-pdp-table td { padding: 12px 14px !important; border-bottom: none !important; text-align: left !important; color: var(--bag-text) !important; }
.bag-pdp-content table.bag-pdp-table th { font-weight: 700 !important; color: #fff !important; background: var(--bag-primary) !important; }
.bag-pdp-content table.bag-pdp-table tbody tr:nth-child(odd) { background: #F7F4F0 !important; }
.bag-pdp-content table.bag-pdp-table tbody tr:nth-child(even) { background: #fff !important; }
.bag-pdp-content table.bag-pdp-table thead tr th:first-child { border-top-left-radius: 12px !important; }
.bag-pdp-content table.bag-pdp-table thead tr th:last-child { border-top-right-radius: 12px !important; }
.bag-pdp-content table.bag-pdp-table tbody tr:last-child td:first-child { border-bottom-left-radius: 12px !important; }
.bag-pdp-content table.bag-pdp-table tbody tr:last-child td:last-child { border-bottom-right-radius: 12px !important; }
.bag-pdp-content table.bag-pdp-table td:nth-child(n+3),
.bag-pdp-content table.bag-pdp-table th:nth-child(n+3) { text-align: right !important; }

/* ---- Srovnání dvou obrázků vedle sebe ---- */
.bag-pdp-content .bag-pdp-compare { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 20px !important; margin: 0 0 20px !important; }
.bag-pdp-content .bag-pdp-compare-img { border-radius: 12px !important; overflow: hidden !important; border: 1px solid rgba(0,0,0,0.18) !important; box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important; }
.bag-pdp-content .bag-pdp-compare-img img { width: 100% !important; height: auto !important; display: block !important; max-width: none !important; max-height: none !important; border-radius: 12px !important; }
@media (max-width: 600px) { .bag-pdp-content .bag-pdp-compare { grid-template-columns: 1fr !important; } }

/* ---- Podbarvené bloky ---- */
.bag-pdp-content .bag-pdp-block { border-radius: 20px !important; padding: 40px !important; margin: 0 0 40px !important; }
.bag-pdp-content .bag-pdp-block .bag-pdp-row:first-child { margin-top: 0 !important; }
.bag-pdp-content .bag-pdp-block .bag-pdp-row:last-child { margin-bottom: 0 !important; }
.bag-pdp-content .bag-pdp-block--grey { background: #EAECEF !important; }
.bag-pdp-content .bag-pdp-block--pink { background: #FCE9E1 !important; }
.bag-pdp-content .bag-pdp-block--yellow { background: #F4E9D4 !important; }

/* ---- Dlaždice blogových článků ----
   auto-fit řeší 2 i 3 dlaždice automaticky */
.bag-pdp-content .bag-pdp-articles {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  margin: 0 0 20px !important;
}
.bag-pdp-content .bag-pdp-article {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}
.bag-pdp-content .bag-pdp-article-img { width: 100% !important; height: 200px !important; object-fit: cover !important; display: block !important; border-radius: 0 !important; max-width: none !important; max-height: none !important; }
.bag-pdp-content .bag-pdp-article-text { padding: 16px !important; }
.bag-pdp-content .bag-pdp-article-title { display: block !important; font-size: 20px !important; font-weight: 600 !important; line-height: 1.35 !important; color: #1a1a1a !important; text-decoration: none !important; margin: 0 0 8px !important; }
.bag-pdp-content .bag-pdp-article-title:hover { color: var(--bag-primary) !important; text-decoration: none !important; }
.bag-pdp-content .bag-pdp-article-desc {
  font-size: 13px !important; line-height: 1.5 !important; color: #7E7067 !important; margin: 0 !important;
  display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important;
}

/* ---- Kalkulace předplatného ---- */
.bag-pdp-content .bag-pdp-savings {
  margin-top: 20px !important; padding: 16px 18px !important; background: rgba(255,255,255,0.6) !important;
  border-radius: 12px !important; text-align: center !important; width: 100% !important; max-width: 420px !important; box-sizing: border-box !important;
}
.bag-pdp-content .bag-pdp-savings-row { display: flex !important; justify-content: space-between !important; font-size: 14px !important; margin-bottom: 6px !important; }
.bag-pdp-content .bag-pdp-savings-row span:first-child { color: var(--bag-text) !important; }
.bag-pdp-content .bag-pdp-savings-row span:last-child { font-weight: 700 !important; color: var(--bag-dark) !important; }
.bag-pdp-content .bag-pdp-savings-total { border-top: 1px dashed #cbb89f !important; margin-top: 8px !important; padding-top: 8px !important; font-size: 15px !important; font-weight: 700 !important; color: var(--bag-primary) !important; }

/* ---- Odkazy ---- */
.bag-pdp-content a { color: var(--bag-primary) !important; text-decoration: underline !important; }
.bag-pdp-content a:hover { text-decoration: none !important; }

/* ---- Mobilní úpravy ---- */
@media (max-width: 680px) {
  .bag-pdp-content .bag-pdp-row { grid-template-columns: 1fr !important; gap: 16px !important; }
  .bag-pdp-content .bag-pdp-row--img-left .bag-pdp-row-media { order: 0 !important; }
  .bag-pdp-content .bag-pdp-row-media img,
  .bag-pdp-content .bag-pdp-row--img-lg .bag-pdp-row-media img { max-width: 100% !important; width: 100% !important; height: auto !important; max-height: none !important; }
  .bag-pdp-content img.bag-pdp-expert-photo { width: 72px !important; max-width: 72px !important; height: 72px !important; max-height: 72px !important; }
  .bag-pdp-content .bag-pdp-block { padding: 24px !important; border-radius: 14px !important; }
  .bag-pdp-content .bag-pdp-compare { grid-template-columns: 1fr !important; }
}