/* Recenze Heureka + Firmy.cz pro detskaauticka.cz
   Všechny třídy začínají "dar-", aby se nepletly se šablonou Shoptetu. */
.dar, .dar * { box-sizing: border-box; }
.dar {
  --dar-blue: #4b96d2;
  --dar-blue-light: #e8f2fb;
  --dar-cta: #d84616;
  --dar-cta-hover: #c03d12;
  --dar-star: #ffa813;
  --dar-star-off: #dfe2e7;
  --dar-text: #1b2026;
  --dar-body: #3d4450;
  --dar-muted: #8a919c;
  --dar-green: #009901;
  --dar-bg: #f5f6f8;
  --dar-border: #e6e8ec;
  --dar-heureka: #f28c00;
  --dar-firmy: #cc1e2e;
  --dar-radius: 20px;
  --dar-shadow: 0 4px 16px rgba(27, 32, 38, .06);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dar-text);
  line-height: 1.4;
  text-align: left;
}
.dar a { text-decoration: none; }
.dar-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- drobné prvky ---------- */
.dar-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; background: #fff;
  border: 1px solid var(--dar-border); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--dar-text); white-space: nowrap; line-height: 1; }
.dar-chip__logo { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 900; flex: none; }
.dar-chip__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.dar-chip--heureka .dar-chip__logo { background: var(--dar-heureka); }
.dar-chip--firmy .dar-chip__logo { background: var(--dar-firmy); }
.dar-chip.has-img .dar-chip__logo { background: transparent; }

.dar-stars { position: relative; display: inline-block; line-height: 0; flex: none; }
.dar-stars__row { display: inline-flex; gap: 2px; white-space: nowrap; }
.dar-stars__row svg { width: var(--dar-star-size, 16px); height: var(--dar-star-size, 16px); flex: none; }
.dar-stars__row--off svg path { fill: var(--dar-star-off); }
.dar-stars__row--on { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.dar-stars__row--on svg path { fill: var(--dar-star); }

.dar-link { display: inline-flex; align-items: center; gap: 4px; color: var(--dar-blue); font-weight: 500; font-size: 14px; }
.dar-link:hover { text-decoration: underline; }
.dar-link svg { width: 16px; height: 16px; }

.dar-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; transition: background .15s, color .15s; text-align: center; }
.dar-btn--primary { background: var(--dar-cta); color: #fff !important; }
.dar-btn--primary:hover { background: var(--dar-cta-hover); }
.dar-btn--secondary { background: #fff; color: var(--dar-blue) !important; border: 1.5px solid var(--dar-blue); }
.dar-btn--secondary:hover { background: var(--dar-blue-light); }

/* ---------- A1: proužek pod hlavičkou ---------- */
.dar-strip { background: #fff; border-bottom: 1px solid var(--dar-border); }
.dar-strip .dar-wrap { display: flex; align-items: center; gap: 28px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
.dar-strip__item { display: inline-flex; align-items: center; gap: 8px; color: var(--dar-text); }
.dar-strip__score { font-weight: 700; font-size: 16px; white-space: nowrap; }
.dar-strip__note { color: var(--dar-muted); font-size: 14px; }
.dar-strip__sep { width: 1px; height: 24px; background: var(--dar-border); flex: none; }
.dar-strip__verified { display: inline-flex; align-items: center; gap: 6px; color: var(--dar-green); font-weight: 500; font-size: 14px; }
.dar-strip__verified svg { width: 16px; height: 16px; }
.dar-strip__more { margin-left: auto; white-space: nowrap; }

/* ---------- karta recenze ---------- */
.dar-card { background: #fff; border-radius: var(--dar-radius); box-shadow: var(--dar-shadow); padding: 24px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.dar-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dar-card__text { font-size: 15px; line-height: 1.5; color: var(--dar-body); margin: 0; }
.dar-card__pros { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dar-card__pros li { color: var(--dar-green); font-size: 13px; font-weight: 500; }
.dar-card__pros li::before { content: "+ "; }
.dar-card__author { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.dar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--dar-blue-light); color: var(--dar-blue); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dar-card__name { font-size: 14px; font-weight: 500; color: var(--dar-text); }
.dar-card__date { font-size: 12px; color: var(--dar-muted); }

/* ---------- souhrn hodnocení ---------- */
.dar-sum { display: flex; align-items: center; gap: 18px; }
.dar-sum__score { font-size: 48px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--dar-text); }
.dar-sum__score small { font-size: 18px; font-weight: 500; color: var(--dar-muted); margin-left: 4px; }
.dar-sum__info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dar-sum__l1 { font-size: 15px; font-weight: 700; }
.dar-sum__l2 { font-size: 13px; color: var(--dar-muted); }

/* ---------- A2 / B2: sekce s recenzemi ---------- */
.dar-section { background: var(--dar-bg); padding: 64px 0; }
.dar-section--white { background: #fff; }
.dar-section__head { text-align: center; margin-bottom: 32px; }
.dar-section__title { font-size: 34px; font-weight: 700; margin: 0 0 8px; color: var(--dar-text); line-height: 1.2; }
.dar-section__sub { font-size: 16px; color: var(--dar-muted); margin: 0; }
.dar-section--white .dar-section__head { text-align: left; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dar-section--white .dar-section__title { font-size: 30px; }

.dar-overview { background: #fff; border-radius: var(--dar-radius); padding: 24px 32px 24px 40px; display: flex; align-items: center; gap: 40px; margin-bottom: 24px; }
.dar-section--white .dar-overview { background: var(--dar-bg); }
.dar-overview__sep { width: 1px; align-self: stretch; background: var(--dar-border); }
.dar-overview__btns { margin-left: auto; display: flex; flex-direction: column; gap: 10px; min-width: 220px; }

.dar-carousel { position: relative; }
.dar-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 20px; margin: -4px -2px 0; }
.dar-track::-webkit-scrollbar { display: none; }
.dar-track > .dar-card { scroll-snap-align: start; }
.dar-arrow { position: absolute; top: calc(50% - 32px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(27, 32, 38, .12); display: flex; align-items: center; justify-content: center; z-index: 2; padding: 0; }
.dar-arrow svg { width: 20px; height: 20px; }
.dar-arrow--prev { left: -22px; }
.dar-arrow--next { right: -22px; }
.dar-arrow[disabled] { opacity: .35; cursor: default; }
.dar-dots { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.dar-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--dar-border); background: #fff; padding: 0; cursor: pointer; }
.dar-dot.is-active { background: var(--dar-blue); border-color: var(--dar-blue); }
.dar-section__cta { display: none; margin-top: 20px; }

/* ---------- B1: odznak pod Do košíku ---------- */
.dar-badge { background: #fff; border: 1px solid var(--dar-border); border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; margin: 16px 0; clear: both; }
.dar-badge__rows { display: flex; flex-direction: column; gap: 10px; }
.dar-badge__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--dar-text); }
.dar-badge__score { font-weight: 700; font-size: 16px; white-space: nowrap; }
.dar-badge__note { color: var(--dar-muted); font-size: 13px; }
.dar-badge__quote { border-top: 1px solid var(--dar-border); padding-top: 14px; display: flex; align-items: center; gap: 12px; min-height: 58px; }
.dar-badge__qtext { flex: 1; font-size: 13px; line-height: 1.45; font-style: italic; color: var(--dar-body); margin: 0; transition: opacity .4s ease; }
.dar-badge__qtext.is-hidden { opacity: 0; }
.dar-badge__qmeta { font-style: normal; color: var(--dar-muted); white-space: nowrap; }

/* ---------- C1: patička ---------- */
.dar-foot { padding: 24px 0; border-top: 1px solid var(--dar-border); background: #fff; }
.dar-foot .dar-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dar-foot__title { font-size: 15px; font-weight: 500; color: var(--dar-blue); text-transform: uppercase; margin: 0; }
.dar-foot__badges { display: flex; gap: 12px; flex-wrap: wrap; }
.dar-fbadge { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--dar-border); border-radius: 14px; background: #fff; color: var(--dar-text); min-width: 170px; }
.dar-fbadge:hover { border-color: var(--dar-blue); }
.dar-fbadge__row { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.dar-fbadge__score { font-size: 22px; font-weight: 700; white-space: nowrap; }
.dar-fbadge__note { font-size: 12px; font-weight: 500; color: var(--dar-muted); display: inline-flex; align-items: center; gap: 5px; }
.dar-fbadge__note--ok { color: var(--dar-green); }
.dar-fbadge__note svg { width: 14px; height: 14px; }

/* ================= TABLET (600–1023 px) ================= */
@media (max-width: 1023px) {
  .dar-strip .dar-wrap { gap: 16px; }
  .dar-strip__verified, .dar-strip__sep--v, .dar-strip__note { display: none; }
  .dar-section { padding: 48px 0; }
  .dar-section__title { font-size: 28px; }
  .dar-overview { flex-wrap: wrap; gap: 24px; padding: 24px; }
  .dar-overview__sep { display: none; }
  .dar-overview > .dar-sum { flex: 1 1 calc(50% - 12px); }
  .dar-overview__btns { margin-left: 0; flex: 1 1 100%; flex-direction: row; }
  .dar-overview__btns .dar-btn { flex: 1; }
  .dar-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .dar-arrow--prev { left: -12px; }
  .dar-arrow--next { right: -12px; }
}

/* ================= MOBIL (do 599 px) ================= */
@media (max-width: 599px) {
  .dar-strip .dar-wrap { gap: 10px; min-height: 48px; }
  .dar-strip__note, .dar-strip__more span, .dar-strip__item .dar-stars { display: none; }
  .dar-strip__score::before { content: "★ "; color: var(--dar-star); }
  .dar-strip__more { margin-left: auto; }
  .dar-section { padding: 40px 0; }
  .dar-section__head, .dar-section--white .dar-section__head { text-align: left; margin-bottom: 20px; display: block; }
  .dar-section__title, .dar-section--white .dar-section__title { font-size: 24px; margin: 0; }
  .dar-section__sub, .dar-section__head .dar-link { display: none; }
  .dar-overview { background: transparent !important; padding: 0; gap: 12px; flex-wrap: nowrap; margin-bottom: 16px; }
  .dar-overview > .dar-sum { flex: 1 1 0; background: #fff; border-radius: 16px; padding: 16px; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
  .dar-section--white .dar-overview > .dar-sum { background: var(--dar-bg); }
  .dar-overview .dar-sum__score { font-size: 32px; }
  .dar-overview .dar-sum__score small { font-size: 14px; }
  .dar-overview .dar-sum__l1 { font-size: 13px; }
  .dar-overview .dar-sum__l2 { display: none; }
  .dar-overview__btns { display: none; }
  .dar-carousel { margin-right: -16px; }
  .dar-track { grid-auto-columns: 82%; gap: 12px; padding-right: 16px; }
  .dar-arrow { display: none; }
  .dar-section__cta { display: flex; }
  .dar-section__cta .dar-btn { width: 100%; }
  .dar-badge { padding: 14px 16px; }
  .dar-badge__quote { flex-wrap: wrap; }
  .dar-foot__badges { width: 100%; }
  .dar-fbadge { flex: 1 1 0; min-width: 0; }
}

/* Umístění v šabloně detskaauticka.cz */
.products-group .dar-section .dar-wrap { padding-left: 0; padding-right: 0; max-width: none; }
.products-group .dar-section { background: transparent; }
.dar-foot-item .dar-foot__badges { flex-wrap: nowrap; margin-top: 12px; }
.dar-foot-item .dar-fbadge { min-width: 0; flex: 1 1 0; }
@media (max-width: 599px) { .products-group .dar-carousel { margin-right: 0; } }
