/* Plant Products Manager Styles */

*, ::after, ::before {
    box-sizing: border-box;
}

.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
.col-12 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .col-sm-6 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (min-width: 768px) {
    .col-md-2 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 16.666667%;
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}
@media (min-width: 768px) {
    .col-md-3 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}
@media (min-width: 768px) {
    .col-md-4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
@media (min-width: 992px) {
    .col-lg-3 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}
@media (min-width: 1200px) {
/*    .col-xl-2 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 16.666667%;
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }*/
    .col-xl-2 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}


.mb-2-rem {
    margin-bottom: 2rem !important;
}
.d-none {
    display: none !important;
}
form div {
    margin-bottom: 0 !important;
       
}
.filter-block{
     border-top: 1px solid #D9D9D9;
    padding-top: 0.5rem !important;
}
.filter-label{
    font-family: "Roboto Condensed" !important;
    font-size: 16px !important;
    line-height: 24px !important;
    text-transform: uppercase !important;
}
form.plant-products-filters {
    margin: 0;
    padding: 0.5rem 0 0rem;
}
a.button {
    text-align: center;
    border-radius: 6px !important;
    width: 222px;
}
.pricelist {
    margin-top: 2rem !important;
}


/*a.button,
.plant-products-filters input,
.plant-products-filters select {
    width: 100%;
    display: inline-block;
    padding: 8px 12px !important;
    font-size: 15px;
    margin-bottom: 10px !important;
    border-radius: 0 !important;
    color: #000;
    background: #fff;
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
}*/



.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/*.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}*/

.product-details {
    font-size: 14px;
    color: #666;
}
.product-details span {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.product-details img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f0f0f0;
}
.product-details .no-img-block {
    background: #f0f0f0;
    padding: 20px;
    color: #666;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-name {
    margin: 10px 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
.product-number {
    font-weight: 500;
    color: #523379 !important;
}
.product-price {
    font-weight: 600;
    color: #523379;
}
.product-price .price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    margin-top: 6px;
    display: block;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Контейнер для подвійного слайдера */
/* Контейнер подвійного слайдера */
.ppm-range-wrapper {
    position: relative;
    height: 32px;
    margin-top: 8px;

    /* ці змінні будемо міняти з JS, щоб фарбувати діапазон */
    --ppm-min: 0%;
    --ppm-max: 100%;
}

/* Сіра лінія (бекграунд) */
.ppm-range-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 8px;
    border-radius: 999px;
    background: #D9D9D9;
}

/* Фіолетова лінія між MIN і MAX */
.ppm-range-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 8px;
    border-radius: 999px;
    background: #783DAB;
    left: var(--ppm-min);               /* початок діапазону */
    right: calc(100% - var(--ppm-max)); /* кінець діапазону */
}

/* Обидва range накладаємо один на одного */
.ppm-range-wrapper .ppm-range {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

/* треки самих input'ів не малюємо – їх малює ::before / ::after */
.ppm-range-wrapper .ppm-range::-webkit-slider-runnable-track {
    background: transparent;
    height: 8px;
}
.ppm-range-wrapper .ppm-range::-moz-range-track {
    background: transparent;
    height: 8px;
}

/* Дозволяємо тягати саме “кружечки” */
.ppm-range-wrapper .ppm-range::-webkit-slider-thumb {
    pointer-events: auto;
}
.ppm-range-wrapper .ppm-range::-moz-range-thumb {
    pointer-events: auto;
}

/* Повзунок – 22px загалом (приблизно 8px “ядро” + білий бордер) */
.ppm-range-wrapper .ppm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #783DAB;
    border: 7px solid #FFFFFF;
    box-shadow: 0px 4px 10px 0px #00000014;
    position: relative;
    z-index: 2;
    margin-top: -7px;
    outline: 1px solid #F2F2F2;
}

.ppm-range-wrapper .ppm-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #783DAB;
    border: 7px solid #FFFFFF;
    box-shadow: 0px 4px 10px 0px #00000014;
    position: relative;
    z-index: 2;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ховаємо стрілочки у Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
.filter-block .input-group-text{
    padding: 4px !important;
    font-family: "Roboto Condensed" !important;
    font-size: 16px !important;
    line-height: 24px !important;
    text-transform: uppercase !important;
     border-radius: 0 8px 8px 0!important;
    height: 32px;
}
.filter-block input.form-control{
    padding: 6px !important;
    text-align: right;
    border-radius: 8px 0 0 8px !important;
    height: 32px;
}

.sort-iside.ppm-sort-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* список схований за замовчуванням */
.ppm-sort-dropdown .ppm-sort-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;

    margin: 0;
    padding: 8px 0;

    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 2px;
    z-index: 50;

    list-style: none;
}

/* показуємо при відкритому стані */
.ppm-sort-dropdown.is-open .ppm-sort-list {
    display: block;
}

/* елементи списку */
.ppm-sort-list li {
    list-style: none;
}

.ppm-sort-list a {
    display: block;
    padding: 6px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.ppm-sort-list a:hover {
    background: #f5f5f5;
}

.ppm-sort-list a.active {
    font-weight: 600;
}

/* спільний стиль для дропдаунів */
.sort-iside.ppm-sort-dropdown,
.sort-iside.ppm-perpage-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* списки в обох дропдаунах */
.ppm-sort-dropdown .ppm-sort-list,
.ppm-perpage-dropdown .ppm-perpage-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: max-content;

    margin: 0;
    padding: 8px 0;

    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 2px;
    z-index: 50;

    list-style: none;
}

/* показати при is-open */
.ppm-sort-dropdown.is-open .ppm-sort-list,
.ppm-perpage-dropdown.is-open .ppm-perpage-list {
    display: block;
}

/* елементи */
.ppm-sort-list li,
.ppm-perpage-list li {
    list-style: none;
}

.ppm-sort-list a,
.ppm-perpage-list a {
    display: block;
    padding: 6px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.ppm-sort-list a:hover,
.ppm-perpage-list a:hover {
    background: #f5f5f5;
}

.ppm-sort-list a.active,
.ppm-perpage-list a.active {
    font-weight: 600;
}
