/* --- General Wrap --- */
.mkwf-wrap {
    display: flex;
    flex-wrap: nowrap;
    min-height: 60vh;
}

/* --- Sidebar --- */
.mkwf-sidebar {
    background: #fff;
    width: 250px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
    border-radius: 14px;
}

/* --- Sidebar Groups --- */
.mkwf-group {
    margin-bottom: 12px;
}
.mkwf-title {
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #c7c7c7;
}
.mkwf-items {
    display: flex;
    flex-direction: column;
}
.mkwf-item {
    margin-bottom: 2px;
}
.mkwf-price {
    display: flex;
}
.mkwf-price input {
    width: 48%;
    margin-right: 2%;
    padding: 5px;
}

/* --- Slider Wrap --- */
.mkwf-slider-wrap {
    margin-top: 10px;
}

.mkwf-actions {
    display: flex;
    flex-direction: column;
}

/* --- Buttons --- */
.mkwf-btn {
    display: inline-block;
    padding: 10px 25px;
    margin-right: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 12px;
}
.mkwf-btn-primary {
    background: #e8bfb5;
    color: #000;
    margin-bottom: 10px;
}
.mkwf-btn-ghost {
    background: #f0f0f0;
    color: #333;
}
.mkwf-mobile-btn {
    display: none; /* desktop default */
    margin-bottom: 10px;
    visibility: hidden; /* sakrij dok JS ne premesti */
}

/* --- Overlay --- */
.mkwf-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.mkwf-overlay.active { display: block; }

/* Mobile Sidebar */

/* @media(max-width:1023px) */

@media screen and (max-width: 767px){
    #mkwf-mobile-toggle {
        display: inline-block;
        z-index: 1001;
        border: 1px;
        border-style: solid;
        border-color: #000000;
    }
    .mkwf-mobile-btn {
        display: inline-block;
        position: relative; /* ne fixed, da ne iskače preko prve kolone */
        width: auto;
        visibility: visible; /* JS će osigurati da bude vidljivo */
        z-index: 1001;
    }
    .mkwf-sidebar {
        position: fixed;
        top: 0px;
        left: -100%; /* izlazi sa leve strane */
        width: 90vw;
        height: 100vh;
        z-index: 100000;
        transition: left 0.3s;
        box-shadow: 3px 0 15px rgba(0,0,0,0.2);
        padding: 0px 20px 36px 20px;
        overflow-y: auto;
    }
    .mkwf-sidebar.active { left: 0; }

    .mkwf-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    .mkwf-overlay.active { display: block; }

    body.mkwf-no-scroll { overflow: hidden; }
}

/* --- Results Section --- */
.mkwf-results { flex-grow: 1; padding: 20px; }

/* --- Loader / No Results --- */
.mkwf-loading,
.mkwf-no-results { font-style: italic; color: #666; }

/* --- Scrollable sidebar items --- */
.mkwf-scroll { max-height: 120px; overflow-y: auto; }

.mkwf-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.mkwf-pagination a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: background-color 0.2s, color 0.2s;
}
.mkwf-pagination a:hover,
.mkwf-pagination a.active {
    background-color: #E8BFB5;
    color: #242424;
    border-color: #E8BFB5;
}

/* --- Mobile: results columns --- */
@media screen and (max-width: 767px) {
    .mkwf-results ul.products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .mkwf-results ul.products li.product {
        width: 100% !important;
        box-sizing: border-box;
    }
    .mkwf-sorting-wrap {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }


}

/* Mobile 2 columns */
@media screen and (max-width: 1023px) {
    .mkwf-results ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        justify-items: center;
        gap: 12px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .mkwf-results ul.products li.product {
        width: auto !important;
        float: none !important;
    }
    .mkwf-results ul.products::before { content: none !important; }
}

.mkwf-results-wrap {
    display: flex;
    flex-direction: column;
}

.mkwf-sorting-wrap {
    /* display: flex;*/
    margin-bottom: 15px;
    /* justify-content: flex-end; */
    align-content: center;
}

@media (max-width: 1023px) {
    .mkwf-sorting-wrap {
        margin-bottom: 10px;
    }
}
 Premium hover efekat za proizvode */
.mkwf-results ul.products li.product {
    overflow: hidden; /* da slika ne izlazi van kartice */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.mkwf-results ul.products li.product img {
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
}

.mkwf-results ul.products li.product:hover {
    transform: translateY(-5px); /* blagi pomak gore */
   /* box-shadow: 0 10px 20px rgba(0,0,0,0.15);  lagani shadow */
}


}

select#mkwf-sort {
    padding: 7px 16px 7px 10px;
    border: 1px solid #e1e1e1 !important;
    background: #ffffff;
    border-radius: 12px;
    font-size: 15px;
    background-position: right 12px center;
    background-size: 16px;
    color: #666 !important;
