.items_content {
    display: flex;
    justify-content: space-between;
}
.filters {
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
h1 {
    color: #9238FF;
    font-weight: bold;
    font-size: 40px;
    padding-left: 100px;
    height: 100px;
    display: flex;
    align-items: center;
}
.filter {
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.1),
    inset -2px -2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.filter h2 {
    font-size: 20px;
    font-weight: bold;
    color: #9238FF;
    text-align: center;
}
.filter label {
    font-size: 14px;
    color: #9238FF;

    transition: .3s ease;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter label:hover {
    background-color: rgb(243, 243, 243);
}
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #888;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}

.custom-checkbox:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.custom-checkbox:checked::after {
    content: '✔';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 0px;
    left: 3px;
}
a.reset {
    background-color: blueviolet;
    text-decoration: none;
    padding: 15px;
    color: #fff;
    border-radius: 30px;
    text-align: center;
    font-size: 20px;
}
.filters button {
    border: none;
    height: 40px;
    border-radius: 30px;
    background-color: #9238FF;
    color: #fff;
    font-size: 16px;
    transition: .3s ease;
    cursor: pointer;
}
.filters button:hover {
    background-color: #fff;
    color: #9238FF;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(0, 0, 0, 0.2);
}

.search {
    width: 800px;
    height: 100px;
    padding: 20px;
    z-index: 11;
    position: relative;
    display: flex;
    gap: 20px;
}
.search_field {
    height: 100%;
    width: 700px;
    border: 1px solid #00000008;
    box-shadow: 10px 10px 20px #00000017;
    border-radius: 30px;
    padding: 15px;
    font-size: 16px;
}
.search_btn {
    height: 100%;
    aspect-ratio: 1;
    display: block;
    box-shadow: 10px 10px 20px #00000017;
    border-radius: 100px;
    background-color: #fff;
    border: none;
}
.search_img {
    height: 100%;
    width: 100%;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: min-content;
    grid-gap: 20px;
}
.item {
    width: 260px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2),
    inset -2px -2px 3px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    border-radius: 30px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .3s ease;
    cursor: pointer;
    text-decoration: none;
    padding: 10px;
}
.item:hover {
    transform: scale(1.03, 1.03);
}
.item img {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 1;
}
.item_name {
    color: #9238FF;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
}
.item_desc {
    color: #6B6B6B;
    font-size: 12px;
    list-style: none;
}
.item_desc li {
    padding-left: 10px;
}
.item_price {
    font-size: 25px;
    font-weight: bold;
    color: #9238FF;
    padding-top: 20px;
    text-align: center;
}
.buy {
    padding: 10px;
    margin: 20px;
    border-radius: 100px;
    text-align: center;
    background-color: #9238FF;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    transition: .3s ease;
}
.buy:hover {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    color: #9238FF;
}
.sale {
    position: relative;
    transition: 0.3s;
}
.sale>.item_price {
    color: red;
}
.sale::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px; /* товщина рамки */
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    border-radius: inherit;
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}
.filter_btn {
    display: none;
}
.deals {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

select {
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: blueviolet;
    border-radius: 20px;
    background: #ffffff;
    margin-top: 20px;
}

.live_results {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.live_results a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

.live_results a:hover {
    background: #f3f3f3;
}

p.avail {
    background: #e5e5e5;
    color: red;
    padding: 10px;
    text-align: center;
    border-radius: 30px;
    margin-top: 30px;
}
.not-available {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 780px) {
    h1 {
        padding: 10px;
        height: 50px;
        font-size: 20px;
    }
    .grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px;
        padding: 10px;
    }
    .item {
        width: 100%;
        border-radius: 10px;

    }
    .item img {
        border-radius: 10px;
    }
    .item_name {
        font-size: 12px;
    }
    .item_desc {
        font-size: 8px;
    }
    .item_price {
        font-size: 16px;
    }
    .buy {
        margin: 10px;
        font-size: 12px;
    }
    .filters {
        width: 100%;
        position: fixed;
        z-index: 9;
        background-color: #fff;
        transform: scale(0, 0);
        overflow-y: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
        transition: .3s ease;
        padding-top: 110px;
    }
    .filters button {
        padding: 10px;
    }
    .filter h2 {
        font-size: 16px;
    }
    .filter label {
        font-size: 12px;
    }
    .filter_btn {
        display: block;
        height: 40px;
        width: 40px;
        padding: 10px;

        background-color: #fff;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2), inset -2px -2px 2px rgba(0, 0, 0, 0.2);
        border-radius: 30px;
        z-index: 999;
        transition: .3s ease;
        cursor: pointer;
    }
    .filter_btn:hover {
        transform: scale(1.05, 1.05);
    }
    .filter_btn img {
        height: 100%;
    }
     .search {
        height: 60px;
        padding: 10px;
        width: 200px;
        gap: 10px;
    }
    .search_field {
        width: 200px;
    }
}