/* ŘAZENÍ SEKCÍ */
main#content {
  display: flex;
  flex-direction: column;
}

/* 1) Nejprodávanější – nadpis + produkty */
main#content > .homepage-group-title.homepage-products-heading-1 {
  order: 1;
}

main#content
  > .homepage-group-title.homepage-products-heading-1
  + .products-wrapper {
  order: 2;
}

/* 2) USP / Benefit banner */
main#content > .full-width.benefit-banners-full-width {
  order: 3;
}

main#content>.welcome-wrapper {
    order: 4;
}

/* LOGO */
/* - velikost */
#header .header-top .header-top-wrapper .site-name a img {
  max-height: 50px !important;
}

@media (max-width: 991px) {
  #header .header-top .header-top-wrapper .site-name a img {
    padding-top: 10px;
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  #header .header-top .header-top-wrapper .site-name a img {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* - pozice vlevo */
.header-top .navigation-wrapper {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.site-name {
  margin-right: auto !important;
  order: -1;
}

#header > div.header-top > div > div.site-name {
  display: flex;
  justify-content: start;
  align-items: center;
}

/* - padding */
@media (max-width: 991px) {
  #header .header-top .header-top-wrapper .site-name a img {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (min-width: 992px) {
  #header .header-top .header-top-wrapper .site-name {
    padding-top: 0px;
    padding-bottom: 0px;
  }
}

#header .header-top .header-top-wrapper .site-name,
#header .header-top .header-top-wrapper h1.site-name {
  font-size: auto;
  height: 100%;
  line-height: auto;
  margin: 0;
  max-width: auto;
  padding-bottom: 0px;
  padding-top: 0px;
  text-align: start;
}

/* NAVBAR */
/* - padding */
@media (min-width: 992px) {
  #header > div.header-top {
    padding: 5px 0;
  }

  #header > div.header-bottom {
    padding-top: 20px;
  }

  .navigation-in > ul > li > a {
    padding-bottom: 16px;
    padding-top: 6px;
  }
}

.header-top {
  background: var(--color-tertiary);
}

/* - linky navigace */
.navigation-in > ul > li > a,
.navigation-in > ul > li > a:hover,
.navigation-in > ul > li.exp > a,
.navigation-in > ul > li > a:hover {
  background-color: transparent !important;
  text-transform: none;
  font-size: 18px;
}

.navigation-buttons a[data-target="navigation"],
.navigation-buttons a[data-target="navigation"]:hover {
  background-color: transparent !important;
  color: var(--color-secondary) !important;
}

.menu-helper:after,
.menu-trigger:after {
  background-color: transparent;
  color: var(--color-secondary);
}

.navigation-in > ul > li {
  border-style: none !important;
}

.navigation-in ul li a b {
  font-weight: 600;
}

.navigation-in > ul > li > a:hover,
.navigation-in > ul > li > a.active {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1.5px;
}

/* NAVBAR mobile submenu: světlé pozadí při otevření kategorie */
@media (max-width: 767px) {
  .navigation-in > ul > li.exp,
  .navigation-in > ul > li.exp > div,
  .navigation-in > ul > li.exp .menu-level-2,
  .navigation-in > ul > li.exp .menu-level-2 > li {
    background: var(--color-primary) !important;
    color: var(--color-tertiary) !important;
  }
}

/* USP - lišta výhod */
    /* - obrázek pozadí */
    .benefit-banners-full-width {
        background: var(--color-tertiary);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        margin-top: 40px;
    }

    /* - inside margin */
    .benefitBanner {
        margin: 20px auto;
    }

    /* - pozice */
    .benefitBanner .benefitBanner__item {
        flex-flow: row;
        text-align: left;
        color: #000 !important;
    }

    @media (max-width: 767px) {
        .benefitBanner .benefitBanner__item {
            justify-content: start;
            text-align: left;
        }

        .benefitBanner {
            margin: 10px auto;
        }

        .benefit-banners-full-width {
            margin-top: 20px;
        }

        .benefitBanner .benefitBanner__picture img {
            max-height: 80%;
            width: auto;
        }
    }

    /* - barva podnadpisu */
    .benefitBanner__data {
        color: var(--color-muted);
    }

    /* - velikost textu */
    .benefitBanner .benefitBanner__title {
        font-size: clamp(16px, 4vw, 19px);
        font-weight: 400;
        line-height: clamp(22px, 4vw, 25px);
    }

    .benefitBanner .benefitBanner__picture {
        margin: 10px;
    }

    .homepage-latest-contribution-full-width {
        display: none;
    }

/* DETAIL PRODUKTU – CTA (cena + košík) nad popis na mobilu/tabletu */
@media (max-width: 991px) {
  .p-detail-inner .p-data-wrapper {
    display: flex !important;
    flex-direction: column !important;
  }

  .p-detail-inner .p-data-wrapper .p-short-description {
    order: 40 !important;
    margin-top: 16px !important;
  }

  .p-detail-inner .p-data-wrapper form#product-detail-form {
    order: 20 !important;
    margin-top: 12px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #eee !important;
  }

  .p-detail-inner .p-data-wrapper .p-detail-parameters,
  .p-detail-inner .p-data-wrapper .detail-parameters {
    order: 25 !important;
  }

  .p-detail-inner .p-data-wrapper .p-to-cart-block {
    order: 30 !important;
  }
}

/* Sdílení schovat */

.p-info-wrapper > .social-buttons-wrapper {
  order: 99 !important;
  display: none !important;
}

/* - extra příznaky a ostatni btny */
.flags.flags-extra,
.buttons-wrapper.social-buttons-wrapper {
    display: none;
}

/* =========================
   FOOTER
   ========================= */

   #footer {
    background: #ffffff !important;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    color: #111111 !important;
    box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.10), 0 -1px 0 rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  
  /* hlavní části footeru */
  #footer,
  .footer-bottom-full-width,
  .footer-bottom {
    background: #ffffff !important;
    color: #111111 !important;
  }
  
  /* zrušení bílých / světlých boxů */
  #footer .footer-rows,
  #footer .custom-footer,
  #footer .custom-footer > div,
  #footer .footer-rows .custom-footer > div,
  #footer .contact-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* texty ve footeru */
  #footer h4,
  #footer h4 span,
  #footer p,
  #footer li,
  #footer span,
  #footer a,
  #footer strong,
  #footer div {
    color: #111111 !important;
  }
  
  /* nadpisy */
  #footer h4,
  #footer h4 span {
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  
  /* odkazy */
  #footer a {
    text-decoration: none;
    transition: 0.2s ease;
  }
  
  #footer a:hover {
    color: #F58DA9 !important;
  }
  
  /* odstranění podtržení u nadpisů */
  #footer h4 > span::after {
    display: none !important;
    border: none !important;
  }
  
  /* logo Aura Essence */
  #footer .contact-box > img {
    display: block;
    position: relative;
    left: 0;
    max-width: 150px;
    height: auto;
    margin-bottom: 28px;
  }
  
  /* rozložení footeru */
  @media (min-width: 992px) {
    .footer-bottom-full-width {
      padding: 44px 0 38px;
    }
  
    #footer .footer-rows {
      align-items: flex-start;
    }
  }
  
  /* platební a dopravní loga - pouze zarovnání, žádné vlastní pozadí */
  .footer-logos,
  #footer .footer-logos {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  
  /* obrázky log - bez pozadí, bez paddingu, bez stínu */
  .footer-logos img,
  #footer .footer-logos img,
  #footer img[src*="payment"],
  #footer img[src*="doprav"],
  #footer img[src*="packeta"],
  #footer img[src*="dpd"],
  #footer img[src*="visa"],
  #footer img[src*="master"],
  #footer img[src*="apple"],
  #footer img[src*="google"] {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  /* kontaktní box - ikony e-mail / telefon */
  #footer .contact-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  #footer .contact-box li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  
  /* zobrazení ikon u kontaktu */
  #footer .contact-box li::before,
  #footer .contact-box-icon::before,
  #footer .contact-box-icon span::before,
  #footer .contact-box ul li span::before {
    color: #111111 !important;
    opacity: 1 !important;
  }
  
  /* samotný wrapper ikon */
  #footer .contact-box-icon,
  #footer .contact-box ul li span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #111111 !important;
  }
  
  /* ikonky v kontaktu */
  #footer .contact-box-icon i,
  #footer .contact-box-icon svg,
  #footer .contact-box-icon::before,
  #footer .contact-box ul li span::before {
    color: #111111 !important;
    fill: #111111 !important;
    stroke: #111111 !important;
  }
  
  /* pokud jsou ikonky přes font/after */
  #footer .contact-box-icon::after,
  #footer .contact-box ul li span::after {
    color: #111111 !important;
    fill: #111111 !important;
    stroke: #111111 !important;
  }
  
  /* sociální ikony - FB / Instagram / TikTok */
  #footer .contact-box ul.contact-box-icon-list {
    display: flex !important;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 24px;
  }
  
  #footer .contact-box ul.contact-box-icon-list li {
    margin: 0;
    display: inline-flex;
  }
  
  /* odkazy sociálních ikon */
  #footer .contact-box ul.contact-box-icon-list a,
  #footer .social-icons a,
  #footer .social-links a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #111111 !important;
    opacity: 1 !important;
    width: 30px;
    height: 30px;
    font-size: 24px;
    line-height: 1;
    transition: 0.2s ease;
  }
  
  /* ikony přes pseudo elementy */
  #footer .contact-box ul.contact-box-icon-list a::before,
  #footer .contact-box ul.contact-box-icon-list a::after,
  #footer .social-icons a::before,
  #footer .social-icons a::after,
  #footer .social-links a::before,
  #footer .social-links a::after {
    color: #111111 !important;
    fill: #111111 !important;
    stroke: #111111 !important;
    opacity: 1 !important;
  }
  
  /* hover sociálních ikon */
  #footer .contact-box ul.contact-box-icon-list a:hover,
  #footer .social-icons a:hover,
  #footer .social-links a:hover {
    color: #F58DA9 !important;
    transform: translateY(-1px);
  }
  
  #footer .contact-box ul.contact-box-icon-list a:hover::before,
  #footer .contact-box ul.contact-box-icon-list a:hover::after,
  #footer .social-icons a:hover::before,
  #footer .social-icons a:hover::after,
  #footer .social-links a:hover::before,
  #footer .social-links a:hover::after {
    color: #F58DA9 !important;
    fill: #F58DA9 !important;
    stroke: #F58DA9 !important;
  }
  
  /* kontaktní tlačítko */
  #footer .btn,
  #footer .btn-primary,
  #footer input[type="submit"],
  #footer button,
  #footer .contact-box .btn {
    background: #111111 !important;
    border: 1px solid #111111 !important;
    color: #ffffff !important;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    transition: 0.2s ease;
    font-weight: 600;
  }
  
  #footer .btn *,
  #footer .btn-primary *,
  #footer button *,
  #footer input[type="submit"] * {
    color: #ffffff !important;
  }
  
  #footer .btn:hover,
  #footer .btn-primary:hover,
  #footer input[type="submit"]:hover,
  #footer button:hover {
    background: #F58DA9 !important;
    border-color: #F58DA9 !important;
    color: #ffffff !important;
  }
  
  /* spodní copyright pruh */
  .footer-bottom {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    padding: 14px 0;
  }
  
  /* texty dole na bílo */
  .footer-bottom,
  .footer-bottom *,
  .footer-bottom a,
  .footer-bottom span,
  .footer-bottom p,
  .footer-bottom div {
    color: #111111 !important;
  }
  
  /* odstranění Apollo/Shoptet ikony */
  img.vam,
  a.apollo {
    display: none !important;
  }
  
  /* kdyby zůstalo tlačítko / badge Vytvořil Shoptet */
  .footer-bottom .created-by,
  .footer-bottom .signature,
  .footer-bottom a[href*="shoptet"] {
    color: #111111 !important;
    background: transparent !important;
  }
  
  /* mobil */
  @media (max-width: 767px) {
    #footer {
      padding: 20px;
      border-radius: 22px 22px 0 0;
    }
  
    .footer-bottom-full-width {
      padding: 32px 0 24px;
    }
  
    .footer-rows .custom-footer h4 {
      margin-top: 18px;
      margin-bottom: 10px;
    }
  
    #footer .contact-box > img {
      max-width: 130px;
      margin-bottom: 20px;
    }
  
    .footer-logos,
    #footer .footer-logos {
      gap: 10px;
    }
  
    #footer .contact-box ul.contact-box-icon-list a {
      width: 32px;
      height: 32px;
      font-size: 24px;
    }
  }
  
  #footer .footer-bottom a[href*="thepiksel"] img,
  .footer-bottom a[href*="thepiksel"] img {
    height: 14px !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }