:root{
  --red:#ed1c24;
  --red-dark:#d70911;
  --ink:#2C2C2C;
  --muted:#5d6066;
  --line:#e7e7e7;
  --max:1180px;
  --shadow:0 8px 24px rgba(15,16,18,.07);
}

/* =========================
   TOP HEADER – KONTAKTY
   ========================= */

.top-header {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* E-mail a telefon */
.top-header__inner a[href^="mailto:"],
.top-header__inner a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #000;
    text-decoration: none;
    background: none;
}

/* Skrytí původní ikony vložené v HTML u e-mailu */
.top-header__inner a[href^="mailto:"] img {
    display: none !important;
}

/* Vlastní ikona obálky */
.top-header__inner a[href^="mailto:"]::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
    background-image: url("/user/documents/assets/img/obalka.png") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Vlastní ikona telefonu */
.top-header__inner a[href^="tel:"]::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
    background-image: url("/user/documents/assets/img/telefon.png") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Skrytí skutečné černé ONI support ikony telefonu */
#header .oni-support .oni-support__icon {
    display: none !important;
}

/* =========================
   SHOPTET HLAVIČKA A MENU – AUTOMATICKÉ „VÍCE“
   Cíl:
   - celé menu zobrazit, pokud se vejde
   - „Více“ nechat zobrazit až při skutečném nedostatku místa
   - nezasahovat do nativního Shoptet skriptu, který položky přesouvá
   - zachovat menu v jednom řádku
   ========================= */

@media (min-width: 992px) {

    #header {
        position: relative;
        padding-top: 25px;
        padding-bottom: 5px;
    }

    #header > .container.navigation-wrapper {
        width: calc(100% - 80px) !important;
        max-width: none !important;
        margin-left: 40px !important;
        margin-right: 40px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;

        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        min-height: 56px;
    }

    /* Logo */
    #header .site-name {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 220px;
        margin: 0 18px 0 0 !important;
        padding: 0 !important;
    }

    #header .site-name > a {
        display: flex !important;
        align-items: center;
    }

    #header .site-name img {
        display: block;
        width: auto !important;
        max-width: 210px !important;
        height: auto !important;
        max-height: 52px;
    }

    /* Navigace využije celý volný prostor mezi logem a pravými ikonami. */
    #header #navigation {
        position: static !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        height: 56px !important;

        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    #header #navigation .navigation-in {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 56px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;

        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    /*
     * DŮLEŽITÉ:
     * Menu už není absolutně vystředěné a nemá width:max-content.
     * Má skutečnou dostupnou šířku, takže Shoptet správně pozná,
     * zda se všechny položky vejdou.
     */
    #header #navigation .navigation-in > ul.menu-level-1 {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;

        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        list-style: none !important;

        white-space: nowrap !important;
        overflow: visible !important;
    }

    /*
     * Záměrně zde NENÍ:
     *   display:flex !important;
     *   visibility:visible !important;
     *   opacity:1 !important;
     *
     * na jednotlivých <li>.
     *
     * Shoptet si musí smět některou položku skrýt/přesunout do „Více“.
     * Původní vynucení viditelnosti způsobovalo, že „Vyzkoušejte zdarma“
     * zůstalo v hlavním menu a současně se objevilo i pod „Více“.
     */
    #header #navigation .navigation-in > ul.menu-level-1 > li {
        position: relative;
        flex: 0 0 auto !important;

        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header #navigation .navigation-in > ul.menu-level-1 > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center;

        width: auto !important;
        height: 56px !important;
        padding: 0 14px !important;

        color: #151515;
        background: transparent !important;

        font-family: "Open Sans", sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        text-transform: none !important;
        text-decoration: none !important;

        white-space: nowrap !important;
        transition: color .2s ease;
    }

    #header #navigation .navigation-in > ul.menu-level-1 > li > a > b {
        font-size: inherit !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    #header #navigation .navigation-in > ul.menu-level-1 > li > a:hover,
    #header #navigation .navigation-in > ul.menu-level-1 > li.active > a,
    #header #navigation .navigation-in > ul.menu-level-1 > li.exp > a {
        color: var(--red) !important;
        background: transparent !important;
    }

    #header #navigation .submenu-arrow {
        flex: 0 0 auto;
        margin-left: 7px !important;
    }

    /*
     * Záměrně zde není žádné pravidlo pro li.splitted.
     * Třídu a její viditelnost řídí Shoptet podle skutečného místa v menu.
     */

    /*
     * Mobilní/hamburger seznam akcí na desktopu nezobrazujeme.
     * Tím zůstává odstraněno dřívější duplicitní „Přihlášení“.
     */
    #header #navigation .navigation-in > ul.navigationActions {
        display: none !important;
    }

    /* Dropdown */
    #header #navigation .navigation-in ul.menu-level-2 {
        top: 100%;
        background: #fff;
        border-color: #eee;
        box-shadow: var(--shadow);
        z-index: 100;
    }

    #header #navigation .navigation-in ul.menu-level-2 a {
        font-family: "Open Sans", sans-serif;
        font-size: 14px;
        text-transform: none;
        color: #151515;
    }

    #header #navigation .navigation-in ul.menu-level-2 a:hover {
        color: var(--red);
        background: #fafafa;
    }

    /* Horní kontaktní blok */
    .top-header__inner {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
        min-height: unset !important;
        padding: 0 40px;
    }

    .top-header__inner::before,
    .top-header__inner::after {
        content: none !important;
    }

    .top-header__inner a {
        font-size: 14px;
        line-height: 1.2;
    }
}

/*
 * Notebooky / užší desktop:
 * nejdřív zmenšíme logo a mezery; teprve když ani to nestačí,
 * nativní Shoptet přesune poslední položky pod „Více“.
 */
@media (min-width: 992px) and (max-width: 1250px) {

    #header > .container.navigation-wrapper {
        width: calc(100% - 32px) !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    #header .site-name {
        max-width: 175px;
        margin-right: 10px !important;
    }

    #header .site-name img {
        max-width: 165px !important;
    }

    #header #navigation .navigation-in > ul.menu-level-1 > li > a {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 13px !important;
    }

    #header #navigation .submenu-arrow {
        margin-left: 4px !important;
    }

    .top-header__inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =========================
   MOBIL + TABLET
   ========================= */

@media (max-width: 991px) {
    /* Menu necháváme na mobilu řídit nativní logikou Shoptetu.
       Neaplikujeme zde staré selektory .main-nav/.hamburger. */

    .top-header {
        display: block;
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        background-color: #f5f5f5;
    }

    .top-header__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        column-gap: 20px;
        row-gap: 8px;
        min-height: unset !important;
        padding: 8px 16px;
    }

    .top-header__inner a {
        font-size: 14px;
        line-height: 1.2;
    }
}

/* =========================
   MALÝ MOBIL
   ========================= */

@media (max-width: 480px) {
    .top-header__inner {
        column-gap: 14px;
        row-gap: 6px;
        padding: 7px 10px;
    }

    .top-header__inner a {
        font-size: 12px;
    }

    .top-header__inner a[href^="mailto:"]::before,
    .top-header__inner a[href^="tel:"]::before {
        width: 16px !important;
        height: 16px !important;
        flex-basis: 16px;
    }
}

/* =========================
   MOBIL – SKRYTÍ E-MAILU A TELEFONU
   ========================= */
@media (max-width: 767px) {
    .top-header {
        display: none !important;
    }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Open Sans",sans-serif !important;font-size:14px;color:var(--ink);background:#fff;line-height:1.45}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.container{width:min(var(--max),calc(100% - 48px));margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.hero{border-top:1px solid #f0f0f0;background:#fff}
.hero__grid{display:grid;grid-template-columns:31% 69%;min-height:355px;align-items:stretch}
.hero__copy{padding:72px 12px 50px 0;position:relative;z-index:2}
.hero h1{font-size:clamp(36px,4vw,57px);line-height:1.02;margin:0 0 22px;letter-spacing:-1.8px}
.hero h1 span{color:var(--red)}
.hero p{font-size:16px;margin:0 0 28px}
.hero__visual{align-self:stretch;overflow:hidden}
.hero__visual img{width:100%;height:100%;object-fit:cover;object-position:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:18px;font-weight:750;border-radius:6px;transition:.2s ease}
.btn--primary{background:var(--red);color:#fff;padding:15px 22px}
.btn--primary:hover{background:var(--red-dark);transform:translateY(-1px)}

.benefits{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.benefits__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding-block:23px}
.benefit{display:flex;align-items:center;gap:15px;min-width:0}
.benefit__icon{width:48px;height:48px;display:grid;place-items:center;color:var(--red);font-size:42px;line-height:1;flex:none}
.benefit h3{font-size:17px;margin:0 0 4px}
.benefit p{font-size:14px;color:var(--muted);margin:0}

.section{padding:34px 0 0}
.section h2{font-size:27px;line-height:1.2;text-align:center;margin:0 0 24px;letter-spacing:-.6px}
.solution-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:17px}
.solution-card{border:1px solid #e2e2e2;border-radius:6px;min-height:205px;padding:21px 17px 17px;text-align:center;display:flex;flex-direction:column;align-items:center;box-shadow:0 3px 10px rgba(0,0,0,.03)}
.line-icon{height:52px;width:56px;color:var(--red);margin-bottom:8px}
.line-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.solution-card h3{font-size:17px;margin:0 0 9px}
.solution-card p{font-size:14px;color:#1F1F1F;margin:0 auto 18px;max-width:180px}
.solution-card a{margin-top:auto;color:var(--red);font-size:14px;font-weight:750}
.solution-card a span,.product-card a span{margin-left:8px}

.type-section{padding-top:29px}
.type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.type-card{border-radius:6px;overflow:hidden;box-shadow:0 4px 15px rgba(0,0,0,.05)}
.type-card img{width:100%;aspect-ratio:1.68/1;object-fit:cover;transition:transform .25s ease}
.type-card:hover img{transform:scale(1.015)}

.products{padding-top:27px}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.products .product-card:nth-child(n+5){display:none}
.product-card{border:1px solid #e2e2e2;border-radius:6px;padding:8px 14px 17px;display:flex;flex-direction:column;min-height:300px}
.product-card img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:120px;
  margin:0 auto 8px;
  padding:0;
  object-fit:contain;
  object-position:center;
}
.product-card h3{font-size:17px;line-height:1.25;margin:0 0 8px}
.product-card p{font-size:14px;line-height:1.45;color:#2c2c2c;margin:0 0 15px;flex:1}
.product-card strong{font-size:14px;margin-bottom:10px}
.product-card a{color:var(--red);font-weight:750;font-size:14px}

.trust{padding-top:32px;padding-bottom:28px}
.logo-row{display:grid;grid-template-columns:repeat(6,1fr);align-items:center;gap:34px}
.logo-row img{width:100%;height:48px;object-fit:contain;filter:grayscale(1);opacity:.84}

.contact-cta{padding:0 0 18px}
.contact-box{background:linear-gradient(115deg,#f4f4f4,#fff);border-radius:6px;padding:23px 42px;display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;min-height:130px}
.contact-box__copy{padding-right:35px;border-right:1px solid #d8d8d8}
.contact-box__copy p{font-size:14px;margin:0 0 6px}
.contact-box__copy h2{text-align:left;font-size:27px;margin:0 0 5px;line-height:1.2}
.contact-box__copy strong{font-size:14px}
.contact-box__action{padding-left:18px}
.contact-line{display:flex;justify-content:center;align-items:center;gap:15px;margin-bottom:13px}
.phone-icon{font-size:26px}
.contact-line div{display:flex;flex-direction:column}
.contact-line b{font-size:23px;line-height:1.1}
.contact-line span:not(.phone-icon){font-size:14px;text-align:center;margin-top:5px}
.btn--wide{width:100%;padding-block:13px}

@media (max-width:1100px){
  .container{width:min(var(--max),calc(100% - 32px))}
  .solution-grid{gap:12px}
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .footer__grid{grid-template-columns:1.5fr repeat(3,1fr)}
}

@media (max-width:900px){
  .hero__grid{grid-template-columns:1fr;min-height:unset}
  .hero__copy{padding:44px 0 30px;text-align:center}
  .hero h1{letter-spacing:-1px}
  .hero__visual{border-radius:6px;overflow:hidden;margin-bottom:22px}
  .hero__visual img{height:auto}

  .benefits__grid{grid-template-columns:repeat(2,1fr)}
  .solution-grid{grid-template-columns:repeat(2,1fr)}
  .solution-card:last-child{grid-column:1/-1;max-width:50%;width:100%;justify-self:center}
  .type-grid{grid-template-columns:1fr 1fr}
  .type-card:last-child{grid-column:1/-1;max-width:50%;width:100%;justify-self:center}
  .logo-row{grid-template-columns:repeat(3,1fr);row-gap:20px}
  .contact-box{grid-template-columns:1fr;padding:26px}
  .contact-box__copy{padding-right:0;border-right:0;text-align:center}
  .contact-box__copy h2{text-align:center}
  .contact-box__action{padding-left:0;max-width:540px;width:100%;justify-self:center}
  .newsletter__inner{padding-block:16px;flex-direction:column;align-items:stretch}
  .newsletter__form{min-width:0;width:100%}
}

@media (max-width:680px){
  .container{width:min(var(--max),calc(100% - 24px))}
  .desktop-only{display:none}
  .hero__copy{padding-top:34px}
  .hero h1{font-size:40px}
  .hero p{font-size:15px}
  .benefits__grid{grid-template-columns:1fr;padding-block:18px}
  .benefit{padding:2px 8px}
  .section{padding-top:28px}
  .section h2{font-size:27px}
  .solution-grid{grid-template-columns:1fr}
  .solution-card{min-height:190px}
  .solution-card:last-child{grid-column:auto;max-width:none}
  .type-grid{grid-template-columns:1fr}
  .type-card:last-child{grid-column:auto;max-width:none}
  .product-grid{grid-template-columns:1fr 1fr}
  .logo-row{grid-template-columns:repeat(2,1fr);gap:16px 30px}
  .contact-line b{font-size:20px}
  .newsletter__form{grid-template-columns:1fr}
  .newsletter__form button{width:100%}
  .footer__grid{grid-template-columns:1fr 1fr;gap:28px 20px}
  .footer__brand{grid-column:1/-1}
}

@media (max-width:460px){
  .hero h1{font-size:34px}
  .btn--primary{width:100%}
  .product-grid{grid-template-columns:1fr}
  .product-card img{width:auto;height:auto;max-width:100%;max-height:135px}
  .contact-box{padding:22px 18px}
  .contact-box__copy h2{font-size:27px}
  .contact-line{align-items:flex-start}
  .contact-line b{font-size:18px}
  .footer__grid{grid-template-columns:1fr}
  .footer__brand{grid-column:auto}
}

/* === SHOPTET: skrytí lupy pro vyhledávání v hlavičce === */
#header .top-nav-button-search,
#header button[data-target="search"],
#header button[data-dialog-id="search"],
#header a[data-target="search"] {
  display: none !important;
}

.shp-tabs-wrapper.homepage-tabs-wrapper {
    display: none !important;
}

/* =====================================================
   ŘEŠENÍ – VLASTNÍ IKONY KARET
   Obrázky jsou načítány z FTP složky /assets/img/
   ===================================================== */

/* Skrytí původní ikony / obrázku v kartě */
.solution-card .line-icon {
    display: none !important;
}

/* Společné nastavení prostoru pro ikonu */
.solution-card::before {
    content: "";
    display: block;
    width: 56px;
    height: 52px;
    margin: 0 auto 8px;
    flex: 0 0 52px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 1. Firemní vozidla */
.solution-card:nth-child(1)::before {
    background-image: url("/user/documents/upload/icons/firemni_vozidlo.png");
}

/* 2. Stroje a technika */
.solution-card:nth-child(2)::before {
    background-image: url("/user/documents/upload/icons/stroje_technika.png");
}

/* 3. Logistika a doprava */
.solution-card:nth-child(3)::before {
    background-image: url("/user/documents/upload/icons/logistika_doprava.png");
}

/* 4. Střežení majetku */
.solution-card:nth-child(4)::before {
    background-image: url("/user/documents/upload/icons/strezeni_majetku.png");
}

/* 5. Docházka zaměstnanců */
.solution-card:nth-child(5)::before {
    background-image: url("/user/documents/upload/icons/dochazka.png");
}

/* =========================================================
   HOMEPAGE – VŠECHNY HLAVNÍ SEKCE STEJNĚ ŠIROKÉ JAKO CTA
   Desktop: 24 px od levého a pravého okraje okna.
   Max-width je záměrně zrušený – sekce se roztáhnou s obrazovkou.
   ========================================================= */

.hero > .container,
.benefits > .container,
.section > .container,
.contact-cta > .container {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* CTA zůstává referenční šířkou a nesmí dostat další omezení */
.contact-cta,
.contact-cta .contact-box {
    width: 100% !important;
    max-width: none !important;
}

.contact-cta .contact-box {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .hero > .container,
    .benefits > .container,
    .section > .container,
    .contact-cta > .container {
        width: calc(100% - 32px) !important;
    }
}

/* Mobil */
@media (max-width: 680px) {
    .hero > .container,
    .benefits > .container,
    .section > .container,
    .contact-cta > .container {
        width: calc(100% - 24px) !important;
    }
}

/* =====================================================
   GLOBÁLNĚ – CTA TLAČÍTKO „POPTAT ŘEŠENÍ“
   ===================================================== */
.contact-cta .btn,
.contact-cta .btn--wide,
.contact-cta a.btn,
.contact-cta button.btn {
    font-weight: 700 !important;
}




/* =====================================================
   SHOPTET – FINÁLNÍ POJISTKA MENU
   ===================================================== */
@media (min-width: 992px) {
    /* Duplicitní mobilní akce („Přihlášení“) zůstávají na desktopu skryté. */
    #header #navigation .navigation-in > ul.navigationActions {
        display: none !important;
    }

    /*
     * Nezasahovat do display/visibility položek menu ani do .splitted.
     * O tom, kdy se objeví „Více“, rozhoduje nativní Shoptet podle šířky.
     */
}


/* =====================================================
   SHOPTET – HLAVNÍ MENU POSUNUTÉ NÍŽE K DOLNÍMU OKRAJI
   ===================================================== */
@media (min-width: 992px) {
    #header #navigation .navigation-in > ul.menu-level-1 {
        position: relative !important;
        top: 15px !important;
    }
}

/* =====================================================
   GLOBÁLNÍ CTA – ONI CONTACT CTA BUTTON
   ===================================================== */

.oni-contact-cta__button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 84px;
    padding: 18px 30px;
    box-sizing: border-box;
    background: #f5121c;
    color: #ffffff !important;
    font-size: 17px;
    line-height: 1;
    font-weight: 400;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.oni-contact-cta__button:hover {
    background: #d9000d;
    color: #ffffff !important;
}

.oni-contact-cta__button span {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.oni-contact-cta__button:hover span {
    transform: translateX(5px);
}

@media (max-width: 650px) {
    .oni-contact-cta__button {
        min-height: 64px;
        font-size: 15px;
    }
}

/* =====================================================
   SHOPTET – KLIKATELNÉ LOGO NA TITULNÍ STRÁNKU
   ===================================================== */

/*
 * Logo je v Shoptetu už vložené uvnitř odkazu na homepage.
 * Tato pravidla zajistí, že klikací plochu loga nepřekryje
 * navigace ani horní kontaktní vrstva.
 */
#header .site-name {
    position: relative !important;
    z-index: 50 !important;
}

#header .site-name > a,
#header .site-name > a[data-testid="linkWebsiteLogo"] {
    position: relative !important;
    z-index: 51 !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Kliknutí na obrázek se předá nadřazenému odkazu. */
#header .site-name > a img {
    pointer-events: none !important;
}

/*
 * Absolutně umístěná horní kontaktní vrstva nesmí překrýt logo.
 * Samotný e-mail a telefon zůstávají klikatelné.
 */
.top-header {
    pointer-events: none !important;
}

.top-header a,
.top-header button,
.top-header input {
    pointer-events: auto !important;
}

/* =====================================================
   SHOPTET – MENŠÍ MEZERY KOLEM HLAVNÍHO MENU
   Bez změny pořadí prvků a bez narušení nativního „Více“
   ===================================================== */

@media (min-width: 1400px) {

    /*
     * Navigace dál zabírá původní volný prostor mezi logem
     * a pravými ikonami. Neměníme order ani strukturu flexu.
     */
    #header #navigation {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    #header #navigation .navigation-in {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /*
     * Menu je širší než dříve, takže první položka je blíž
     * k logu a poslední položka blíž k přihlášení.
     * Položky se přitom neroztahují přes celou hlavičku.
     */
    #header #navigation .navigation-in > ul.menu-level-1 {
        flex: 0 1 1320px !important;
        width: 1320px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: space-between !important;
    }

    /* Menší mezera přímo za logem */
    #header .site-name {
        margin-right: 10px !important;
    }

    /*
     * Pravou skupinu necháváme v původním pořadí.
     * Pouze odstraníme případnou nadbytečnou levou mezeru.
     */
    #header .navigation-buttons {
        margin-left: 10px !important;
    }
}
/* OPRAVA MENU – nepřekrývá logo */
@media (min-width: 992px) {
    #header #navigation .navigation-in {
        position: static !important;
        inset: auto !important;
        transform: none !important;
    }

    #header #navigation .navigation-in > ul.menu-level-1 {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
    }
}

/* MENU A IKONY BLÍŽE K SOBĚ */
@media (min-width: 992px) {
    /* Menu vycentrujeme v dostupném prostoru hlavičky. */
    #header #navigation .navigation-in > ul.menu-level-1 {
        justify-content: center !important;
    }

    /* Zmenšení prázdného prostoru před ikonami. */
    #header .navigation-buttons {
        width: auto !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        padding-left: 8px !important;
    }

    /* Kompaktnější klikací plochy přihlášení a košíku. */
    #header .navigation-buttons .top-nav-button-login,
    #header .navigation-buttons .cart-count {
        width: 54px !important;
        flex: 0 0 54px !important;
    }
}

/* Při zvětšení stránky na 150 % má Shoptet prostor pro položku „Více“.
   Omezení šířky se týká jen desktopového menu; přesun položek řídí Shoptet. */
@media (min-width: 992px) and (max-width: 1399px) {
    #header #navigation .navigation-in {
        width: calc(100% - 120px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* STABILNÍ ŠIPKA PODMENU – MENU PŘI HOVERU NEODSKAKUJE */
@media (min-width: 992px) {
    #header #navigation .navigation-in > ul.menu-level-1 > li.ext > a {
        position: relative !important;
        padding-right: 36px !important;
        box-sizing: border-box !important;
    }

    #header #navigation .navigation-in > ul.menu-level-1 > li.ext > a .submenu-arrow {
        position: absolute !important;
        top: 50% !important;
        right: 12px !important;
        width: 14px !important;
        height: 14px !important;
        margin: 0 !important;
        flex: none !important;
        transform: translateY(-50%) rotate(0deg) !important;
        transform-origin: center !important;
    }

    #header #navigation .navigation-in > ul.menu-level-1 > li.ext.exp > a .submenu-arrow,
    #header #navigation .navigation-in > ul.menu-level-1 > li.ext:hover > a .submenu-arrow {
        transform: translateY(-50%) rotate(180deg) !important;
    }
}
/* Tlačítka u produktů na titulní stránce – desktop i mobil. */
.type-index .product-card > strong + a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  height: auto !important;
  padding: 12px 18px !important;
  border: 2px solid #ED1C24 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #ED1C24 !important;
  font-family: "Open Sans", sans-serif;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: center;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  transition: background-color .2s, color .2s;
}

/* Hover jen na zařízeních s myší, aby na dotykovém displeji nezůstával aktivní. */
@media (hover: hover) and (pointer: fine) {
  .type-index .product-card > strong + a:hover {
    background: #ED1C24 !important;
    color: #fff !important;
  }
}

.type-index .product-card > strong + a:focus-visible {
  outline: 2px solid #ED1C24;
  outline-offset: 4px;
}

.type-index .product-card > strong + a span {
  display: inline-block !important;
  flex-shrink: 0;
  margin-left: 0;
  color: inherit !important;
}

/* Zmenšení ikon vyhod pouze na mobilu */
@media (max-width: 767px) {
  .benefitBanner .benefitBanner__img {
    transform: scale(0.5) !important;
    transform-origin: center;
  }
}


/* ONI system – mobilní CTA a telefon */

.oni-mobile-cta {
    display: none;
}

@media (max-width: 767px) {

    /* Zrušení původního odsazení */
    #navigation .navigation-in {
        min-height: auto;
        display: block;
        padding-bottom: 0;
    }

    /* Blok pod přihlášením */
    #navigation .oni-mobile-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: static;
        width: 100%;
        margin: 0;
        padding: 5px 20px 20px;
        background: #ffffff;
        box-sizing: border-box;
    }

    /* Červené tlačítko */
    #navigation .oni-mobile-cta-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        background: #ED1C24;
        color: #ffffff !important;
        border-radius: 11px;
        font-family: 'Open Sans', sans-serif;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        text-decoration: none !important;
        box-sizing: border-box;
    }

    #navigation .oni-mobile-cta-link:hover {
        background: #cf1720;
        color: #ffffff !important;
    }

    /* Telefonní číslo */
    #navigation .oni-mobile-phone {
        display: block;
        margin-top: 14px;
        color: #222222 !important;
        font-family: 'Open Sans', sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        text-decoration: none !important;
    }

    #navigation .oni-mobile-phone:hover {
        color: #ED1C24 !important;
    }
}
