/* ==========================================================================
   1. HLAVNÍ HLAVIČKA (HEADER) - DEFINITIVNÍ ZAROVNÁNÍ PODLE HTML
   ========================================================================== */

#header .header-top .header-top-wrapper,
.header-top .header-top-wrapper {
  display: flex !important;
  display: -webkit-flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  grid-template: none !important;
  grid-template-columns: none !important;
  position: relative !important;
}

.header-top .navigation-tools {
  display: none !important;
}

#header .header-top .site-name,
.header-top .site-name {
  order: 1 !important;
  margin: 0 !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  text-align: left !important;
  float: none !important;
  position: static !important;
  transform: none !important;
  flex: 0 0 auto !important;
}

.header-top .site-name img,
.header-top [data-testid="linkWebsiteLogo"] img {
  max-height: 35px !important;
  height: 35px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

#header .header-top .navigation-buttons,
.header-top .navigation-buttons {
  order: 2 !important;
  margin: 0 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  float: none !important;
  position: static !important;
  transform: none !important;
  flex: 0 0 auto !important;
}

.header-top .navigation-buttons > *:not([data-testid="linkSearchIcon"]) {
  display: none !important;
}

.header-top .navigation-buttons [data-testid="linkSearchIcon"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.header-top .user-action {
  position: absolute !important;
  right: 20px !important;
  top: 100% !important;
  width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
  z-index: 100 !important;
}

.header-top .user-action * {
  pointer-events: auto !important;
}


/* ==========================================================================
   2. HERO BANNER (.mip-custom-hero) - OBRÁZEK, GRADIENT A TEXTY
   ========================================================================== */

.mip-custom-hero {
  position: relative !important;
  background-image: url('https://812527.myshoptet.com/user/documents/upload/pictures/banner4.jpg') !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  min-height: 600px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.mip-custom-hero::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 68% !important;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0) 100%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.mip-custom-hero .mip-hero-content {
  position: relative !important;
  z-index: 10 !important;
  max-width: 650px !important;
  margin-left: 4% !important;
  padding: 0 !important;
  background: transparent !important;
}

.mip-custom-hero .mip-hero-title,
.mip-custom-hero p,
.mip-custom-hero span:not([style*="color"]),
.mip-custom-hero li {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.mip-custom-hero .mip-hero-title {
  font-size: 28px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  margin-bottom: 16px !important;
  display: block !important;
  text-transform: uppercase !important;
}

/* Styly pro odrážky */
.mip-custom-hero .mip-hero-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
}

.mip-custom-hero .mip-hero-bullets li {
  position: relative !important;
  padding-left: 18px !important;
  margin-bottom: 10px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.mip-custom-hero .mip-hero-bullets li::before {
  content: "•" !important;
  position: absolute !important;
  left: 0 !important;
  top: -1px !important;
  color: #ff6b00 !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.mip-custom-hero .hero-highlight {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Primární tlačítko v banneru */
.mip-custom-hero .mip-hero-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #ff6b00 !important;
  color: #ffffff !important;
  padding: 12px 28px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4) !important;
}

.mip-custom-hero .mip-hero-link:hover {
  background-color: #e05d00 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* Kontejner tlačítek v banneru */
.mip-hero-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
  flex-wrap: wrap !important;
}

/* Sekundární tlačítko v banneru (Ask for a quote) */
.mip-custom-hero .mip-btn-secondary {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: none !important;
}

.mip-custom-hero .mip-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
}


/* ==========================================================================
   3. ÚPRAVA ODSTUPU HLAVIČKY
   ========================================================================== */
#header .header-top {
  padding-top: 25px !important;
  padding-bottom: 0px !important;
}


/* ==========================================================================
   4. RESPONSIVNÍ ÚPRAVA PRO MOBILY
   ========================================================================== */
@media (max-width: 768px) {
  .mip-custom-hero {
    min-height: 380px !important;
    background-position: center center !important;
  }

  .mip-custom-hero::before {
    width: 100% !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 100%) !important;
  }

  .mip-custom-hero .mip-hero-content {
    margin-left: 4% !important;
    margin-right: 4% !important;
    max-width: 92% !important;
  }

  .mip-custom-hero .mip-hero-title {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }

  .mip-custom-hero .mip-hero-bullets li,
  .mip-custom-hero p {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  .mip-hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  
  .mip-hero-buttons .mip-hero-link {
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 11.5px !important;
  }
}


/* ==========================================================================
   5. POJISTKA PRO SKRYTÍ SYSTÉMOVÉHO VAROVÁNÍ O JS
   ========================================================================== */
noscript,
body > noscript,
div:has(> noscript) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 768px) {
  /* 1. Hlavička v normálním toku s bílým pozadím – posune banner dolů, neprekryje ho */
  #header,
  .header-top {
    background-color: #ffffff !important;
    position: relative !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  }

  .header-top .header-top-wrapper {
    margin: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 2. Banner navazuje hned pod hlavičkou, má automatickou výšku */
  .mip-custom-hero {
    margin-top: 0 !important;
    min-height: unset !important;
    height: auto !important;
    padding-top: 35px !important;
    padding-bottom: 35px !important;
  }
}
/* ==========================================================================
   SLEDUNOVÁNÍ A SJEDNOCENÍ BÍLÉHO PÁSU HLAVIČKY (ODSTRANĚNÍ VÝKUSU LUPY)
   ========================================================================== */
@media (max-width: 768px) {
  /* Celá horní lišta tvoří jeden čistý obdélník */
  #header,
  .header-top,
  .header-top-wrapper {
    background-color: #ffffff !important;
    background: #ffffff !important;
  }

  /* Kontejner tlačítek a samotná lupa nebudou tvořit vlastní pozadí */
  .header-top .navigation-buttons,
  .header-top .navigation-buttons [data-testid="linkSearchIcon"] {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
}