/*
 * Vánoční vzhled webu (dbVanoce, šablony templates/vanoce/).
 * Jen CSS a SVG, žádné knihovny. Sníh je čistě CSS animace (transform) a při
 * prefers-reduced-motion se nezobrazuje. Barvy přicházejí z administrace jako
 * proměnné --x3n-bg1, --x3n-bg2, --x3n-accent na .x3n-vanoce-lista / .x3n-vanoce-banner.
 */

/* ---------- lišta nahoře ----------
 * Šperkařsky střídmá: tmavý podklad s jemnou září uprostřed, prostrkané verzálky,
 * zvýraznění zlatou kurzívou, tenký zlatý drátek s teplými bílými světýlky (mihotají se
 * dvě vrstvy střídavě), zlaté perokresbové větvičky v rozích. Žádné pestré barvy.
 */
.x3n-vanoce-lista {
    --x3n-bg1: #1d2433;
    --x3n-bg2: #33405a;
    --x3n-accent: #e2c27a;
    --x3n-vyska: 50px;
    position: relative;
    z-index: 1031;
    min-height: var(--x3n-vyska);
    padding: 0 180px 14px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 45% 140% at 50% 0%, color-mix(in srgb, var(--x3n-bg2) 85%, transparent), transparent 70%),
        var(--x3n-bg1);
    color: #f3efe6;
    text-align: center;
}
.x3n-vanoce-lista::after { /* zlatá vlasová linka dole, do ztracena */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--x3n-accent) 20%, var(--x3n-accent) 80%, transparent);
    opacity: .55;
}
.x3n-vanoce-text {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 10px 0 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 14px;
    line-height: 22px;
}
.x3n-vanoce-hlavni {
    font: 500 12px/22px "Barlow", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: .26em;
    text-transform: uppercase;
}
.x3n-vanoce-text b {
    color: var(--x3n-accent);
    font: italic 400 16px/22px "Noto Serif", Georgia, "Times New Roman", serif;
    letter-spacing: .02em;
}
.x3n-vanoce-oddel { /* malá zlatá hvězdička mezi texty */
    width: 9px;
    height: 9px;
    align-self: center;
    background: var(--x3n-accent);
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.x3n-svetylka {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 20px;
    pointer-events: none;
}
.x3n-svetylka i {
    position: absolute;
    inset: 0;
    background: url("../images/vanoce/svetylka-a.svg") repeat-x 0 0 / auto 20px;
    animation: x3n-mihotani 2.8s ease-in-out infinite alternate;
}
.x3n-svetylka i + i {
    background-image: url("../images/vanoce/svetylka-b.svg");
    animation-delay: -1.4s;
}
@keyframes x3n-mihotani {
    from { opacity: 1; }
    to { opacity: .35; }
}
.x3n-vetev {
    position: absolute;
    top: 0;
    z-index: 3;
    width: 170px;
    height: 48px;
    pointer-events: none;
    opacity: .95;
}
.x3n-vetev-l { left: 0; }
.x3n-vetev-r { right: 0; transform: scaleX(-1); }

/* pevné menu (fixed-top) posunout pod lištu; js/vanoce.js ho při rolování vrací nahoru */
.x3n-vanoce-lista ~ .fixed-top,
.x3n-vanoce-lista ~ * .fixed-top {
    top: 50px;
}

@media (max-width: 767.98px) {
    .x3n-vanoce-lista { padding: 0 58px 14px; }
    .x3n-vanoce-text { padding-top: 7px; gap: 0 8px; line-height: 18px; }
    .x3n-vanoce-hlavni { font-size: 10.5px; line-height: 18px; letter-spacing: .18em; }
    .x3n-vanoce-text b { font-size: 14px; line-height: 18px; }
    .x3n-vanoce-oddel { display: none; }
    .x3n-vetev { width: 96px; height: 27px; }
}

/* ---------- sníh ---------- */
.x3n-snih {
    position: fixed;
    inset: 0;
    z-index: 1020; /* pod pevným menu (1030) */
    overflow: hidden;
    pointer-events: none;
}
.x3n-snih i {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 3px rgba(110, 130, 165, .7);
    opacity: .85;
    will-change: transform;
    animation: x3n-snezi 14s linear infinite;
}
@keyframes x3n-snezi {
    0% { transform: translate3d(0, -2vh, 0); }
    50% { transform: translate3d(24px, 52vh, 0); }
    100% { transform: translate3d(-8px, 104vh, 0); }
}
/* 24 vloček – rozmístění, velikost, rychlost a zpoždění (deterministicky) */
.x3n-snih i:nth-child(1)  { left: 3%;  width: 4px; height: 4px; animation-duration: 13s; animation-delay: -2s; }
.x3n-snih i:nth-child(2)  { left: 8%;  width: 6px; height: 6px; animation-duration: 17s; animation-delay: -9s; }
.x3n-snih i:nth-child(3)  { left: 13%; width: 3px; height: 3px; animation-duration: 11s; animation-delay: -5s; }
.x3n-snih i:nth-child(4)  { left: 18%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: -12s; }
.x3n-snih i:nth-child(5)  { left: 23%; width: 4px; height: 4px; animation-duration: 19s; animation-delay: -3s; }
.x3n-snih i:nth-child(6)  { left: 29%; width: 7px; height: 7px; animation-duration: 16s; animation-delay: -14s; }
.x3n-snih i:nth-child(7)  { left: 34%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: -7s; }
.x3n-snih i:nth-child(8)  { left: 39%; width: 5px; height: 5px; animation-duration: 18s; animation-delay: -1s; }
.x3n-snih i:nth-child(9)  { left: 44%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: -10s; }
.x3n-snih i:nth-child(10) { left: 49%; width: 6px; height: 6px; animation-duration: 20s; animation-delay: -16s; }
.x3n-snih i:nth-child(11) { left: 54%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: -6s; }
.x3n-snih i:nth-child(12) { left: 59%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: -11s; }
.x3n-snih i:nth-child(13) { left: 64%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: -4s; }
.x3n-snih i:nth-child(14) { left: 69%; width: 7px; height: 7px; animation-duration: 19s; animation-delay: -13s; }
.x3n-snih i:nth-child(15) { left: 74%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: -8s; }
.x3n-snih i:nth-child(16) { left: 79%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: -15s; }
.x3n-snih i:nth-child(17) { left: 84%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: -2s; }
.x3n-snih i:nth-child(18) { left: 89%; width: 6px; height: 6px; animation-duration: 18s; animation-delay: -12s; }
.x3n-snih i:nth-child(19) { left: 94%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: -9s; }
.x3n-snih i:nth-child(20) { left: 98%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: -5s; }
.x3n-snih i:nth-child(21) { left: 11%; width: 4px; height: 4px; animation-duration: 21s; animation-delay: -17s; }
.x3n-snih i:nth-child(22) { left: 36%; width: 3px; height: 3px; animation-duration: 22s; animation-delay: -19s; }
.x3n-snih i:nth-child(23) { left: 61%; width: 4px; height: 4px; animation-duration: 21s; animation-delay: -6s; }
.x3n-snih i:nth-child(24) { left: 87%; width: 3px; height: 3px; animation-duration: 23s; animation-delay: -20s; }

@media (max-width: 767.98px) {
    .x3n-snih i:nth-child(even) { display: none; } /* v mobilu polovina vloček */
}

/* ---------- vánoční banner na úvodní stránce ---------- */
.x3n-vanoce-banner {
    --x3n-bg1: #1d2433;
    --x3n-accent: #e2c27a;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
}
.x3n-vanoce-banner-nadpis {
    margin: 0 0 .3em;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    font-family: inherit;
    letter-spacing: 0;
    text-transform: none;
}
.x3n-vanoce-banner-text {
    margin: 0 0 1.1em;
    font: 16px/1.45 Arial, Helvetica, sans-serif;
    opacity: .92;
    max-width: 420px;
}
.x3n-vanoce-btn {
    display: inline-block;
    padding: .85em 1.6em;
    border-radius: 4px;
    background: var(--x3n-accent);
    color: var(--x3n-bg1) !important;
    font: 700 14px/1 Arial, Helvetica, sans-serif;
    letter-spacing: .04em;
    text-decoration: none !important;
    transition: filter .2s;
}
.x3n-vanoce-btn:hover,
.x3n-vanoce-btn:focus { filter: brightness(1.08); }
.x3n-vanoce-vlocka { display: block; margin-bottom: .6em; }

/* desktop: přes první snímek slideru vlevo */
.x3n-vanoce-banner--prekryv {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 62%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 3vw;
    box-sizing: border-box;
    background: linear-gradient(90deg, var(--x3n-bg1) 0%, var(--x3n-bg1) 66%, rgba(29, 36, 51, .9) 75%, rgba(29, 36, 51, .6) 85%, rgba(29, 36, 51, .25) 93%, rgba(29, 36, 51, 0) 100%);
    background: linear-gradient(90deg, var(--x3n-bg1) 0%, var(--x3n-bg1) 66%, color-mix(in srgb, var(--x3n-bg1) 90%, transparent) 75%, color-mix(in srgb, var(--x3n-bg1) 60%, transparent) 85%, color-mix(in srgb, var(--x3n-bg1) 25%, transparent) 93%, transparent 100%);
    pointer-events: none; /* šipky slideru zůstanou funkční */
}
.x3n-vanoce-banner--prekryv .x3n-vanoce-btn { pointer-events: auto; }
.x3n-vanoce-banner--prekryv .x3n-vanoce-banner-nadpis { font-size: clamp(22px, 2.9vw, 46px); }
.x3n-vanoce-banner--prekryv .x3n-vanoce-banner-text { font-size: clamp(13px, 1.15vw, 17px); }
.x3n-vanoce-banner--prekryv .x3n-vanoce-vlocka { width: clamp(30px, 3.6vw, 64px); height: auto; }

/* mobil: samostatný blok pod sliderem */
.x3n-vanoce-banner--blok {
    display: none;
    padding: 16px 18px 18px;
    background: linear-gradient(135deg, var(--x3n-bg1), var(--x3n-bg2, #33405a));
    text-align: center;
}
.x3n-vanoce-banner--blok .x3n-vanoce-banner-nadpis { font-size: 22px; }
.x3n-vanoce-banner--blok .x3n-vanoce-banner-nadpis br { display: none; } /* v mobilu na jeden řádek */
.x3n-vanoce-banner--blok .x3n-vanoce-banner-text { margin: 0 auto .9em; font-size: 14px; }
.x3n-vanoce-banner--blok .x3n-vanoce-btn { font-size: 13px; padding: .75em 1.4em; }
.x3n-vanoce-banner--blok .x3n-vanoce-vlocka { display: none; }

@media (max-width: 767.98px) {
    .x3n-vanoce-banner--prekryv { display: none; }
    .x3n-vanoce-banner--blok { display: block; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .x3n-vanoce-banner--prekryv .x3n-vanoce-vlocka { display: none; }
    .x3n-vanoce-banner--prekryv .x3n-vanoce-banner-text { margin-bottom: .7em; }
    .x3n-vanoce-banner--prekryv .x3n-vanoce-btn { font-size: 12px; padding: .7em 1.2em; }
}

/* ---------- střed stránky (světlé pozadí) ----------
 * Decentně a ve stylu lišty: černé dělicí linky nahrazuje zlatá linka do ztracena s ornamentem
 * (větvičky + hvězdička), pod nadpisy malý zlatý ornament, u „Novinek“ dvě velké jemné zlaté
 * vločky po stranách nadpisu, karta prstenu má při najetí zlatou záři. Fotky produktů nechává být.
 * Třída x3n-vanoce-on je na <body> jen v době vánočního vzhledu.
 */
.x3n-vanoce-on .main_title {
    position: relative;
    border-bottom: 0;
}
.x3n-vanoce-on .main_title::before { /* zlatá linka do ztracena místo černé */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2c27a 18%, #e2c27a 82%, transparent);
}
.x3n-vanoce-on .main_title::after { /* ornament uprostřed linky, bílý podklad linku přeruší */
    content: "";
    position: absolute;
    left: 50%;
    bottom: -11px;
    width: 210px;
    height: 22px;
    margin-left: -105px;
    background: url("../images/vanoce/ornament.svg") center / 180px 22px no-repeat, #fff;
}
.x3n-vanoce-on #hp_novinky > h2::after,
.x3n-vanoce-on #content_list h1.noto::after,
.x3n-vanoce-on h1.noto.text-center::after {
    content: "";
    display: block;
    width: 150px;
    height: 18px;
    margin: 14px auto 0;
    background: url("../images/vanoce/ornament.svg") center / contain no-repeat;
}
.x3n-vanoce-on #hp_novinky {
    position: relative;
}
.x3n-vanoce-on #hp_novinky::before,
.x3n-vanoce-on #hp_novinky::after {
    content: "";
    position: absolute;
    top: -34px;
    width: 104px;
    height: 104px;
    background: url("../images/vanoce/vlocka.svg") center / contain no-repeat;
    opacity: .28;
    pointer-events: none;
}
.x3n-vanoce-on #hp_novinky::before { left: 2%; transform: rotate(-12deg); }
.x3n-vanoce-on #hp_novinky::after { right: 2%; top: -6px; width: 72px; height: 72px; transform: rotate(18deg); opacity: .22; }
.x3n-vanoce-on .list_item:hover {
    box-shadow: 0 0 0 1px rgba(226, 194, 122, .6), 0 14px 30px -16px rgba(150, 110, 30, .45) !important;
}
.x3n-vanoce-on #hp_novinky .btn-outline-secondary {
    border-color: #e2c27a;
}
@media (max-width: 991.98px) {
    .x3n-vanoce-on #hp_novinky::before,
    .x3n-vanoce-on #hp_novinky::after { display: none; }
}

/* ---------- omezení pohybu ---------- */
@media (prefers-reduced-motion: reduce) {
    .x3n-snih { display: none; }
    .x3n-svetylka i { animation: none; }
}
@media print {
    .x3n-vanoce-lista, .x3n-snih, .x3n-vanoce-banner { display: none !important; }
}
