/* ==========================================================================
   1. EXTERNÍ FONT (INTER - DLE EVERSOLO.COM) A CELKOVÉ POZADÍ STRÁNEK
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body,
html,
body *:not(i):not([class*="icon"]):not(.shp-icon):not(.fa):not([class*="fa-"]) {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

body,
.overall-wrapper,
#content-wrapper,
.content-wrapper-in {
    background-color: #f5f6f8 !important;
}

.breadcrumbs,
.breadcrumbs-full-width,
.breadcrumbs-wrapper {
    background-color: transparent !important;
    background: transparent !important;
}

@media (min-width: 1440px) {
  .container,
  .carousel-wrapper,
  .benefitBanner.position--benefitHomepage,
  .navigation-wrapper,
  .p-detail-tabs-wrapper,
  .homepage-banners-full-width.middle-banners .banners-content,
  .homepage-banners-full-width.footer-banners .banners-content { 
    width: 1380px !important; 
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.welcome {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Odsazení carouselu od menu - sjednoceno na 22px */
.carousel-wrapper {
    margin-top: 22px !important;
    margin-bottom: 25px !important;
}

@media (max-width: 767px) {
    .carousel-wrapper {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
}

#carousel {
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* ==========================================================================
   2. HORNÍ TMAVÁ LIŠTA S KONTAKTY (TOP BAR)
   ========================================================================== */
.avhifi-top-bar {
    background-color: #181b20 !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    padding: 8px 0 !important;
    position: relative !important;
    z-index: 1001 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.avhifi-top-bar-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.avhifi-top-bar-left {
    display: flex !important;
    align-items: center !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    letter-spacing: 0.2px !important;
}

.avhifi-top-bar-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-left: auto !important;
}

.avhifi-top-bar-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    transition: color 0.2s ease !important;
}

.avhifi-top-bar-item:hover {
    color: #27aae1 !important;
    text-decoration: none !important;
}

.avhifi-top-bar-icon {
    color: #27aae1 !important;
    flex-shrink: 0 !important;
}

.avhifi-top-bar-link {
    font-weight: 600 !important;
    padding-left: 10px !important;
    border-left: 1px solid #334155 !important;
}

@media (max-width: 767px) {
    .avhifi-top-bar-left {
        display: none !important;
    }
    .avhifi-top-bar-right {
        justify-content: center !important;
        width: 100% !important;
        gap: 14px !important;
    }
    .avhifi-top-bar-item {
        font-size: 11px !important;
    }
}

/* ==========================================================================
   3. HLAVIČKA A MENU (DECENTNÍ HRANY NAHOŘE A DOLE U HLAVNÍHO MENU)
   ========================================================================== */
#header,
#header .header-top,
#header .header-bottom,
#header #navigation,
#header .navigation-wrapper {
    background-color: #ffffff !important;
    background-image: none !important;
}

#header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    position: relative !important;
    z-index: 1000 !important;
}

/* Horní a spodní odsazení hlavičky - 22px pro dokonalé sjednocení */
#header .header-top {
    padding: 22px 0 !important;
}

/* Decentní ohraničující pruhy nahoře a dole u hlavního menu */
#header .header-bottom {
    border-top: 1px solid #edf2f7 !important;
    border-bottom: 1px solid #edf2f7 !important;
    padding: 0 !important;
}

#header #navigation .menu-level-1 > li > a {
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

/* Barva textu v navigaci */
#header #navigation a,
#header #navigation a b, 
#header #navigation a span,
#header .menu-helper span {
    color: #475569 !important;
}

#header #navigation a:hover,
#header #navigation a:hover b,
#header #navigation a:hover span {
    color: #27aae1 !important;
}

/* Ovládací ikony vpravo (přihlášení, košík) */
#header .navigation-buttons {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

#header .navigation-buttons a, 
#header .navigation-buttons button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 24px !important; 
    color: #27aae1 !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

#header .navigation-buttons a::before, 
#header .navigation-buttons button::before {
    color: #27aae1 !important;
}

/* Skrytí nadbytečného hamburger menu v horní liště na tabletech i PC */
@media (min-width: 768px) {
    #header .navigation-buttons a[data-target="navigation"],
    #header .navigation-buttons [data-testid="hamburgerMenu"] {
        display: none !important;
    }
}

/* Kontejner vyskakovacích oken (přihlášení, košík) */
#header .user-action {
    position: absolute !important;
    top: 100% !important;
    right: 15px !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#header .user-action .popup-widget {
    pointer-events: auto !important;
}

/* Základní zajištění viditelnosti a velikosti loga */
#header .site-name,
#header .site-name a,
.site-name,
.site-name a {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#header .site-name img,
.site-name img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 52px !important;
    max-height: 52px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Desktopové uspořádání hlavičky */
@media (min-width: 992px) {
    #header .header-top-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 48px !important;
        padding: 0 15px !important;
        position: relative !important;
    }

    /* 1. Logo vlevo (zvětšená a stabilní velikost) */
    #header .site-name,
    #header .header-top-wrapper .site-name,
    .header-top .site-name,
    .site-name {
        display: flex !important;
        align-items: center !important;
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        min-width: 160px !important;
        order: 1 !important;
    }

    #header .site-name a,
    #header .header-top-wrapper .site-name a,
    .site-name a {
        display: flex !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #header .site-name img,
    #header .header-top-wrapper .site-name img,
    .site-name img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 52px !important;
        height: 52px !important;
        width: auto !important;
        max-width: none !important;
    }

    /* 2. Vyhledávací pole vycentrované a na výšku nižší */
    #header .user-action-search {
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 2 !important;
        flex: 1 1 auto !important;
        max-width: 540px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* Skrytí lupy a výchozích widget prvků */
    #header .user-action-search::before,
    #header .user-action-search::after,
    #header .search-widget::before,
    #header .search-widget::after,
    #header .search-widget-close,
    #header .navigation-buttons a[data-target="search"] {
        display: none !important;
        content: none !important;
    }

    #header .user-action-search .search-form,
    #header .user-action-search fieldset {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    /* Nižší, moderní a elegantní vyhledávací input */
    #header .user-action-search .search-form-input-group {
        display: flex !important;
        align-items: center !important;
        background-color: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 20px !important;
        padding: 2px 3px 2px 14px !important;
        transition: all 0.25s ease !important;
        box-sizing: border-box !important;
        width: 100% !important;
        height: 36px !important;
    }

    #header .user-action-search .search-form-input-group:hover {
        border-color: #cbd5e1 !important;
        background-color: #ffffff !important;
    }

    #header .user-action-search .search-form-input-group:focus-within {
        border-color: #27aae1 !important;
        background-color: #ffffff !important;
        box-shadow: 0 0 0 3px rgba(39, 170, 225, 0.15) !important;
    }

    #header .user-action-search .search-input {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 4px 8px !important;
        height: 30px !important;
        font-size: 13px !important;
        color: #1e293b !important;
        width: 100% !important;
        outline: none !important;
    }

    #header .user-action-search .search-button {
        border-radius: 16px !important;
        background-color: #27aae1 !important;
        color: #ffffff !important;
        border: none !important;
        padding: 5px 16px !important;
        height: 28px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: background-color 0.2s ease, transform 0.1s ease !important;
        flex-shrink: 0 !important;
    }

    #header .user-action-search .search-button:hover {
        background-color: #1b8ebf !important;
    }

    /* 3. Měna a ikony vpravo */
    #header .navigation-tools {
        display: flex !important;
        align-items: center !important;
        position: static !important;
        margin: 0 15px 0 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        order: 3 !important;
        width: auto !important;
    }

    #header .navigation-buttons {
        display: flex !important;
        align-items: center !important;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        order: 4 !important;
        width: auto !important;
    }

    /* Našeptávač (Whisperer) - prostorný, nezúžený, s plnou viditelností náhledů */
    #header .user-action-search .searchWhisperer,
    .searchWhisperer {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 700px !important;
        min-width: 650px !important;
        max-width: 90vw !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14) !important;
        z-index: 99999 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        padding: 10px !important;
    }

    #header .searchWhisperer img,
    .searchWhisperer .image,
    .searchWhisperer img {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 60px !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* ==========================================================================
   3. BANNERY (POD CAROUSELEM, STRÁNKOVÉ A LOGA VÝROBCŮ)
   ========================================================================== */
.next-to-carousel-banners .banner-wrapper {
    background-color: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 14px !important;
    padding: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    text-align: center !important;
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.next-to-carousel-banners .banner-wrapper:hover {
    transform: translateY(-5px) !important;
    border-color: #27aae1 !important;
    box-shadow: 0 15px 35px rgba(39, 170, 225, 0.15) !important;
}

.next-to-carousel-banners .banner-wrapper a,
.next-to-carousel-banners .extended-empty {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
}

.next-to-carousel-banners .banner-wrapper a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    text-decoration: none !important;
}

.next-to-carousel-banners .banner-wrapper img {
    max-height: 120px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto 15px auto !important;
}

.custom-banner-content {
    display: block !important;
    margin-top: 5px !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: inherit;
}

.custom-banner-title {
    display: block !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #222324 !important;
    margin-bottom: 0 !important;
}

.custom-banner-desc {
    display: block !important;
    font-size: 13px !important;
    color: #6d6e71 !important;
    line-height: 1.4 !important;
    margin-top: 6px !important;
}

@media (min-width: 992px) {
    .next-to-carousel-banners {
        display: flex !important;
        justify-content: center !important; 
        gap: 20px !important;              
        position: relative !important;
        z-index: 99 !important;
        max-width: 1380px !important;       
        margin: -75px auto 0 auto !important; 
        padding: 0 15px !important;
    }
    .next-to-carousel-banners .banner-wrapper {
        flex: 1 !important;
        max-width: 320px !important;
    }
}

@media (max-width: 991px) {
    .next-to-carousel-banners {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-top: 25px !important;
        padding: 0 10px !important;
    }
    .next-to-carousel-banners .banner-wrapper {
        padding: 15px 10px !important;
    }
    .next-to-carousel-banners .banner-wrapper img {
        max-height: 50px !important;
    }
    .custom-banner-title { font-size: 14px !important; }
    .custom-banner-desc { font-size: 12px !important; }
}

/* Stránkové bannery (Middle a Footer bannery) - text vlevo, obrázek vpravo */
.homepage-banners-full-width.middle-banners,
.homepage-banners-full-width.footer-banners {
    background: transparent !important;
    padding: 25px 0 !important;
    overflow: visible !important;
}

.homepage-banners-full-width.middle-banners .banners-content,
.homepage-banners-full-width.footer-banners .banners-content,
.middle-banners .banners-content,
.footer-banners .banners-content {
    max-width: 1380px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.middle-banners .banner-wrapper,
.footer-banners .banner-wrapper {
    background-color: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.middle-banners .banner-wrapper:hover,
.footer-banners .banner-wrapper:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: #e2e8f0 !important;
}

@media (min-width: 992px) {
    .middle-banners .banner-wrapper a,
    .footer-banners .banner-wrapper a {
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        text-decoration: none !important;
        background-color: #ffffff !important;
        min-height: 360px !important;
        width: 100% !important;
    }

    .middle-banners .banner-wrapper img,
    .footer-banners .banner-wrapper img {
        width: 50% !important;
        max-width: 50% !important;
        height: 100% !important;
        min-height: 360px !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 0 !important;
    }

    .middle-banners .extended-banner-texts,
    .footer-banners .extended-banner-texts {
        width: 50% !important;
        max-width: 50% !important;
        padding: 50px 60px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;
        position: static !important;
        text-align: left !important;
    }

    .middle-banners .extended-banner-title,
    .footer-banners .extended-banner-title {
        font-size: 32px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin-bottom: 14px !important;
        line-height: 1.2 !important;
        display: block !important;
    }

    .middle-banners .extended-banner-text,
    .footer-banners .extended-banner-text {
        font-size: 16px !important;
        color: #64748b !important;
        margin-bottom: 24px !important;
        line-height: 1.6 !important;
        display: block !important;
    }

    .middle-banners .extended-banner-link,
    .footer-banners .extended-banner-link {
        color: #27aae1 !important;
        font-weight: 700 !important;
        font-size: 15px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        text-decoration: none !important;
        transition: color 0.2s ease, transform 0.2s ease !important;
    }

    .middle-banners .extended-banner-link:hover,
    .footer-banners .extended-banner-link:hover {
        color: #1b8ebf !important;
        transform: translateX(3px) !important;
    }
}

@media (max-width: 991px) {
    .middle-banners .banner-wrapper a,
    .footer-banners .banner-wrapper a {
        display: flex !important;
        flex-direction: column !important;
        text-decoration: none !important;
        background-color: #ffffff !important;
    }

    .middle-banners .banner-wrapper img,
    .footer-banners .banner-wrapper img {
        width: 100% !important;
        height: auto !important;
        max-height: 280px !important;
        object-fit: cover !important;
        display: block !important;
    }

    .middle-banners .extended-banner-texts,
    .footer-banners .extended-banner-texts {
        padding: 24px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        position: static !important;
        text-align: left !important;
    }

    .middle-banners .extended-banner-title,
    .footer-banners .extended-banner-title {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-bottom: 8px !important;
    }

    .middle-banners .extended-banner-text,
    .footer-banners .extended-banner-text {
        font-size: 14px !important;
        color: #64748b !important;
        margin-bottom: 16px !important;
        line-height: 1.5 !important;
    }

    .middle-banners .extended-banner-link,
    .footer-banners .extended-banner-link {
        color: #27aae1 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }
}

/* Seznam značek / výrobců jako bílá vizuální tlačítka */
.full-width.benefit-banners-full-width,
.benefit-banners-full-width .container-full-width {
    overflow: visible !important;
}

.benefitBanner.position--benefitHomepage {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 14px !important; 
    padding: 20px 0 10px 0 !important; 
    align-items: stretch !important;
    overflow: visible !important;
}

.benefitBanner.position--benefitHomepage .benefitBanner__item {
    display: flex !important;
    margin: 0 !important;
    padding: 6px !important;
    background: transparent !important;
    overflow: visible !important;
}

.benefitBanner.position--benefitHomepage .benefitBanner__link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    text-decoration: none !important;
    min-height: 75px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.benefitBanner.position--benefitHomepage .benefitBanner__link:hover {
    transform: translateY(-3px) !important;
    border-color: #27aae1 !important;
    box-shadow: 0 0 0 1px #27aae1, 0 8px 22px rgba(39, 170, 225, 0.18) !important;
}

.benefitBanner.position--benefitHomepage .benefitBanner__picture {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.benefitBanner.position--benefitHomepage .benefitBanner__img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 44px !important; 
    object-fit: contain !important;
}

@media (max-width: 1200px) {
    .benefitBanner.position--benefitHomepage {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 767px) {
    .benefitBanner.position--benefitHomepage {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important; 
        padding: 15px 10px !important;
    }
    .benefitBanner.position--benefitHomepage .benefitBanner__link {
        padding: 10px 12px !important;
        min-height: 60px !important;
    }
    .benefitBanner.position--benefitHomepage .benefitBanner__img {
        max-height: 34px !important; 
    }
}

@media (max-width: 480px) {
    .benefitBanner.position--benefitHomepage {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================================================
   4. KATEGORIE - NADPIS A VYVÁŽENÝ POSTRANNÍ PANEL (~250PX)
   ========================================================================== */
.category-title,
h1.category-title,
[data-testid="titleCategory"] {
    font-size: 23px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 5px !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

/* Vyvážená šířka postranního panelu (245px) s dostatkem místa pro filtry */
@media (min-width: 992px) {
    .content-wrapper-in {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    .sidebar.sidebar-left {
        width: 245px !important;
        min-width: 245px !important;
        max-width: 245px !important;
        flex: 0 0 245px !important;
        margin-right: 25px !important;
    }

    main#content.content.narrow {
        width: calc(100% - 270px) !important;
        max-width: calc(100% - 270px) !important;
        flex: 1 1 calc(100% - 270px) !important;
        padding-left: 0 !important;
    }
}

/* ==========================================================================
   4. POSTRANNÍ PANEL (SIDEBAR) – ZABOXOVANÉ FILTRY, CENOVÝ SLIDER, KATEGORIE A TOP 10
   ========================================================================== */
.sidebar .box,
.sidebar-left .box,
.sidebar .box-filters,
.sidebar .box-categories,
.sidebar .box-topProducts {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    padding: 14px !important;
    margin-bottom: 16px !important;
}

/* Horní odsazení prvního boxu pro dokonalou souměrnost s mezerami */
.sidebar .box:first-child,
.sidebar-inner > .box:first-child,
.sidebar .box-filters {
    margin-top: 16px !important;
}

/* Sjednocené nadpisy všech boxů v postranním panelu */
.sidebar .box h3,
.sidebar .box h4,
.sidebar .box .pageElement__heading,
.sidebar .slider-wrapper h4,
.sidebar .filter-section h4 {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #0f172a !important;
}

/* Hlavní nadpis boxu filtrů */
.sidebar .box-filters::before {
    content: "Filtry" !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #0f172a !important;
}

/* --- A. KOMPLETNÍ SKRYTÍ CENOVÉHO SLIDERU A FILTRACE CENY --- */
.sidebar .slider-wrapper,
.sidebar .param-price-filter,
.sidebar #slider,
.sidebar .slider-header,
.box-filters .slider-wrapper,
.filters .slider-wrapper,
[data-testid="priceFilter"] {
    display: none !important;
}

/* --- B. FILTRY (SKLADEM, ZNAČKY, CHECKBOXY) --- */
.sidebar .filter-sections {
    margin-top: 0 !important;
}

.sidebar .filter-section {
    margin-bottom: 12px !important;
}

/* Řádek každé položky filtru */
.sidebar .filter-section fieldset div,
.sidebar .filter-sections fieldset div,
.sidebar .param-filter-top fieldset div {
    position: relative !important;
    display: block !important;
    margin-bottom: 6px !important;
    min-height: 20px !important;
}

/* Skrytý nativní input překrývající checkbox pro zachycení kliknutí */
.sidebar .filter-section input[type="checkbox"],
.sidebar .filter-sections input[type="checkbox"],
.sidebar .param-filter-top input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 18px !important;
    height: 18px !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    cursor: pointer !important;
    z-index: 5 !important;
}

/* Stylový čtvereček checkboxu */
.sidebar .filter-section label.filter-label::before,
.sidebar .filter-sections label.filter-label::before,
.sidebar .param-filter-top label::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

/* Zaškrtnutý stav - podbarvení */
.sidebar .filter-section input:checked + label.filter-label::before,
.sidebar .filter-sections input:checked + label.filter-label::before,
.sidebar .param-filter-top input:checked + label::before,
.sidebar .filter-section input:checked + label::before {
    background-color: #27aae1 !important;
    border-color: #27aae1 !important;
}

/* Zaškrtnutý stav - bílá fajfka (checkmark) */
.sidebar .filter-section input:checked + label.filter-label::after,
.sidebar .filter-sections input:checked + label.filter-label::after,
.sidebar .param-filter-top input:checked + label::after,
.sidebar .filter-section input:checked + label::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 5.5px !important;
    top: 50% !important;
    transform: translateY(-65%) rotate(45deg) !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    box-sizing: border-box !important;
}

/* Popisek filtru s textem a bezpečným odsazením 24px pro čtvereček */
.sidebar .filter-section label.filter-label,
.sidebar .filter-sections label.filter-label,
.sidebar .param-filter-top label.filter-label {
    font-size: 12.5px !important;
    color: #334155 !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 100% !important;
    padding: 2px 0 2px 24px !important;
    margin: 0 !important;
    cursor: pointer !important;
    background: transparent !important;
    text-indent: 0 !important;
    box-sizing: border-box !important;
    transition: color 0.15s ease !important;
}

.sidebar .filter-section label.filter-label:hover,
.sidebar .filter-sections label.filter-label:hover,
.sidebar .param-filter-top label.filter-label:hover {
    color: #27aae1 !important;
}

.sidebar .filter-section label.filter-label:hover::before,
.sidebar .filter-sections label.filter-label:hover::before,
.sidebar .param-filter-top label:hover::before {
    border-color: #27aae1 !important;
}

/* Počet produktů vedle filtru */
.sidebar .filter-count {
    font-size: 11px !important;
    color: #94a3b8 !important;
    background: #f1f5f9 !important;
    padding: 1px 6px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

/* Rolovací seznam značek */
.sidebar #manufacturer-filter fieldset {
    max-height: 200px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    padding-right: 4px !important;
    margin: 0 !important;
    border: none !important;
}

/* Tlačítko pro rozbalení dalších filtrů */
.sidebar .toggle-filters {
    display: inline-block !important;
    font-size: 12px !important;
    color: #27aae1 !important;
    font-weight: 600 !important;
    padding: 4px 0 !important;
    text-decoration: none !important;
}

/* Tlačítko Vymazat filtry */
.sidebar .clear-filters,
.sidebar a[href*="clearFilters"],
.sidebar .filter-section-clear a {
    display: block !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #ef4444 !important;
    padding: 6px 0 !important;
    text-decoration: none !important;
    margin-top: 6px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.sidebar .clear-filters:hover,
.sidebar a[href*="clearFilters"]:hover {
    color: #dc2626 !important;
    text-decoration: underline !important;
}

/* Celkový počet položek */
.sidebar .filter-total-count {
    font-size: 12px !important;
    color: #64748b !important;
    margin-top: 8px !important;
    padding-top: 6px !important;
    border-top: 1px solid #f1f5f9 !important;
    text-align: center !important;
}

/* --- C. STROM KATEGORIÍ --- */
#categories .categories .cat-trigger {
    display: none !important;
}

#categories .categories .topic {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

#categories .categories .topic a {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    padding: 4px 8px !important;
    display: block !important;
    line-height: 1.35 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
}

#categories .categories .topic a:hover,
#categories .categories .topic.active a,
#categories .categories.active > .topic a {
    color: #27aae1 !important;
    background-color: #f0f9ff !important;
    font-weight: 600 !important;
}

#categories .categories ul {
    margin: 2px 0 4px 10px !important;
    padding: 0 0 0 8px !important;
    border-left: 1px solid #e2e8f0 !important;
    list-style: none !important;
}

#categories .categories ul li {
    margin: 0 !important;
    padding: 0 !important;
}

#categories .categories ul li a {
    font-size: 12px !important;
    color: #64748b !important;
    padding: 2px 6px !important;
    display: block !important;
    line-height: 1.3 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
}

#categories .categories ul li a:hover,
#categories .categories ul li.active a {
    color: #27aae1 !important;
    background-color: #f0f9ff !important;
    font-weight: 500 !important;
}

#categories #cat-manufacturers ul.menu-level-2 {
    max-height: 240px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
}

#categories #cat-manufacturers ul.menu-level-2 li a {
    font-size: 12px !important;
    padding: 2px 6px !important;
    line-height: 1.3 !important;
}

/* --- D. TOP 10 PRODUKTŮ --- */
.sidebar .box-topProducts .top-products {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sidebar .box-topProducts .top-products li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #f8fafc !important;
}

.sidebar .box-topProducts .top-products li:last-child {
    border-bottom: none !important;
}

.sidebar .box-topProducts .top-products-image {
    flex-shrink: 0 !important;
}

.sidebar .box-topProducts .top-products-image img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    border: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
    padding: 2px !important;
}

.sidebar .box-topProducts .top-products-content {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

.sidebar .box-topProducts .top-products-name {
    font-size: 12px !important;
    color: #334155 !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 2px !important;
    transition: color 0.15s ease !important;
}

.sidebar .box-topProducts .top-products-name:hover {
    color: #27aae1 !important;
}

.sidebar .box-topProducts .top-products-content strong {
    font-size: 12.5px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

.homepage-group-title,
.homepage-products-heading-1,
.homepage-products-heading-2 {
    margin-top: 25px !important;
    margin-bottom: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
}

/* ==========================================================================
   5. PRODUKTOVÉ KARTY (ČTVERCOVÉ OBRÁZKY 1:1)
   ========================================================================== */
.product-slider .product,
.homepage-products-1 .product,
.products-wrapper:not(.products-top-wrapper) .product,
#products:not(#productsTop) .product {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.product-slider .product .p,
.products-block .product .p,
.products-wrapper:not(.products-top-wrapper) .product .p,
#products:not(#productsTop) .product .p {
    background-color: #ffffff !important;
    border-radius: 14px !important;
    padding: 16px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.product-slider .product .p:hover,
.products-block .product .p:hover,
.products-wrapper:not(.products-top-wrapper) .product .p:hover,
#products:not(#productsTop) .product .p:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: #e2e8f0 !important;
}

/* Čtvercové náhledové obrázky v poměru 1:1 */
.product .p .image,
.product-slider .product .p .image,
.products-block .product .p .image,
.products-wrapper .product .p .image,
#products .product .p .image {
    border-radius: 10px !important;
    background-color: #ffffff !important;
    padding: 6px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
}

.product .p .image img,
.product-slider .product .p .image img,
.products-block .product .p .image img,
.products-wrapper .product .p .image img,
#products .product .p .image img {
    border-radius: 6px !important;
    background: transparent !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
}

.product-slider .product .p .p-in,
.products-block .product .p .p-in,
.products-wrapper:not(.products-top-wrapper) .product .p-p-in,
#products:not(#productsTop) .product .p-in {
    padding: 12px 0 0 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
}

.product-slider .product .p-in-in,
.products-wrapper:not(.products-top-wrapper) .product .p-in-in,
#products:not(#productsTop) .product .p-in-in {
    margin-bottom: 10px !important;
    text-align: left !important;
}

.p-in-in .name,
.p-in-in .name [data-testid="productCardName"] {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    display: block !important;
}

.p-short-description, 
.p-short-description * {
    color: #64748b !important;
    text-align: left !important;
}

.p .product-appendix,
.p .category-appendix,
.product-appendix,
[data-testid="productCardName"] .product-appendix {
    display: block !important;
    clear: both !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

/* Kód produktu ve výpisu */
.product-slider .product .p-code,
.products-wrapper:not(.products-top-wrapper) .product .p-code,
#products:not(#productsTop) .product .p-code {
    display: block !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin: 6px 0 8px 0 !important;
    text-align: left !important;
}

/* Spodní část karty ve výpisu produktů */
.product-slider .product .p-bottom,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom,
#products:not(#productsTop) .product .p-bottom {
    margin-top: auto !important;
    width: 100% !important;
}

.product-slider .product .p-bottom [data-micro="offer"],
.products-wrapper:not(.products-top-wrapper) .product .p-bottom [data-micro="offer"],
#products:not(#productsTop) .product .p-bottom [data-micro="offer"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 6px 0 !important;
}

.product-slider .product .p-bottom .prices,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .prices,
#products:not(#productsTop) .product .p-bottom .prices {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    float: none !important;
}

.product-slider .product .p-bottom .prices .price,
.product-slider .product .p-bottom .prices .price-final,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .prices .price,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .prices .price-final,
#products:not(#productsTop) .product .p-bottom .prices .price,
#products:not(#productsTop) .product .p-bottom .prices .price-final {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.product-slider .product .p-bottom .prices .price strong,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .prices .price strong,
#products:not(#productsTop) .product .p-bottom .prices .price strong {
    text-align: left !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.product-slider .product .p-bottom .prices .price-save,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .prices .price-save,
#products:not(#productsTop) .product .p-bottom .prices .price-save,
.product .price-save,
.price-save {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #e11d48 !important;
    background: #ffe4e6 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
    margin: 0 0 0 4px !important;
    white-space: nowrap !important;
    float: none !important;
}

.product-slider .product .p-bottom .availability,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .availability,
#products:not(#productsTop) .product .p-bottom .availability {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    text-align: right !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
}

.product-slider .product .p-bottom .ratings-wrapper,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .ratings-wrapper,
#products:not(#productsTop) .product .p-bottom .ratings-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product .p-bottom .ratings-wrapper:empty,
.product .p-bottom .stars-placeholder:empty {
    display: none !important;
}

.product-slider .product .p-bottom .p-tools,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .p-tools,
#products:not(#productsTop) .product .p-bottom .p-tools {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-top: 14px !important;
    display: flex !important;
    justify-content: center !important;
}

.product-slider .product .p-bottom .p-tools form,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .p-tools form,
#products:not(#productsTop) .product .p-bottom .p-tools form {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.product-slider .product .p-bottom .p-tools .btn,
.product-slider .product .p-bottom .p-tools .add-to-cart-button,
.product-slider .product .p-bottom .p-tools .btn-primary,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .p-tools .btn,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .p-tools .add-to-cart-button,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .p-tools .btn-primary,
#products:not(#productsTop) .product .p-bottom .p-tools .btn,
#products:not(#productsTop) .product .p-bottom .p-tools .add-to-cart-button,
#products:not(#productsTop) .product .p-bottom .p-tools .btn-primary {
    width: 100% !important;
    max-width: 220px !important;
    border-radius: 24px !important;
    background-color: #27aae1 !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 11px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(39, 170, 225, 0.25) !important;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
}

.product-slider .product .p-bottom .p-tools .btn:hover,
.product-slider .product .p-bottom .p-tools .add-to-cart-button:hover,
.product-slider .product .p-bottom .p-tools .btn-primary:hover,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .p-tools .btn:hover,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .p-tools .add-to-cart-button:hover,
.products-wrapper:not(.products-top-wrapper) .product .p-bottom .p-tools .btn-primary:hover,
#products:not(#productsTop) .product .p-bottom .p-tools .btn:hover,
#products:not(#productsTop) .product .p-bottom .p-tools .add-to-cart-button:hover,
#products:not(#productsTop) .product .p-bottom .p-tools .btn-primary:hover {
    background-color: #1b8ebf !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(39, 170, 225, 0.35) !important;
}

.product .p-bottom .p-tools .quantity {
    display: none !important;
}

/* ==========================================================================
   6. DETAIL PRODUKTU (DOKONALE ZAROVNANÝ NÁKUPNÍ BOX S TEXTEM VLEVO)
   ========================================================================== */
.p-detail-inner i,
.p-detail-inner [class*="icon"],
.p-detail-inner [class*="icon"]::before,
.p-detail-inner [class*="icon"]::after,
.p-detail-inner .p-actions a::before,
.p-detail-inner .p-actions span::before,
.p-detail-inner .social-buttons a::before {
    font-family: 'Shoptet' !important;
}

.p-detail-inner .brand-wrapper a,
.p-detail-inner [data-testid="productCardBrandName"] {
    color: #27aae1 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-bottom: 6px !important;
}

.p-detail-inner h1,
.p-detail-inner .p-detail-inner-header h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.25 !important;
}

.p-detail-inner .stars-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
}

.p-detail-inner .stars-wrapper .stars-label,
.p-detail-inner .stars-wrapper .stars-link {
    font-size: 13px !important;
    color: #64748b !important;
}

.p-detail-inner .stars-wrapper .stars-link {
    color: #27aae1 !important;
    text-decoration: none !important;
    margin-left: 6px !important;
}

.p-detail-inner .p-short-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin-bottom: 24px !important;
    margin-left: 0 !important;
}

/* Nákupní box: Levá hrana lícuje s textem, kompaktní bílý prostor nad cenou (16px) */
#product-detail-form,
.p-detail-inner #product-detail-form,
.p-info-wrapper #product-detail-form,
.p-detail #product-detail-form {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 16px 24px 18px 24px !important;
    margin-top: 28px !important;
    margin-bottom: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
        "variants variants"
        "price tocart"
        "params params" !important;
    align-items: center !important;
    gap: 16px 20px !important;
    box-sizing: border-box !important;
}

.p-detail-inner .p-variants-block {
    grid-area: variants !important;
    width: 100% !important;
}

.p-detail-inner .p-variants-block:empty,
.p-detail-inner .cofidis-buttons-wrapper:empty {
    display: none !important;
}

/* Řádek 1 (vlevo): Cena s DPH a bez DPH */
.p-detail-inner .p-price-wrapper {
    grid-area: price !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.p-detail-inner .p-price-wrapper .price-final,
.p-detail-inner .p-price-wrapper strong.price-final {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #27aae1 !important;
    line-height: 1.05 !important;
    display: block !important;
    margin: 0 !important;
}

.p-detail-inner .p-price-wrapper .price-additional {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    display: block !important;
}

.p-detail-inner .p-price-wrapper .price-measure:empty {
    display: none !important;
}

/* Řádek 1 (vpravo): Množství a Široké tlačítko do košíku */
.p-detail-inner .p-to-cart-block {
    grid-area: tocart !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
}

.p-detail-inner .p-to-cart-block .add-to-cart {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
}

/* Volič množství [- 1 +] */
.p-detail-inner .quantity {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 24px !important;
    background: #f8fafc !important;
    height: 48px !important;
    width: auto !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.p-detail-inner .quantity button.decrease {
    order: 1 !important;
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 0 !important;
    border-radius: 50% !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.p-detail-inner .quantity label {
    order: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.p-detail-inner .quantity input.amount {
    order: 2 !important;
    width: 40px !important;
    height: 40px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}

.p-detail-inner .quantity button.increase {
    order: 3 !important;
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 0 !important;
    border-radius: 50% !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.p-detail-inner .quantity button.increase:hover,
.p-detail-inner .quantity button.decrease:hover {
    color: #27aae1 !important;
    background-color: #e2e8f0 !important;
}

.p-detail-inner .quantity .increase-tooltip,
.p-detail-inner .quantity .decrease-tooltip {
    display: none !important;
}

/* Větší, širší a dominantní konverzní tlačítko */
.p-detail-inner .add-to-cart-button,
.p-detail-inner .btn-conversion {
    background-color: #27aae1 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 0 40px !important;
    min-width: 180px !important;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 16px rgba(39, 170, 225, 0.35) !important;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.p-detail-inner .add-to-cart-button:hover,
.p-detail-inner .btn-conversion:hover {
    background-color: #1b8ebf !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(39, 170, 225, 0.45) !important;
}

.p-detail-inner .add-to-cart-button i {
    font-size: 17px !important;
}

/* Řádek 2: Dostupnost + Kód vlevo, Zeptat se + Hlídat vpravo - DOKONALE ZAROVNANÉ */
.p-detail-inner .detail-parameters {
    grid-area: params !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 14px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.p-detail-inner .detail-parameter {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    padding: 0 !important;
    height: 28px !important;
    flex: 0 0 auto !important;
}

.p-detail-inner .detail-parameter-availability {
    margin-right: 12px !important;
}

.p-detail-inner .detail-parameter-product-code {
    margin-right: auto !important;
}

.p-detail-inner .detail-parameter-availability .availability-desc-label {
    display: none !important;
}

.p-detail-inner .detail-parameter-availability .availability-label {
    font-weight: 700 !important;
    padding: 5px 10px !important;
    background: #fef3c7 !important;
    border-radius: 6px !important;
    color: #b45309 !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.p-detail-inner .detail-parameter-product-code {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.p-detail-inner .detail-parameter-product-code .p-code-label {
    color: #64748b !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.p-detail-inner .detail-parameter-product-code span:last-child {
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1 !important;
}

/* Akční tlačítka: Zeptat se a Hlídat cenu (perfektně centrované ikonky a text) */
.p-detail-inner .link-icons {
    display: inline-flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    height: 28px !important;
    flex: 0 0 auto !important;
}

.p-detail-inner .link-icons .link-icon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    padding: 4px 6px !important;
    border-radius: 6px !important;
    height: 28px !important;
    box-sizing: border-box !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

.p-detail-inner .link-icons .link-icon:hover {
    color: #27aae1 !important;
    background-color: #f1f5f9 !important;
}

.p-detail-inner .link-icons .link-icon i {
    font-size: 15px !important;
    color: #94a3b8 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: color 0.2s ease !important;
}

.p-detail-inner .link-icons .link-icon i::before {
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.p-detail-inner .link-icons .link-icon:hover i {
    color: #27aae1 !important;
}

/* Úplné skrytí funkcí Tisk a Sdílet */
.p-detail-inner .link-icons .link-icon.print,
.p-detail-inner .link-icons .link-icon.share,
.p-detail-inner .social-buttons,
.p-detail-inner .close-wrapper,
.social-buttons-wrapper .social-buttons,
.social-buttons-wrapper .close-wrapper {
    display: none !important;
}

/* ==========================================================================
   MOBILNÍ RESPONZIVITA (STEJNÁ ŠÍŘKA TLAČÍTEK A DOKONALÉ ZAROVNÁNÍ)
   ========================================================================== */
@media (max-width: 767px) {
    #product-detail-form,
    .p-detail-inner #product-detail-form,
    .p-info-wrapper #product-detail-form,
    .p-detail #product-detail-form {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas:
            "variants variants"
            "price tocart"
            "params params" !important;
        align-items: start !important;
        gap: 16px 12px !important;
        padding: 16px 16px 16px 16px !important;
        margin-top: 20px !important;
        border-radius: 14px !important;
    }

    /* 1. Řádek (vlevo): Cena s DPH v jedné lince s tlačítkem */
    .p-detail-inner .p-price-wrapper {
        grid-area: price !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 2px !important;
        margin: 0 !important;
    }

    .p-detail-inner .p-price-wrapper .price-final,
    .p-detail-inner .p-price-wrapper strong.price-final {
        font-size: 26px !important;
        line-height: 1.1 !important;
    }

    .p-detail-inner .p-price-wrapper .price-additional {
        font-size: 12px !important;
        margin-top: 4px !important;
    }

    /* 1. Řádek (vpravo): Tlačítko do košíku i volič množství mající 100% STEJNOU ŠÍŘKU a vertikální hranu */
    .p-detail-inner .p-to-cart-block {
        grid-area: tocart !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .p-detail-inner .p-to-cart-block .add-to-cart {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: flex-end !important;
        gap: 8px !important;
        width: 155px !important;
        min-width: 155px !important;
        max-width: 155px !important;
    }

    .p-detail-inner .add-to-cart-button,
    .p-detail-inner .btn-conversion {
        height: 46px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        width: 155px !important;
        min-width: 155px !important;
        max-width: 155px !important;
        border-radius: 23px !important;
        box-shadow: 0 4px 14px rgba(39, 170, 225, 0.35) !important;
        box-sizing: border-box !important;
        justify-content: center !important;
    }

    .p-detail-inner .quantity {
        height: 38px !important;
        padding: 0 6px !important;
        border-radius: 19px !important;
        width: 155px !important;
        min-width: 155px !important;
        max-width: 155px !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    .p-detail-inner .quantity button.decrease,
    .p-detail-inner .quantity button.increase {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }

    .p-detail-inner .quantity input.amount {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
    }

    /* 2. Řádek (na mobilu): Všechny prvky v jedné dokonalé horizontální lince */
    .p-detail-inner .detail-parameters {
        grid-area: params !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 14px !important;
        margin-top: 4px !important;
        gap: 6px !important;
        width: 100% !important;
        height: 32px !important;
        box-sizing: border-box !important;
    }

    .p-detail-inner .detail-parameter {
        font-size: 12px !important;
        height: 26px !important;
        line-height: 1 !important;
        margin-right: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .p-detail-inner .detail-parameter-availability .availability-label {
        padding: 4px 8px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        height: 22px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .p-detail-inner .link-icons {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 0 0 auto !important;
        height: 26px !important;
        line-height: 1 !important;
    }

    .p-detail-inner .link-icons .link-icon {
        font-size: 12px !important;
        padding: 0 4px !important;
        height: 26px !important;
        line-height: 1 !important;
        gap: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .p-detail-inner .link-icons .link-icon i {
        font-size: 14px !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* ==========================================================================
   7. POPISKY AV HIFI V ZÁLOŽKÁCH
   ========================================================================== */
.description-inner {
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.avhifi-desc-content,
.avhifi-desc-content p,
.avhifi-desc-content p span,
.avhifi-desc-content div,
.avhifi-desc-content div span,
.avhifi-desc-content li {
    font-size: 16px !important;
}

.avhifi-desc-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    margin: 20px auto;
    color: #334155;
    line-height: 1.6;
}

.avhifi-desc-main-box {
    flex: 1 1 450px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.avhifi-desc-tech-box {
    flex: 1 1 350px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.avhifi-desc-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.avhifi-desc-tech-box .avhifi-desc-title {
    border-bottom: 2px solid #e2e8f0;
}

.avhifi-desc-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #334155;
}

.avhifi-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.avhifi-desc-tech-box .avhifi-desc-content div {
    margin-bottom: 10px;
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
    color: #475569;
}

.avhifi-desc-tech-box .avhifi-desc-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    border-left: 3px solid #3b82f6;
    padding-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avhifi-desc-tech-box .avhifi-desc-content ul {
    margin-left: 0;
    padding-left: 20px;
    color: #475569;
    list-style-type: square;
}

.avhifi-desc-tech-box .avhifi-desc-content li {
    margin-bottom: 6px;
}

/* ==========================================================================
   8. PATIČKA (ČISTĚ BÍLÉ POZADÍ)
   ========================================================================== */
#footer,
.footer,
.footer-bottom-full-width {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #475569 !important;
}

#footer {
    border-top: 1px solid #eef2f6 !important;
    padding-top: 25px !important;
}

.footer-bottom-full-width {
    border-top: 1px solid #f1f5f9 !important;
    padding: 15px 0 !important;
}

#footer h3,
#footer .pageElement__heading,
#footer .pageElement__heading span {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 15px !important;
}

#footer a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#footer a:hover {
    color: #27aae1 !important;
}

#footer .contact-box,
#footer .contact-box strong,
#footer .copyright {
    color: #64748b !important;
}

/* ==========================================================================
   9. SKRÝVÁNÍ SYSTÉMOVÝCH PRVKŮ
   ========================================================================== */
.products-top-wrapper,
#productsTopHeading,
#productsTop,
.products-top-wrapper.has-inactive,
.toggle-top-products,
.footer-newsletter-full-width,
.footer-newsletter,
.benefitBanner.position--benefitCategory,
.benefitBanner.position--benefitProduct,
.basic-description > h4,
.p-variants-block .sold-out-wrapper,
.sold-out-wrapper {
    display: none !important;
}

/* ==========================================================================
   10. POPTÁVKOVÉ TLAČÍTKO V NÁKUPNÍM BOXU A DESIGN POPISŮ
   ========================================================================== */
.p-detail-inner #product-detail-form .avhifi-ask-price-container {
    grid-area: tocart !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.p-detail-inner #product-detail-form .avhifi-ask-price-container a.link-icon.chat {
    width: auto !important;
    min-width: 220px !important;
    height: 48px !important;
    border-radius: 24px !important;
    background-color: #27aae1 !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 0 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(39, 170, 225, 0.3) !important;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.p-detail-inner #product-detail-form .avhifi-ask-price-container a.link-icon.chat:hover {
    background-color: #1b8ebf !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(39, 170, 225, 0.4) !important;
}

.p-detail-inner #product-detail-form .avhifi-ask-price-container a.link-icon.chat span {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.p-detail-inner #product-detail-form .avhifi-ask-price-container a.link-icon.chat::before {
    color: #ffffff !important;
    font-size: 16px !important;
}

/* ==========================================================================
   11. DETAIL PRODUKTU - ZAOBLENÝ HLAVNÍ OBRÁZEK A NÁHLEDY (THUMBNAILS)
   ========================================================================== */
.p-image-wrapper .p-image,
.p-image,
.p-image #wrap,
.p-image .p-main-image,
.p-image .p-main-image img,
.p-image .mousetrap {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.p-image {
    background-color: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    padding: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    position: relative !important;
}

.p-image .p-main-image img {
    border-radius: 8px !important;
    object-fit: contain !important;
}

/* Zaoblené příznaky přes hlavní obrázek */
.p-image .flags {
    top: 15px !important;
    left: 15px !important;
    z-index: 60 !important;
}

.p-image .flags .flag {
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
}

/* Miniatury / Thumbnails se zaoblenými rohy */
.p-thumbnails-wrapper .p-thumbnails .p-thumbnail,
.p-thumbnails .p-thumbnail {
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #eef2f6 !important;
    background: #ffffff !important;
    padding: 2px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

.p-thumbnails .p-thumbnail:hover,
.p-thumbnails .p-thumbnail.highlighted {
    border-color: #27aae1 !important;
    box-shadow: 0 3px 10px rgba(39, 170, 225, 0.25) !important;
    transform: translateY(-2px) !important;
}

.p-thumbnails .p-thumbnail img {
    border-radius: 6px !important;
    object-fit: contain !important;
}

