/* Стили для фото в карточке товара */
.productfull .image_middle img.image {
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
}

.productfull .image_middle:hover img.image {
    transform: scale(1.02) !important;
}

/* Контейнер для миниатюр - теперь в ряд */
.productfull .image_thumb_list {
    margin-top: 20px !important;
    width: 100% !important;
    overflow-x: auto !important; /* если не помещаются - горизонтальная прокрутка */
    padding-bottom: 10px !important;
}

/* Стили для списка миниатюр */
.productfull #list_product_image_thumb {
    display: flex !important;
    flex-wrap: nowrap !important;      /* В одну строку */
    gap: 12px !important;               /* Расстояние между миниатюрами */
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 5px 0 !important;
    width: 100% !important;
}

/* Каждая миниатюра */
.productfull #list_product_image_thumb .sblock0 {
    flex: 0 0 auto !important;          /* Не растягиваются, фиксированный размер */
    display: inline-block !important;
}

/* Стили для миниатюр (превьюшек) - с сохранением качества */
.productfull .jshop_img_thumb {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain !important;     /* Вместо cover - сохраняет пропорции */
    object-position: center !important; /* Центрирует */
    background-color: #f8f8f8 !important; /* Фон для прозрачных областей */
    border-radius: 12px !important;
    border: 2px solid transparent !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

/* Эффект при наведении */
.productfull .jshop_img_thumb:hover {
    border-color: #8B0000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(139,0,0,0.15) !important;
}

/* Активная миниатюра (если нужно подсвечивать выбранную) */
.productfull .jshop_img_thumb.active {
    border-color: #8B0000 !important;
    opacity: 1 !important;
}
/* -------------------------------------------------------------------------------- */
/* Стили для списка товаров в категории */
.jshop_list_product .row-fluid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    justify-content: flex-start !important;
}

.jshop_list_product .sblock3 {
    width: calc(33.333% - 17px) !important;
    margin: 0 !important;
}

@media (max-width: 992px) {
    .jshop_list_product .sblock3 {
        width: calc(50% - 13px) !important;
    }
}

@media (max-width: 576px) {
    .jshop_list_product .sblock3 {
        width: 100% !important;
    }
}

/* Карточка товара */
.jshop_list_product .product {
    background: white !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.jshop_list_product .product:hover {
    box-shadow: 0 15px 30px rgba(139,0,0,0.15) !important;
    transform: translateY(-5px) !important;
}

/* Изображение */
.jshop_list_product .image {
    text-align: center !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

.jshop_list_product .image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    transition: transform 0.5s ease !important;
}

.jshop_list_product .product:hover .image img {
    transform: scale(1.05) !important;
}

/* Название */
.jshop_list_product .name a {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: block !important;
    margin: 10px 0 !important;
}

/* Цена */
.jshop_list_product .jshop_price {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #8B0000 !important;
    margin: 10px 0 !important;
}

/* Старая цена */
.jshop_list_product .old_price {
    font-size: 14px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    margin-right: 10px !important;
}

/* Кнопка */
.jshop_list_product .buttons {
    margin-top: auto !important;
    text-align: center !important;
}

.jshop_list_product .button_buy {
    background: #8B0000 !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center !important;
}

.jshop_list_product .button_buy:hover {
    background: #660000 !important;
}

/* -------------------------------------------------------------------------------- */

.productfull .jshop_img_thumb {
    width: auto !important;        /* естественный размер */
    height: 150px !important;      /* фиксированная высота */
    max-width: 200px !important;   /* но не шире 200px */
    object-fit: contain !important;
    /* остальное без изменений */
	
}
/* -------------------------------------------------------------------------------- */

/* Скрыть пустой блок миниатюр */
.image_thumb_list:empty {
    display: none !important;
}

/* -------------------------------------------------------------------------------- */
/* Скрыть футер HikaShop */
.hikashop_footer {
    display: none !important;
}
/* -------------------------------------------------------------------------------- */
/* Общий контейнер для товаров */
.hikashop_products_listing {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Расстояние между карточками */
    justify-content: flex-start; /* Выравниваем по левому краю */
    margin: 30px 0;
}

/* Отдельная карточка товара */
.hikashop_product {
    background: #ffffff; /* Белый фон */
    border-radius: 20px; /* Скругленные углы */
    padding: 20px 20px 25px 20px;
    width: calc(33.333% - 17px); /* 3 колонки, с учетом gap */
    min-width: 280px; /* Минимальная ширина, чтобы не сжимались слишком сильно */
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.05); /* Очень тонкая граница */
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1); /* Легкая тень */
    transition: all 0.3s ease; /* Плавность при наведении */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* Чтобы ничего не вылезало за границы */
}

/* Эффект при наведении на карточку */
.hikashop_product:hover {
    transform: translateY(-5px); /* Чуть приподнимается */
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
    border-color: transparent;
}

/* Блок с изображением товара */
.hikashop_product_image {
    text-align: center;
    margin-bottom: 20px;
    height: 200px; /* Фиксированная высота для картинок */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f8f9fc; /* Легкий фон для области изображения */
    padding: 15px;
}

.hikashop_product_image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Чтобы картинка вписалась, не обрезаясь */
    transition: transform 0.3s ease;
}

.hikashop_product:hover .hikashop_product_image img {
    transform: scale(1.05); /* Легкое увеличение картинки при наведении */
}

/* Название товара */
.hikashop_product_name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #1a1e2b;
    flex-grow: 1; /* Занимает все доступное место, чтобы цены были снизу */
}

.hikashop_product_name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.hikashop_product_name a:hover {
    color: #4361ee; /* Приятный синий при наведении на ссылку */
}

/* Код товара (если есть) */
.hikashop_product_code {
    font-size: 13px;
    color: #8b93a7;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* Цена */
.hikashop_product_price {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 10px 0 20px 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.hikashop_product_price .hikashop_price {
    color: #1e293b;
}

/* Если есть старая цена (скидка) */
.hikashop_product_price .hikashop_product_price_old {
    font-size: 16px;
    font-weight: 400;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Кнопка "В корзину" */
.hikashop_product .hikashop_add_to_cart {
    margin-top: auto; /* Прижимаем к низу */
}

.hikashop_product .hikabtn {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px; /* Полностью скругленная кнопка */
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 8px 16px -6px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.hikashop_product .hikabtn:hover {
    background: linear-gradient(145deg, #2d3b52, #1a2332);
    transform: scale(0.98); /* Легкое нажатие */
    box-shadow: 0 4px 8px -3px rgba(0,0,0,0.2);
}

/* Кнопка "Подробнее", если она есть */
.hikashop_product .hikashop_product_more {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
}

.hikashop_product .hikashop_product_more:hover {
    color: #4361ee;
    text-decoration: underline;
}

/* -------------------------------------------------------------------------------- */
.mySlides {
    display: none;
    height: 100%;
    font-family: Arial,Helvetica,sans-serif;
}
.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.slideshow-container {
    overflow: hidden;
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 400px;
    height: 400px;
}
.slide-prev, .slide-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    background-color: rgba(0,0,0,0.3);
    text-decoration: none;
}
.slide-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.slide-prev:hover, .slide-next:hover {
    background-color: rgba(0,0,0,0.8);
}
.slide-dot-control {
    text-align: center;
    margin-top: 10px;
}
.slide-dot {
    cursor:pointer;
    height: 13px;
    width: 13px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.slide-dot-active, .slide-dot:hover {
    background-color: #717171;
}
/* -------------------------------------------------------------------------------- */

/* Стили для галереи JO Property Gallery - квадраты с рамкой */

/* Контейнер галереи */
.jo-property-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 10px; /* расстояние между ячейками */
    margin-bottom: 20px;
}

/* Ячейка с фото */
.jo-property-gallery-item {
    aspect-ratio: 1 / 1; /* квадрат */
    width: 100%;
    border: 2px solid #000000; /* черная рамка */
    background-color: #ffffff; /* белый фон */
    border-radius: 0; /* прямые углы */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

/* Фото внутри ячейки */
.jo-property-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* заполняет квадрат */
    display: block;
}

/* Эффект при наведении */
.jo-property-gallery-item:hover {
    border-color: #666666;
}

/* Адаптация для планшетов (2 колонки) */
@media (max-width: 768px) {
    .jo-property-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптация для телефонов (1 колонка) */
@media (max-width: 480px) {
    .jo-property-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}