/* EvaHome.cz – doplňky šablony (Blank). Zdroj: ~/Desktop/Projekty/evahome-novy/evahome-web */
:root { --eh-blue: #3f9bd5; --eh-dark: #1c1f26; --eh-muted: #5f6672; --eh-line: #e6e8ec; --eh-soft: #f5f7fa; --eh-green: #1f9d55; }

.eh-hide { display: none !important; }

/* Značky (logotypy dopravců a obchodů) nahrazuje blok výhod */
.partners-block { display: none !important; }
.eh-trust { margin: 32px auto 8px; }
.eh-trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eh-trust__in > div { background: #fff; border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 2px 10px rgba(20, 30, 50, .06); display: flex; flex-direction: column; gap: 4px; }
.eh-trust__in i { font-style: normal; font-size: 24px; line-height: 1; margin-bottom: 4px; }
.eh-trust__in b { font-size: 16px; color: var(--eh-dark); }
.eh-trust__in span { font-size: 14px; color: var(--eh-muted); line-height: 1.4; }
@media (max-width: 991px) { .eh-trust__in { grid-template-columns: repeat(2, 1fr); gap: 10px; } .eh-trust__in > div { padding: 14px; } }

/* štítky na kartách – méně je víc */
.flags .flag { font-size: 11px; }

/* prodáno */
.eh-sold-badge { position: absolute; right: 10px; top: 36px; background: rgba(28, 31, 38, .82); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; z-index: 2; pointer-events: none; }
.eh-sold { display: inline-block; margin: 6px 0 10px; color: var(--eh-green); font-weight: 700; font-size: 15px; }

/* klíčové parametry */
.eh-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 18px; }
.eh-specs > div { background: var(--eh-soft); border: 1px solid var(--eh-line); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; }
.eh-specs i { font-style: normal; font-size: 18px; grid-row: 1 / span 2; }
.eh-specs b { font-size: 15px; color: var(--eh-dark); line-height: 1.2; }
.eh-specs span { font-size: 12px; color: var(--eh-muted); line-height: 1.2; }
@media (max-width: 480px) { .eh-specs { grid-template-columns: repeat(2, 1fr); } }

/* výhody pod tlačítkem */
.eh-usp { list-style: none; margin: 14px 0 6px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; background: var(--eh-soft); border-radius: 12px; }
.eh-usp li { font-size: 14px; color: var(--eh-dark); line-height: 1.35; }
@media (max-width: 480px) { .eh-usp { grid-template-columns: 1fr; } }

/* množstevní sleva – nenápadně pod tlačítkem */
.eh-qd { margin-top: 12px; opacity: .92; }
.eh-qd .quantity-discounts__headline { font-size: 14px; }

/* příslušenství, podobné zboží, pomoc */
.eh-pd { margin: 32px 0 8px; display: flex; flex-direction: column; gap: 28px; }
.eh-pd h2 { font-size: 22px; margin: 0 0 14px; }
.eh-acc__g { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.eh-acc__g a { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--eh-line); border-radius: 14px; text-decoration: none; color: var(--eh-dark); transition: box-shadow .15s, border-color .15s; }
.eh-acc__g a:hover { border-color: var(--eh-blue); box-shadow: 0 4px 14px rgba(63, 155, 213, .15); }
.eh-acc__g b { font-size: 16px; }
.eh-acc__g span { font-size: 13px; color: var(--eh-muted); }
.eh-acc__g em { font-style: normal; font-weight: 700; color: var(--eh-blue); margin-top: 4px; }
@media (max-width: 767px) { .eh-acc__g { grid-template-columns: 1fr; } }
.eh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.eh-link { font-weight: 700; color: var(--eh-blue); }
.eh-pd-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eh-pd-grid .product { width: auto !important; max-width: none !important; flex: none !important; }
@media (max-width: 991px) { .eh-pd-grid { grid-template-columns: repeat(2, 1fr); } }
.eh-pd-help { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--eh-soft); border-radius: 16px; padding: 18px 20px; }
.eh-pd-help b { display: block; font-size: 17px; color: var(--eh-dark); }
.eh-pd-help span { font-size: 14px; color: var(--eh-muted); }
.eh-pd-help > div:last-child { display: flex; gap: 10px; flex-wrap: wrap; }
.eh-pd-help a { background: #fff; border: 1px solid var(--eh-line); border-radius: 999px; padding: 9px 16px; font-weight: 700; color: var(--eh-dark); text-decoration: none; }

/* lepicí lišta na mobilu */
.eh-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .2s; }
.eh-sticky b { display: block; font-size: 18px; color: var(--eh-dark); }
.eh-sticky small { color: var(--eh-green); font-size: 12px; }
.eh-sticky a { background: var(--eh-blue); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
@media (max-width: 767px) { .eh-sticky { display: flex; } .eh-sticky.on { transform: none; } }

/* množstevní sleva se v kartě nezobrazuje */
.p-info-wrapper .quantity-discounts, .flag-quantity-discount { display: none !important; }

/* mobil: fotky listovat prstem */
.eh-swipe { position: relative; }
.eh-swipe__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 12px; background: #fff; }
.eh-swipe__track::-webkit-scrollbar { display: none; }
.eh-swipe__item { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; }
.eh-swipe__item img { width: 100%; height: 100%; object-fit: contain; }
.eh-swipe__dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.eh-swipe__dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9ced6; transition: width .2s, background .2s; }
.eh-swipe__dots i.on { width: 18px; border-radius: 4px; background: var(--eh-blue); }
.eh-swipe__count { position: absolute; right: 10px; bottom: 34px; background: rgba(28, 31, 38, .7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; pointer-events: none; }

/* návody k použití */
.eh-navod { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.eh-navod a { display: inline-block; padding: 8px 14px; border: 1px solid var(--eh-line); border-radius: 999px; background: #fff; color: var(--eh-dark); font-weight: 600; font-size: 14px; text-decoration: none; }
.eh-navod a:hover { border-color: var(--eh-blue); color: var(--eh-blue); }
/* nový krátký popis */
.p-info-wrapper .eh-short { margin: 6px 0 14px; }

/* ===== karta produktu v2: horní blok, nákupní karta ===== */
.p-info-wrapper .detail-grid-title, .p-info-wrapper .social-buttons-wrapper { display: none !important; }
.eh-top { margin: 4px 0 18px; }
.eh-lead { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: #4a505a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.eh-tags span { background: #eaf4fb; color: #1d5f8c; font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 6px; }
.eh-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.eh-tiles > div { background: var(--eh-soft); border: 1px solid var(--eh-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.eh-tiles b { font-size: 15px; line-height: 1.25; color: var(--eh-dark); }
.eh-tiles span { font-size: 13px; line-height: 1.35; color: var(--eh-muted); }
@media (max-width: 480px) { .eh-tiles { grid-template-columns: 1fr; } .eh-tiles > div { flex-direction: row; align-items: baseline; gap: 6px; } }

.eh-buy { background: #fff; border: 1px solid var(--eh-line); border-radius: 16px; box-shadow: 0 4px 18px rgba(20, 30, 50, .06); padding: 18px 18px 6px; margin: 0 0 12px; }
.eh-buy__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.eh-buy__row .p-final-price-wrapper { margin: 0 !important; }
.eh-buy__row .price-final { font-size: 32px !important; line-height: 1; }
.eh-avail { display: inline-flex; align-items: center; gap: 6px; background: #e9f7ef; color: var(--eh-green); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; margin: 0 !important; }
.eh-avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--eh-green); }
.eh-avail .availability-label { color: inherit !important; text-transform: none !important; font-weight: 700; }
.eh-avail .availability-amount { color: #3d7a55; font-weight: 500; }
.eh-buy__cart .add-to-cart { display: flex; gap: 10px; margin: 0 !important; }
.eh-buy__cart .add-to-cart-button { flex: 1 1 auto; justify-content: center; }
.eh-buy__usp { list-style: none; margin: 16px -18px 0; padding: 14px 18px; border-top: 1px solid var(--eh-line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.eh-buy__usp li { display: flex; gap: 10px; align-items: flex-start; }
.eh-buy__usp svg { flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #eaf4fb; fill: none; stroke: var(--eh-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eh-buy__usp span { font-size: 12.5px; line-height: 1.35; color: var(--eh-muted); }
.eh-buy__usp b { display: block; font-size: 14px; color: var(--eh-dark); }
@media (max-width: 400px) { .eh-buy__usp { grid-template-columns: 1fr; } }
.eh-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 2px 14px; }
.eh-links a { font-size: 14px; font-weight: 600; color: var(--eh-blue); text-decoration: none; text-transform: none !important; letter-spacing: 0 !important; }
.eh-links a:hover { text-decoration: underline; }

/* videa v popisu – plná šířka, poměr 16:9 */
#description iframe[src*="youtube"], .basic-description iframe[src*="youtube"] { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9 !important; max-width: 100%; }
.eh-acc-top { margin: 8px 0 28px; }
.eh-acc-top h2 { font-size: 20px; }
