/* Wrapper */
.maf-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Filter */
.maf-filter-container {
    flex: 0 0 25%;
    max-width: 25%;
    border: 1px solid #ccc;
    padding: 15px;
    box-sizing: border-box;
    background: #fafafa;
}

/* Products */
.maf-products-container {
    flex: 1;
    max-width: 75%;
    box-sizing: border-box;
}

/* Accordion */
.maf-accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}
.maf-accordion-header {
    background: #f5f5f5;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.maf-accordion-header::after {
    content: "\25BC";
    font-size: 12px;
    transition: transform 0.2s ease;
}
.maf-accordion-header.active::after {
    transform: rotate(-180deg);
}
.maf-accordion-header.active {
    background: #e5e5e5;
}
.maf-accordion-content {
    display: none;
    padding: 8px 10px;
}
.maf-accordion-content label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Checkbox */
.maf-accordion-content input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 2px solid #666;
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
    position: relative;
}
.maf-accordion-content input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}
.maf-accordion-content input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 12px;
    color: #fff;
}

/* Grid proizvoda */
.maf-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.maf-product {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    background: #fff;
}
.maf-product-image img {
    max-width: 100%;
    height: auto;
}
.maf-product-title {
    margin: 10px 0 5px;
}
.maf-product-sku {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* Paginacija */
.maf-pagination {
    margin-top: 20px;
    text-align: center;
}
.maf-pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    background: #f2f2f2;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.maf-pagination a:hover {
    background: #e2e2e2;
}
.maf-pagination .maf-active-page {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Responsive */
@media (max-width: 992px) {
    .maf-filter-container {
        flex: 0 0 30%;
        max-width: 30%;
    }
    .maf-products-container {
        max-width: 70%;
    }
    .maf-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .maf-wrapper {
        flex-direction: column;
    }
    .maf-filter-container,
    .maf-products-container {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .maf-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .maf-products-grid {
        grid-template-columns: 1fr;
    }
    .maf-pagination a {
        margin: 5px 3px;
        padding: 6px 10px;
        font-size: 13px;
    }
}

.maf-pagination .maf-dots {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 8px;
    color: #666;
    font-size: 14px;
}