/* Skrytý e-shop /eshop (poukážky a vstupenky) – načíta sa len na stránkach e-shopu (shop/front.php).
   Formuláre a karty preberajú vzhľad kontaktu (assets/contact.css nie je načítaný, preto sú tu potrebné triedy). */

.eshop .page-section {
  margin-top: 16px;
}
.eshop-lead {
  max-width: 760px; margin: 0 0 36px; font-size: 18px; line-height: 1.7; color: #625e56;
}
/* Úvod ponuky – zvýraznený box v šírke obsahu s podmenu kategórií */
.eshop-intro {
  margin-top: 8px; margin-bottom: 48px; padding: 0 var(--page-inset);
}
@media (max-width: 767px) {
  .eshop-intro { margin-bottom: 32px; }
  .eshop-intro-box { padding: 20px; }
}
.eshop-intro-box {
  padding: 26px 30px; background: var(--color-section-tinted); border: 1px solid var(--color-divider); border-radius: 24px;
}
.eshop-intro .eshop-lead {
  max-width: 900px; margin: 0; font-weight: 700; color: var(--color-green-dark);
}
.eshop-subnav {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.eshop-subnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; font-size: 15px; font-weight: 800; color: var(--color-green-dark); background: #fffefb; border: 2px solid var(--color-divider); border-radius: 999px; transition: border-color 160ms ease, color 160ms ease;
}
.eshop-subnav a:hover, .eshop-subnav a:focus-visible {
  color: var(--color-forest); border-color: var(--color-forest);
}
.eshop-notice {
  margin: 0 0 24px; padding: 14px 18px; font-weight: 700; color: var(--color-brown); background: #fdf1e6; border-left: 4px solid var(--color-orange); border-radius: 12px;
}
.eshop-notice-ok {
  color: var(--color-green-dark); background: #eef3e8; border-left-color: var(--color-forest);
}
.eshop-empty p {
  margin: 0 0 24px; font-size: 18px; line-height: 1.7;
}
.eshop-empty a:not(.button), .eshop-help a, .eshop-terms a, .eshop-next a {
  font-weight: 800; color: var(--color-green-dark); text-decoration: underline; text-underline-offset: 3px;
}
.eshop-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Ponuka */
.eshop-group + .eshop-group {
  margin-top: 56px;
}
.eshop-group-title {
  margin: 0 0 22px; font-family: var(--font-heading); font-size: 30px; font-weight: 400; line-height: 1.2; color: var(--color-green-dark);
}
.eshop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px;
}
.eshop-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fffefb; border: 1px solid var(--color-divider); border-radius: 24px; box-shadow: 0 6px 24px rgba(63, 51, 30, 0.05);
}
.eshop-card-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
}
.eshop-card-body {
  display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px;
}
.eshop-card-title {
  margin: 0; font-size: 21px; font-weight: 900; line-height: 1.3; color: var(--color-ink);
}
.eshop-card-title a:hover {
  color: var(--color-green-dark); text-decoration: underline; text-underline-offset: 4px;
}
.eshop-card-text {
  margin: 0; font-size: 15px; line-height: 1.6; color: #625e56;
}
.eshop-card .eshop-buy {
  margin-top: auto; padding-top: 8px;
}

/* Cena a nákup */
.eshop-buy {
  display: grid; gap: 14px;
}
.eshop-price {
  display: flex; align-items: baseline; gap: 10px;
}
.eshop-price strong {
  font-size: 26px; font-weight: 900; line-height: 1.2; color: var(--color-forest);
}
.eshop-price s {
  font-size: 16px; color: var(--color-muted);
}
.eshop-soldout {
  margin: 0; font-weight: 800; color: #b3261e;
}
.eshop-buy-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.eshop-buy-button {
  flex: 1 1 auto;
}
.eshop-qty {
  display: inline-flex; align-items: center; height: 52px; background: #fff; border: 1px solid #d9cfbf; border-radius: 999px;
}
.eshop-qty button {
  width: 44px; height: 100%; font-size: 20px; font-weight: 800; color: var(--color-green-dark); background: none; border: 0; cursor: pointer;
}
.eshop-qty input {
  width: 46px; height: 100%; padding: 0; font: inherit; font-size: 17px; font-weight: 800; text-align: center; color: var(--color-ink); background: none; border: 0; -moz-appearance: textfield; appearance: textfield;
}
.eshop-qty input::-webkit-outer-spin-button, .eshop-qty input::-webkit-inner-spin-button {
  margin: 0; -webkit-appearance: none;
}
.eshop-qty input:focus {
  outline: none;
}
.eshop-qty:focus-within {
  border-color: var(--color-green); box-shadow: 0 0 0 3px rgba(90, 107, 84, 0.18);
}
.eshop-qty-small {
  height: 40px;
}
.eshop-qty-small button {
  width: 34px; font-size: 17px;
}
.eshop-qty-small input {
  width: 36px; font-size: 15px;
}

/* Detail */
.eshop-product-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; gap: 56px;
}
.eshop-product-media img {
  width: 100%; border-radius: 28px; object-fit: cover; aspect-ratio: 3 / 2;
}
.eshop-product-short {
  font-size: 19px !important; font-weight: 700; color: var(--color-ink) !important;
}
.eshop-product-copy .eshop-buy {
  margin: 8px 0 32px; padding: 24px; background: #fffefb; border: 1px solid var(--color-divider); border-radius: 22px;
}
/* produkt len pre adminov – vidí ho len prihlásený v admine */
.eshop-admin-only {
  display: inline-block; margin: 0 0 12px; padding: 6px 12px; font-size: 13px; font-weight: 800; line-height: 1.35; color: var(--color-brown);
  background: color-mix(in srgb, var(--color-orange) 16%, #fff); border: 1px dashed var(--color-orange); border-radius: 10px;
}
/* oznam pre admina: e-shop skrytý / nákup vypnutý v Nastaveniach */
.eshop-state-note { padding-top: 24px; }
.eshop-state-note .eshop-admin-only { margin: 0; }
/* štítok „PDF e-mailom“ v karte produktu – jemná zelená pilulka s ikonou v krúžku */
.eshop-voucher-note {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 9px; margin: 4px 0 0; padding: 5px 14px 5px 5px;
  font-size: 13px; font-weight: 800; line-height: 1.3; color: var(--color-forest);
  background: rgba(76, 112, 51, 0.09); border: 1px solid rgba(76, 112, 51, 0.16); border-radius: 999px;
}
.eshop-voucher-note .icon {
  flex-shrink: 0; box-sizing: content-box; width: 14px; height: 14px; padding: 6px; color: #fff; background: var(--color-forest); border-radius: 50%;
}
.eshop-voucher-info {
  display: grid; gap: 12px; margin: -12px 0 32px; padding: 18px 20px; background: #f3f6ee; border: 1px solid #d6e0c8; border-radius: 18px;
}
.eshop-voucher-info p {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-ink);
}
.eshop-voucher-info .icon {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; color: var(--color-forest);
}
.eshop-product-desc p {
  font-size: 16px;
}
.eshop-shop-more {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; padding: 13px 18px; font-weight: 800; color: var(--color-green-dark);
  background: #fff; border: 1.5px solid var(--color-divider); border-radius: 999px; transition: border-color 160ms ease, color 160ms ease;
}
.eshop-shop-more .icon {
  width: 16px; height: 16px;
}
.eshop-shop-more:hover {
  color: var(--color-forest); border-color: var(--color-forest);
}
/* .eshop-product-copy kvôli prednosti pred okrajmi odsekov v .page-copy (inak sa čiara lepila na text) */
.eshop-back, .eshop-product-copy .eshop-back {
  margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--color-divider); font-weight: 800;
}
.eshop-back a {
  display: inline-flex; align-items: center; gap: 10px; color: var(--color-green-dark);
}
.eshop-back-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; color: var(--color-forest); background: #fff; border: 1px solid var(--color-divider); border-radius: 50%; transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.eshop-back-icon .icon {
  width: 16px; height: 16px;
}
.eshop-back a:hover {
  text-decoration: underline; text-underline-offset: 4px;
}
.eshop-back a:hover .eshop-back-icon {
  color: var(--color-on-orange); background: var(--color-orange); border-color: var(--color-orange);
}

/* Pokladňa (polia majú triedy kontaktu: contact-card, contact-field…) */
.contact-card {
  min-width: 0; padding: 36px; background: #fffefb; border: 1px solid var(--color-divider); border-radius: 28px; box-shadow: 0 6px 24px rgba(63, 51, 30, 0.05);
}
.contact-card h2 {
  margin: 0 0 16px; font-family: var(--font-heading); font-size: 24px; font-weight: 400; line-height: 1.25; color: var(--color-green-dark);
}
.contact-card h3 {
  margin: 24px 0 12px; font-size: 18px; font-weight: 900;
}
.contact-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.contact-field {
  display: grid; align-content: start; gap: 7px; min-width: 0;
}
.contact-field-wide {
  grid-column: 1 / -1;
}
.contact-field label {
  font-size: 14px; font-weight: 800; color: var(--color-ink);
}
.contact-field label small {
  font-weight: 600; color: var(--color-muted);
}
.contact-field input, .contact-field textarea, .eshop-coupon input {
  width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--color-ink); background: #fff; border: 1px solid #d9cfbf; border-radius: 14px; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.contact-field textarea {
  min-height: 96px; resize: vertical;
}
.contact-field input:focus, .contact-field textarea:focus, .eshop-coupon input:focus {
  border-color: var(--color-green); outline: none; box-shadow: 0 0 0 3px rgba(90, 107, 84, 0.18);
}
.contact-field [aria-invalid="true"] {
  border-color: #b3261e;
}
.contact-field-error, .contact-form-error {
  margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: #b3261e;
}
.contact-form-error {
  margin-bottom: 20px; padding: 12px 16px; background: #fdecea; border-radius: 12px;
}
.contact-form-error ul {
  margin: 8px 0 0; padding-left: 20px;
}
.contact-form-error a {
  text-decoration: underline;
}

.eshop-checkout-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); align-items: start; gap: 36px;
}
.eshop-block {
  margin: 0 0 32px; padding: 0; border: 0;
}
.eshop-legend {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 0; font-family: var(--font-heading); font-size: 22px; line-height: 1.25; color: var(--color-green-dark);
}
.eshop-legend span {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-family: var(--font-body); font-size: 16px; font-weight: 900; color: var(--color-on-orange); background: var(--color-orange); border-radius: 50%;
}
.eshop-fields + .eshop-check, .eshop-check + .eshop-fields {
  margin-top: 18px;
}
.eshop-check {
  display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; cursor: pointer;
}
.eshop-check input {
  flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color-forest);
}
.eshop-subhead {
  margin: 14px 0 2px; padding-top: 20px; border-top: 1px solid #e6dccb; font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--color-green-dark);
}
.eshop-help {
  margin: 0; font-size: 13px; line-height: 1.6; color: var(--color-muted);
}
.eshop-options {
  display: grid; gap: 10px;
}
.eshop-option {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border: 1px solid #d9cfbf; border-radius: 16px; cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.eshop-option:has(input:checked) {
  border-color: var(--color-forest); box-shadow: 0 0 0 2px rgba(76, 112, 51, 0.25);
}
.eshop-option.is-disabled {
  cursor: not-allowed; opacity: 0.55;
}
.eshop-option input {
  flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--color-forest);
}
.eshop-option .pay-ico {
  flex-shrink: 0; width: 42px; height: auto;
}
.eshop-option-text {
  display: grid; flex: 1; gap: 2px; min-width: 0;
}
.eshop-option-text strong {
  font-weight: 800;
}
.eshop-option-text small {
  font-size: 13px; line-height: 1.5; color: var(--color-muted);
}
.eshop-option-price {
  flex-shrink: 0; font-weight: 800; color: var(--color-forest);
}
/* logá metód pri online platbe (Visa, Mastercard, Google Pay, Apple Pay) */
.pay-logos {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.pay-logos svg {
  display: block; width: 44px; height: 28px;
}
/* prepočet nákupu na pozadí – sumy na chvíľu stlmené */
.eshop-sum dd, [data-sum-total] {
  transition: opacity 160ms ease;
}
.eshop-summary.is-busy .eshop-sum dd, .eshop-checkout-form.is-busy [data-sum-total] {
  opacity: 0.45;
}
.eshop-note {
  margin-bottom: 24px;
}
.eshop-terms {
  display: grid; gap: 8px; margin-bottom: 28px;
}
.eshop-submit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 24px; border-top: 1px solid var(--color-divider);
}
.eshop-total {
  display: grid; margin: 0;
}
.eshop-total span {
  font-size: 14px; color: var(--color-muted);
}
.eshop-total strong {
  font-size: 30px; font-weight: 900; line-height: 1.2; color: var(--color-forest);
}
.eshop-submit .button:disabled {
  cursor: wait; opacity: 0.65; transform: none;
}

/* Súhrn nákupu */
.eshop-summary {
  position: sticky; top: calc(var(--site-header-height, 96px) + 24px); padding: 30px; background: var(--color-section-tinted); border: 1px solid var(--color-divider); border-radius: 28px;
}
.eshop-summary-title {
  margin: 0 0 18px; font-family: var(--font-heading); font-size: 24px; font-weight: 400; line-height: 1.25; color: var(--color-green-dark);
}
.eshop-items {
  margin: 0; padding: 0; list-style: none;
}
.eshop-items li {
  display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--color-divider);
}
.eshop-items li:first-child {
  padding-top: 0;
}
.eshop-item-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-weight: 800; line-height: 1.4;
}
.eshop-item-head a:hover {
  text-decoration: underline; text-underline-offset: 3px;
}
.eshop-item-head strong {
  flex-shrink: 0;
}
.eshop-item-form {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
}
/* venovanie na PDF poukážku (Pre / Od / Venovanie) pod položkou v súhrne */
.eshop-dedication {
  background: #fffefb; border: 1px solid var(--color-divider); border-radius: 14px;
}
.eshop-dedication summary {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; font-weight: 800; color: var(--color-green-dark); cursor: pointer; list-style: none;
}
.eshop-dedication summary::-webkit-details-marker {
  display: none;
}
.eshop-dedication summary small {
  font-weight: 600; color: var(--color-muted);
}
.eshop-dedication summary .icon {
  width: 16px; height: 16px; color: var(--color-orange); transition: transform 160ms ease;
}
.eshop-dedication[open] summary .icon {
  transform: rotate(90deg);
}
.eshop-dedication-fields {
  display: grid; gap: 6px; padding: 0 14px 14px;
}
.eshop-dedication-fields .eshop-help {
  margin-bottom: 4px;
}
.eshop-dedication-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.eshop-dedication-pair span {
  display: grid; gap: 6px; min-width: 0;
}
.eshop-ded-count {
  justify-self: end; margin-top: -2px; font-size: 12px; color: var(--color-muted);
}
.eshop-ded-count.is-low {
  font-weight: 700; color: var(--color-orange-hover);
}
.eshop-dedication-fields label {
  margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--color-ink);
}
.eshop-dedication-fields input, .eshop-dedication-fields textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--color-ink); background: #fff; border: 1px solid #d9cfbf; border-radius: 12px; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.eshop-dedication-fields textarea {
  min-height: 84px; resize: vertical;
}
.eshop-dedication-fields input:focus, .eshop-dedication-fields textarea:focus {
  border-color: var(--color-green); outline: none; box-shadow: 0 0 0 3px rgba(90, 107, 84, 0.18);
}
/* tlačidlo „Zobraziť ukážku poukážky“ */
.eshop-ded-show {
  display: inline-flex; align-items: center; justify-self: start; gap: 8px; margin-top: 6px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 800;
  color: var(--color-green-dark); background: #fff; border: 1.5px solid var(--color-divider); border-radius: 999px; cursor: pointer; transition: border-color 160ms ease, color 160ms ease;
}
.eshop-ded-show .icon {
  width: 17px; height: 17px; color: var(--color-orange);
}
.eshop-ded-show:hover, .eshop-ded-show:focus-visible {
  color: var(--color-forest); border-color: var(--color-forest);
}

/* okno s ukážkou poukážky */
.eshop-pv {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(32, 27, 20, 0.62);
  opacity: 0; transition: opacity 200ms ease;
}
.eshop-pv.is-open {
  opacity: 1;
}
.eshop-pv[hidden] {
  display: none;
}
.eshop-pv-dialog {
  display: flex; flex-direction: column; width: min(600px, 100%); max-height: 100%; background: #fbf7ef; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); overflow: hidden;
}
.eshop-pv-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--color-divider);
}
.eshop-pv-head h2 {
  margin: 0; font-size: 18px; font-weight: 800; color: var(--color-ink);
}
.eshop-pv-x {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--color-ink); background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.eshop-pv-x:hover, .eshop-pv-x:focus-visible {
  background: #f0e8d9;
}
.eshop-pv-x .icon {
  width: 20px; height: 20px;
}
.eshop-pv-scroll {
  overflow-y: auto; padding: 20px; overscroll-behavior: contain;
}
.eshop-pv-note {
  margin: 14px 0 0; font-size: 13px; line-height: 1.5; text-align: center; color: var(--color-muted);
}
html.eshop-pv-lock {
  overflow: hidden;
}

/* strana A4 – rozmery podľa VoucherPdf: 1 pt = 0.168cqw (595 pt = šírka strany) */
.eshop-pv-page {
  container-type: inline-size; position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 210 / 297; overflow: hidden;
  font-family: Helvetica, Arial, sans-serif; color: #2e2a24; background: #fff; border-radius: 4px; box-shadow: 0 6px 22px rgba(63, 51, 30, 0.18);
}
.eshop-pv-page > * {
  flex-shrink: 0;
}
.eshop-pv-img {
  display: block; width: 100%; height: auto; aspect-ratio: 2480 / 1169; object-fit: cover; background: #ece5d6; /* odporúčaný podklad 2480 × 1169 px */
}
.eshop-pv-band {
  display: grid; padding: 2.35cqw 9.4cqw 2cqw; background: #f6f1e6; border-bottom: 0.42cqw solid var(--color-forest);
}
.eshop-pv-band [hidden] {
  display: none !important;
}
.eshop-pv-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4.7cqw;
}
.eshop-pv-pair.is-single {
  grid-template-columns: 1fr;
}
.eshop-pv-pair span, .eshop-pv-row {
  display: flex; align-items: baseline; gap: 1.7cqw; min-width: 0; min-height: 4.37cqw; padding-top: 1.6cqw;
}
.eshop-pv-band b {
  flex-shrink: 0; font-size: 1.43cqw; font-weight: 700; text-transform: uppercase; color: var(--color-forest);
}
.eshop-pv-band i {
  flex: 1; min-width: 0; font-size: 1.93cqw; line-height: 2.52cqw; color: #2e2a24; overflow-wrap: anywhere; white-space: pre-line;
}
.eshop-pv-band .is-empty i {
  height: 3.2cqw; border-bottom: 0.17cqw dotted #9e9180;
}
.eshop-pv-row.is-empty i {
  height: 8.2cqw; /* dva riadky na písanie */
}
.eshop-pv-row.is-empty i::before {
  content: ""; display: block; height: 3.05cqw; border-bottom: 0.17cqw dotted #9e9180;
}
.eshop-pv-body {
  padding: 3.7cqw 9.4cqw 0; overflow: hidden; flex-shrink: 1; min-height: 0;
}
.eshop-pv-body h2 {
  margin: 0 0 1.35cqw; font-size: 3.02cqw; font-weight: 700; line-height: 1.2; color: var(--color-forest);
}
.eshop-pv-text {
  font-size: 1.85cqw; line-height: 1.45;
}
.eshop-pv-text p, .eshop-pv-text ul, .eshop-pv-text ol {
  margin: 0 0 1.18cqw; padding-left: 0;
}
.eshop-pv-text ul, .eshop-pv-text ol {
  padding-left: 3cqw;
}
.eshop-pv-text li {
  margin-bottom: 0.5cqw;
}
.eshop-pv-text h2, .eshop-pv-text h3, .eshop-pv-text h4 {
  margin: 1.4cqw 0 1cqw; font-size: 2.35cqw; line-height: 1.25; color: #2e2a24;
}
.eshop-pv-text a {
  color: var(--color-forest); text-decoration: none;
}
.eshop-pv-ticket {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; height: 23.5cqw; margin: auto 6.72cqw 5.7cqw; padding: 0 1.7cqw 0 4.7cqw;
  background: #fff; border: 0.15cqw solid #d9d1c2; border-radius: 2cqw; overflow: hidden;
}
.eshop-pv-ticket::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1cqw; background: var(--color-forest);
}
.eshop-pv-ticket-text {
  display: grid; min-width: 0;
}
.eshop-pv-ticket-text small {
  font-size: 1.43cqw; font-weight: 700; color: var(--color-forest);
}
.eshop-pv-ticket-text strong {
  margin-top: 1.2cqw; font-size: 2.52cqw; line-height: 1.2;
}
.eshop-pv-ticket-text span {
  margin-top: 0.8cqw; font-size: 1.6cqw; color: #6b6258;
}
.eshop-pv-ticket-text span b {
  color: #2e2a24;
}
.eshop-pv-ticket-text .eshop-pv-code {
  display: flex; align-items: baseline; gap: 1.5cqw; margin-top: 1.2cqw; color: #2e2a24;
}
.eshop-pv-code small {
  font-size: 1.34cqw; color: #6b6258;
}
.eshop-pv-code em {
  font-size: 3.36cqw; font-style: normal; font-weight: 700; letter-spacing: 0.04em;
}
/* vzorový QR kód (skutočný príde v PDF po zaplatení) */
.eshop-pv-qr {
  flex-shrink: 0; width: 18.8cqw; height: 18.8cqw; opacity: 0.85;
  background: repeating-conic-gradient(#2e2a24 0 25%, #fff 0 50%) 0 0 / 2.35cqw 2.35cqw;
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%) 0 0 / 1.17cqw 1.17cqw; mask: radial-gradient(circle, #000 60%, transparent 61%) 0 0 / 1.17cqw 1.17cqw;
}
.eshop-pv-ticket-text .eshop-pv-contact {
  margin-top: 1.4cqw; font-size: 1.34cqw; color: #6b6258; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .eshop-pv {
    padding: 0; place-items: stretch;
  }
  .eshop-pv-dialog {
    width: 100%; height: 100%; border-radius: 0;
  }
  .eshop-pv-scroll {
    padding: 14px;
  }
}
.eshop-item-unit {
  font-size: 13px; color: var(--color-muted);
}
.eshop-remove {
  display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; padding: 0; color: var(--color-muted); background: none; border: 1px solid transparent; border-radius: 50%; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.eshop-remove .icon {
  width: 19px; height: 19px;
}
.eshop-remove:hover, .eshop-remove:focus-visible {
  color: #b3261e; background: #fdecea; border-color: #f5c6c2;
}
.eshop-link-button {
  padding: 0; font: inherit; font-size: 14px; font-weight: 800; color: var(--color-green-dark); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.eshop-link-button:hover {
  color: var(--color-orange-hover);
}
.eshop-sum {
  display: grid; gap: 8px; margin: 18px 0 0;
}
.eshop-sum div {
  display: flex; justify-content: space-between; gap: 16px;
}
.eshop-sum dt {
  color: var(--color-muted);
}
.eshop-sum dd {
  margin: 0; font-weight: 800;
}
.eshop-sum-total {
  padding-top: 10px; border-top: 1px solid var(--color-divider);
}
.eshop-sum-total dd {
  font-size: 22px; color: var(--color-forest);
}
.eshop-coupon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px;
}
.eshop-coupon input {
  flex: 1 1 160px; min-height: 44px; padding: 8px 14px;
}

/* Objednávka */
.eshop-order-head {
  display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px;
}
.eshop-order-head h2 {
  margin: 0 0 6px; font-family: var(--font-heading); font-size: 30px; font-weight: 400; line-height: 1.2; color: var(--color-green-dark);
}
.eshop-order-head p {
  margin: 0; font-size: 17px; line-height: 1.7;
}
.eshop-done-icon {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 56px; height: 56px; color: #fff; background: var(--color-forest); border-radius: 50%;
}
.eshop-done-icon .icon {
  width: 28px; height: 28px; stroke-width: 2.4;
}
.eshop-pay-box {
  margin-bottom: 28px;
}
.eshop-pay-box p {
  margin: 0 0 16px; line-height: 1.7;
}
.eshop-pay-box form {
  display: grid; gap: 18px; justify-items: start;
}
.eshop-pay-box .eshop-options {
  width: 100%;
}
.eshop-pay-details {
  display: grid; gap: 10px; margin: 0 0 18px;
}
.eshop-pay-details div {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px;
}
.eshop-pay-details dt {
  color: var(--color-muted);
}
.eshop-pay-details dd {
  margin: 0; overflow-wrap: anywhere;
}
.eshop-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
}
.eshop-order-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
}
.eshop-next {
  display: grid; gap: 10px; margin: 0 0 16px; padding-left: 22px; line-height: 1.6;
}

@media (max-width: 1100px) {
  .eshop-checkout-grid, .eshop-product-grid {
    grid-template-columns: minmax(0, 1fr); gap: 32px;
  }
  .eshop-summary {
    position: relative; top: auto; order: -1; /* relative kvôli krúžku pri prepočte (.is-busy::after) */
  }
}
@media (max-width: 767px) {
  .contact-card, .eshop-summary {
    padding: 22px; border-radius: 22px;
  }
  .contact-fields, .eshop-order-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .eshop-grid {
    grid-template-columns: minmax(0, 1fr); gap: 22px;
  }
  .eshop-group-title, .eshop-order-head h2 {
    font-size: 24px;
  }
  .eshop-pay-details div {
    grid-template-columns: minmax(0, 1fr); gap: 2px;
  }
  .eshop-submit .button {
    width: 100%;
  }
  .eshop-legend {
    font-size: 20px;
  }
  .eshop-option {
    align-items: flex-start; gap: 12px; padding: 14px;
  }
  .eshop-option input {
    margin-top: 2px;
  }
  /* na úzkom displeji ikona vľavo len berie miesto textu */
  .eshop-option .pay-ico {
    display: none;
  }
  .eshop-option-text strong {
    line-height: 1.35;
  }
}

/* Panel košíka vpravo (po „Kúpiť“) a plávajúce tlačidlo Košík */
.eshop-cart-lock, .eshop-cart-lock body {
  overflow: hidden;
}
.eshop-cart-panel {
  position: fixed; z-index: 120; inset: 0;
}
.eshop-cart-backdrop {
  position: absolute; inset: 0; background: rgba(30, 26, 18, 0.45); opacity: 0; transition: opacity 240ms ease;
}
.eshop-cart-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100%); background: #fffefb; box-shadow: -12px 0 40px rgba(30, 26, 18, 0.18); transform: translateX(100%); transition: transform 260ms ease; outline: none;
}
.eshop-cart-panel.is-open .eshop-cart-backdrop {
  opacity: 1;
}
.eshop-cart-panel.is-open .eshop-cart-drawer {
  transform: none;
}
.eshop-cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--color-divider);
}
.eshop-cart-title {
  display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 900; line-height: 1.3; color: var(--color-green-dark);
}
.eshop-cart-ok {
  display: inline-flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; color: #fff; background: var(--color-forest); border-radius: 50%;
}
.eshop-cart-ok .icon {
  width: 18px; height: 18px; stroke-width: 3;
}
.eshop-cart-x {
  display: inline-flex; flex: 0 0 42px; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; color: var(--color-ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.eshop-cart-x:hover, .eshop-cart-x:focus-visible {
  background: #f3ecdf;
}
.eshop-cart-items {
  flex: 1; margin: 0; padding: 8px 24px; overflow-y: auto; list-style: none;
}
.eshop-cart-items li {
  display: grid; grid-template-columns: 72px 1fr auto; align-items: start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-divider);
}
.eshop-cart-items li:last-child {
  border-bottom: 0;
}
.eshop-cart-items li.is-added .eshop-cart-name {
  color: var(--color-forest);
}
.eshop-cart-thumb img {
  display: block; width: 72px; height: 54px; object-fit: cover; border-radius: 10px;
}
.eshop-cart-info {
  display: grid; gap: 3px; min-width: 0;
}
.eshop-cart-name {
  font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--color-ink);
}
.eshop-cart-name:hover {
  text-decoration: underline; text-underline-offset: 3px;
}
.eshop-cart-meta {
  font-size: 13px; color: var(--color-muted);
}
/* počet kusov a odobratie priamo v paneli */
.eshop-cart-qtyform {
  display: flex; align-items: center; margin-top: 8px;
}
/* vpravo: suma hore, kôš dole v úrovni počtu kusov */
.eshop-cart-side {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 8px;
}
.eshop-cart-qtyform .eshop-qty-small {
  height: 36px;
}
.eshop-cart-qtyform.is-busy {
  opacity: 0.55; pointer-events: none;
}
.eshop-cart-remove {
  width: 36px; height: 36px; margin: 0 -6px 0 0;
}
.eshop-cart-empty {
  flex: 1; margin: 0; padding: 32px 24px; text-align: center; color: var(--color-muted);
}
.eshop-cart-price {
  padding-top: 1px; font-size: 15px; white-space: nowrap; color: var(--color-ink);
}
.eshop-cart-foot {
  display: grid; gap: 10px; padding: 18px 24px 24px; background: #fbf5ea; border-top: 1px solid var(--color-divider);
}
.eshop-cart-sum {
  display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; font-size: 16px; font-weight: 700;
}
.eshop-cart-sum strong {
  font-size: 22px; font-weight: 900; color: var(--color-ink);
}
.eshop-cart-go {
  width: 100%;
}
.eshop-cart-continue {
  min-height: 48px; padding: 10px 20px; font: inherit; font-size: 15px; font-weight: 800; color: var(--color-green-dark); background: transparent; border: 2px solid var(--color-divider); border-radius: 999px; cursor: pointer;
}
.eshop-cart-continue:hover, .eshop-cart-continue:focus-visible {
  border-color: var(--color-forest);
}
.eshop-cart-fab {
  position: fixed; z-index: 90; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 18px 10px 16px; font: inherit; font-size: 15px; font-weight: 800; color: var(--color-on-orange); background: var(--color-orange); border: 0; border-radius: 999px; box-shadow: 0 8px 24px rgba(30, 26, 18, 0.22); cursor: pointer;
}
.eshop-cart-fab:hover {
  background: var(--color-orange-hover);
}
.eshop-cart-fab[hidden] {
  display: none;
}
.eshop-cart-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; font-size: 13px; color: var(--color-orange); background: #fff; border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) {
  .eshop-cart-backdrop, .eshop-cart-drawer {
    transition: none;
  }
}

/* Načítavanie: tlačidlo s krúžkom (Kúpiť, Objednať, platba…) a prekrytie súhrnu nákupu pri prepočte – aby bolo jasné, že sa niečo deje */
.is-loading {
  position: relative; pointer-events: none; cursor: progress;
}
.button.is-loading, button.is-loading {
  opacity: 0.85;
}
.button.is-loading .icon, button.is-loading .icon {
  visibility: hidden;
}
.button.is-loading::after, button.is-loading::after {
  content: ""; position: absolute; top: 50%; right: 16px; width: 18px; height: 18px; margin-top: -9px;
  border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: eshop-spin 0.7s linear infinite;
}
.eshop-summary.is-busy::after {
  content: ""; position: absolute; top: 18px; right: 18px; width: 22px; height: 22px;
  border: 3px solid var(--color-orange); border-right-color: transparent; border-radius: 50%; animation: eshop-spin 0.7s linear infinite;
}
.eshop-summary.is-busy form {
  pointer-events: none;
}
@keyframes eshop-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .button.is-loading::after, button.is-loading::after, .eshop-summary.is-busy::after { animation-duration: 2s; }
}
