.dru-shop {
    padding-top: 40px;
    padding-bottom: 60px;
}

.dru-shop__title {
    margin: 0 0 30px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 36px;
    line-height: 46.8px;
    color: #f4f6ef;
}

.dru-shop__layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.dru-shop__filter {
    flex: 0 0 290px;
    width: 290px;
    background: #090909;
    border-radius: 24px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.dru-shop__main {
    flex: 1;
    min-width: 0;
}

.dru-shop__main ul.products,
.woocommerce .dru-shop__main ul.products,
.woocommerce-page .dru-shop__main ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce .dru-shop__main ul.products::before,
.woocommerce-page .dru-shop__main ul.products::before,
.woocommerce .dru-shop__main ul.products::after,
.woocommerce-page .dru-shop__main ul.products::after {
    content: none;
}

.dru-shop__main ul.products > li,
.woocommerce ul.products li.product.dru-product,
.woocommerce-page ul.products li.product.dru-product {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px !important;
    float: none !important;
    clear: none !important;
}

.dru-shop__main .woocommerce-pagination {
    margin-top: 30px;
}

.dru-filter__title {
    margin: 0 0 14px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #ffffff;
}
.dru-filter__widget + .dru-filter__widget {
    margin-top: 30px;
}

.dru-filter__widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dru-filter__widget ul li {
    margin: 0 0 10px;
}

.dru-filter__widget a,
.dru-filter__widget label {
    font-family: var(--font);
    font-size: 15px;
    line-height: 19.5px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dru-filter__widget ul.product-categories a,
.dru-filter__widget ul li a {
    color: #ffffff;
}

.dru-filter__widget input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 4.5px;
    background: #6bb022;
    border: 0;
    cursor: pointer;
    position: relative;
    flex: none;
}
.dru-filter__widget input[type="checkbox"]:not(:checked) {
    background: transparent;
    border: 1.5px solid #6bb022;
}
.dru-filter__widget input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dru-filter__widget .price_slider_wrapper {
    margin-top: 16px;
}

/* Значения над слайдером */
.dru-filter__widget .price_slider_amount .price_label {
    display: none;
}
.dru-filter__widget .price_slider-vals {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    color: #ffffff;
}

/* Слайдер */
.dru-filter__widget .price_slider.ui-slider {
    background: #d9d9d9 !important;
    height: 4px !important;
    border-radius: 50px !important;
    border: 0 !important;
    margin: 0 10px !important;
}
.dru-filter__widget .price_slider .ui-slider-range {
    background: #6bb022 !important;
    border-radius: 50px !important;
}
.dru-filter__widget .price_slider .ui-slider-handle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 90px !important;
    background: #6bb022 !important;
    border: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
}
.dru-filter__widget .price_slider .ui-slider-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

/* Инпуты и кнопки под слайдером */
.dru-filter__widget .price_slider_amount {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}
.dru-filter__widget .price_slider_amount input[type="text"]#min_price,
.dru-filter__widget .price_slider_amount input[type="text"]#max_price {
    position: static !important;
    clip: auto !important;
    display: inline-block !important;
    width: 112px !important;
    flex: none !important;
    height: 56px !important;
    background: #181818 !important;
    border: 1px solid #373737 !important;
    border-radius: 15px !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: var(--font) !important;
    font-size: 15px !important;
    line-height: 18px !important;
    text-align: center !important;
    transition: border-color .15s;
}
.dru-filter__widget .price_slider_amount input[type="text"]#min_price:focus,
.dru-filter__widget .price_slider_amount input[type="text"]#max_price:focus {
    border-color: #6bb022 !important;
    outline: none !important;
}
.dru-filter__widget .price_slider-amount-sep {
    flex: none;
    color: #ffffff;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
}

.dru-filter__widget .price_slider_amount button.button,
.dru-filter__widget .price_slider_amount .dru-filter-reset,
.dru-filter__widget .price_slider_amount .screen-reader-text,
.dru-filter__widget .price_slider_amount .price_label,
.dru-filter__widget .price_slider_amount .clear,
.dru-filter__widget .price_slider_amount label {
    display: none !important;
}

/* Общие кнопки фильтра */
.dru-filter__actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.dru-filter__apply {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    background: #6bb022;
    color: #090909;
    border: 1px solid #6bb022;
    border-radius: 15px;
    padding: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    cursor: pointer;
}
.dru-filter__apply:hover { opacity: .88; }
.dru-filter__reset {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #6bb022;
    border-radius: 15px;
    padding: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    cursor: pointer;
    text-decoration: none;
}
.dru-filter__reset:hover { background: rgba(107, 176, 34, .12); }

.dru-filter__widget select,
.dru-filter__widget .dropdown_product_cat,
.dru-filter__widget .woocommerce-widget-layered-nav-dropdown,
#product_cat.dropdown_product_cat {
    width: 100% !important;
    height: 56px !important;
    border: 1px solid #373737 !important;
    border-radius: 15px !important;
    background-color: #181818 !important;
    color: #676767 !important;
    font-family: var(--font) !important;
    font-size: 15px !important;
    line-height: 19.5px !important;
    padding: 0 50px 0 20px !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%23f4f6ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 24px !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
}
.dru-filter__widget select option,
#product_cat.dropdown_product_cat option {
    background: #181818 !important;
    color: #f4f6ef !important;
}
.dru-filter__widget select option[level-1],
.dru-filter__widget select option.level-1,
#product_cat.dropdown_product_cat option.level-1 {
    padding-left: 20px !important;
}

/* SelectWoo / Select2 — WC заменяет нативный select этой разметкой */
.dru-filter__widget .select2-container,
.dru-shop__filter .select2-container {
    width: 100% !important;
    display: block;
}

.dru-filter__widget .select2-container .select2-selection--single,
.dru-filter__widget .select2-selection--single,
.dru-shop__filter .select2-selection {
    height: 56px !important;
    border: 1px solid #373737 !important;
    border-radius: 15px !important;
    background: #181818 !important;
    outline: none !important;
    padding: 0 50px 0 20px !important;
    box-sizing: border-box !important;
}

.dru-filter__widget .select2-selection__rendered,
.dru-shop__filter .select2-selection__rendered {
    color: #676767 !important;
    font-family: var(--font) !important;
    font-size: 15px !important;
    line-height: 54px !important;
    padding: 0 !important;
}

.dru-filter__widget .select2-selection__arrow,
.dru-shop__filter .select2-selection__arrow {
    height: 54px !important;
    width: 50px !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%23f4f6ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px !important;
}
.dru-filter__widget .select2-selection__arrow b,
.dru-shop__filter .select2-selection__arrow b {
    display: none !important;
}

/* Выпадающий список option'ов */
.dru-filter__widget .select2-container--default .select2-results__option--highlighted[aria-selected],
.dru-shop__filter .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #6bb022 !important;
    color: #090909 !important;
}
body .select2-dropdown {
    border: 1px solid #373737 !important;
    background: #181818 !important;
    border-radius: 15px !important;
}
body .select2-results__option {
    color: #f4f6ef !important;
    font-family: var(--font) !important;
    font-size: 15px !important;
    padding: 10px 20px !important;
}

.dru-filter__widget .button,
.dru-filter__widget button[type="submit"] {
    background: #6bb022;
    color: #090909;
    border: 1px solid #6bb022;
    border-radius: 15px;
    padding: 0 20px;
    height: 47px;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    cursor: pointer;
    width: 100%;
    float: none;
    margin: 0;
}
.dru-filter__widget .button:hover {
    opacity: 0.88;
}
.dru-filter__widget .price_slider_amount .button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-top: 10px;
    height: 47px;
    background: #6bb022;
    color: #090909;
    border: 1px solid #6bb022;
    border-radius: 15px;
    padding: 0 20px;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    cursor: pointer;
    float: none;
}
.dru-filter__widget .price_slider_amount .button:hover {
    opacity: 0.88;
}

/* Кнопка «Сбросить» — ссылка на сброс фильтра */
.dru-filter__widget .price_slider_amount .dru-filter-reset {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #6bb022;
    border-radius: 15px;
    padding: 0 20px;
    margin-top: 10px;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    cursor: pointer;
    text-decoration: none;
}
.dru-filter__widget .price_slider_amount .dru-filter-reset:hover {
    background: rgba(107, 176, 34, .12);
}

.dru-shop__main .woocommerce-result-count,
.dru-shop__main .woocommerce-ordering {
    color: #a7aea1;
    margin-bottom: 20px;
}
.dru-shop__main .woocommerce-ordering select {
    background: #090909;
    color: #f4f6ef;
    border: 1px solid #373737;
    border-radius: 12px;
    padding: 10px 14px;
    font-family: var(--font);
}

.dru-shop__main .woocommerce-pagination .page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}
.dru-shop__main .woocommerce-pagination .page-numbers li {
    margin: 0;
}
.dru-shop__main .woocommerce-pagination .page-numbers a,
.dru-shop__main .woocommerce-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #373737;
    color: #f4f6ef;
    font-family: var(--font);
    font-size: 15px;
    background: #090909;
}
.dru-shop__main .woocommerce-pagination .page-numbers .current {
    background: #6bb022;
    border-color: #6bb022;
    color: #090909;
}

@media (max-width: 1240px) {
    .dru-shop__main ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .dru-shop__layout {
        flex-direction: column;
    }
    .dru-shop__filter {
        flex: none;
        width: 100%;
        position: static;
    }
    .dru-shop__main ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .dru-shop__main ul.products {
        grid-template-columns: 1fr;
    }
}
