/* elu.sk · Vianoce 2026 · „To najlepšie príde po rozbalení." Všetko pod .elx, mimo titulky sa nič nemení. */
.elx-on .elx-replaced { display: none !important; } /* pôvodný karusel nahrádza vianočná scéna */

.elx {
  --wine: #6e1a2b; --wine-d: #54111f; --ink: #1d1416; --cream: #f6efe4; --line: #e3d6c3; --teal: #2f7d89; --ok: #1f7a4d;
  --pad: max(16px, calc((100% - 1138px) / 2));
  color: var(--ink); margin: 0 0 36px; text-align: left; -webkit-font-smoothing: antialiased;
}
.elx *, .elx *::before, .elx *::after { box-sizing: border-box; }
.elx a { text-decoration: none; }
.elx img { display: block; max-width: none; }
.elx [hidden] { display: none !important; }

/* ---------- hero ---------- */
.elx-hero { position: relative; display: grid; overflow: hidden; background: #171d1c; isolation: isolate; }
.elx-art { grid-area: 1 / 1; position: relative; height: clamp(420px, 42.9vw, 640px); }
.elx-art img, .elx-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.elx-vid { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.elx--vid .elx-vid { opacity: 1; transition: none; }
.elx--wrapped .elx-art img { visibility: hidden; } /* kým je darček zabalený, hotová fotka pod videom nepreblikne */
.elx-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 16, 16, .62), rgba(12, 16, 16, .18) 42%, rgba(12, 16, 16, 0) 58%); }

.elx-copy { grid-area: 1 / 1; z-index: 2; align-self: center; margin-left: var(--pad); width: min(540px, 44%); color: #fff; }
.elx-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #f1dcc8; }
.elx-eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: #b03a52; }
.elx-h { margin: 0; font: 400 clamp(44px, 5vw, 76px)/1.02 "Instrument Serif", Georgia, "Times New Roman", serif; font-family: "Instrument Serif", Georgia, "Times New Roman", serif !important; /* šablóna vnucuje nadpisom Roboto */ letter-spacing: -.012em; color: #fff; text-wrap: balance; }
.elx-h em { font-style: italic; color: #f6e3d0; }
.elx-lead { margin: 20px 0 0; max-width: 30em; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.elx-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.elx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 999px; background: var(--cream); color: var(--wine-d) !important; font-size: 17px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); transition: transform .2s ease, background .2s ease; }
.elx-btn::after { content: "→"; margin-left: 10px; transition: transform .2s ease; }
.elx-btn:hover { background: #fff; transform: translateY(-1px); }
.elx-btn:hover::after { transform: translateX(3px); }
.elx-link { color: #fff !important; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .55); padding: 6px 0 3px; }
.elx-link:hover { border-color: #fff; }
.elx a:focus-visible, .elx button:focus-visible { outline: 3px solid #ffd9a8; outline-offset: 3px; }

/* visačka výrobku na fotke: živá cena a dostupnosť */
.elx-tag { grid-area: 1 / 1; z-index: 3; align-self: end; justify-self: end; margin: 0 var(--pad) 14px 0; display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: baseline; padding: 12px 18px 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--ink) !important; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); transition: opacity .6s ease .2s, transform .6s ease .2s; }
.elx-tag__k { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.elx-tag__n { font-size: 16px; font-weight: 700; }
.elx-tag .elx-price { font-size: 18px; }
.elx-tag .elx-avail { grid-column: 1 / -1; }
.elx-tag:hover { transform: translateY(-2px); }
.elx--wrapped .elx-tag { opacity: 0; transform: translateY(10px); pointer-events: none; transition-delay: 0s; }

.elx-hint { display: none; }
.elx-price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.elx-avail { display: block; font-size: 13px; font-weight: 600; color: var(--ok); }
.elx-avail::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.elx-avail--later { color: #7a5a12; }

.elx-untie { grid-area: 1 / 1; z-index: 3; align-self: end; justify-self: center; margin: 0 0 30px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: rgba(20, 24, 24, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 600 14px/1 inherit; cursor: pointer; transition: background .2s ease; }
.elx-untie svg { width: 20px; height: 20px; color: #e79aa9; }
.elx-untie:hover { background: rgba(110, 26, 43, .85); }

/* ---------- vstupy podľa záujmu ---------- */
.elx-chips { display: flex; gap: 10px; padding: 18px var(--pad) 0; }
.elx-chips a { flex: 0 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink) !important; font-size: 15px; font-weight: 700; white-space: nowrap; transition: border-color .2s ease, background .2s ease; }
.elx-chips a::after { content: "→"; margin-left: 8px; color: var(--wine); }
.elx-chips a:hover { border-color: var(--wine); background: #fdf8f1; }

/* ---------- výber darčekov ---------- */
.elx-gifts { padding: 44px var(--pad) 0; scroll-margin-top: 16px; }
.elx-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }
.elx-h2 { margin: 0 0 26px; font: 400 clamp(32px, 3.2vw, 46px)/1.08 "Instrument Serif", Georgia, serif; font-family: "Instrument Serif", Georgia, serif !important; color: var(--ink); text-transform: none; }
.elx-group { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; scroll-margin-top: 16px; }
.elx-tile { position: relative; display: block; min-height: 300px; border-radius: 18px; overflow: hidden; color: #fff !important; background: #171d1c; }
.elx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.elx-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 16, 16, 0) 38%, rgba(12, 16, 16, .82)); }
.elx-tile:hover img { transform: scale(1.04); }
.elx-tile__c { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 4px; }
.elx-tile__c strong { font: 400 30px/1.05 "Instrument Serif", Georgia, serif; }
.elx-tile__c span { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.elx-tile__c i { margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.elx-tile__c i::after { content: " →"; }
.elx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.elx-cards li { margin: 0; padding: 0; }
.elx-cards li::before { content: none; }
.elx-card { display: flex; flex-direction: column; height: 100%; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink) !important; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.elx-card:hover { border-color: var(--wine); box-shadow: 0 12px 30px rgba(60, 20, 28, .12); transform: translateY(-2px); }
.elx-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 10px; }
.elx-card__n { flex: 1; margin-bottom: 10px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.elx-card .elx-price { font-size: 20px; margin-bottom: 4px; }

/* ---------- mobil: vlastná kompozícia, tlačidlo pod fotkou v dosahu palca ---------- */
@media (max-width: 767px) {
  .elx { margin-bottom: 28px; width: 100vw; max-width: none; margin-left: calc(50% - 50vw); } /* von z odsadeného stĺpca šablóny */
  .elx-hero { background: var(--cream); }
  .elx-art { height: min(60svh, 420px); }
  .elx-art img, .elx-vid { object-position: 50% 67%; } /* hore ostane stena pre titulok, dole celý výrobok */
  .elx-art::after { background: linear-gradient(180deg, rgba(8, 20, 24, .5), rgba(8, 20, 24, 0) 46%); }
  .elx-copy { display: contents; }
  .elx-head { grid-area: 1 / 1; z-index: 2; align-self: start; padding: 20px 20px 0; color: #fff; }
  .elx-eyebrow { margin-bottom: 10px; font-size: 11px; letter-spacing: .16em; }
  .elx-eyebrow::before { width: 24px; }
  .elx-h { font-size: clamp(33px, 9.4vw, 38px); line-height: 1; }
  .elx-lead { display: none; }
  .elx-actions { grid-area: 3 / 1; margin: 0; padding: 10px 16px 0; gap: 0; }
  .elx-btn { flex: 1; min-height: 52px; background: var(--wine); color: #fff !important; box-shadow: none; }
  .elx-btn:hover { background: var(--wine-d); }
  .elx-link { display: none; }
  /* visačka pod fotkou, aby neprekrývala výrobok ani jeho logo; jeden ťuk = karta produktu */
  .elx-tag { grid-area: 2 / 1; justify-self: stretch; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 44px; margin: 0; padding: 12px 16px 0; border-radius: 0; background: none; box-shadow: none; }
  .elx-tag::after { content: "→"; margin-left: auto; color: var(--wine); font-weight: 700; }
  .elx-tag:hover { transform: none; }
  .elx-hint { grid-area: 2 / 1; display: block; margin: 0; padding: 13px 16px 0; font-size: 14px; font-weight: 600; color: #6b5a50; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
  .elx--wrapped .elx-hint { opacity: 1; }
  .elx-tag__k { display: none; }
  .elx-tag__n { font-size: 15px; }
  .elx-tag .elx-price { font-size: 15px; }
  .elx-tag .elx-avail { grid-column: auto; font-size: 12px; }
  .elx-untie { justify-self: end; margin: 0 12px 12px 0; min-height: 44px; padding: 0 14px 0 10px; font-size: 13px; }
  .elx-chips { gap: 8px; padding: 10px 16px 0; background: var(--cream); padding-bottom: 14px; }
  .elx-chips a { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 14px; }
  .elx-chips a::after { margin-left: 5px; }
  .elx-gifts { padding-top: 30px; scroll-margin-top: 118px; } /* lepivá mobilná hlavička s hľadaním */
  .elx-group { scroll-margin-top: 122px; }
  .elx-h2 { margin-bottom: 18px; }
  .elx-group { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 26px; }
  .elx-tile { min-height: 0; aspect-ratio: 16 / 9; }
  .elx-tile__c strong { font-size: 26px; }
  .elx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .elx-card { padding: 10px 12px 14px; border-radius: 14px; }
  .elx-card__n { font-size: 14px; }
  .elx-card .elx-price { font-size: 18px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .elx-group { grid-template-columns: minmax(0, 1fr); }
  .elx-tile { min-height: 0; aspect-ratio: 21 / 8; }
}
@media (prefers-reduced-motion: reduce) {
  .elx *, .elx *::after { transition: none !important; }
}
