/* === DREAMY — nové menu: megamenu na PC + mobilní menu · v1.0 · 2026-10-25 ===
   Záhlaví: <link rel="stylesheet" href="/user/documents/upload/styles/menu.css?v=1">
   Patří k menu.js. Nové prvky se ukážou a staré menu schová jen s třídou dmn-ok na <html> (přidá ji menu.js
   po úspěšném sestavení). PC od 1200 px (jako hlavicka.css), mobil do 767 px, tablet beze změny. */

/* bez JS / mimo PC a mobil nic nového nezobrazovat */
.dmn-bar, .dmn-m, .dmn-mm, .dmn-dim { display: none; }

/* PC: dokud menu.js nepřepne menu, staré položky neukazovat (místo zůstává → žádný posun);
   když se menu.js nenačte nebo spadne, ukážou se samy po 4 s */
@keyframes dmn-wait { from, to { visibility: hidden; } }
@media (min-width: 1200px) {
  html:not(.dmn-ok) #navigation .menu-level-1 { animation: dmn-wait 0s linear 4s backwards; }
  html.dmn-ok #navigation .menu-level-1 { display: none !important; }
}
@media (max-width: 767px) {
  html.dmn-ok #navigation .menu-level-1 { display: none !important; }
}

/* ================= PC ================= */
@media (min-width: 1200px) {
  html.dmn-ok #header .dmn-bar {
    display: flex; align-items: center; gap: 32px; height: 52px; margin: 0; padding: 0;
    font-family: Rubik, system-ui, sans-serif;
  }
  html.dmn-ok #header.fixed-menu .dmn-bar { height: 46px; }
  #header .dmn-bar a.dmn-t {
    position: relative; display: flex; align-items: center; height: 100%; box-sizing: border-box; padding: 0 0 8px; margin: 0;
    font-size: 15px; font-weight: 400; line-height: 1; color: #1a1a1a; text-decoration: none; white-space: nowrap;
    transition: color .15s;
  }
  #header .dmn-bar a.dmn-t:hover, #header .dmn-bar a.dmn-t.dmn-on, #header .dmn-bar a.dmn-t.dmn-cur { color: #D90074; }
  #header .dmn-bar a.dmn-t.dmn-on::after, #header .dmn-bar a.dmn-t.dmn-cur::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #D90074; border-radius: 2px;
  }
  #header .dmn-bar a.dmn-outlet { height: 30px; padding: 0 12px; margin-bottom: 8px; border-radius: 6px; background: #FCE6F1; color: #D90074; }
  #header .dmn-bar a.dmn-outlet:hover { background: #f6cde1; color: #B00060; }
  #header .dmn-bar a.dmn-outlet::after { display: none; }
  #header .dmn-bar .dmn-sep { width: 1px; height: 22px; background: #E6E0E3; margin: 0 -8px 8px; }
  #header .dmn-bar a.dmn-adv { color: #D90074; }
  #header .dmn-bar a.dmn-adv i { font-style: normal; margin-right: 4px; }
  #header .dmn-bar a.dmn-t:focus-visible { outline: 2px solid #D90074; outline-offset: 4px; border-radius: 4px; }

  /* při otevřeném megamenu se řádek menu při scrollu neschovává (hlavicka.js přidává dz-nav-hidden) */
  #header.fixed-menu.dz-nav-hidden.dmn-open #navigation {
    height: 46px !important; opacity: 1 !important; transform: none !important; overflow: visible !important; pointer-events: auto !important;
  }
  #header.fixed-menu.dz-nav-hidden.dmn-open #navigation .navigation-in { height: 46px !important; }

  /* ---------- megamenu ---------- */
  html.dmn-ok #header .dmn-mm { display: block; }
  #header .dmn-p {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    max-height: max(340px, calc(100vh - var(--dmn-top, 190px))); overflow: auto;
    background: #fff; border-top: 1px solid #F1ECEF; box-shadow: 0 22px 40px rgba(17, 17, 17, .10);
    font-family: Rubik, system-ui, sans-serif; color: #111; text-align: left;
  }
  #header .dmn-p.dmn-open { display: block; }
  #header .dmn-p .dmn-in { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: 36px; padding: 26px 0 28px; }
  #header .dmn-p .dmn-in.dmn-noside { grid-template-columns: 260px minmax(0, 1fr); }
  #header .dmn-p a { text-decoration: none; color: #111; }
  #header .dmn-hero {
    display: flex; flex-direction: column; background: #FFF3F9; border-radius: 14px; padding: 16px 18px 18px;
    transition: box-shadow .15s;
  }
  #header .dmn-hero:hover { box-shadow: 0 0 0 2px #D90074; }
  #header .dmn-hero-img {
    display: flex; align-items: center; justify-content: center; height: 118px; margin-bottom: 12px;
    background: #fff; border-radius: 10px; overflow: hidden;
  }
  #header .dmn-hero-img img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
  #header .dmn-hero b { font-size: 19px; font-weight: 600; line-height: 1.2; }
  #header .dmn-hero .dmn-nw { white-space: nowrap; }
  #header .dmn-hero small { display: block; margin: 4px 0 12px; font-size: 13px; line-height: 1.4; color: #6B6470; }
  #header .dmn-hero .dmn-go {
    margin-top: auto; align-self: flex-start; padding: 9px 14px; border-radius: 8px;
    background: #D90074; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2;
  }
  #header .dmn-hero:hover .dmn-go { background: #B00060; }
  #header .dmn-p .dmn-h {
    margin: 0 0 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #8C8490; line-height: 1.4;
  }
  #header .dmn-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  #header .dmn-list a {
    display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 8px 6px; border-bottom: 1px solid #F5F0F2; border-radius: 6px;
    font-size: 15px; line-height: 1.25; box-sizing: border-box;
  }
  #header .dmn-list a:hover, #header .dmn-list a:focus-visible { background: #FBF7F9; color: #D90074; }
  #header .dmn-list img, #header .dmn-list .dmn-ico { flex: none; width: 40px; height: 30px; object-fit: contain; }
  #header .dmn-side { min-width: 200px; padding-left: 30px; border-left: 1px solid #F0EAED; }
  #header .dmn-side-l { margin: 0 0 18px; }
  #header .dmn-side-l a { display: block; font-size: 14px; line-height: 2; }
  #header .dmn-side-l a:hover, #header .dmn-side-l a:focus-visible { color: #D90074; text-decoration: underline; }
  #header .dmn-p a.dmn-adv-l { display: block; color: #D90074; font-size: 14.5px; font-weight: 500; }
  #header .dmn-adv-l small { display: block; margin-top: 2px; color: #6B6470; font-size: 13px; font-weight: 300; }
  #header .dmn-p a:focus-visible { outline: 2px solid #D90074; outline-offset: 2px; }

  html.dmn-ok .dmn-dim { position: fixed; inset: 0; z-index: 998; background: rgba(17, 17, 17, .25); }
  html.dmn-ok .dmn-dim:not(.dmn-on) { display: none; }
  html.dmn-ok .dmn-dim.dmn-on { display: block; }
}

/* ikony místo obrázků (Postele z masivu, dětský systém) */
.dmn-ico { display: inline-block; background: #FFF3F9 center / 22px 22px no-repeat; border-radius: 6px; }
.dmn-ico-bed { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D90074' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V7M21 18v-5a3 3 0 0 0-3-3H10v8M3 14h18M6.5 12.5a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6Z'/%3E%3C/svg%3E"); }
.dmn-ico-moon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D90074' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5Z'/%3E%3C/svg%3E"); }

/* ================= mobil ================= */
@media (max-width: 767px) {
  html.dmn-ok #navigation .dmn-m { display: block; }
  #navigation .dmn-m { padding: 0 20px 8px; font-family: Rubik, system-ui, sans-serif; color: #111; text-align: left; }
  #navigation .dmn-m [hidden] { display: none !important; }
  #navigation .dmn-m a { text-decoration: none; color: #111; }
  #navigation .dmn-m .dmn-m-l {
    display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box;
    min-height: 48px; height: auto !important; margin: 0 !important; padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid #F1ECEF !important; border-radius: 0 !important;
    background: none !important; box-shadow: none !important; font: 400 16px/1.3 Rubik, system-ui, sans-serif !important;
    text-transform: none !important; letter-spacing: normal !important; color: #111; text-align: left; cursor: pointer;
  }
  #navigation .dmn-m .dmn-m-has::after { content: "›"; font-size: 22px; font-weight: 300; line-height: 1; color: #9a929e; }
  #navigation .dmn-m .dmn-m-l.dmn-cur { color: #D90074; }
  #navigation .dmn-m a.dmn-m-l.dmn-outlet, #navigation .dmn-m a.dmn-m-l.dmn-adv { color: #D90074; }
  #navigation .dmn-m .dmn-m-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 18px 0 4px; }
  #navigation .dmn-m .dmn-m-foot a { font-size: 14.5px; line-height: 1.6; color: #6B6470; }

  #navigation .dmn-m .dmn-m-hd { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 0 4px; }
  #navigation .dmn-m .dmn-m-hd b { font-size: 16px; font-weight: 600; }
  #navigation .dmn-m .dmn-m-back {
    position: absolute; left: -6px; top: 50%; transform: translateY(-50%);
    height: auto !important; margin: 0 !important; padding: 8px 6px !important; border: 0 !important; border-radius: 6px !important; background: none !important; box-shadow: none !important;
    font: 400 15px/1 Rubik, system-ui, sans-serif !important; text-transform: none !important; color: #111; cursor: pointer;
  }
  #navigation .dmn-m a.dmn-m-all {
    display: flex; align-items: center; justify-content: space-between; margin: 6px 0 4px; padding: 14px 16px; border-radius: 10px;
    background: #D90074; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.2;
  }
  #navigation .dmn-m a.dmn-m-all span:last-child { font-size: 22px; font-weight: 300; line-height: 1; }
  #navigation .dmn-m .dmn-h {
    margin: 18px 0 2px; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #8C8490;
  }
  #navigation .dmn-m .dmn-m-list a {
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 2px; box-sizing: border-box;
    border-bottom: 1px solid #F1ECEF; font-size: 15.5px; line-height: 1.25;
  }
  #navigation .dmn-m .dmn-m-list img, #navigation .dmn-m .dmn-m-list .dmn-ico { flex: none; width: 40px; height: 30px; object-fit: contain; }
  #navigation .dmn-m .dmn-m-plain a { display: block; padding: 10px 0; border-bottom: 1px solid #F5F1F3; font-size: 15px; line-height: 1.35; }
  #navigation .dmn-m .dmn-m-plain a.dmn-adv { color: #D90074; font-weight: 500; }
  #navigation .dmn-m button:focus { outline: none; }
  #navigation .dmn-m button:focus-visible, #navigation .dmn-m a:focus-visible { outline: 2px solid #D90074; outline-offset: 2px; border-radius: 6px; }
  /* v podmenu nepotřebujeme odkaz Přihlášení pod seznamem */
  #navigation.dmn-sub-open .navigationActions { display: none !important; }
}
