
/* =========================================================
   WAHHID CATEGORY — exact Elementor visual clone
   ========================================================= */

.wf-category {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #000;
}


/* ===== HEADER ===== */

.wf-category__top {
    width: 100%;
    margin: 40px 0 20px;
    padding: 0;
}

.wf-category__title {
    margin: 0;
    padding: 0;

    color: #000;

    font-family: inherit;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
}


/* ===== FILTER BUTTON ===== */

.wf-category-filter {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;

    margin: 0;
    margin-top: 10px;

    padding: 5px;

    border: 1px solid #000;
    border-radius: 0;

    background: transparent;
    color: #000;

    font: inherit;
    line-height: 1;

    cursor: pointer;
}

.wf-category-filter img {
    display: inline-block;

    width: 16px;
    height: 16px;

    max-width: 16px;

    margin-right: 5px;

    object-fit: contain;
}


/* ===== GRID ===== */

.wf-category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    column-gap: 5px;
    row-gap: 0;

    width: 100%;
    margin: 0;
    padding: 0;
}


/* ===== CARD ===== */

.wf-category-card {
    position: relative;

    min-width: 0;

    margin: 0;
    padding: 0;
}

.wf-category-card__media {
    position: relative;

    width: 100%;
    margin: 0;
    padding: 0;
}

.wf-category-card__image-link {
    display: block;

    width: 300px;
    max-width: 100%;

    margin: 0;
    padding: 0;
}

.wf-category-card__image {
    display: block;

    width: 300px;
    max-width: 100%;
    height: 300px;

    margin: 0;

    object-fit: cover;

    border-radius: 10px;
}


/* ===== TITLE ===== */

.wf-category-card__title {
    display: block;

    margin: 0;
    padding: 0;

    color: #000 !important;

    font-size: 16px;
    line-height: normal;

    text-align: left;
    text-decoration: none !important;
}


/* ===== EXCERPT ===== */

.wf-category-card__excerpt {
    margin: 0;
    padding: 0;

    color: #4d4d4d;

    font-size: 14px;
    line-height: normal;

    text-align: left;
}


/* ===== PRICE ===== */

.wf-category-card__price {
    margin: 0;
    padding: 0;

    color: #000;

    font-size: 17px;
    line-height: normal;

    text-align: left;
}

.wf-category-card__price ins {
    text-decoration: none;
}


/* ===== WISHLIST ===== */

.wf-category-card__wishlist {
    position: absolute;

    top: 2%;
    right: 6%;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;
    min-height: 30px;

    margin: 0 0 5px 10px;
    padding: 7px 3px;

    border: 1px solid #d6d6d6;
    border-radius: 50px;

    background: #d6d6d6;
    color: #000;

    cursor: pointer;
}

.wf-category-card__wishlist svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;
}

.wf-category-card__wishlist:hover {
    background: #000;
    color: #fff;
}

.wf-category-card__wishlist.is-added {
    background: #000;
    color: #fff;
}


/* ===== TABLET ===== */

@media (max-width: 1024px) {

    .wf-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ===== MOBILE ===== */

@media (max-width: 767px) {

    .wf-category__top {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .wf-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 5px;
        row-gap: 20px;

        padding-top: 20px;
    }

    .wf-category-card__image {
        height: 150px;
    }

    .wf-category-card__title {
        font-size: 14px;
    }

    .wf-category-card__excerpt {
        font-size: 12px;
    }

    .wf-category-card__price {
        font-size: 16px;
    }

}



/* =========================================================
   WAHHID CATEGORY — PIXEL MATCH ORIGINAL
   2026-08-29
   ========================================================= */


/* ---- Общая геометрия ---- */

.wf-category {
    box-sizing: border-box !important;

    padding-left: 5px !important;
    padding-right: 5px !important;
}


/* ---- Заголовок ---- */

.wf-category__top {
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}

.wf-category__title {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}


/* ---- Фильтры: как в оригинале, БЕЗ рамки ---- */

.wf-category-filter {
    display: inline-flex !important;
    align-items: center !important;

    gap: 5px !important;

    margin-top: 28px !important;

    padding: 5px !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    background: transparent !important;

    color: #4d4d4d !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.wf-category-filter:hover,
.wf-category-filter:focus,
.wf-category-filter:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #4d4d4d !important;
}

.wf-category-filter img {
    width: 16px !important;
    height: 16px !important;

    margin: 0 !important;

    object-fit: contain !important;
}


/* ---- Сетка ---- */

.wf-category-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    column-gap: 5px !important;
    row-gap: 0 !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* ---- Карточка ---- */

.wf-category-card {
    position: relative !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}

.wf-category-card__media {
    position: relative !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/*
 * В оригинале Jet использует картинку 300x300 на desktop.
 * Фиксируем контейнер — WooCommerce больше не сможет
 * перебить height своим height:auto.
 */
.wf-category-card__image-link {
    display: block !important;

    width: 300px !important;
    max-width: 100% !important;

    aspect-ratio: 1 / 1 !important;

    overflow: hidden !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 10px !important;
}

.wf-category-card__image {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 10px !important;
}


/* ---- Название ---- */

.wf-category-card__title {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #000 !important;

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: normal !important;

    text-align: left !important;
    text-decoration: none !important;
}


/*
 * В Elementor поле существует,
 * но на реальной категории визуально его НЕТ.
 */
.wf-category-card__excerpt {
    display: none !important;
}


/* ---- Цена ---- */

.wf-category-card__price {
    margin: 0 !important;
    padding: 0 !important;

    color: #000 !important;

    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: normal !important;

    text-align: left !important;
}

.wf-category-card__price ins {
    text-decoration: none !important;
}


/* ---- Сердце: как в оригинале, без серого кружка ---- */

.wf-category-card__wishlist {
    position: absolute !important;

    top: 2% !important;
    right: 6% !important;

    z-index: 3 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 20px !important;
    min-width: 20px !important;

    height: 20px !important;
    min-height: 20px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    outline: 0 !important;
    box-shadow: none !important;

    background: transparent !important;
    color: #111 !important;
}

.wf-category-card__wishlist svg {
    display: block !important;

    width: 17px !important;
    height: 17px !important;

    fill: none !important;

    stroke: currentColor !important;
    stroke-width: 1.8 !important;

    margin: 0 !important;
}

.wf-category-card__wishlist:hover,
.wf-category-card__wishlist:focus,
.wf-category-card__wishlist:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    background: transparent !important;
    color: #000 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .wf-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


/* =========================================================
   MOBILE — под оригинальный скриншот
   ========================================================= */

@media (max-width: 767px) {

    /*
     * В оригинале весь блок начинается примерно с 20px
     * от края: заголовок, фильтр и товары.
     */
    .wf-category {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }


    .wf-category__top {
        margin-top: 40px !important;
        margin-bottom: 20px !important;
    }


    .wf-category__title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }


    .wf-category-filter {
        margin-top: 28px !important;

        padding: 5px !important;

        font-size: 14px !important;
    }


    /*
     * Оригинал:
     * 2 карточки,
     * небольшой промежуток,
     * первый ряд начинается ниже фильтра.
     */
    .wf-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        column-gap: 5px !important;
        row-gap: 20px !important;

        padding-top: 20px !important;
    }


    /*
     * На реальном мобильном скрине изображения выше,
     * чем квадрат.
     *
     * Ширина колонки ≈ 190px,
     * высота изображения ≈ 225–230px.
     */
    .wf-category-card__image-link {
        width: 100% !important;
        max-width: 100% !important;

        aspect-ratio: 0.84 / 1 !important;

        border-radius: 10px !important;
    }


    .wf-category-card__image {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;

        border-radius: 10px !important;
    }


    .wf-category-card__title {
        font-size: 14px !important;
    }


    .wf-category-card__price {
        font-size: 16px !important;
    }


    .wf-category-card__wishlist {
        top: 2% !important;
        right: 6% !important;

        width: 20px !important;
        height: 20px !important;
    }


    .wf-category-card__wishlist svg {
        width: 17px !important;
        height: 17px !important;
    }

}



/* =========================================================
   WAHHID NATIVE FILTER
   ========================================================= */

html.wf-filter-open,
body.wf-filter-open {
    overflow: hidden !important;
}


/* Overlay */

.wf-filter-overlay {
    position: fixed;

    inset: 0;

    z-index: 999990;

    background:
        rgba(0, 0, 0, .30);

    opacity: 0;

    transition:
        opacity .2s ease;
}

.wf-filter-overlay.is-open {
    opacity: 1;
}


/* Panel */

.wf-filter-panel {
    position: fixed;

    right: 0;
    bottom: 0;

    z-index: 999999;

    width: 400px;
    max-width: 100vw;

    height: 613px;
    max-height: 100dvh;

    background: #fff;
    color: #000;

    overflow: hidden;

    transform:
        translate3d(100%, 0, 0);

    opacity: 0;

    visibility: hidden;

    transition:
        transform .2s ease,
        opacity .2s ease,
        visibility .2s ease;

    box-sizing: border-box;
}

.wf-filter-panel.is-open {
    transform:
        translate3d(0, 0, 0);

    opacity: 1;

    visibility: visible;
}


/* Header */

.wf-filter-panel__head {
    position: relative;

    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 45px;

    border-bottom:
        1px solid #e7e7e7;
}

.wf-filter-panel__head h2 {
    margin: 0 !important;
    padding: 0 !important;

    color: #000;

    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2;

    text-align: center;
}


/* Close */

.wf-filter-close {
    position: absolute;

    top: 50%;
    right: 15px;

    width: 32px;
    height: 32px;

    transform:
        translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: 0 !important;
    outline: 0 !important;

    background:
        transparent !important;

    color: #000;

    cursor: pointer;
}

.wf-filter-close svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.6;
}


/* Form */

.wf-filter-form {
    height:
        calc(100% - 62px);

    overflow-y: auto;

    padding: 0 15px 20px;

    box-sizing: border-box;

    scrollbar-width: thin;
}


/* Accordion */

.wf-filter-section {
    margin: 0;

    border-bottom:
        1px solid #d9d9d9;
}

.wf-filter-section summary {
    position: relative;

    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 0 5px;

    color: #000;

    font-size: 15px;
    font-weight: 400;

    cursor: pointer;

    list-style: none;
}

.wf-filter-section summary::-webkit-details-marker {
    display: none;
}


/* Arrow */

.wf-filter-arrow {
    position: relative;

    width: 10px;
    height: 10px;

    flex: 0 0 10px;
}

.wf-filter-arrow::before,
.wf-filter-arrow::after {
    content: "";

    position: absolute;

    top: 5px;

    width: 6px;
    height: 1px;

    background: #4d4d4d;

    transition:
        transform .2s ease;
}

.wf-filter-arrow::before {
    left: 0;

    transform:
        rotate(45deg);
}

.wf-filter-arrow::after {
    right: 0;

    transform:
        rotate(-45deg);
}

.wf-filter-section[open]
.wf-filter-arrow::before {
    transform:
        rotate(-45deg);
}

.wf-filter-section[open]
.wf-filter-arrow::after {
    transform:
        rotate(45deg);
}


/* Section body */

.wf-filter-section__body {
    padding:
        0 5px 20px;
}


/* Sorting */

.wf-filter-sort {
    display: block;

    width: 100%;

    min-height: 41px;

    padding:
        10px 10px 10px 5px;

    border:
        1px solid #c8c8c8 !important;

    border-radius:
        1px !important;

    outline: 0;

    background: #fff;

    color: #000;

    font: inherit;

    appearance: none;
    -webkit-appearance: none;
}


/* Checkbox list */

.wf-filter-options {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.wf-filter-check {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 24px;

    cursor: pointer;

    color: #000;

    font-size: 14px;
}

.wf-filter-check input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.wf-filter-check__box {
    position: relative;

    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    border:
        1px solid #a7a7a7;

    background: #fff;

    box-sizing: border-box;
}

.wf-filter-check input:checked
+ .wf-filter-check__box {
    border-color: #000;

    background: #000;
}

.wf-filter-check input:checked
+ .wf-filter-check__box::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 4px;
    height: 8px;

    border:
        solid #fff;

    border-width:
        0 1.5px 1.5px 0;

    transform:
        rotate(45deg);
}


/* Price */

.wf-price-values {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 18px;

    color: #000;

    font-size: 14px;
}

.wf-dual-range {
    position: relative;

    height: 28px;

    margin:
        0 5px 5px;
}

.wf-dual-range::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: 13px;

    height: 2px;

    background: #d0d0d0;
}

.wf-dual-range input[type="range"] {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 28px;

    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    pointer-events: none;
}

.wf-dual-range
input[type="range"]::-webkit-slider-thumb {
    width: 17px;
    height: 17px;

    border: 0;

    border-radius: 50%;

    background: #000;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    pointer-events: auto;
}

.wf-dual-range
input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;

    border: 0;

    border-radius: 50%;

    background: #000;

    cursor: pointer;

    pointer-events: auto;
}


/* Colors */

.wf-filter-colors {
    display: flex;
    flex-direction: column;

    gap: 11px;
}

.wf-color-option {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 14px;

    cursor: pointer;
}

.wf-color-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.wf-color-option__circle {
    position: relative;

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    border:
        1px solid #c5c5c5;

    border-radius: 50%;

    background:
        var(--wf-color);

    box-sizing: border-box;
}

.wf-color-option input:checked
+ .wf-color-option__circle::after {
    content: "";

    position: absolute;

    inset: -4px;

    border:
        1px solid #000;

    border-radius: 50%;
}


/* Buttons */

.wf-filter-actions {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 35px;
}

.wf-filter-apply {
    width: 100%;

    min-height: 44px;

    margin: 0;

    padding: 10px 15px;

    border: 0 !important;
    border-radius: 0 !important;

    background: #000 !important;

    color: #fff !important;

    font-size: 14px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background .2s ease;
}

.wf-filter-apply:hover {
    background:
        #686868 !important;
}

.wf-filter-reset {
    width: 100%;

    min-height: 36px;

    margin: 0;

    padding: 8px;

    border: 0 !important;

    background:
        #fff !important;

    color:
        #000 !important;

    font-size: 14px;
    font-weight: 400;

    text-align: center;

    cursor: pointer;
}


/* AJAX loading */

.wf-category-results {
    transition:
        opacity .15s ease;
}

.wf-category-results.is-loading {
    opacity: .38;

    pointer-events: none;
}


/* Mobile */

@media (max-width: 767px) {

    .wf-filter-panel {
        left: 50%;
        right: auto;

        width: min(
            500px,
            100vw
        );

        max-width: 100vw;

        height: min(
            613px,
            100dvh
        );

        transform:
            translate3d(
                -50%,
                25px,
                0
            );
    }

    .wf-filter-panel.is-open {
        transform:
            translate3d(
                -50%,
                0,
                0
            );
    }

    .wf-filter-form {
        padding-left: 20px;
        padding-right: 20px;
    }

}



/* =========================================================
   WAHHID WISHLIST STATE
   ========================================================= */

/*
 * В оригинале добавленное сердце остаётся
 * без серого/чёрного кружка — меняется само сердце.
 */
.wf-category-card__wishlist.is-added {
    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    box-shadow: none !important;

    color: #000 !important;
}

.wf-category-card__wishlist.is-added svg {
    fill: #000 !important;
    stroke: #000 !important;
}

.wf-category-card__wishlist.is-loading {
    opacity: .45 !important;
    cursor: wait !important;
}

.wf-category-card__wishlist:disabled {
    pointer-events: none;
}



/* =========================================================
   WAHHID CATEGORY PAGINATION
   Jet-compatible visual structure
   ========================================================= */

.wf-category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;

    width: 100%;

    margin: 35px 0 0;
    padding: 0;
}


.wf-category-pagination
.jet-filters-pagination__item {
    margin: 0;
    padding: 0;
}


.wf-category-pagination
.jet-filters-pagination__link,
.wf-category-pagination
.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 32px;

    padding: 0 7px;

    border: 0;
    border-radius: 0;

    background: transparent;

    color: #000 !important;

    font-size: 14px;
    font-weight: 400;
    line-height: 1;

    text-decoration: none !important;

    cursor: pointer;

    box-sizing: border-box;
}


.wf-category-pagination
.jet-filters-pagination__link:hover {
    background: #f1f1f1;
}


.wf-category-pagination
.jet-filters-pagination__current
.jet-filters-pagination__link,
.wf-category-pagination
.page-numbers.current {
    background: #000;

    color: #fff !important;
}


.wf-category-pagination
.prev,
.wf-category-pagination
.next {
    font-size: 20px;
}


.wf-category-pagination
.dots {
    cursor: default;
}


/* Mobile */

@media (max-width: 767px) {

    .wf-category-pagination {
        gap: 4px;

        margin-top: 30px;
    }

    .wf-category-pagination
    .jet-filters-pagination__link,
    .wf-category-pagination
    .page-numbers {
        min-width: 30px;
        height: 30px;

        font-size: 13px;
    }

}

