select.orderby {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    padding: 10px 40px 10px 20px;
    height: 45px;
    min-width: 220px;

    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;

    background-color: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007FAC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

select.orderby:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 127, 172, 0.1);
}

select.orderby:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 127, 172, 0.15);
}

.prod_card {
    border: 1px solid #E0E0E0 !important;
    transition: all 0.3s ease;
}

.prod_card:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}

.prod_card:hover form.cart button.button.alt.oneclick {
    border-bottom: transparent !important;
    border-left: transparent !important;
}

.prod_card:hover form.cart button.button.alt.cart {
    border-bottom: transparent !important;
    border-right: transparent !important;
}

.archive #main .filter {
    width: 27%;
    margin-right: 3%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    padding: 25px;
    height: fit-content;
}

.filter-cat {
    padding-top: 0 !important;
}

.front-filt {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 800;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
    width: 100%;
    line-height: 1;
}

.front-filt svg {
    width: 18px;
    height: 18px;
}

.termname {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    padding: 0;
    border: none;
}

.termname:first-of-type {
    margin-top: 0;
}

.termname:hover {
    color: var(--primary-color);
}

.termname::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(45deg);
    transition: all 0.3s ease;
    position: static;
    background: transparent;
    margin-right: 5px;
}

.termname.toggled {
    color: var(--primary-color);
}

.termname.toggled::after {
    transform: rotate(-135deg);
    border-color: var(--primary-color);
    margin-top: 5px;
}

.filt-inner {
    padding-left: 2px;
}

.filt-inner div {
    margin-bottom: 10px;
}

.filt-inner label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    font-weight: 600;
    transition: color 0.2s;
    line-height: 1.4;
}

.filt-inner label:hover {
    color: var(--primary-color);
}

.filt-inner input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0 12px 0 0;
    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filt-inner input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.filt-inner input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.filt-inner input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.filt-inner div.inactive {
    opacity: 0.5;
    pointer-events: none;
}

.archive .mostsales .filter {
    margin-top: 102px;
}

.archive .mostsales h1.cat-title {
    font-size: 26px;
    margin-bottom: 0;
}

.archive .prod_card {
    height: unset !important;
    margin-bottom: 10px !important;
    border-radius: 8px;
}

.page-numbers li .page-numbers.current {
    background: rgba(0, 120, 212, 0.1) !important;
    color: var(--primary-color) !important;
    border-radius: 10% !important;
    border: 1px solid rgba(0, 120, 212, 0.2);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--primary-color) !important;
    border-radius: 10% !important;
}

.mostsales .prod_card .woocommerce-Price-amount bdi {
    color: var(--text-main);
}

.archive .seotext {
    padding: 0 20px;
}

.prod_card_outofstock {
    border: none;
    background-color: unset;
}

.prod_card button.button.single_inform,
.prod_card button.button.preorder {
    border-radius: 0 0 8px 8px;
    background-color: var(--primary-color) !important;
}

.prod_card button.single_inform:hover,
.prod_card button.preorder:hover {
    color: white !important;
    border-color: var(--primary-color) !important;
}

.slick-track {
    display: flex !important;
}

.slick-track .slick-initialized .slick-slide.prod_card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
}

.slick-track .slick-initialized .slick-slide.prod_card .product_title {
    min-height: 65px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

@media (max-width: 992px) {
    .archive #main .filter {
        width: 100%;
        margin: 30px 0;
        padding: 25px 25px 0 25px;
    }
}

@media (max-width: 600px) {
    select.orderby {
        width: 100%;
        min-width: 0;
    }

    .archive .mostsales .filter {
        margin-top: 0;
    }

    .archive #main .products .prod_card {
        width: 48% !important;
        min-width: unset;
    }

    .archive #main .products {
        display: flex !important;
        flex-wrap: wrap;
    }

    .archive .archive-products-wrapper {
        width: 100%;
    }
}

.block-heading select.orderby {
    margin-left: auto;
}