/* === Detail modulu � eshop_module.css === */

.esh-module-detail-block {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 7px 34px #b7c8ec22;
    padding: 36px 32px 44px 32px;
    margin-top: 42px;
    box-sizing: border-box;
}

.esh-module-detail-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
}

.esh-module-gallery {
    width: 350px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.esh-gallery-main {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f8fc;
    border-radius: 18px;
    box-shadow: 0 2px 14px #d8e7fa44;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 2px 0px;
}
.esh-gallery-main img {
    max-width: 96%;
    max-height: 96%;
    object-fit: contain;
    display: block;
}

.esh-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.esh-gallery-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #e3eafd;
    box-shadow: 0 1px 6px #dceafd33;
    cursor: pointer;
    transition: border .16s;
}
.esh-gallery-thumb.active,
.esh-gallery-thumb:hover {
    border: 2.6px solid #2467e9;
}

.esh-module-maininfo {
    flex: 1 1 auto;
    min-width: 280px;
    max-width: 590px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.esh-detail-title {
    color: #163bca;
    font-size: 2.04em;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.esh-detail-short {
    color: #1b256d;
    font-size: 1.13em;
    margin-bottom: 7px;
    line-height: 1.4em;
}

/* === V�B�R LICENCE / CENY === */
.esh-detail-buyform {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 16px 0 18px 0;
    background: #f7faff;
    border-radius: 11px;
    padding: 18px 20px;
    width: 100%;
    max-width: 420px;
}

.esh-variants-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
}
.esh-variant-radio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    font-weight: 600;
    color: #1843b5;
    font-size: 1.06em;
    margin-bottom: 7px;
}
.esh-variant-radio input[type="radio"] {
    accent-color: #2a6afe;
    width: 17px;
    height: 17px;
    margin-right: 7px;
}
.esh-variant-label {
    font-weight: 600;
    color: #234;
    min-width: 82px;
    margin-left: 6px;
}
.esh-variant-price {
    color: #e32060;
    font-weight: bold;
    min-width: 72px;
    margin-left: 8px;
    text-align: right;
}

.esh-module-fees {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 8px;
}
.esh-fee-item {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}
.esh-fee-note { color: #6b7280; font-weight: 400; }
.esh-fee-item label {
    font-weight: 500;
    margin-bottom: 0;
    margin-left: 5px;
}

/* === Toggle přepínač === */
.esh-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
    user-select: none;
}
.esh-toggle-label input[type="checkbox"] {
    display: none;
}
.esh-toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 999px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.esh-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.esh-toggle-label input:checked + .esh-toggle-switch {
    background: #6366f1;
}
.esh-toggle-label input:checked + .esh-toggle-switch::after {
    transform: translateX(18px);
}

/* === CTA ��dek: cena + �u�et��te� + tla��tko vedle === */
.esh-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: nowrap;   /* d�le�it�: nezalamovat */
}
.esh-total-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.esh-module-summary {
    width: 100%;
    font-size: 1.20em;
    color: #e32060;
    margin-top: 4px;
    margin-bottom: 0;
    font-weight: bold;
    letter-spacing: -0.01em;
}

/* �U�et��te� badge */
.esh-savings {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef6ff;
    border: 1px solid #cfe4ff;
    border-radius: 999px;
    padding: 6px 10px;
    line-height: 1;
}
.esh-savings-badge {
    background: #2a6afe;
    color: #fff;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9em;
}
.esh-savings-amount {
    color: #0d3ea7;
    font-weight: 700;
}
.esh-savings-note {
    color: #4b6fb6;
    font-size: 0.92em;
}

/* CTA řádek – sloupcový layout když je úspora */
.esh-cta-row.has-savings {
    flex-direction: column;
    align-items: stretch;
}
.esh-cta-row.has-savings .esh-savings {
    border-radius: 10px;
    justify-content: flex-start;
}
.esh-cta-row.has-savings .esh-btn-cart-big {
    width: 100%;
    text-align: center;
    white-space: normal;
}

/* TLA��TKO KO��K (inline varianta) */
.esh-btn-cart-big {
    background: linear-gradient(90deg, #2a6afe 0%, #45cbff 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.08em;
    border: none;
    border-radius: 9px;
    padding: 13px 34px;
    cursor: pointer;
    box-shadow: 0 2px 13px #bedcff44;
    transition: background 0.17s, box-shadow 0.16s, transform 0.10s;
    text-align: center;
    white-space: nowrap;
    flex: 0 0 auto;
}
.esh-btn-cart-big:hover {
    background: linear-gradient(90deg, #1b4ac7 0%, #39bfe6 100%);
    box-shadow: 0 4px 15px #bedcff77;
    transform: scale(1.03);
}
.esh-btn-inline { white-space: nowrap; }

/* Parametrick� box (v�echna metadata) */
.esh-module-sidebox {
    min-width: 210px;
    max-width: 240px;
    margin-left: 22px;
    background: #f7f8fb;
    border-radius: 16px;
    box-shadow: 0 2px 15px #e2eafd15;
    padding: 20px 10px;
    color: #38417a;
    font-size: 1.04em;
    line-height: 1.5em;
}
.esh-module-sidebox ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.esh-module-sidebox li {
    margin-bottom: 7px;
    border-bottom: 1px solid #e6eafb;
    padding-bottom: 6px;
}

/* Tabs */
.esh-detail-tabs-wrap {
    position: relative;
}
.esh-detail-tabs-wrap::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 2px;
    width: 48px;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
    border-radius: 0 8px 0 0;
}
.esh-detail-tabs {
    display: flex;
    gap: 4px 7px;
    margin: 44px 0 0 0;
    border-bottom: 2.2px solid #e7eefd;
    flex-wrap: wrap;
    padding-bottom: 0;
}
.esh-detail-tab {
    border: none;
    background: none;
    font-size: 1.09em;
    color: #1a3daa;
    font-weight: 600;
    padding: 13px 21px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: background 0.13s, color 0.13s;
    white-space: nowrap;
    flex-shrink: 0;
}
.esh-detail-tab.active,
.esh-detail-tab:hover {
    background: #f0f7ff;
    color: #2267d8;
}
.esh-detail-tabpanels {
    margin-bottom: 32px;
    margin-top: 0;
}
.esh-detail-panel {
    display: none;
    padding: 23px 2px 0 2px;
    background: none;
}
.esh-detail-panel.active { display: block; }

/* Responsive */
@media (max-width: 1100px) {
    .esh-module-detail-block { padding: 18px 4vw 30px 4vw; margin-top: 18px; }
    .esh-module-detail-top { flex-direction: column; gap: 20px; }
    .esh-module-gallery { width: 100%; max-width: 480px; }
    .esh-module-sidebox { margin-left: 0; max-width: 100%; width: 100%; }
    .esh-module-maininfo { max-width: 100%; min-width: 0; }
    .esh-detail-buyform { max-width: 100%; }
    .esh-cta-row { gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 750px) {
    .esh-module-detail-block { padding: 12px 14px 20px 14px; border-radius: 14px; }
    .esh-detail-title { font-size: 1.35em; }
    .esh-detail-short { font-size: 1em; }
    .esh-module-detail-top { gap: 14px; }
    .esh-module-gallery { max-width: 100%; }
    .esh-gallery-main { border-radius: 11px; aspect-ratio: 4/3; }
    .esh-module-sidebox { padding: 14px 12px; border-radius: 10px; }
    .esh-detail-buyform { padding: 14px 12px; }
    .esh-cta-row { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
    .esh-btn-inline { width: 100%; text-align: center; }
    .esh-detail-tab { font-size: .85em; padding: 8px 10px; }
    .esh-savings { flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 420px) {
    .esh-module-detail-block { padding: 10px 10px 16px 10px; }
    .esh-detail-title { font-size: 1.18em; }
    .esh-gallery-main { aspect-ratio: 4/3; }
    .esh-btn-cart-big { font-size: .97em; padding: 12px 16px; }
}

/* --- Gallery upgrades --- */
.esh-module-gallery{width:350px;min-width:200px;display:flex;flex-direction:column;gap:14px;flex-shrink:0}
.esh-gallery-main img{max-width:96%;max-height:96%;object-fit:contain;display:block;cursor:zoom-in}
.esh-img-label{position:absolute;top:10px;left:10px;background:#17a2ff;color:#fff;font-weight:700;font-size:.88em;padding:6px 10px;border-radius:999px;margin-right:6px;box-shadow:0 6px 18px #1b5ed026}
.esh-img-label+.esh-img-label{margin-left:8px}
.esh-gal-nav{position:absolute;top:50%;transform:translateY(-50%);background:#ffffffd6;border:none;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:22px;line-height:36px;text-align:center;box-shadow:0 4px 18px #b9c7f44a}
.esh-gal-nav.prev{left:10px}.esh-gal-nav.next{right:10px}
.esh-gal-nav:hover{background:#fff}
.esh-thumbs-wrap{position:relative;display:flex;align-items:center;gap:8px}
.esh-gallery-thumbs{display:flex;gap:10px;overflow:hidden;scroll-behavior:smooth}
.esh-gallery-thumb{width:60px;height:60px;object-fit:contain;background:#fff;border-radius:10px;border:2px solid #e3eafd;box-shadow:0 1px 6px #dceafd33;cursor:pointer;flex:0 0 auto}
.esh-gallery-thumb.active,.esh-gallery-thumb:hover{border-color:#2467e9}
.thumb-nav{background:#fff;border:1px solid #e2e8f0;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:16px;line-height:26px;text-align:center;box-shadow:0 2px 10px #b9c7f42a}
.thumb-nav[disabled]{opacity:.4;cursor:default}
/* --- Lightbox --- */
.esh-lightbox{position:fixed;inset:0;background:#0b1020f2;display:flex;align-items:center;justify-content:center;z-index:9999}
.esh-lightbox[hidden]{display:none}
.esh-lightbox img{max-width:92vw;max-height:86vh;object-fit:contain;border-radius:12px}
.lb-btn{position:absolute;background:#ffffffde;border:none;width:42px;height:42px;border-radius:50%;cursor:pointer;font-size:22px;line-height:42px;text-align:center;box-shadow:0 8px 24px #0003}
.lb-close{top:20px;right:22px}
.lb-prev{left:20px;top:50%;transform:translateY(-50%)}
.lb-next{right:20px;top:50%;transform:translateY(-50%)}
.lb-counter{position:absolute;bottom:18px;color:#fff;font-weight:700;background:#0008;padding:6px 10px;border-radius:8px}
.lb-labels{position:absolute;top:22px;left:22px;display:flex;gap:8px}
/* Responsive */
@media (max-width:750px){
  .esh-module-gallery{width:100% !important;max-width:100% !important;min-width:0 !important;flex-shrink:1 !important;margin:0 auto}
  .esh-gallery-main{aspect-ratio:4/3 !important}
  .esh-gallery-thumb{width:54px;height:54px}
}

/* D�LE�IT�: rodi� mus� b�t relativn�, aby absolutn� pozice n�e fungovala */
.esh-gallery-main {
  position: relative;
}

/* zv�razn�n� povinn�ch poplatk� v prav�m boxu */
.esh-module-sidebox .esh-fee-required{
  background:#fee2e2;
  color:#b91c1c;
  font-weight:700;
  padding:6px 8px;
  border-radius:8px;
  margin-top:6px;
}
.esh-module-sidebox .esh-fee-required small{
  font-weight:600;
  opacity:.9;
}

/* voliteln� poplatky jemn� */
.esh-module-sidebox .esh-fee-optional{
  background:#f8fafc;
  color:#0f172a;
  padding:6px 8px;
  border-radius:8px;
  margin-top:6px;
}

.esh-stars{ color:#f59e0b; letter-spacing:1px; }

/* zv�razn�n� povinn�ch/voliteln�ch poplatk� */
.esh-module-sidebox .esh-fee-required{
  background:#fee2e2; color:#b91c1c; font-weight:700;
  padding:6px 8px; border-radius:8px; margin-top:6px;
}
.esh-module-sidebox .esh-fee-required small{ font-weight:600; opacity:.9; }
.esh-module-sidebox .esh-fee-optional{
  background:#f8fafc; color:#0f172a;
  padding:6px 8px; border-radius:8px; margin-top:6px;
}

/* Tlačítko "Vidět modul naživo" */
.esh-demo-live-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #5b2cff 0%, #7c4dff 100%);
  color: #fff;
  border-radius: 11px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 3px 12px rgba(91,44,255,.25);
}
.esh-demo-live-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
  color: #fff;
}
.esh-demo-live-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  font-size: .75rem;
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  50%       { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
}


/* kompaktn�j�� varianty */
.esh-variants-wrap .esh-variant-radio{
  gap:8px;
  padding:4px 8px;
  line-height:1.1;
}
.esh-variants-wrap .esh-variant-price{
  margin-left:auto;
}


/* Sloupec �t�tk� v lev�m horn�m rohu, v�dy pod sebou */
.esh-img-labels {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;              /* nad obr�zkem i �ipkami */
  pointer-events: none;    /* a� nep�ek�� klik�m na obr�zek/zoom */
}

/* ── Recenze v tabu ── */
.rev-write-wrap { margin-bottom: 22px; }
.rev-write-btn {
    display: inline-block; padding: 10px 22px;
    background: linear-gradient(135deg, #1432a0, #2c64e5);
    color: #fff; font-weight: 700; font-size: .95em;
    border-radius: 10px; text-decoration: none;
    box-shadow: 0 4px 14px rgba(28,64,192,.22);
    transition: opacity .14s;
}
.rev-write-btn:hover { opacity: .88; }
.rev-write-btn--ghost {
    background: #fff; color: #1840c0;
    border: 2px solid #1840c0;
    box-shadow: none;
}
.rev-write-btn--ghost:hover { background: #eef2ff; }

.rev-list { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.rev-item {
    background: #fafbff; border: 1px solid #e8edfa;
    border-radius: 13px; padding: 18px 20px;
}
.rev-item-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 8px; flex-wrap: wrap;
}
.rev-item-stars { color: #f5a623; font-size: 1.15em; letter-spacing: 1px; }
.rev-item-author { font-weight: 700; color: #1a2060; font-size: .94em; }
.rev-item-date   { color: #b0bacf; font-size: .85em; margin-left: auto; }
.rev-item-text   { color: #3b4778; font-size: .95em; line-height: 1.55; }
.rev-item-reply  {
    margin-top: 10px; padding: 9px 13px;
    background: #eef4ff; border-left: 3px solid #1840c0;
    border-radius: 0 8px 8px 0;
    font-size: .88em; color: #1840c0; line-height: 1.5;
}

/* Vzhled jednoho �t�tku; ZRU��ME p��padn� star� absolute */
.esh-img-label {
  position: static !important;    /* p�ebije star� position:absolute, pokud bylo */
  display: inline-flex;
  align-items: center;
  background: #0d6efd;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

/* Voliteln� odli�en� 1./2./3. �t�tku barvou */
.esh-img-labels .esh-img-label:nth-child(1)  { background: #2a6afe; } /* modr� */
.esh-img-labels .esh-img-label:nth-child(2)  { background: #22c55e; } /* zelen� */
.esh-img-labels .esh-img-label:nth-child(3)  { background: #f59e0b; } /* oran�ov� */
.esh-img-labels .esh-img-label:nth-child(4)  { background: #ef4444; } /* �erven� */
.esh-img-labels .esh-img-label:nth-child(5)  { background: #a855f7; } /* fialov� */
.esh-img-labels .esh-img-label:nth-child(6)  { background: #06b6d4; } /* tyrkysov� */
.esh-img-labels .esh-img-label:nth-child(7)  { background: #84cc16; } /* limetkov� */
.esh-img-labels .esh-img-label:nth-child(8)  { background: #ec4899; } /* r��ov� */
.esh-img-labels .esh-img-label:nth-child(9)  { background: #f97316; } /* tmav�� oran�ov� */
.esh-img-labels .esh-img-label:nth-child(10) { background: #0ea5e9; } /* sv�tle modr� */


/* === Discount pill badges === */
.esh-variant-discount { font-weight: 600; }
.esh-discount-pos {
    background: #dcfce7;
    color: #15803d;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.83em;
    font-weight: 700;
    white-space: nowrap;
}
.esh-discount-zero { color: #9ca3af; font-size: 0.85em; }



/* === Obsahové bloky (střídavý layout) === */
.esh-content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #f0f0f0;
}
.esh-content-block.cb-img-left .cb-img { order: -1; }
.cb-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #2d3748;
}
.cb-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
    display: block;
}
@media (max-width: 680px) {
    .esh-content-block { grid-template-columns: 1fr; gap: 1.2rem; }
    .esh-content-block.cb-img-left .cb-img { order: 0; }
}

/* ===== Poptávkový formulář (inquiry_form.php) ===== */
.esh-inquiry-box {
    background: #f7faff;
    border: 1.5px solid #c3d9f8;
    border-radius: 14px;
    padding: 26px 28px;
    margin: 20px 0;
    max-width: 620px;
}
.esh-inquiry-box--custom {
    background: #f8f5ff;
    border-color: #d0bff8;
}
.esh-inquiry-title {
    font-size: 1.08em;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 18px;
}
.esh-inq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.esh-inq-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.esh-inq-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.esh-inq-field label {
    font-size: .88em;
    font-weight: 600;
    color: #374151;
}
.esh-inq-field input,
.esh-inq-field select,
.esh-inq-field textarea {
    padding: 9px 12px;
    border: 1px solid #c8d8ef;
    border-radius: 8px;
    font-size: .97em;
    background: #fff;
    color: #1a2030;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.esh-inq-field input:focus,
.esh-inq-field select:focus,
.esh-inq-field textarea:focus {
    outline: none;
    border-color: #2a6afe;
    box-shadow: 0 0 0 3px #2a6afe22;
}
.esh-inq-full {
    grid-column: 1 / -1;
}
.esh-inq-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.esh-inq-checks label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .93em;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
}
.esh-inq-checks input[type="checkbox"] {
    accent-color: #2a6afe;
    width: 15px;
    height: 15px;
}
.esh-inq-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.esh-inq-btn {
    background: linear-gradient(90deg, #2a6afe 0%, #45cbff 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.04em;
    border: none;
    border-radius: 9px;
    padding: 12px 28px;
    cursor: pointer;
    box-shadow: 0 2px 13px #bedcff44;
    transition: opacity .15s;
}
.esh-inq-btn:hover { opacity: .88; }
.esh-inq-note {
    color: #6b7280;
    font-size: .91em;
}
.esh-inq-success {
    background: #d1fae5;
    border: 1.5px solid #6ee7b7;
    color: #065f46;
    padding: 16px 22px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
    font-size: 1.05em;
}
.esh-inq-error {
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 14px;
}
@media (max-width: 600px) {
    .esh-inq-grid, .esh-inq-grid--3 { grid-template-columns: 1fr; }
    .esh-inquiry-box { padding: 16px 14px; }
}

/* ============================================================
   NOVÝ GRID LAYOUT: main-col + sticky sidebar
   ============================================================ */
.esh-detail-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0 32px;
    align-items: start;
}
.esh-detail-main-col {
    min-width: 0;
}
.esh-detail-sidebar-col {
    position: sticky;
    top: 76px;
    align-self: start;
}
.esh-detail-sidebar-col .esh-module-sidebox {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 1100px) {
    .esh-detail-grid {
        grid-template-columns: 1fr;
    }
    .esh-detail-sidebar-col {
        position: static;
        order: -1; /* sidebar se ukáže nad tabpanely na mobilu */
    }
    .esh-detail-sidebar-col .esh-module-sidebox {
        max-width: 100%;
    }
}

/* ============================================================
   INLINE RATING pod názvem
   ============================================================ */
.esh-rating-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.esh-rating-inline .esh-stars {
    color: #f59e0b;
    font-size: 1.08em;
    letter-spacing: 1px;
}
.esh-rating-text {
    color: #6b7280;
    font-size: 0.92em;
}
.esh-rating-link {
    color: #2563eb;
    font-size: 0.92em;
    text-decoration: none;
    border-bottom: 1px solid #2563eb44;
}
.esh-rating-link:hover {
    color: #1432a0;
    border-bottom-color: #1432a0;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.esh-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.esh-faq-item {
    border: 1px solid #e5eaf5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.esh-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-weight: 600;
    color: #1a2060;
    cursor: pointer;
    user-select: none;
    list-style: none;
    gap: 12px;
    transition: background 0.13s;
}
.esh-faq-q::-webkit-details-marker { display: none; }
.esh-faq-q::after {
    content: '+';
    font-size: 1.5em;
    font-weight: 300;
    color: #2a6afe;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.2s;
}
.esh-faq-item[open] > .esh-faq-q {
    background: #f4f7ff;
}
.esh-faq-item[open] > .esh-faq-q::after {
    transform: rotate(45deg);
}
.esh-faq-a {
    padding: 4px 18px 16px 18px;
    color: #374151;
    line-height: 1.65;
    font-size: 0.97em;
    border-top: 1px solid #eef0f8;
}

/* ============================================================
   DOPORUČENÉ MODULY SEKCE
   ============================================================ */
.esh-related-section {
    margin-top: 52px;
    padding-top: 36px;
    border-top: 2px solid #eef2fb;
}
.esh-related-title {
    font-size: 1.45em;
    font-weight: 800;
    color: #163bca;
    margin: 0 0 24px 0;
    letter-spacing: -0.01em;
}
.esh-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.esh-related-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px #dce7fc22;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.17s, transform 0.15s;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
}
.esh-related-card:hover {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;
    transform: translateY(-3px);
}
.esh-related-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.esh-related-card-img {
    background: #f5f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    min-height: 130px;
}
.esh-related-card-img img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    display: block;
}
.esh-related-card-body {
    padding: 14px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.esh-related-card-name {
    font-weight: 700;
    color: #1a2060;
    font-size: 0.97em;
    line-height: 1.3;
}
.esh-related-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: #6b7280;
}
.esh-related-card-rating .esh-stars {
    color: #f59e0b;
    font-size: 0.95em;
}
.esh-related-card-price {
    color: #e32060;
    font-weight: 700;
    font-size: 0.95em;
    margin-top: auto;
}
.esh-related-card-price.is-free {
    color: #15803d;
}
.esh-related-card-btn {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #2a6afe 0%, #45cbff 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9em;
    padding: 10px;
    text-decoration: none;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.esh-related-card-btn:hover { opacity: 0.88; }

@media (max-width: 1100px) {
    .esh-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 750px) {
    .esh-related-grid { grid-template-columns: repeat(2, 1fr); }
    .esh-related-section { margin-top: 32px; padding-top: 24px; }
}
@media (max-width: 480px) {
    .esh-related-grid { grid-template-columns: 1fr; }
}

/* === Tiered package / variant cards === */
.esh-pkg-months {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.esh-pkg-month-btn {
    padding: 7px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
    color: #374151;
}
.esh-pkg-month-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}
.esh-pkg-month-btn:hover:not(.active) {
    border-color: #2563eb;
    color: #2563eb;
}
.esh-pkg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.esh-pkg-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 16px 16px;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.esh-pkg-card--highlight {
    border-color: #ca8a04;
    box-shadow: 0 2px 14px rgba(202,138,4,0.18);
}
.esh-pkg-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ca8a04;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.06em;
}
.esh-pkg-name {
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}
.esh-pkg-price {
    text-align: center;
    line-height: 1;
    margin: 4px 0 0;
}
.esh-pkg-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #111;
}
.esh-pkg-per {
    font-size: 0.85rem;
    color: #6b7280;
}
.esh-pkg-limit {
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: -4px;
}
.esh-pkg-savings {
    text-align: center;
    font-size: 0.78rem;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: -2px;
}
.esh-btn-pkg {
    margin-top: auto;
    padding: 9px 0;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
    width: 100%;
}
.esh-btn-pkg:hover { opacity: 0.88; }
.esh-btn-pkg:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 640px) {
    .esh-pkg-grid { grid-template-columns: 1fr; }
}
