/* Optional information, shown only above the agreed unit-price threshold. */
body.type-detail .es-product-information { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 12px 0 0; }
body.type-detail .es-purchase-note { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 12px; padding: 16px; border: 0; border-radius: var(--es-radius); background: #fff; color: #333; }
body.type-detail .es-purchase-note > svg { color: #185d8b; }
body.type-detail #content .es-purchase-note h2 { margin: 0 0 6px; font-size: 15px; line-height: 1.4; font-weight: 700; color: #333; }
body.type-detail .es-purchase-note > div { display: flex; flex-direction: column; height: 100%; min-width: 0; }
body.type-detail #content .es-purchase-note p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
body.type-detail .es-purchase-note a { margin-top: auto; color: #185d8b; font-size: 13px; line-height: 1.5; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.type-detail .es-purchase-note a:hover { color: #123f5e; }
@media(max-width:991px) { body.type-detail .es-product-information { grid-template-columns: 1fr; } }

/* Sjednocené popisy: původní fakta a obrázky, responzivní bloky. */
.es-description { color: #333; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.es-description :is(div, section, figure, p, ul, ol, table) { max-width: 100%; }
.es-description :is(h2, h3, h4) { line-height: 1.3; color: #272727; clear: both; }
.es-description h2 { font-size: var(--es-h2); margin: 32px 0 16px; }
.es-description h3 { font-size: var(--es-h3); margin: 24px 0 12px; }
.es-description p { margin: 0 0 20px; }
.es-description img { display: block; max-width: 100%; height: auto; margin: 20px auto; }
/* Portrait photos must fit the reading viewport; keep the native gallery outside this scope. */
body.template-13.type-detail #description .basic-description img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(520px, 65vh);
  max-height: min(520px, 65svh);
  object-fit: contain;
  margin: 20px auto;
}
@media (max-width: 767px) {
  body.template-13.type-detail #description .basic-description img {
    max-height: min(380px, 65vh);
    max-height: min(380px, 65svh);
  }
}
.es-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 30px 0; }
.es-feature { min-width: 0; padding: 24px; border: 1px solid #e7e7e7; border-radius: 10px; background: #fff; }
.es-feature > img:first-child, .es-feature > p:first-child img { margin-top: 0; }
.es-feature h2, .es-feature h3 { font-size: 21px; margin: 16px 0 12px; }
.es-feature p:last-child { margin-bottom: 0; }
.es-feature--icon img, .es-description img.es-description-icon,
body.template-13.type-detail #description .basic-description .es-feature--icon img,
body.template-13.type-detail #description .basic-description img.es-description-icon { width: auto; max-width: 100px; max-height: 100px; object-fit: contain; margin: 0 0 18px; }
.es-description-video { display: block; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 28px auto; }
.es-table-scroll { overflow-x: auto; margin: 18px 0 32px; -webkit-overflow-scrolling: touch; }
.es-specifications { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.es-specifications :is(th, td) { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #e4e7ea; }
.es-specifications th { width: 44%; font-weight: 600; }
.es-specifications tr:nth-child(odd) { background: #f5f7f9; }
.es-description hr { height: 1px; background: #e5e5e5; border: 0; margin: 30px 0; }
@media (max-width: 991px) { .es-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 575px) {
  .es-description { font-size: 15px; line-height: 1.65; }
  .es-features { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0; }
  .es-feature { padding: 20px; }
  .es-specifications :is(th, td) { padding: 10px 12px; }
}

