@media (min-width: 992px) { /* Pouze pro desktop zařízení */

    /* ========================================================
       1. SPOLEČNÉ NASTAVENÍ (PRO VŠECHNY STRÁNKY)
       ======================================================== */
    
    /* Roztažení hlavičky na celou šířku */
    #header .container.navigation-wrapper {
        max-width: 100% !important;
        width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    #header {
        z-index: 1000 !important;
        transition: background-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
    }

    .fitted .navigation-in ul { justify-content: center; }
    .navigation-in { background-color: transparent; }
    .container.navigation-wrapper .site-name { flex-basis: 290px; }

    /* Animace podtržení položek menu */
    #navigation > div > ul > li > a { position: relative; }
    #navigation > div > ul > li > a::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        bottom: 24px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 0 !important;
        height: 1px !important;
        background-color: #e63946 !important;
        transition: width 0.3s ease !important;
    }
    #navigation > div > ul > li > a:hover::after {
        width: calc(100% - 10px) !important;
    }

    /* Vzhled rozbalovacího menu (toho běžného) */
    #navigation > div > ul > li > ul {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    #navigation > div > ul > li > ul > li > a {
        display: block !important;
        padding: 8px 20px !important;
        color: #555 !important;
        background: transparent !important;
        border: none !important;
        text-decoration: none !important;
        transition: background 0.2s ease, color 0.2s ease !important;
        text-align: left !important;
    }
    #navigation > div > ul > li > ul > li > a:hover {
        background: #f5f5f5 !important;
        color: #000 !important;
    }

    /* Ikonky navigace a jejich hover efekty */
    #header > div > div.navigation-buttons > a,
    #header > div > div.navigation-buttons > button {
        background: transparent; 
    }
    #header > div > div.navigation-buttons > a::before,
    #header > div > div.navigation-buttons > button::before {
        transition: color 0.3s ease, transform 0.3s ease;
    }
    #header > div > div.navigation-buttons > a:hover::before,
    #header > div > div.navigation-buttons > button:hover::before {
        color: red; font-weight: bold; transform: translateY(-5px);
    }

    /* --- REZERVACE MÍSTA PRO IKONY --- */
    #header .navigation-buttons {
        flex: 0 0 250px !important; /* Pevná šířka, aby měl Shoptet jasno */
        width: 250px !important;
        justify-content: flex-end;
    }

    /* --- VYSOUVACÍ BOČNÍ MENU (MENU HELPER - VÍCE) --- */
    #header .menu-helper {
        position: relative !important; /* Bezpečná pozice vedle menu */
        right: auto !important; 
        z-index: 9999 !important;
        margin-left: 10px;
    }
    #header .menu-helper,
    #header .menu-helper .menu-level-1 {
        overflow: visible !important;
        max-height: none !important;
    }
    #header .menu-helper .menu-level-1 > li.ext {
        position: relative !important;
    }
    #header .menu-helper .menu-level-1 > li.ext > .menu-level-2 {
        display: none !important;
    }
    #header .menu-helper .menu-level-1 > li.ext:hover > .menu-level-2 {
        display: block !important;
        position: absolute !important;
        top: -10px !important; 
        
        /* Podmenu se vyklápí DOLEVA, aby nezmizelo mimo obrazovku */
        left: auto !important;
        right: 100% !important; 
        
        min-width: 220px !important;
        background: #ffffff !important;
        border: 1px solid #e5e5e5 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        padding: 8px 0 !important;
        z-index: 1200 !important;
        border-radius: 4px !important;
        margin-right: 5px !important;
    }
    
    /* Neviditelný most pro myš na pravé straně (aby podmenu nezmizelo při přejíždění kurzorem) */
    #header .menu-helper .menu-level-1 > li.ext > .menu-level-2::before {
        content: ''; 
        position: absolute; 
        top: 0; 
        right: -15px; 
        left: auto; 
        width: 15px; 
        height: 100%;
    }
    
    #header .menu-helper .menu-level-2 li {
        padding: 0 !important; margin: 0 !important;
    }
    #header .menu-helper .menu-level-2 a {
        display: block !important; padding: 8px 20px !important;
        color: #1f1f1f !important; text-decoration: none !important;
        white-space: nowrap !important; font-weight: normal !important;
    }
    #header .menu-helper .menu-level-2 a:hover {
        background-color: #f6f6f6 !important; color: #000 !important;
    }
    
    /* Zabrání vyjetí podmenu mimo obrazovku i v hlavním menu (u posledních položek) */
    #navigation > div > ul.menu-level-1 > li.ext:nth-last-child(-n+3) > ul.menu-level-2 {
        left: auto !important;
        right: 0 !important;
    }


    /* ========================================================
       2. POUZE ÚVODNÍ STRANA (.type-index)
       ======================================================== */
    
    body.type-index #header {
        position: fixed !important;
        top: 0; left: 0; width: 100%;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        backdrop-filter: blur(8px) brightness(0.5);
    }
    body.type-index #navigation > div > ul > li > a,
    body.type-index #header > div > div.navigation-buttons > a,
    body.type-index #header > div > div.navigation-buttons > button {
        color: white;
    }
    body.type-index #header > div > div.site-name > a > img {
        filter: invert(1);
    }

    body.type-index.is-scrolled #header {
        background: #ffffff !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: none;
    }
    body.type-index.is-scrolled #navigation > div > ul > li > a,
    body.type-index.is-scrolled #header > div > div.navigation-buttons > a,
    body.type-index.is-scrolled #header > div > div.navigation-buttons > button {
        color: black;
    }
    body.type-index.is-scrolled #header > div > div.site-name > a > img {
        filter: invert(0);
    }


    /* ========================================================
       3. PRO VŠECHNY OSTATNÍ STRÁNKY (:not(.type-index))
       ======================================================== */
    
    body:not(.type-index) #header {
        position: sticky !important;
        top: 0;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    body:not(.type-index).is-scrolled #header {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }
    body:not(.type-index) #navigation > div > ul > li > a,
    body:not(.type-index) #header > div > div.navigation-buttons > a,
    body:not(.type-index) #header > div > div.navigation-buttons > button {
        color: #1f1f1f; 
    }
    
    #header > div > div.menu-helper.visible > span {background: transparent; color: white;}
    body.is-scrolled #header > div > div.menu-helper.visible > span {color: black;}

    #header > div > div.menu-helper.visible > ul > li > a:hover {background: #f6f6f6 !important;}
    .submenu-visible li.exp>a .submenu-arrow:after {transform: rotate(-90deg);}
}

/* Změna loga pro mobilní zařízení (šířka displeje 991px a méně) */
@media (max-width: 991px) {
    .site-name a img {
        content: url("https://www.pletovyterapeut.cz/user/documents/upload/admin/logo_m.png") !important;
        max-width: 100%;
        height: auto;
    }
}

/* Skrytí původních Shoptet záložek (tabů) na hlavní straně */
body.type-index .homepage-tabs-wrapper .shp-tabs-holder {
    display: none !important;
}

/* Skrytí obsahu, který se nepodařilo inicializovat do slideru */
body.type-index .tab-content .tab-pane:not(.slider-ready) {
    display: none !important;
    opacity: 0;
}

/* Zajištění zobrazení sekcí, které se podařilo převést na slidery */
.tab-content .tab-pane.slider-ready {
    display: block !important;
    opacity: 1;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
}

/* Agresivní přebití Shoptet gridu */
.products-block > div.db-slider-wrapper,
.tab-pane > div.db-slider-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    display: flex !important;
}

/* Obal celého slideru */
.db-slider-wrapper {
    position: relative;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px; 
}

/* Posuvná dráha */
.db-slider-track {
    display: flex !important;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    width: 100% !important; 
    margin: 0 auto !important;
    cursor: grab;
    padding: 10px 0;
    float: none !important;
}

.db-slider-track::-webkit-scrollbar { display: none; }
.db-slider-track:active { cursor: grabbing; }

/* Karta produktu - celá jako klikatelná plocha */
.db-slider-item {
    flex: 0 0 calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
    width: calc(25% - 15px) !important;
    scroll-snap-align: start;
    user-select: none;
    background: #fff;
    display: block !important;
    float: none !important;
    box-sizing: border-box;
    cursor: pointer; 
}

/* ZÁKAZ TAHÁNÍ OBRÁZKŮ A TEXTŮ (GHOST DRAG) */
.db-slider-item img, 
.db-slider-item a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}

@media (max-width: 1024px) { 
    .db-slider-item { flex: 0 0 calc(33.333% - 13.33px) !important; max-width: calc(33.333% - 13.33px) !important; width: calc(33.333% - 13.33px) !important; } 
}
@media (max-width: 768px) { 
    .db-slider-item { flex: 0 0 calc(50% - 10px) !important; max-width: calc(50% - 10px) !important; width: calc(50% - 10px) !important; } 
}
@media (max-width: 480px) { 
    .db-slider-item { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; } 
}

.db-slider-item .product { width: 100% !important; margin: 0 !important; }

/* Zelené šipky */
.db-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 60px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s ease;
    padding: 0;
}
.db-arrow:hover { transform: translateY(-50%) scale(1.1); }
.db-arrow.prev { left: 0; }
.db-arrow.next { right: 0; }
.db-arrow svg {
    width: 40px; height: 60px; stroke: #000; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round;
}

/* --- NOVÉ STYLY PRO ŠIPKY V NADPISU --- */
.homepage-group-title.has-arrows,
.has-arrows {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; 
    gap: 20px !important; 
    flex-wrap: wrap !important;
    text-align: center !important; 
    margin-bottom: 20px !important; 
    width: 100% !important; 
}

.db-arrows-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.db-arrow.db-arrow-top {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    width: 44px !important;
    height: 44px !important;
    box-shadow: none;
    transition: all 0.2s ease;
}

.db-arrow.db-arrow-top:hover {
    transform: scale(1.05) !important;
}

.db-arrow.db-arrow-top:hover svg {
    stroke: #000;
}

.homepage-group-title {
    display: flex;
    justify-content: center;
}

#content > div.index-content-wrapper > div.homepage-texts-wrapper > div.top-products-wrapper.js-top10 {
    display: none !important;
}

/* ========================================================
   PROFESIONÁLNÍ LAZY LOADING ANIMACE
   ======================================================== */

.lazy-bottom {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lazy-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lazy-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lazy-fade {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.lazy-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.db-arrow.disabled {
    opacity: 0.3 !important;
    cursor: default !important;
    pointer-events: none !important;
}

.products-block .p {transition: transform 0.3s ease, -webkit-box-shadow 0.3s ease, box-shadow 0.3s ease;}
.products-block .p:hover {box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1); transform: translateY(-6px);}

/* Obal vyskakovacího okna (lightboxu) */
.myfox-lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999; 
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.myfox-lightbox.zobrazit {
    display: flex;
    opacity: 1;
}

.myfox-obsah {
    position: relative;
    width: 95%;
    max-width: 900px;
    height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.myfox-zavrit {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    line-height: 1;
    transition: background 0.2s;
}

.myfox-zavrit:hover {
    background: #f0f0f0;
}

.myfox-obsah iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- SJEDNOCENÍ VÝŠKY KARET A ZAROVNÁNÍ TLAČÍTEK --- */
.db-slider-item { display: flex !important; flex-direction: column; }
.db-slider-item .p { display: flex !important; flex-direction: column; height: 100% !important; }
.db-slider-item .p-in { display: flex !important; flex-direction: column; flex-grow: 1; }
.db-slider-item .p-in-in { flex-grow: 1; }
.db-slider-item .p-bottom { display: flex; flex-direction: column; flex-shrink: 0; }
.db-slider-item .prices { min-height: 55px; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 10px; }
.db-slider-item .p-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 85px; margin-top: 15px; }


/* --- STYLY PRO SOCIÁLNÍ IKONY V HLAVIČCE (DESKTOP) --- */
.social-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; 
    height: 44px;
    color: var(--_color-header-text, #000); 
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    margin-right: 5px; 
}
.social-nav-icon:last-of-type { margin-right: 12px; }
.social-nav-icon:hover { color: red !important; transform: translateY(-5px); }
.social-nav-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: translateY(4px); }


/* --- SKRYTÍ NA MOBILECH A BEZPEČNÁ ÚPRAVA HLAVIČKY (pod 992px) --- */
@media (max-width: 991px) {
    .content-wrapper {transform: translateY(35px);}
    
    .navigation-buttons .social-nav-icon,
    #header > .navigation-buttons a.social-nav-icon {
        display: none !important;
    }

    #header,
    #header .navigation-wrapper { 
        height: 75px !important;
        min-height: 75px !important; 
    }
    
    #header .site-name {
        height: 75px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .site-name a img { 
        content: url("https://www.pletovyterapeut.cz/user/documents/upload/admin/logo_m.png") !important;
        max-height: 45px !important; 
        max-width: 180px !important; 
        width: auto !important; 
        object-fit: contain !important; 
    }
    
    #header .navigation-buttons { 
        height: 75px !important; 
        display: flex !important; 
        align-items: center !important;
        top: 0 !important;
    }
    
    .navigation-buttons > a, 
    .navigation-buttons > button { 
        height: 44px !important; 
        min-width: 44px !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

.mobile-social-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px 30px 20px;
    gap: 15px; 
    border-top: 1px solid #eee; 
    margin-top: 10px;
}
.mobile-social-container .social-nav-icon {
    margin-right: 0 !important; 
}
@media (min-width: 992px) {
    .mobile-social-container { display: none !important; }
}

@media (min-width: 992px) {
    /* Zmenšíme mezery mezi jednotlivými položkami v hlavním menu na desktopu a zakážeme zalamování textu uvnitř tlačítek */
    #navigation .menu-level-1 > li > a {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 15px; 
        white-space: nowrap !important; /* Toto zajistí, že se text nezalomí uvnitř samotného tlačítka */
    }
}
    
.content-wrapper {background-color: #f1f1f1;}
.db-product {background: #f1f1f1;}
.db-product > div {background: #ffffff;}

.benefitBanner__item {
    justify-content: center;
    margin: 10px 10px;
}
@media (max-width: 991px) {
    .benefitBanner__item {
        justify-content: left !important;
    }
}
#wrap {
    border: 1px solid #dadada;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}