.our-products-shop {
    padding: 40px 0 94px;
    background: #E6F2FA;
}

.our-products__heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 21px 0 54px;
}

.our-products__heading h1 {
    font-size: 40px;
    font-weight: 800;
}

.products {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 70px;
    list-style: none;
}

.products-grid .product {
    padding: 30px;
    background: #FBFBFB;
    border-radius: 20px;
}

.shop-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.shop-filter,
.shop-sort {
    position: relative;
}

.shop-filter .dropdown-toggle,
.shop-sort .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 17.5px 24px;
    min-width: 288px;
    border: 1px solid #BECBD4;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.shop-filter .dropdown-toggle::after,
.shop-sort .dropdown-toggle::after {
    content: '';
    background-image: url('/wp-content/uploads/2025/06/arrow_down.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.shop-filter.open .dropdown-toggle::after,
.shop-sort.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

.shop-filter .dropdown-toggle:hover,
.shop-sort .dropdown-toggle:hover {
    border-color: #a8d3e1;
}

.shop-filter .dropdown-menu,
.shop-sort .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 288px;
    max-height: 300px;
    background-color: #E6F2FA;
    border: 1px solid #BECBD4;
    border-radius: 20px;
    padding: 16px;
    z-index: 50;
    display: none;
    flex-direction: column;
}

.shop-filter.open .dropdown-menu,
.shop-sort.open .dropdown-menu {
    display: flex;
}

.custom-checkbox input[type="checkbox"],
.custom-radio   input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox,
.custom-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    line-height: 134%;
    font-weight: 400;
    color: #181818;
    gap: 10px;
}

.custom-checkbox .custom-checkmark {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    background-color: transparent;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-checkbox .custom-checkmark::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #4CAF50;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-checkbox input:checked + .custom-checkmark {
    background-color: #E6F2FA;
    border-color:   #4CAF50;
}
.custom-checkbox input:checked + .custom-checkmark::after {
    opacity: 1;
}

.custom-checkbox:hover .custom-checkmark {
    border-color: #4CAF50;
}

.custom-radio .custom-radiomark {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    background-color: transparent;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-radio .custom-radiomark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-radio input:checked + .custom-radiomark {
    background-color: transparent;
    border-color: #4CAF50;
}
.custom-radio input:checked + .custom-radiomark::after {
    opacity: 1;
}

.custom-radio:hover .custom-radiomark {
    border-color: #4CAF50;
}

.dropdown-menu label {
    margin-bottom: 16px;
}
.dropdown-menu label:last-child {
    margin-bottom: 0;
}

.nav-links,
.shop-pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.page-numbers {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid #BECBD4;
    border-radius: 100px;
    font-size: 18px;
    color: #181818;
}

.page-numbers.current {
    background: #4CAF50;
    color: #FBFBFB;
}

.page-numbers.prev {
    background: #FBFBFB;
    border: none;
}

.page-numbers.next {
    background: #FBFBFB;
    border: none;
}

#products-grid .our-products__item-footer > a.added_to_cart.wc-forward {
    display: none;
}

@media (max-width: 991px) {
    .our-products__heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin: 21px 0 30px;
    }
    .shop-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
    .products {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .our-products-shop {
        padding: 20px 0 94px;
    }
    .our-products__heading h1 {
        font-size: 30px;
    }
    .shop-filter, .shop-sort {
        position: relative;
        max-width: 100%;
        width: 100%;
    }
    .shop-filter .dropdown-toggle, .shop-sort .dropdown-toggle {
        width: 100%;
    }
    .shop-filter .dropdown-menu, .shop-sort .dropdown-menu {
        width: 100%;
    }
    .page-numbers {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
    .page-numbers svg {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }
}