/* =========================================
   КАРТОЧКА РАЗДЕЛА (ОБЩИЕ СТИЛИ)
   ========================================= */

.sections-block__item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.sections-block__item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Ссылка внутри карточки */
.sections-block__item-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* =========================================
   БЛОК С КАРТИНКОЙ
   ========================================= */

/* Обертка картинки (важно для обрезки краев при увеличении) */
.sections-block__item-image-wrapper {
    height: 250px;
    width: 100%;
    display: block;
    overflow: hidden; /* Обрезает увеличенную картинку */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    background-color: #f5f5f5; /* Фон, пока грузится картинка */
}

/* Сама картинка */
.sections-block__item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

/*
   ИСПРАВЛЕНИЕ КОНФЛИКТА С LAZYLOADED:
   Усиливаем специфичность и прописываем оба перехода (transform и opacity).
*/
.sections-block__item .sections-block__item-image,
.sections-block__item .sections-block__item-image.lazyloaded {
    transition: transform 0.4s ease, opacity 0.3s ease !important;
}

/* ЭФФЕКТ УВЕЛИЧЕНИЯ ПРИ НАВЕДЕНИИ НА КАРТОЧКУ */
.sections-block__item:hover .sections-block__item-image {
    transform: scale(1.05) !important;
}

/* =========================================
   БЕЙДЖ (GRB / BATHCO)
   ========================================= */

.badge-custom {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none; /* Чтобы бейдж не мешал клику */
}

/* =========================================
   ТЕКСТОВЫЙ БЛОК
   ========================================= */

.sections-block__item-text {
    padding: 1.5rem; /* Отступы внутри карточки */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    background: #fff;
}

/* Заголовок раздела */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

/* Количество товаров */
.section-count {
    font-size: 14px;
    color: #999;
}

/* =========================================
   СТРЕЛКА В КРУЖКЕ
   ========================================= */

.arrow-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Чтобы стрелка не сжималась */
}

.arrow-circle svg {
    display: block;
    width: 14px;
    height: 14px;
}

.arrow-circle svg path {
    transition: stroke 0.3s ease;
}

/* Эффект наведения на стрелку (при наведении на карточку) */
.sections-block__item:hover .arrow-circle {
    background-color: #333;
    border-color: #333;
}

.sections-block__item:hover .arrow-circle svg path {
    stroke: #fff;
}

.side_left .container .left_block{
  display: none;
}

/* =========================================
   ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ (UTILITY)
   (Если в теме нет Bootstrap, эти классы сделают верстку)
   ========================================= */

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.overflow-hidden { overflow: hidden !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
