/* =========================================================
   Cafepoint – mobilné úpravy (2026-11-22)
   ========================================================= */

/* 1) Box s bodmi na detaile produktu
   Príčina: pravidlo `.card .card-text { color:#fff }` (pre kartičky kontinentov)
   prebíja text v boxe bodov. Oprava farby bola naviazaná na triedu
   `.apollo-mehub`, ktorú pridáva JavaScript až po načítaní – na mobile
   sa to často nestihne, a tak ostane biely text na svetlom pozadí. */
.mehub-bonus-product-detail-container .card {
    background-color: rgb(236, 236, 240) !important;
    border-color: rgb(236, 236, 240) !important;
    border-radius: 0 !important;
}
.mehub-bonus-product-detail-container .card .card-text,
.mehub-bonus-product-detail-container .card .card-text a,
.mehub-bonus-product-detail-container .card .card-text b {
    color: rgb(65, 65, 110) !important;
}

@media (max-width: 767px) {

    /* 2) Kocky podkategórií – bez šípky */
    .subcategories a::before {
        display: none !important;
    }

    /* 3) Filtre + Zoradiť podľa vedľa seba (ako cruizeer.com) */
    .category-content-wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        column-gap: 12px;
    }
    .category-content-wrapper > * {
        flex: 0 0 100%;
        min-width: 0;
    }
    .category-content-wrapper > .filters-unveil-button-wrapper {
        flex: 0 0 calc(40% - 6px);
        order: 0;
        margin: 0 0 16px !important;
        padding: 0 !important;
        border: 0 !important;
    }
    .category-content-wrapper > .dkLab-filters-wrapper {
        flex: 1 1 0;
        order: 1;
        margin: 0 0 16px !important;
        padding: 0 !important;
        border: 0 !important;
    }
    .category-content-wrapper > :not(.filters-unveil-button-wrapper):not(.dkLab-filters-wrapper) {
        order: 2;
    }

    /* spoločný vzhľad oboch tlačidiel */
    .filters-unveil-button-wrapper .unveil-button,
    .dkLab-filters-wrapper .listSorting h4 {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 50px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 16px !important;
        background: rgb(242, 242, 242) !important;
        color: rgb(15, 15, 15) !important;
        border: 0 !important;
        border-radius: 12px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        box-shadow: none !important;
    }

    /* nahradíme pôvodné ikonky jednotnou šípkou dole */
    .filters-unveil-button-wrapper .unveil-button::before,
    .filters-unveil-button-wrapper .unveil-button::after,
    .dkLab-filters-wrapper .listSorting h4::before,
    .dkLab-filters-wrapper .listSorting h4::after {
        content: none !important;
        display: none !important;
    }
    .filters-unveil-button-wrapper .unveil-button,
    .dkLab-filters-wrapper .listSorting h4 {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%230f0f0f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 16px center !important;
        padding-right: 40px !important;
    }

    /* hlavička kategórie: zoradenie hore, počet položiek pod ním */
    .dkLab-filters-wrapper .category-header {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    .dkLab-filters-wrapper .listSorting {
        position: relative;
        margin: 0 !important;
        padding: 0 !important;
    }
    .dkLab-filters-wrapper .listItemsTotal {
        display: none !important;
    }

    /* rozbalené zoradenie ako plávajúce menu, nech neposúva stránku */
    .dkLab-filters-wrapper .listSorting__controls {
        position: absolute !important;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 20;
        margin: 0 !important;
        padding: 6px !important;
        background: #fff !important;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    .dkLab-filters-wrapper .listSorting__controls li {
        margin: 0 !important;
        padding: 0 !important;
    }
    .dkLab-filters-wrapper .listSorting__control {
        width: 100%;
        padding: 12px 10px !important;
        text-align: left;
        border-radius: 8px;
        font-size: 14px !important;
        font-weight: 400 !important;
        text-transform: none !important;
        color: rgb(15, 15, 15) !important;
    }
    .dkLab-filters-wrapper .listSorting__control--current {
        font-weight: 600 !important;
        background: rgb(242, 242, 242) !important;
    }

    /* krátky text „Filtrovať" namiesto „Zobraziť filtre" (zmestí sa do 1 riadku) */
    .filters-unveil-button-wrapper .unveil-button {
        font-size: 0 !important;
    }
    html body #content .category-content-wrapper .filters-unveil-button-wrapper div.unveil-button.btn::before {
        content: "Filtrovať" !important;
        display: inline !important;
        position: static !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        font-family: "Google Sans", sans-serif !important;
        color: inherit !important;
        background: none !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
    }

    /* 4) Nadpisy sekcií na úvode – bez odsadenia, menšie,
          „Zobraziť všetko" vždy v jednom riadku */
    .homepage-group-title {
        padding-left: 0 !important;
        font-size: 19px !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        align-items: center !important;
        gap: 16px;
        margin-bottom: 16px !important;
    }
    .homepage-group-title .more-link-right {
        white-space: nowrap !important;
        flex-shrink: 0;
        font-size: 11px !important;
        line-height: 1 !important;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    /* 5) Karty produktov – menšie a prehľadnejšie texty (ako cruizeer.com) */
    .products .product .name,
    .products .product .name span {
        text-transform: none !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
    }
    .products .product .availability,
    .products .product .availability span {
        font-size: 11px !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    .products .product .p-tools {
        text-align: left !important;
        margin: 2px 0 4px !important;
    }
    .products .product .prices {
        margin-bottom: 0 !important;
    }
    .products .product .price-final,
    .products .product .price-final strong {
        font-size: 15px !important;
        font-weight: 600 !important;
    }
    .products .product .price-standard,
    .products .product .price-standard span {
        font-size: 13px !important;
        font-weight: 400 !important;
    }
    .products .product .price-measure {
        font-size: 12px !important;
        margin-top: 2px !important;
    }

    /* 6) Sekcia výhod – pozadie cez celú šírku (bez bielej medzery vpravo),
          menšie ikony a texty, všetko vycentrované */
    .benefitBanner {
        position: relative;
        padding: 28px 0 !important;
    }
    .benefitBanner::before {
        left: 50% !important;
        right: auto !important;
        width: 100vw !important;
        transform: translateX(-50%);
    }
    .benefitBanner__item {
        margin: 10px 0 !important;
        padding: 0 6px;
        text-align: center !important;
    }
    .benefitBanner__content {
        padding: 0 4px !important;
        text-align: center !important;
    }
    .benefitBanner__picture {
        margin-bottom: 8px !important;
        display: flex;
        justify-content: center;
    }
    .benefitBanner__img {
        width: 32px !important;
        height: 32px !important;
    }
    .benefitBanner__title {
        display: block;
        font-size: 13px !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
    }
    .benefitBanner__data {
        font-size: 12px !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        opacity: 0.85;
    }
}
