/* Chrápátko — rozšíření společného designu nákupních rádců pro pelíšky 1.0.0.
   Základní layout, hero, formulář, tlačítka, FAQ a responzivní pravidla zajišťuje
   již nasazený chrapatko-car-seat-guide-1.0.0.css (aktuálně v=1.0.2). */

.ch-bed-guide { --cbg-soft: #fbf8f2; }
.ch-bed-guide .ch-seat-guide__hero-media img { object-position: 58% 50%; }
.ch-bed-guide .ch-seat-finder__length { max-width: 590px; }
.ch-bed-guide .ch-seat-result__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ch-bed-guide .ch-seat-result__grid ul { grid-column: 1 / -1; }
.ch-bed-guide .ch-seat-result__top h3 span,
.ch-bed-guide .ch-seat-result__top h3 small { display: block; }
.ch-bed-guide .ch-seat-result__top h3 small { margin-top: 5px; }
.ch-bed-result__alternative { margin: 22px 0 0; padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.07); }
.ch-bed-result__alternative span { display: block; color: #8ed3e5; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ch-bed-result__alternative strong { display: block; margin: 6px 0 4px; color: #fff; font-size: 20px; }
.ch-bed-result__alternative p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; }
.ch-bed-result__alternative .ch-seat-guide__button { margin-top: 14px; }
.ch-bed-result__verified { margin: 12px 0 0; color: rgba(255,255,255,.64); font-size: 12px; }

/* Model cards */
.ch-bed-models { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.ch-bed-model { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--csg-line); border-radius: 20px; background: #fff; box-shadow: 0 12px 28px rgba(0,49,64,.06); }
.ch-bed-model__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--csg-mist); }
.ch-bed-model__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ch-bed-model:hover .ch-bed-model__media img { transform: scale(1.025); }
.ch-bed-model__tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--csg-ink); font-size: 10px; font-weight: 800; }
.ch-bed-model__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.ch-bed-model h3 { margin: 0 0 8px; font-size: 25px; }
.ch-bed-model p { color: var(--csg-copy); font-size: 13px; }
.ch-bed-model ul { display: grid; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.ch-bed-model li { position: relative; padding-left: 18px; color: var(--csg-copy); font-size: 12px; }
.ch-bed-model li::before { position: absolute; left: 0; color: var(--csg-yellow); content: "•"; font-size: 20px; line-height: .8; }
.ch-bed-model .ch-seat-guide__button { align-self: flex-start; margin-top: auto; }

/* Comparison: semantic table on desktop, readable model cards on mobile. */
.ch-bed-compare-section, .ch-bed-compare, .ch-bed-compare-table { min-width: 0; }
.ch-bed-compare { width: 100%; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(0,49,64,.07); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; background: #fff; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table th,
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table td { min-width: 0; margin: 0; padding: 17px 18px; border: 0; border-bottom: 1px solid rgba(0,49,64,.10); color: var(--csg-ink); line-height: 1.45; overflow-wrap: anywhere; text-align: left; vertical-align: top; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table thead th { background: var(--csg-ink); color: #fff; font-size: 12px; font-weight: 800; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table thead th:first-child { width: 16%; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table thead th:nth-child(2) { width: 26%; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table thead th:nth-child(3) { width: 19%; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table thead th:nth-child(4) { width: 22%; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table thead th:last-child { width: 17%; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody th { font-size: 15px; font-weight: 800; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody td { color: var(--csg-copy); font-size: 13px; }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody tr:nth-child(2n) > * { background: var(--csg-warm); }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody tr:nth-child(2n+1) > * { background: var(--csg-mist); }
.ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody tr:last-child > * { border-bottom: 0; }
.ch-bed-compare__mobile-label { display: none; }
.ch-bed-compare__value { display: block; }

/* Model-specific sizes */
.ch-bed-sizes { display: grid; gap: 12px; }
.ch-bed-sizes details { overflow: hidden; border: 1px solid var(--csg-line); border-radius: 18px; background: #fff; }
.ch-bed-sizes summary { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 22px 58px 22px 24px; cursor: pointer; list-style: none; }
.ch-bed-sizes summary::-webkit-details-marker { display: none; }
.ch-bed-sizes summary::after { position: absolute; top: 50%; right: 24px; color: var(--csg-blue); content: "+"; font-size: 26px; font-weight: 500; transform: translateY(-50%); }
.ch-bed-sizes details[open] summary::after { content: "−"; }
.ch-bed-sizes summary strong { color: var(--csg-ink); font-size: 20px; }
.ch-bed-sizes summary span { color: var(--csg-copy); font-size: 12px; text-align: right; }
.ch-bed-sizes__body { padding: 0 24px 24px; }
.ch-bed-sizes__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.ch-bed-size { min-width: 0; padding: 16px; border-radius: 14px; background: var(--csg-mist); }
.ch-bed-size b { display: block; color: var(--csg-ink); font-size: 15px; }
.ch-bed-size span { display: block; margin-top: 4px; color: var(--csg-copy); font-size: 11px; }
.ch-bed-sizes__note { margin: 14px 0 0; color: var(--csg-copy); font-size: 11px; }

/* Care, audiences and compact information cards */
.ch-bed-info-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ch-bed-info-grid article { padding: 26px; border-radius: 18px; background: var(--csg-mist); }
.ch-bed-info-grid article:nth-child(2) { background: var(--csg-warm); }
.ch-bed-info-grid h3 { margin: 0 0 9px; font-size: 21px; }
.ch-bed-info-grid p { margin: 0; color: var(--csg-copy); font-size: 13px; }
.ch-bed-care { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.ch-bed-care article { padding: 28px; border: 1px solid var(--csg-line); border-radius: 18px; background: #fff; }
.ch-bed-care article:first-child { border-color: var(--csg-yellow); background: #fffaf0; }
.ch-bed-care h3 { margin: 0 0 10px; font-size: 23px; }
.ch-bed-care p { margin: 0; color: var(--csg-copy); font-size: 13px; }
.ch-bed-personal { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr); align-items: center; gap: clamp(28px,4vw,58px); overflow: hidden; padding: clamp(30px,5vw,58px); border-radius: var(--csg-radius); background: var(--csg-ink); color: #fff; }
.ch-seat-guide.ch-bed-guide .ch-bed-personal h2 { display: block; visibility: visible; margin-bottom: 18px; color: #fff; opacity: 1; }
.ch-bed-personal p { color: rgba(255,255,255,.78); }
.ch-bed-personal__fact { margin-top: 24px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.08); }
.ch-bed-personal__fact strong { display: block; color: var(--csg-yellow); font-size: 18px; }
.ch-bed-personal__fact span { display: block; margin-top: 6px; color: rgba(255,255,255,.72); font-size: 12px; }
.ch-bed-personal__visual { min-width: 0; margin: 0; }
.ch-bed-personal__canvas { position: relative; padding: 18px 18px 72px; border-radius: 22px; background: var(--csg-warm); }
.ch-bed-personal__main { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; }
.ch-bed-personal__zoom { position: absolute; right: 22px; bottom: 18px; width: min(56%,390px); overflow: hidden; border: 4px solid var(--csg-yellow); border-radius: 17px; background: #fff; box-shadow: 0 16px 34px rgba(0,49,64,.22); }
.ch-bed-personal__zoom img { display: block; width: 100%; height: auto; }
.ch-bed-personal__zoom span { position: absolute; z-index: 1; top: 9px; left: 9px; padding: 5px 9px; border-radius: 999px; background: var(--csg-yellow); color: var(--csg-ink); font-size: 10px; font-weight: 800; }
.ch-bed-personal__visual figcaption { margin: 12px 2px 0; color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.5; }

/* Reused measurement image needs a bed-specific caption only. */
.ch-bed-guide .ch-seat-measure__measurement { top: 13%; right: 22%; left: 25.5%; }

@media (max-width: 1100px) {
  .ch-bed-models { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ch-bed-sizes__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .ch-bed-guide .ch-seat-guide__hero-media img { object-position: 62% 50%; }
  .ch-bed-guide .ch-seat-result__grid { grid-template-columns: 1fr; }
  .ch-bed-models, .ch-bed-info-grid, .ch-bed-care { grid-template-columns: 1fr; }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare { overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare-table,
  .ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody { display: block !important; width: 100% !important; }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare-table thead { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody { display: grid !important; gap: 12px; }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody > tr { display: block !important; width: 100% !important; overflow: hidden; padding: 18px 20px; border-radius: 18px; background: var(--csg-mist); }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody > tr:nth-child(2n) { background: var(--csg-warm); }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody > tr > th { display: block !important; width: 100% !important; padding: 0 0 12px; border: 0; background: transparent; font-size: 22px; }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody > tr > td { display: grid !important; width: 100% !important; grid-template-columns: minmax(0,1fr) minmax(104px,.9fr); align-items: start; gap: 16px; padding: 9px 0; border: 0; border-top: 1px solid rgba(0,49,64,.10); background: transparent; font-size: 12px; }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare-table tbody > tr > * { background: transparent !important; }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare__mobile-label { display: block !important; min-width: 0; color: var(--csg-copy); font-weight: 400; text-align: left; }
  .ch-seat-guide.ch-bed-guide .ch-bed-compare__value { display: block !important; min-width: 0; color: var(--csg-ink); font-weight: 800; overflow-wrap: anywhere; text-align: right; }
  .ch-bed-personal { grid-template-columns: 1fr; }
  .ch-bed-personal__visual { width: 100%; }
  .ch-bed-sizes summary { grid-template-columns: 1fr; gap: 4px; }
  .ch-bed-sizes summary span { text-align: left; }
}
@media (max-width: 620px) {
  .ch-bed-compare-section { padding-right: 16px; padding-left: 16px; }
  .ch-bed-compare-section .ch-seat-guide__heading h2 { font-size: clamp(30px,8vw,38px); overflow-wrap: anywhere; }
  .ch-bed-sizes__grid { grid-template-columns: 1fr; }
  .ch-bed-model__body { padding: 20px; }
  .ch-bed-personal__canvas { padding: 10px 10px 62px; border-radius: 17px; }
  .ch-bed-personal__zoom { right: 12px; bottom: 12px; width: 67%; border-width: 3px; }
  .ch-bed-personal__zoom span { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-bed-model__media img { transition: none; }
}
