/* BEDROHŘEJ, karta nahřívacího polštářku. Platí jen pro prvky s třídou .bed v popisu produktu. */
.bed { max-width: 1100px; margin: 0 auto; line-height: 1.6; }
.bed .bed-sec { padding: 12px 0 16px; position: relative; }
.bed h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; color: #8F81BC; }
.bed h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; color: #8F81BC; }
.bed p { margin: 0 0 10px; max-width: 760px; }
.bed .bed-lead { font-style: italic; font-size: 18px; line-height: 1.7; max-width: none; }
.bed .bed-small { font-size: 14px; color: #6f6680; margin: -4px 0 12px; }
.bed a { color: #5c4a8a; text-decoration: underline; text-underline-offset: 3px; }

/* Oddělovač sekcí: linka s větvičkou levandule uprostřed */
.bed .bed-sec + .bed-sec::before {
  content: ""; display: block; height: 28px; margin: 0 0 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 28'%3E%3Cpath d='M4 24 C20 20 30 14 40 9' stroke='%238a7bb0' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M14 21 c2-5 8-6 9-4 c-3 1-5 4-9 4z M23 16 c1-5 7-7 9-6 c-3 2-5 4-9 6z' fill='%239c8fc4'/%3E%3Cg fill='%237c5496'%3E%3Cellipse cx='44' cy='8' rx='2.6' ry='3.6' transform='rotate(-30 44 8)'/%3E%3Cellipse cx='49' cy='6' rx='2.6' ry='3.6' transform='rotate(-30 49 6)'/%3E%3Cellipse cx='54' cy='5' rx='2.4' ry='3.4' transform='rotate(-30 54 5)'/%3E%3Cellipse cx='58' cy='4' rx='2.2' ry='3' transform='rotate(-30 58 4)'/%3E%3Cellipse cx='47' cy='12' rx='2.4' ry='3.2' transform='rotate(-30 47 12)'/%3E%3Cellipse cx='52' cy='10' rx='2.4' ry='3.2' transform='rotate(-30 52 10)'/%3E%3Cellipse cx='57' cy='9' rx='2' ry='2.8' transform='rotate(-30 57 9)'/%3E%3Cellipse cx='62' cy='6' rx='1.8' ry='2.4' transform='rotate(-30 62 6)'/%3E%3C/g%3E%3C/svg%3E") center / 72px 28px no-repeat,
    linear-gradient(#e3ddec, #e3ddec) left center / calc(50% - 52px) 1px no-repeat,
    linear-gradient(#e3ddec, #e3ddec) right center / calc(50% - 52px) 1px no-repeat;
}

/* Úvod na světlém panelu */
.bed .bed-intro { background: #f8f5fc; border-radius: 18px; padding: 22px 26px 14px; }
.bed .bed-intro .bed-lead { margin-bottom: 6px; }

/* Panel za benefity */
.bed .bed-panel { background: #f8f5fc; border-radius: 18px; padding: 18px 24px 20px; }
.bed .bed-panel::before { display: none !important; }
.bed .bed-panel h2 { margin-bottom: 4px; }
.bed .bed-panel .bed-crop .bed-img { mix-blend-mode: multiply; }
.bed .bed-panel + .bed-sec::before { margin-top: 8px; }

/* Řádky text + fotka */
.bed .bed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 12px; }
.bed .bed-row-rev { flex-direction: row-reverse; }
.bed .bed-txt { flex: 1 1 320px; }
.bed .bed-pic { flex: 0 1 400px; }

/* Fotky: rámeček, ořez, měkké okraje, zvětšení při najetí */
.bed .bed-fig { margin: 0; display: block; }
.bed .bed-crop { display: block; overflow: hidden; border-radius: 14px; height: 240px;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at center, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at center, #000 60%, transparent 100%); }
.bed .bed-crop .bed-img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover !important; object-position: center; border: 0; box-shadow: none; transform: scale(1); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.bed .bed-fig:hover .bed-crop .bed-img { transform: scale(1.2) !important; }
/* Fotky s bílými okraji: základní zvětšení, aby obsah vyplnil rámeček */
.bed .bed-z13 .bed-crop .bed-img { transform: scale(1.3); }
.bed .bed-z13:hover .bed-crop .bed-img { transform: scale(1.55) !important; }

/* Popisek: objeví se při najetí */
.bed .bed-cap { display: block; font-size: 15px; font-style: italic !important; text-align: center !important; margin-top: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; }
.bed .bed-fig:hover .bed-cap { opacity: 1; transform: none; }

/* Lupa za kurzorem (skript nastavuje transform-origin) */
.bed .bed-zoomer .bed-crop .bed-img { transition: transform .25s ease; }
.bed .bed-zoomer:hover .bed-crop .bed-img { transform: scale(1.6) !important; }

/* Otočná karta: líc v klidu, rub při najetí, na dotyku klepnutím */
.bed .bed-flip .bed-crop { position: relative; display: block; height: 0 !important; padding-bottom: 60%; overflow: visible; perspective: 1400px; border-radius: 14px; -webkit-mask-image: none !important; mask-image: none !important; }
.bed .bed-flip .bed-flip-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3,.7,.2,1); }
.bed .bed-flip .bed-crop .bed-img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: none !important; mix-blend-mode: normal; }
.bed .bed-flip .bed-crop .bed-face, .bed .bed-flip:hover .bed-crop .bed-face { transform: none !important; }
.bed .bed-flip .bed-crop .bed-back, .bed .bed-flip:hover .bed-crop .bed-back { transform: rotateY(180deg) !important; }
.bed .bed-flip:hover .bed-flip-inner, .bed .bed-flip.bed-flipped .bed-flip-inner { transform: rotateY(180deg); }

/* Ohlasy: tři citace vedle sebe */
.bed .bed-quotes { display: flex; flex-wrap: wrap; gap: 16px; }
.bed .bed-quote { flex: 1 1 260px; margin: 0; padding: 18px 20px; background: #f8f5fc; border-radius: 14px; font-style: italic; }
.bed .bed-quote p { margin: 0 0 10px; max-width: none; }
.bed .bed-quote footer { font-style: normal; font-size: 14px; color: #6f6680; }
.bed .bed-stars { display: block; color: #8F81BC; font-style: normal; font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; }

/* Citace u balení a výpis */
.bed .bed-cite { margin: 0 0 18px; padding: 18px 24px; background: #f8f5fc; border-radius: 14px; }
.bed .bed-cite p { margin: 0; max-width: none; font-style: italic; font-size: 17px; line-height: 1.7; }
.bed .bed-list { margin: 0; padding-left: 20px; }

/* Časté dotazy: rozklikávací */
.bed .bed-q { border-top: 1px solid #e3ddec; padding: 12px 0; }
.bed .bed-q:last-of-type { border-bottom: 1px solid #e3ddec; }
.bed .bed-q summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bed .bed-q summary::-webkit-details-marker { display: none; }
.bed .bed-q summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: #7c5496; transition: transform .3s ease; }
.bed .bed-q[open] summary::after { transform: rotate(45deg); }
.bed .bed-q p { margin: 10px 0 0; }

/* Složení */
.bed .bed-comp { font-size: 15px; line-height: 1.8; }

/* Plovoucí tlačítko Koupit, objeví se po odscrollování pod cenu */
.bed-sticky { position: fixed; left: 24px; bottom: 24px; z-index: 900; background: #5c4a8a; color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 999px; box-shadow: 0 8px 24px rgba(60,40,100,.28); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, background .2s ease; }
.bed-sticky.bed-sticky-on { opacity: 1; transform: none; pointer-events: auto; }
.bed-sticky:hover { background: #4a3a72; }
.bed-sticky:focus-visible { outline: 3px solid #b8a9d9; outline-offset: 2px; }

/* Vyplavání bloků při scrollování (zapíná skript) */
.bed .bed-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.bed .bed-reveal.bed-in { opacity: 1; transform: none; }

/* Mobil a dotyková zařízení */
@media (hover: none) {
  .bed .bed-cap { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .bed-sticky { left: 16px; right: 92px; bottom: 16px; text-align: center; padding: 13px 16px; font-size: 14px; }
  .bed .bed-row, .bed .bed-row-rev { flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .bed .bed-pic { flex-basis: auto; width: 100%; }
  .bed h2 { font-size: 24px; }
  .bed .bed-sec { padding: 16px 0 20px; }
  .bed .bed-panel { padding: 18px 16px 20px; }
  .bed .bed-intro { padding: 16px 16px 10px; }
  .bed .bed-crop { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .bed .bed-img, .bed .bed-cap, .bed .bed-q summary::after, .bed .bed-flip-inner { transition: none; }
  .bed .bed-fig:hover .bed-crop .bed-img { transform: none !important; }
  .bed .bed-reveal { opacity: 1; transform: none; transition: none; }
}
