/*
 * jetadesktopheader 1.0.0 - zwarty nagłówek jeta.pl na komputerach.
 * Wszystko działa tylko od 1200 px i tylko gdy JS doda body.jeta-dh-on
 * (czyli po udanej przebudowie nagłówka). Telefon (mobilny moduł: do 767 px) i tablet bez zmian.
 */
@media (min-width: 1200px) {
  /* Miejsce zajmowane w treści: pasek 72 + baner 40 = 112 px (stałe, więc treść nie skacze przy zwijaniu) */
  body.jeta-dh-on #header {
    position: relative !important;
    top: auto !important;
    height: 112px !important;
    min-height: 0 !important;
    background: #fff;
    z-index: 100;
  }
  body.jeta-dh-on.jdh-promo-closed #header,
  body.jeta-dh-on.jdh-no-promo #header { height: 72px !important; }

  /* Ukryte stare elementy: ciemny pasek menu (menu przeniesione wyżej), graficzny baner, pusty odstęp 30 px,
     klony-odstępniki sticky Creative Elements */
  body.jeta-dh-on #header .elementor-element-9b59744,
  body.jeta-dh-on #header .elementor-element-bb3a4e6,
  body.jeta-dh-on #header .elementor-element-fec9903,
  body.jeta-dh-on #header .elementor-element-74c449e5.elementor-sticky__spacer { display: none !important; }

  /* 1. Jeden biały pasek 72 px */
  body.jeta-dh-on #header .elementor-element-74c449e5:not(.elementor-sticky__spacer) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 72px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(12, 12, 12, .08) !important;
    box-sizing: border-box !important;
    transition: height .2s ease, box-shadow .2s ease !important;
  }
  body.jeta-dh-on #header .elementor-element-74c449e5:not(.elementor-sticky__spacer) > .elementor-container {
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 0 16px 0 10px !important;
    box-sizing: border-box;
  }
  body.jeta-dh-on #header .elementor-element-74c449e5:not(.elementor-sticky__spacer) > .elementor-container > .elementor-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px;
    width: 100%;
    height: 100%;
  }
  body.jeta-dh-on #header .elementor-element-74c449e5 .elementor-top-column > .elementor-column-wrap {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* logo */
  body.jeta-dh-on #header .elementor-element-574e700e {
    width: auto !important;
    flex: 0 0 auto !important;
  }
  body.jeta-dh-on #header .elementor-element-574e700e .elementor-widget-wrap { padding: 0 !important; }
  body.jeta-dh-on #header .elementor-element-5fe453a {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
  body.jeta-dh-on #header .elementor-element-5fe453a .elementor-image img {
    display: block;
    height: 48px !important;
    width: auto !important;
    max-width: none !important;
    transition: height .2s ease;
  }

  /* menu PRODUKTY / INSPIRACJE / BLOG (przeniesione) */
  body.jeta-dh-on .jdh-nav-col {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: stretch;
    position: static;
  }
  body.jeta-dh-on .jdh-nav-col .elementor-element-9e5462c,
  body.jeta-dh-on .jdh-nav-col .elementor-element-9e5462c > .elementor-widget-container,
  body.jeta-dh-on .jdh-nav-col #appinet-menu,
  body.jeta-dh-on .jdh-nav-col #appinet-menu .first-menu,
  body.jeta-dh-on .jdh-nav-col #appinet-menu .first-menu > ul,
  body.jeta-dh-on .jdh-nav-col #appinet-menu .first-menu > ul > li {
    position: static !important;
    height: 100%;
    margin: 0 !important;
    width: auto !important;
  }
  body.jeta-dh-on .jdh-nav-col .elementor-element-9e5462c > .elementor-widget-container {
    background: transparent !important;
    padding: 0 !important;
  }
  body.jeta-dh-on .jdh-nav-col #appinet-menu .first-menu > ul {
    display: flex !important;
    align-items: stretch !important;
    gap: 2px !important;
    padding: 0 !important;
  }
  body.jeta-dh-on .jdh-nav-col #appinet-menu .first-menu > ul > li > a {
    display: flex !important;
    align-items: center;
    height: 100%;
    padding: 0 10px !important;
    color: #413932 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .1em;
    line-height: 1 !important;
    white-space: nowrap;
    background: transparent !important;
  }
  body.jeta-dh-on .jdh-nav-col #appinet-menu .first-menu > ul > li:hover > a,
  body.jeta-dh-on .jdh-nav-col #appinet-menu .first-menu > ul > li > a:focus { color: #e6007e !important; }

  /* 2. Mega-menu Produkty: to samo menu, rozwija się tuż pod paskiem, wyśrodkowane na całej szerokości */
  body.jeta-dh-on .jdh-nav-col #appinet-menu .submenu {
    top: 100% !important;
    height: auto !important;
  }

  /* wyszukiwarka */
  body.jeta-dh-on #header .elementor-element-3d6c7d09 {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  body.jeta-dh-on #header .elementor-element-3d6c7d09 > .elementor-column-wrap > .elementor-widget-wrap {
    justify-content: center;
    padding: 0 !important;
  }
  body.jeta-dh-on #header .elementor-element-eda2b5c {
    width: 100% !important;
    max-width: 560px;
    margin: 0 auto !important;
  }
  body.jeta-dh-on #header .elementor-element-eda2b5c #inputSerchTxt {
    height: 42px !important;
    min-height: 0 !important;
    transition: height .2s ease;
  }
  body.jeta-dh-on #header .elementor-element-eda2b5c .input-group-btn {
    height: 42px !important;
    top: 0 !important;
    transition: height .2s ease;
  }

  /* Salony, Zaloguj się, Koszyk */
  body.jeta-dh-on #header .elementor-element-3f51737a {
    width: auto !important;
    flex: 0 0 auto !important;
  }
  body.jeta-dh-on #header .elementor-element-3f51737a > .elementor-column-wrap > .elementor-widget-wrap { padding: 0 !important; }

  /* 3. Baner tekstowy 40 px */
  body.jeta-dh-on .jdh-promo {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 56px;
    box-sizing: border-box;
    background: linear-gradient(90deg, #f3e6d8 0%, #fbf5ee 50%, #f3e6d8 100%);
    border-bottom: 1px solid rgba(138, 109, 59, .2);
    font-family: Montserrat, "Segoe UI", Arial, sans-serif;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  body.jeta-dh-on .jdh-promo__text {
    font-size: 15px;
    font-weight: 600;
    color: #5c4a2e !important;
    text-decoration: none !important;
    white-space: nowrap;
  }
  body.jeta-dh-on .jdh-promo__text strong { font-weight: 800; color: #3f2f18; letter-spacing: .04em; }
  body.jeta-dh-on .jdh-promo__cta {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff !important;
    background: #8a6d3b;
    padding: 8px 14px;
    border-radius: 2px;
    text-decoration: none !important;
  }
  body.jeta-dh-on .jdh-promo__cta:hover { background: #6f5730; }
  body.jeta-dh-on .jdh-promo__close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #3f2f18;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
  }
  body.jeta-dh-on.jdh-promo-closed .jdh-promo { display: none !important; }
  body.jeta-dh-on.jdh-scrolled .jdh-promo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
  }

  /* 5. Zwinięty pasek 56 px po przewinięciu w dół */
  body.jeta-dh-on.jdh-slim #header .elementor-element-74c449e5:not(.elementor-sticky__spacer) {
    height: 56px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
  }
  body.jeta-dh-on.jdh-slim #header .elementor-element-5fe453a .elementor-image img { height: 38px !important; }
  body.jeta-dh-on.jdh-slim #header .elementor-element-eda2b5c #inputSerchTxt,
  body.jeta-dh-on.jdh-slim #header .elementor-element-eda2b5c .input-group-btn { height: 36px !important; }
}

/* 1.0.1: pusta strefa karty promocyjnej w mega-menu (Graficzne Menu, lista produktow pusta) - ukryj */
#carousel-product:not(:has(*)) { display: none !important; }

/* 1.0.3: mega-menu (Graficzne Menu / #appinet-menu) — category cover icons.
   MUST sit outside the 1200 px media query and must NOT require body.jeta-dh-on:
   appinet_menu also renders below 1200 px (tablet styles from 767 / 992 px),
   and these rules have to work even when the compact desktop header is off. */
/* Direct children only: ul.child_0 a > img would also match nested child_2 icons. */
#appinet-menu ul.child_0 > li > a > img,
#appinet-menu ul.child_1 > li > a > img {
  display: none !important;
}
#appinet-menu .submenu ul.child_2 > li > a > img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center;
}
