input[type="submit"], input[type="reset"] {
    /* Сброс заводских стилей */
    border: none;
    outline: none;
    cursor: pointer;

    /* Размеры и форма */
    height: fit-content;
    padding: 12px 24px;
    border-radius: 8px;

    /* Цвета и шрифт */
    background-color: #001EE0;
    color: white;
    font-size: 20px;
    font-weight: 600;

    /* Плавный переход */
    transition: all 0.3s ease;
}

/* Эффект при наведении */
input[type="submit"]:hover, input[type="reset"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* Кнопка слегка приподнимается */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Эффект при нажатии */
input[type="submit"]:active, input[type="reset"]:active {
    transform: translateY(0);
}

input {
}

select {
    /* Отключаем стили браузера */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Добавляем свои стили */
    padding: 10px 15px;
    border: 1px solid #000006;
    border-radius: 8px;
    background-color: #090911;
    color: #FFFFFF;
    font-size: 25px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
}

.catalog_reset_link {
    display: inline-block;
    padding: 12px 24px; /* Подобно стандартным кнопкам */
    font-size: 20px;
    text-decoration: none;
    background-color: #001EE0;
    color: white;
    border: none;
    border-radius: 8px;
}

.catalog_reset_link:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* Кнопка слегка приподнимается */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.catalog_reset_link:active {
    transform: translateY(0);
}

.catalog_title {
    /* display: flex;
    justify-content: space-between; */
    font-weight: bold;
    font-size: 25px;
    width: 1342px;
    margin-inline: auto;
    margin-top: 58px;
}

.catalog_title p.caption.down_shift.desktop {
    display: block;
    margin-bottom: 10px;
}

.catalog_title p.caption.down_shift.mobile {
    display: none;
}

.catalog_search {
    width: 1342px;
    margin-inline: auto;
    margin-bottom: 80px;
    margin-top: 15px;
}


/* Ряд для кнопок */
.catalog_get_row {
    display: flex;
    gap: 15px;
}

/* Обертка */
.select_wrapper {
    position: relative;
    display: inline-block;
}

/* Настоящий селект делаем полностью невидимым, но растягиваем на всю плашку,
   чтобы при клике на красивую кнопку открывался стандартный список */
.select_wrapper select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Делаем невидимым */
    cursor: pointer;
    z-index: 2; /* Кладем поверх красивой кнопки */
}

/* Когда невидимый select внутри обертки активен (в фокусе),
   мы находим его соседнюю плашку .custom_select_box и красим её бордер в белый цвет */
.select_wrapper:focus-within .custom_select_box {
    border-color: #FFFFFF !important;
    /* Можно еще добавить легкое свечение для красоты, как в Фигме: */
    /* box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); */
}

/* Наша красивая кастомная плашка, которая идеально облегает текст */
.custom_select_box {
    display: inline-flex;
    align-items: center;
    /*gap: 15px; /* ВОТ ОН: идеально одинаковый зазор от любого текста до стрелочки! */

    padding: 10px 10px 10px 15px;
    border: 1px solid #000006;
    border-radius: 15px;
    background-color: #090911;
    color: #FFFFFF;
    font-size: 25px;
    font-weight: 500;
    white-space: nowrap;
}

.custom_select_box svg {
    /*color: #fff; /* Цвет твоей стрелочки */
    display: block;
    flex-shrink: 0;
}

.catalog_get {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
    /*margin-bottom: 45px;*/
}

.catalog_not_found {
    color: red;
    font-size: 25px;
    font-weight: 600;
}

.catalog_search_result{
    font-size: 64px;
    font-weight: 600;
    width: 1342px;
    margin-inline: auto;
    margin-bottom: 75px;
}

.catalog {
    display: flex;
    flex-wrap: wrap;
    /*justify-content: space-between;*/
    gap: 20px;
    width: 1342px;
    margin-inline: auto;
    margin-bottom: 75px;
}

.catalog_name {
    margin-bottom: 5px;
}

.catalog_name a {
    font-size: 25px;
    font-weight: 700;
}

.catalog_item {
    position: relative;
    flex: 0 0 calc((100% - 60px) / 4);
    /*flex: 0 0 23%;*/
    /*margin: 10px;
    padding: 10px;*/
    margin-bottom: 20px;
}

.catalog_image {
    margin-bottom: 20px;
}

.catalog_image img {
    /*transform: scale(1);
    transition: all 1s ease;*/
    transition: opacity 1s ease;
    width: 100%;       /* Картинка занимает всю ширину карточки */
    /* height: 200px;     /* Жесткая высота для всех картинок */
    aspect-ratio: 4 / 3;
    object-fit: cover; /* Масштабирует картинку, чтобы она заполнила область (лишнее обрежется) */
    display: block;    /* Убирает лишний отступ снизу */
}

.catalog_image img:hover {
    opacity: 0.5;
    /*transform: scale(1.2);*/
    position: relative;
    z-index: 1;
}

.catalog_price_data {
    font-size: 25px;
    font-weight: 400;
}

.catalog_price_discount {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 1;
    background-color: #001EE0;
    /*padding: 5px;*/
    /*width: max-content;*/
    width: 75px;
    height: 45px;
    line-height: 45px;
    border-radius: 10px;
    /*font-weight: bold;*/
    text-align: center;
}

.catalog_price_without_discount {
    opacity: 0.5;
}

.catalog_partial_match {
    opacity: 0.6;
    /* border-style: dashed; */
    background-color: #000006;
}

.catalog_badge {
    color: orange;
    font-size: 0.8em;
}

.catalog_badge_success {
    color: green;
    font-weight: bold;
}

@media (max-width: 768px) {
    .catalog_title {
        width: auto;
        margin-top: 0px;
        margin-left: 18px;
    }

    .catalog_title p.caption.down_shift.desktop {
        display: none;
    }

    .catalog_title p.caption.down_shift.mobile {
        display: block;
        margin-bottom: 10px;
    }

    .caption {
        font-size: 22px;
    }

    .catalog_search {
        width: auto;
        margin-left: 18px;
        margin-bottom: 15px;
        margin-top: 0px;
    }

    .catalog_search_result {
        width: auto;
        font-size: 22px;
        margin-left: 18px;
        margin-bottom: 40px;
    }

    .catalog_get_row {
        gap: 4px;
    }

    select {
        font-size: 10px;
    }

    .custom_select_box {
        font-size: 10px;
        border-radius: 5px;
        padding: 0px 2px 0px 5px;
        background-color: #1D1D1D;
    }

    .custom_select_box svg {
        width: 12px;
        height: 18px;
    }
    .catalog {
        width: auto;
        gap: 0px;
        justify-content: space-between;
        margin-left: 18px;
        margin-right: 18px;
        margin-bottom: 0px;
    }

    .catalog_item {
        flex: 0 0 calc((100% - 6px) / 2);
    }

    .catalog_image {
        margin-bottom: 2px;
    }

    .catalog_image img {
        border-radius: 5px;
    }

    .catalog_name {
        margin-bottom: 0px;
    }

    .catalog_name a {
        font-size: 10px;
    }

    .catalog_price_data {
        font-size: 10px;
    }

    .catalog_price_discount {
        border-radius: 5px;
        top: -8px;
        right: 0px;
        width: 35px;
        height: 25px;
        line-height: 25px;
    }
}