/* Меню по центру */
.mod-menu.mod-list.menuhorizont {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Добавляем перенос на новую строку */
    gap: 15px;
    justify-content: center;
    max-width: 100%; /* Ограничиваем ширину */
    overflow: hidden; /* Предотвращаем вылезание */
}

/* Убираем маркеры у элементов списка */
.mod-menu.mod-list.menuhorizont li {
    list-style: none;
}

/* Стили для ссылок */
.mod-menu.mod-list.menuhorizont li a {
    font-size: 16px;
    text-decoration: underline;
    padding: 5px 10px;
    display: inline-block;
}

/* Контейнер с flex сеткой */
.jshop_list_category .row-fluid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Стили для каждого блока категории */
.sblock.jshop_categ.category {
    flex: 0 0 calc(25% - 15px); /* 4 блока в строке */
    /* Для 3 блоков в строке: calc(33.333% - 13.33px) */
    /* Для 5 блоков: calc(20% - 16px) */
    border: 1px solid #333;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}

/* При наведении меняем цвет бордера */
.sblock.jshop_categ.category:hover {
    border-color: #000;
}
.jshop_prod_description table {
    border: 1px #ccc solid;
}
.jshop_prod_description td {
    border: 1px #ccc solid;
    padding: 5px 10px;
}
/* Картинка с плавным увеличением */
.sblock.jshop_categ.category .image img {
    width: 200px;
    transition: transform 0.3s ease;
    display: block;
}
.sblock.jshop_categ.category .image {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Увеличение картинки при наведении на весь блок */
.sblock.jshop_categ.category:hover .image img {
    transform: scale(1.05);
}

/* Остальные стили для красоты */
.sblock.jshop_categ.category .category_info {
    padding: 15px;
    text-align: center;
}

.sblock.jshop_categ.category .category_name {
    font-size: 16px;
    font-weight: 500;
}

.sblock.jshop_categ.category .category_name a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.sblock.jshop_categ.category:hover .category_name a {
    color: #000;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .sblock.jshop_categ.category {
        flex: 0 0 calc(33.333% - 13.33px); /* 3 блока */
    }
}

@media (max-width: 768px) {
    .sblock.jshop_categ.category {
        flex: 0 0 calc(50% - 10px); /* 2 блока */
    }
}

@media (max-width: 480px) {
    .sblock.jshop_categ.category {
        flex: 0 0 100%; /* 1 блок */
    }
}

#sp-main-body {
    padding: 0px 0;
}

h1 {
    margin: 50px 0;
}
.category_short_description {
    display: none;
}
.jshop_categ {
    margin-bottom: 0px;
}
#mxcpr {
    display: none;
}
/*************************************************************************/
/* Общий фон страницы - белый */
.jshop#comjshop {
    padding: 20px;
    background: #ffffff;
}

/* Заголовок категории */
.jshop#comjshop h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.jshop#comjshop h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, #89000d, #fb0000);
    border-radius: 3px;
}

/* Сетка товаров */
.jshop_list_product .row-fluid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin: 0;
}

/* Карточка товара */
.sblock3 {
    flex: 0 0 calc(33% - 19px);
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block_product {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.block_product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

/* Блок с изображением */
.product .image {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    padding: 10px;
}

.image_block {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 240px;
}
.jshop_list_product .block_product {
    padding-bottom: 0px;
    margin-bottom: 25px;
 }

 .image_block img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    transition: transform 0.4s ease;
    object-fit: contain;
}
.row-fluid [class*="sblock"] {
    padding-left: 0px;
    padding-right: 0px;
}

.block_product:hover .image_block img {
    transform: scale(1.05);
}

/* Метка (Новинка и т.д.) */
.product_label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.product_label img {
    max-width: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* Название товара */
.product .name {
    padding: 15px 15px 0;
    text-align: center;
}

.product .name a {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product .name a:hover {
    color: #007bff;
}

/* Блок с информацией о товаре */
.oiproduct {
    padding: 10px 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Наличие */
.block_available {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
    align-self: center;
}

.block_available.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.block_available.not_available {
    background: #ffebee;
    color: #c62828;
}

/* Цена */
.jshop_price {
    margin: 10px 0;
    text-align: center;
}

.jshop_price span {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

/* Кнопки */
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    justify-content: center;
}

.buttons .btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.button_buy {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
}

.button_buy:hover {
    background: linear-gradient(135deg, #218838, #1ba87e);
    transform: scale(1.02);
    color: white;
}

.button_detail {
    background: #f0f0f0;
    border: none;
    color: #555;
}

.button_detail:hover {
    background: #e0e0e0;
    color: #333;
}

/* Кнопка избранного */
.buttons .btn-sm {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #dc3545;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 25px;
    cursor: pointer;
}

.buttons .btn-sm:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Форма сортировки */
.form_sort_count {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.block_sorting_count_to_page .control-label {
    font-weight: 500;
    color: #555;
    margin-right: 10px;
}

.form_sort_count select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 30px 8px 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    background: white;
}

.icon-arrow {
    cursor: pointer;
    margin-left: 10px;
}

.icon-arrow-up,
.icon-arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.icon-arrow-up {
    border-bottom: 8px solid #007bff;
}

.control-group .icon-arrow-up:before {
    display: none;
}
#comjshop {
    margin: 50px 0;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .sblock3 {
        flex: 0 0 calc(33.333% - 17px);
    }
}

@media (max-width: 768px) {
    .sblock3 {
        flex: 0 0 calc(50% - 13px);
    }
    
    .jshop#comjshop {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .sblock3 {
        flex: 0 0 100%;
    }
    
    .buttons .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
/* Вариант 3: Адаптивный (сам выбирает 1 или 2 строки) */
.filter-price-block {
    display: block;
}

.filter_price {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.box_price_from,
.box_price_to,
.box_price_currency {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.filter_price .inputbox {
    width: 90px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter_price .inputbox:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* При ширине меньше 350px - всё в столбик */
@media (max-width: 350px) {
    .filter_price {
        flex-direction: column;
        align-items: stretch;
    }
    
    .box_price_from,
    .box_price_to {
        justify-content: space-between;
    }
    
    .filter_price .inputbox {
        width: 100%;
    }
}
.show_prices .jshop_filters .filter_item .filter_price input[type="text"] {
    width: 100%;
}