/* ═══════════════════════════════════════════════════════════
   Alpenzaun Mega-Menu Header — [alpenzaun_header]
   ═══════════════════════════════════════════════════════════ */
.az-mn {
  --az-red: #f04e23;
  --az-red2: #772008;
  --az-black: #141414;
  --az-khaki: #3d403a;
  --az-white: #fafafa;
  --az-steel: #9e9e9e;
  --az-line: rgba(20,20,20,.08);
  --az-bg: #fafafa;

  width: 100%;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--az-black);
  position: relative;
  z-index: 50;
  margin: 0;
  padding: 0;
}
.az-mn * { box-sizing: border-box; font-style: normal !important; }

.az-mn-bar {
  width: 100%;
  background: var(--az-bg);
  border-bottom: 1px solid var(--az-line);
  /* Obsah zarovnaný na 1650px (ako header_main) — pozadie lišty zostáva full-width */
  padding: 0 max(24px, calc((100% - 1650px) / 2));
  display: flex;
  align-items: stretch;
  gap: 16px;
}
@media (min-width: 1700px) {
  .az-mn-bar { padding: 0 calc((100% - 1650px) / 2); }
}
.az-mn-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: wrap;
  flex: 1;
}
.az-mn-item { position: relative; }
.az-mn-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 18px 18px;
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  color: var(--az-black); border-radius: 0;
  transition: color .25s ease;
  position: relative;
  text-decoration: none;
}
.az-mn-item:first-child .az-mn-trigger { padding-left: 0; }
.az-mn-item:last-child .az-mn-trigger { padding-right: 0; }
.az-mn-trigger::after {
  content: '';
  position: absolute; bottom: 8px; left: 18px; right: 18px;
  height: 2px; background: var(--az-red);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s ease; border-radius: 1px;
}
.az-mn-item:first-child .az-mn-trigger::after { left: 0; }
.az-mn-item:last-child .az-mn-trigger::after { right: 0; }
.az-mn-trigger:hover, .az-mn-item.is-open .az-mn-trigger { color: var(--az-red); }
.az-mn-trigger:hover::after, .az-mn-item.is-open .az-mn-trigger::after { transform: scaleX(1); }
.az-mn-chev { width: 14px; height: 14px; transition: transform .35s ease; opacity: .65; }
.az-mn-item.is-open .az-mn-chev { transform: rotate(180deg); opacity: 1; }

/* MEGA */
.az-mn-stage { position: absolute; top: 100%; left: 0; width: 100%; z-index: 10; pointer-events: none; }
.az-mn-mega {
  position: absolute; top: 0; left: 0; width: 100%;
  background: #fff; border-radius: 0 0 24px 24px;
  border: 1px solid var(--az-line); border-top: 0;
  box-shadow: 0 32px 60px -20px rgba(15,23,42,.18);
  opacity: 0; transform: translateY(-12px) scale(.995);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.3,1);
  pointer-events: none; overflow: hidden;
}
.az-mn-mega.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.az-mn-mega-inner {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 36px; padding: 36px 40px; align-items: stretch;
}
.az-mn-col-head {
  font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--az-black);
  margin: 0 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--az-line);
  position: relative;
}
.az-mn-col-head::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 28px; height: 2px; background: var(--az-red);
}

/* Cats */
.az-mn-col--cats { display: flex; flex-direction: column; }
.az-mn-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.az-mn-cats a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; text-decoration: none; color: var(--az-black);
  border-radius: 10px; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em;
  transition: background .25s ease, color .25s ease;
}
.az-mn-cats a:hover { background: #fff5f0; color: var(--az-red); }
.az-mn-cat-num { font-size: 11px; font-weight: 600; color: var(--az-red); flex: 0 0 22px; }
.az-mn-cat-name { flex: 1; }
.az-mn-cat-arr {
  width: 14px; height: 14px; color: var(--az-steel);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .25s, transform .25s;
}
.az-mn-cats a:hover .az-mn-cat-arr { opacity: 1; transform: translateX(0); color: var(--az-red); }

/* Subkategórie (nested pod kategóriou) */
.az-mn-subcats {
    list-style: none;
    margin: 2px 0 6px 22px;
    padding: 0 0 0 14px;
    border-left: 1px solid var(--az-line);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.az-mn-subcats a {
    display: block;
    padding: 7px 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--az-khaki);
    text-decoration: none;
    border-radius: 8px;
    letter-spacing: -0.005em;
    transition: background .2s ease, color .2s ease;
}
.az-mn-subcats a:hover {
    background: #fff5f0;
    color: var(--az-red);
}
.az-mn-all {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--az-line);
  font-size: 13px; font-weight: 600; color: var(--az-red);
  text-decoration: none; letter-spacing: -.01em;
  transition: gap .25s ease;
}
.az-mn-all:hover { gap: 10px; }
.az-mn-all svg { width: 14px; height: 14px; }

/* Best */
.az-mn-col--best { border-left: 1px solid var(--az-line); border-right: 1px solid var(--az-line); padding: 0 28px; }
.az-mn-best-list { display: flex; flex-direction: column; gap: 4px; }
.az-mn-prod {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 12px; text-decoration: none; color: var(--az-black);
  transition: background .25s ease;
}
.az-mn-prod:hover { background: #fff5f0; }
.az-mn-prod-img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #f2f2f2; }
.az-mn-prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.az-mn-prod:hover .az-mn-prod-img img { transform: scale(1.08); }
.az-mn-prod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.az-mn-prod-name {
  font-size: 13.5px; font-weight: 600; color: var(--az-black); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.az-mn-prod-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.az-mn-prod-old { font-size: 12px; color: var(--az-steel); text-decoration: line-through; }
.az-mn-prod-new { font-size: 14px; font-weight: 700; color: var(--az-red); }
.az-mn-prod-sale { font-size: 10px; font-weight: 700; letter-spacing: .04em; background: var(--az-red); color: #fff; padding: 2px 6px; border-radius: 6px; }
.az-mn-prod-tax {
    font-size: 9.5px;
    font-weight: 500;
    color: var(--az-steel);
    margin-left: 0;
    letter-spacing: 0;
}
.az-mn-prod-price { gap: 4px; }

/* Promo */
.az-mn-promo {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center; text-decoration: none;
  min-height: 280px; isolation: isolate;
  transition: transform .4s ease;
}
.az-mn-promo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15,23,42,.45) 0%, rgba(15,23,42,.85) 100%);
  z-index: 1;
}
.az-mn-promo:hover { transform: translateY(-3px); }
.az-mn-promo-badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-block; background: var(--az-red); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(240,78,35,.45);
}
.az-mn-promo-badge::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: middle;
  animation: azMnPulse 1.6s ease-in-out infinite;
}
@keyframes azMnPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.az-mn-promo-body { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: #fff; }
.az-mn-promo-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  line-height: 1.05 !important;
  margin: 0 0 6px !important;
  color: #fff !important;
}
.az-mn-promo-title span {
  display: block;
  color: var(--az-red) !important;
}
.az-mn-promo-sub { font-size: 13px; color: rgba(255,255,255,.82); margin: 0 0 16px; }
.az-mn-promo-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #fff;
  border-bottom: 1.5px solid #fff; padding-bottom: 3px;
  transition: gap .25s ease, color .25s ease, border-color .25s ease;
}
.az-mn-promo-cta svg { width: 14px; height: 14px; transition: transform .25s ease; }
.az-mn-promo:hover .az-mn-promo-cta { color: var(--az-red); border-color: var(--az-red); gap: 12px; }
.az-mn-promo:hover .az-mn-promo-cta svg { transform: translateX(3px); }

/* Konfigurator CTA */
.az-mn-cta {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: transparent; color: var(--az-black); text-decoration: none;
  font-family: inherit; transition: opacity .2s ease; align-self: center; flex-shrink: 0;
}
.az-mn-cta:hover { opacity: .75; }
.az-mn-cta-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; color: var(--az-black); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.az-mn-cta-icon svg { width: 22px; height: 22px; }
.az-mn-cta:hover .az-mn-cta-icon { transform: rotate(-6deg) scale(1.05); }
.az-mn-cta-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.az-mn-cta-title { font-size: 14.5px; font-weight: 700; color: var(--az-black); }
.az-mn-cta-sub { font-size: 11px; font-weight: 500; color: var(--az-khaki); margin-top: 1px; }
.az-mn-cta-arrow { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--az-black); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.az-mn-cta-arrow svg { width: 16px; height: 16px; }
.az-mn-cta:hover .az-mn-cta-arrow { transform: translateX(4px); }
.az-mn-cta-badge {
  position: absolute; top: 4px; right: -4px; z-index: 2;
  background: var(--az-red); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .14em;
  padding: 3px 7px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(240,78,35,.45);
  animation: azCtaBounce 2s ease-in-out infinite;
}
@keyframes azCtaBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Z-index pre search dropdown */
.az-mn-stage, .az-mn-mega { z-index: 9; }

/* Responsive */
@media (max-width: 1180px) {
  .az-mn-trigger { padding: 16px 14px; font-size: 14px; }
  .az-mn-item:first-child .az-mn-trigger { padding-left: 0; }
  .az-mn-item:last-child .az-mn-trigger { padding-right: 0; }
  .az-mn-mega-inner { gap: 28px; padding: 30px 28px; grid-template-columns: 1fr 1.3fr 1fr; }
  .az-mn-promo-title { font-size: 22px; }
  .az-mn-promo { min-height: 260px; }
}
@media (max-width: 980px) {
  .az-mn-mega-inner { grid-template-columns: 1fr 1fr; }
  .az-mn-promo { grid-column: 1 / -1; min-height: 200px; }
  .az-mn-promo-body { right: auto; max-width: 70%; }
  .az-mn-col--best { padding: 0 28px; border-right: 0; }
}
@media (max-width: 720px) {
  .az-mn-bar { flex-direction: column; align-items: stretch; gap: 0; }
  .az-mn-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .az-mn-list::-webkit-scrollbar { display: none; }
  .az-mn-trigger { padding: 14px 12px; font-size: 13.5px; white-space: nowrap; }
  .az-mn-cta { margin: 10px 16px 12px; justify-content: center; padding: 12px 18px; border-radius: 10px; }
  .az-mn-cta-badge { top: -6px; right: 12px; }
  .az-mn-mega { border-radius: 0 0 16px 16px; }
  .az-mn-mega-inner { grid-template-columns: 1fr; gap: 22px; padding: 24px 18px; }
  .az-mn-col--best { padding: 0; border: 0; border-top: 1px solid var(--az-line); padding-top: 22px; }
  .az-mn-promo { min-height: 180px; }
  .az-mn-promo-body { max-width: 75%; }
  .az-mn-promo-title { font-size: 20px; }
}

/* ── MOBILE: desktop mega-menu skryté — nahrádza ho burger
       + offcanvas menu v [alpenzaun_header_main] ── */
@media (max-width: 980px) {
  .az-mn { display: none !important; }
}
