/* ================================================
   NUTIVA CUSTOM CSS
   v1.6 — máj 2026
   Zmeny: odstránená typografia (TODO), opravený
   selektor zľavovej bubliny pre slider
   ================================================ */


/* ===== TOP PROMO BANNER ===== */

#nutiva-top-banner {
    background: #d62626;
    color: white;
    text-align: center;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 9999;
}
#nutiva-top-banner a {
    color: white;
    text-decoration: none;
    margin-left: 12px;
    background: rgba(255,255,255,0.25);
    border: 2px solid white;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}
#nutiva-top-banner a:hover {
    background: white;
    color: #E84921;
}
#nutiva-top-banner-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
}


/* ===== KATALÓG PRODUKTOV — NÁHĽADY ===== */

#products.products-block {
    align-items: stretch !important;
}
#products .product {
    display: flex !important;
    flex-direction: column !important;
}
.product .p {
    flex: 1 !important;
    display: flex;
    flex-direction: column;
}
.product .p-in {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 10px !important;
}
.product .p-in-in {
    flex: 1;
    padding: 0 !important;
}
.product .p-bottom {
    margin-top: auto;
}
#products .product .p-bottom > div {
    display: block !important;
}
#products .product .p-tools {
    display: block !important;
}
#products .product .p a.name {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    margin: 4px auto 6px !important;
}
#products .product span.quantity {
    display: none !important;
}


/* ===== ZĽAVOVÁ BUBLINA =====
  /* ===== ZĽAVOVÁ BUBLINA ===== */

/* Kategória + detail (pôvodný fungujúci selektor) */
    html body #content-wrapper .flags-extra .flag.flag-discount,
    html body #content-wrapper .p-image-wrapper .flags-extra .flag.flag-discount,
    /* Slider na homepage */
    html body .slick-list .flags-extra .flag.flag-discount,
    html body .slick-track .flags-extra .flag.flag-discount {
        background: linear-gradient(135deg, #e63946 0%, #ff7332 100%) !important;
        background-color: #d32f2f !important;
        background-image: linear-gradient(135deg, #e63946 0%, #ff7332 100%) !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        width: 52px !important;
        height: 52px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Stará cena v bubline - skrytá vizuálne ale čitateľná pre JS */
    html body #content-wrapper .flags-extra .flag.flag-discount .price-standard,
    html body #content-wrapper .p-image-wrapper .flags-extra .flag.flag-discount .price-standard,
    html body .slick-list .flags-extra .flag.flag-discount .price-standard,
    html body .slick-track .flags-extra .flag.flag-discount .price-standard {
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
    }

    html body #content-wrapper .flags-extra .flag.flag-discount .price-save,
    html body #content-wrapper .p-image-wrapper .flags-extra .flag.flag-discount .price-save,
    html body .slick-list .flags-extra .flag.flag-discount .price-save,
    html body .slick-track .flags-extra .flag.flag-discount .price-save {
        font-size: 15px !important;
        font-weight: 800 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        display: block !important;
        text-align: center !important;
    }

/* Stará cena presunutá pod produkt cez JS */
.custom-old-price {
    text-decoration: line-through;
    color: #541717ff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
    text-align: center;
}


/* ===== PODKATEGÓRIE — KARTY ===== */

html body .subcategories.with-image li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 25px 15px !important;
    background-color: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    min-height: 160px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
html body .subcategories.with-image li a:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    border-color: #98ca3e !important;
    transform: translateY(-3px) !important;
}
html body .subcategories.with-image li a img,
html body .subcategories.with-image li a .image {
    width: 90px !important;
    height: 90px !important;
    max-width: 100% !important;
    max-height: 90px !important;
    object-fit: contain !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
}
html body .subcategories.with-image li a span,
html body .subcategories.with-image li a strong,
html body .subcategories.with-image li a .name {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111111 !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    white-space: normal !important;
}


/* ===== SKRYTÉ ELEMENTY ===== */

.latest-contribution-wrapper {
    display: none !important;
}


/* ===== PÄTIČKA ===== */

footer .site-name::after {
    content: "";
    display: block;
    margin-top: 25px;
    width: 100%;
    height: 55px;
    background-image: url("/user/documents/upload/Loga/Eu_founded_By_EU_plan_obnovy.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}
.custom-footer__facebook .fb_iframe_widget,
.custom-footer__facebook .fb_iframe_widget span,
.custom-footer__facebook .fb_iframe_widget iframe {
    width: 100% !important;
    min-width: 250px !important;
    min-height: 214px !important;
    display: block !important;
}


/* ===== RESPONZÍVNOSŤ — MOBILE ===== */

@media (max-width: 767px) {

    /* Podkategórie */
    html body .subcategories.with-image {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    html body .subcategories.with-image li {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-bottom: 10px !important;
    }
    html body .subcategories.with-image li a {
        padding: 15px 5px !important;
        min-height: 120px !important;
        border-radius: 8px !important;
    }
    html body .subcategories.with-image li a img,
    html body .subcategories.with-image li a .image {
        width: 55px !important;
        height: 55px !important;
        max-height: 55px !important;
        margin-bottom: 10px !important;
    }
    html body .subcategories.with-image li a span,
    html body .subcategories.with-image li a strong,
    html body .subcategories.with-image li a .name {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    /* Zľavová bublina */
    html body #content-wrapper .flags-extra .flag.flag-discount,
    html body #content-wrapper .p-image-wrapper .flags-extra .flag.flag-discount,
    tml body .slick-list .flags-extra .flag.flag-discount,
    html body .slick-track .flags-extra .flag.flag-discount {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    html body #content-wrapper .flags-extra .flag.flag-discount .price-save,
    html body #content-wrapper .p-image-wrapper .flags-extra .flag.flag-discount .price-save,
    html body .slick-list .flags-extra .flag.flag-discount .price-save,
    html body .slick-track .flags-extra .flag.flag-discount .price-save {
        font-size: 13px !important;
    }

    /* TOP PROMO BANNER - mobile */
    #nutiva-top-banner {
        font-size: 13px;
        padding: 7px 36px 7px 8px;
        text-align: left;
    }
    #nutiva-top-banner a {
        display: block;
        margin: 5px 0 0 0;
        text-align: center;
        padding: 5px 10px;
        font-size: 13px;
    }
    #nutiva-top-banner-close {
        right: 8px;
    }

}