/*! ARTNEST · Megamenu „Všechny kategorie“ · v1.0.0 (11/2026) – párový styl k artnest-menu.js (nahrazuje xm-megamenu.css)
 *  Jen desktop ≥1024 px (menší šířky: hamburger a panel ze skinu). Vše pod .an-mm / .an-mm-dim.
 */
.an-mm, .an-mm-dim {
  --mm-bg: #FBF8F3; --mm-paper: #FFFFFF; --mm-cream: #F4EDE2;
  --mm-ink: #1E1B19; --mm-ink2: #5A534B; --mm-ink3: #756D62;
  --mm-line: #ECE4D8; --mm-line2: #DCD0BE;
  --mm-coral: #ED4D6E; --mm-coral-d: #D43658; --mm-coral-h: #BC2A4B; --mm-coral-t: #C42F51; --mm-coral-soft: #FCE4E9;
  --mm-ok: #1F7A50;
  --mm-disp: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --mm-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mm-ease: cubic-bezier(.2, .7, .2, 1);
}
body.an-mm-on .xm-catbar { position: relative !important; }
body.an-mm-on .xm-megamenu { display: none !important; }

/* ---------- rámec ---------- */
.an-mm {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
  padding: 10px var(--xm-gutter, 24px) 0; pointer-events: none;
  font: 400 15px/1.45 var(--mm-body); color: var(--mm-ink); text-align: left; letter-spacing: 0; -webkit-font-smoothing: antialiased;
}
.an-mm[hidden] { display: none; }
.an-mm *, .an-mm *::before, .an-mm *::after { box-sizing: border-box; }
.an-mm::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 14px; pointer-events: auto; }   /* most pro myš mezi lištou a panelem */
.an-mm :is(p, a, li, span, div, b, small, h3, button) { font-family: inherit; }
.an-mm a { color: inherit; text-decoration: none; }
.an-mm ul { margin: 0; padding: 0; list-style: none; }
.an-mm li { margin: 0; padding: 0; list-style: none; }
.an-mm li::before { content: none !important; }
.an-mm :focus-visible { outline: 2.5px solid var(--mm-ink); outline-offset: 2px; border-radius: 12px; }
.an-mm-i { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.an-mm__card {
  display: grid; grid-template-columns: 272px minmax(0, 1fr) 296px; grid-template-rows: minmax(0, 1fr) auto;
  max-width: calc(var(--xm-container, 1440px) - 2 * var(--xm-gutter, 24px)); max-height: var(--an-mm-max, 640px); margin: 0 auto;
  background: var(--mm-paper); border-radius: 26px; overflow: hidden; pointer-events: auto;
  box-shadow: 0 1px 0 rgba(30, 27, 25, .04), 0 40px 80px -30px rgba(30, 27, 25, .45), 0 0 0 1px rgba(30, 27, 25, .05);
  opacity: 0; transform: translateY(-10px) scale(.992); transform-origin: 50% 0;
  transition: opacity .22s var(--mm-ease), transform .28s var(--mm-ease);
}
.an-mm.is-open .an-mm__card { opacity: 1; transform: none; }

/* ---------- levý sloupec ---------- */
.an-mm__side { grid-row: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--mm-bg); overflow-y: auto; scrollbar-width: thin; }
.an-mm__sep { height: 1px; margin: 8px 10px; background: var(--mm-line); }
.an-mm__cat {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 16px;
  color: var(--mm-ink2); transition: background-color .18s, color .18s, box-shadow .18s;
}
.an-mm__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--mm-paper); color: var(--mm-ink2); box-shadow: inset 0 0 0 1px var(--mm-line); transition: background-color .18s, color .18s, box-shadow .18s, transform .25s var(--mm-ease); }
.an-mm__lab { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.an-mm__lab b { font: 600 14.5px/1.25 var(--mm-body); color: var(--mm-ink); }
.an-mm__lab small { margin-top: 2px; font: 500 12px/1.2 var(--mm-body); color: var(--mm-ink3); }
.an-mm__cat > .an-mm-i:last-child { width: 16px; height: 16px; color: var(--mm-ink3); opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s var(--mm-ease); }
.an-mm__cat:hover { background: rgba(255, 255, 255, .7); }
.an-mm__cat.is-on { background: var(--mm-paper); box-shadow: 0 10px 24px -16px rgba(30, 27, 25, .45), inset 0 0 0 1px var(--mm-line); }
.an-mm__cat.is-on .an-mm__ico { background: var(--mm-ink); color: #fff; box-shadow: none; transform: scale(1.04); }
.an-mm__cat.is-on > .an-mm-i:last-child, .an-mm__cat:hover > .an-mm-i:last-child { opacity: 1; transform: none; }
.an-mm__cat.is-hot .an-mm__ico { background: var(--mm-coral-soft); color: var(--mm-coral-d); box-shadow: none; }
.an-mm__cat.is-hot .an-mm__lab b { color: var(--mm-coral-t); }
.an-mm__cat.is-hot.is-on .an-mm__ico { background: var(--mm-coral-d); color: #fff; }
.an-mm__cat.is-slate .an-mm__ico { background: #24211E; color: #FF8DA5; box-shadow: none; }

/* ---------- obsah ---------- */
.an-mm__main { grid-row: 1; min-width: 0; padding: 26px 30px 24px; overflow-y: auto; scrollbar-width: thin; }
.an-mm__main.is-in > * { animation: an-mm-in .32s var(--mm-ease) both; }
.an-mm__main.is-in > :nth-child(2) { animation-delay: .04s; }
.an-mm__main.is-in > :nth-child(3) { animation-delay: .08s; }
@keyframes an-mm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.an-mm__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.an-mm__kick { margin: 0 0 6px; font: 700 11px/1 var(--mm-body); letter-spacing: .16em; text-transform: uppercase; color: var(--mm-coral-t); }
.an-mm .an-mm__t { margin: 0; font: 700 28px/1.05 var(--mm-disp); letter-spacing: -.025em; color: var(--mm-ink); text-transform: none; }
.an-mm__all { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--mm-line2); font: 600 14px/1 var(--mm-body); color: var(--mm-ink); transition: box-shadow .18s, background-color .18s; }
.an-mm__all .an-mm-i { width: 16px; height: 16px; transition: transform .2s var(--mm-ease); }
.an-mm a.an-mm__all:hover { background: var(--mm-ink); color: #fff; box-shadow: none; }
.an-mm__all:hover .an-mm-i { transform: translateX(3px); }

.an-mm__subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 6px 10px; margin-bottom: 22px; }
.an-mm__subs[hidden] { display: none; }
.an-mm__sub { min-width: 0; }
.an-mm__sa { display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; border-radius: 14px; transition: background-color .18s; }
.an-mm__sa:hover { background: var(--mm-bg); }
.an-mm__sim { display: grid; place-items: center; flex: none; width: 62px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--mm-cream); color: var(--mm-ink3); }
.an-mm__sim { isolation: isolate; }
.an-mm__sim img { width: 100%; height: 100%; padding: 3px; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s var(--mm-ease); }
.an-mm__sa:hover .an-mm__sim img { transform: scale(1.06); }
.an-mm__sn { flex: 1; min-width: 0; font: 600 14px/1.3 var(--mm-body); color: var(--mm-ink); }
.an-mm__sa > .an-mm-i { width: 15px; height: 15px; color: var(--mm-ink3); opacity: 0; transition: opacity .18s, transform .18s var(--mm-ease); transform: translateX(-3px); }
.an-mm__sa:hover > .an-mm-i { opacity: 1; transform: none; }
.an-mm__sa:hover .an-mm__sn { color: var(--mm-coral-t); }
.an-mm__l3 { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0 4px 81px; }
.an-mm__l3 a { padding: 4px 9px; border-radius: 999px; background: var(--mm-bg); font: 500 12px/1.2 var(--mm-body); color: var(--mm-ink2); transition: background-color .18s, color .18s; }
.an-mm__l3 a:hover { background: var(--mm-coral-soft); color: var(--mm-coral-t); }

.an-mm__prods[hidden] { display: none; }
.an-mm__lbl { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 11px/1 var(--mm-body); letter-spacing: .16em; text-transform: uppercase; color: var(--mm-ink3); }
.an-mm__lbl::after { content: ""; flex: 1; height: 1px; background: var(--mm-line); }
.an-mm__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.an-mm__p { display: flex; flex-direction: column; min-width: 0; }
.an-mm__pi { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: radial-gradient(110% 90% at 50% 18%, #FFFFFF 0%, #F6F0E7 70%, #EFE6D8 100%); isolation: isolate; }
.an-mm__pi img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--mm-ease); }
.an-mm__p:hover .an-mm__pi img { transform: scale(1.05); }
.an-mm__badge { position: absolute; top: 8px; left: 8px; padding: 5px 8px; border-radius: 999px; background: var(--mm-ink); font: 700 11px/1 var(--mm-body); color: #fff; }
.an-mm__badge.is-sale { background: var(--mm-coral-d); }
.an-mm__pn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; margin: 10px 2px 0; font: 600 13.5px/1.3 var(--mm-body); color: var(--mm-ink); }
.an-mm a.an-mm__pn:hover { color: var(--mm-coral-t); }
.an-mm__pf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 2px 0; }
.an-mm__pp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.an-mm__pp b { font: 700 16px/1.1 var(--mm-disp); letter-spacing: -.02em; color: var(--mm-ink); }
.an-mm__pp s { font: 500 12px/1.1 var(--mm-body); color: var(--mm-ink3); }
.an-mm__add { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--mm-coral-d); color: #fff; cursor: pointer; transition: background-color .18s, transform .2s var(--mm-ease); }
.an-mm a.an-mm__add, .an-mm button.an-mm__add { color: #fff; }
.an-mm__add:hover { background: var(--mm-coral-h); transform: scale(1.08); }
.an-mm__add .an-mm-i { width: 17px; height: 17px; }
.an-mm__add .an-mm-i:nth-child(2) { display: none; }
.an-mm__add.is-done { background: var(--mm-ok); }
.an-mm__add.is-done .an-mm-i:first-child { display: none; }
.an-mm__add.is-done .an-mm-i:nth-child(2) { display: block; }
.an-mm a.an-mm__add.is-go { background: var(--mm-paper); color: var(--mm-ink); box-shadow: inset 0 0 0 1.5px var(--mm-line2); }
.an-mm a.an-mm__add.is-go:hover { background: var(--mm-ink); color: #fff; box-shadow: none; }
/* načítání */
.an-mm__p.is-sk .an-mm__pi, .an-mm__skl { background: linear-gradient(90deg, #F2ECE3 0%, #FAF6F0 50%, #F2ECE3 100%); background-size: 200% 100%; animation: an-mm-sk 1.2s linear infinite; }
.an-mm__skl { display: block; height: 12px; margin: 12px 2px 0; border-radius: 6px; }
.an-mm__skl.is-s { width: 45%; margin-top: 8px; }
@keyframes an-mm-sk { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* ---------- fotokarta ---------- */
.an-mm__promo { grid-row: 1; padding: 16px 16px 16px 0; min-height: 0; }
.an-mm__pc { position: relative; display: flex; align-items: flex-end; height: 100%; min-height: 340px; border-radius: 20px; overflow: hidden; background: #1E1B19; color: #fff; isolation: isolate; }
.an-mm a.an-mm__pc { color: #fff; }
.an-mm__ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--mm-ease); }
.an-mm__pc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 17, 15, 0) 30%, rgba(20, 17, 15, .55) 62%, rgba(20, 17, 15, .92) 100%); }
.an-mm__pc:hover .an-mm__ph { transform: scale(1.05); }
.an-mm__promo.is-slate .an-mm__pc { background: radial-gradient(90% 70% at 50% 30%, #3B3631 0%, #191715 100%); }
.an-mm__promo.is-slate .an-mm__pc::before { background: linear-gradient(180deg, rgba(20, 17, 15, 0) 45%, rgba(20, 17, 15, .85) 100%); }
.an-mm__cut { position: absolute; z-index: -1; top: 8%; left: 50%; width: 78%; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); transition: transform .6s var(--mm-ease); }
.an-mm__pc:hover .an-mm__cut { transform: translateX(-50%) rotate(-1deg) scale(1.03); }
.an-mm__promo.is-hot .an-mm__pc { background: radial-gradient(120% 90% at 85% 10%, #FF7A93 0%, #E0365F 38%, #8E1838 100%); }
.an-mm__promo.is-hot .an-mm__pc::before { background: linear-gradient(180deg, rgba(60, 8, 24, 0) 40%, rgba(60, 8, 24, .55) 100%); }
.an-mm__bolt { position: absolute; z-index: -1; top: 6%; right: -6%; color: rgba(255, 255, 255, .22); transform: rotate(10deg); }
.an-mm__bolt .an-mm-i { width: 230px; height: 230px; fill: currentColor; stroke: none; }
.an-mm__pt { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.an-mm__pt small { font: 700 11px/1 var(--mm-body); letter-spacing: .16em; text-transform: uppercase; color: #FFB3C2; }
.an-mm__promo.is-hot .an-mm__pt small { color: #FFE1E8; }
.an-mm__pt b { font: 700 22px/1.12 var(--mm-disp); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.an-mm__cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; font: 600 14px/1 var(--mm-body); color: var(--mm-ink); transition: background-color .18s, color .18s; }
.an-mm__cta .an-mm-i { width: 16px; height: 16px; transition: transform .2s var(--mm-ease); }
.an-mm__pc:hover .an-mm__cta { background: var(--mm-coral-d); color: #fff; }
.an-mm__pc:hover .an-mm__cta .an-mm-i { transform: translateX(3px); }

/* ---------- pruh s fakty ---------- */
.an-mm__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; padding: 13px 28px; border-top: 1px solid var(--mm-line); background: var(--mm-paper); font: 500 13px/1.3 var(--mm-body); color: var(--mm-ink2); }
.an-mm__foot span, .an-mm__foot a { display: inline-flex; align-items: center; gap: 8px; }
.an-mm__foot .an-mm-i { width: 17px; height: 17px; color: var(--mm-coral-d); }
.an-mm__foot a { margin-left: auto; font-weight: 600; color: var(--mm-ink); }
.an-mm .an-mm__foot a:hover { color: var(--mm-coral-t); }

/* ---------- ztmavení stránky ---------- */
.an-mm-dim { position: fixed; z-index: 999; left: 0; right: 0; bottom: 0; top: 0; background: rgba(30, 27, 25, .34); opacity: 0; pointer-events: none; transition: opacity .25s var(--mm-ease); }
.an-mm-dim.is-open { opacity: 1; pointer-events: auto; }

/* ---------- šířky ---------- */
@media (max-width: 1279px) {
  .an-mm__card { grid-template-columns: 248px minmax(0, 1fr); }
  .an-mm__promo { display: none; }
  .an-mm__grid { gap: 10px; }
  .an-mm__pn { font-size: 13px; }
  .an-mm__main { padding: 22px 24px 20px; }
  .an-mm__subs { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
}
@media (max-width: 1023px) { .an-mm, .an-mm-dim { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .an-mm__card, .an-mm-dim, .an-mm *, .an-mm *::before { transition: none !important; animation: none !important; }
}
@media print { .an-mm, .an-mm-dim { display: none !important; } }
