/* РОЗЕТКИНО — увеличиваем иконки категорий в левом каталоге */
.categories-v .categories-v__icon {
    width: 35px !important;
    height: 35px !important;
    flex: 0 0 35px !important;
}

.categories-v .categories-v__icon img,
.categories-v img.js-categories-v-image {
    width: 40px !important;
    height: 40px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* =====================================================
   РОЗЕТКИНО — СТРАНИЦА БРЕНДА
   Логотип слева, описание справа; категории и коллекции ниже
   Без изображений категорий
   ===================================================== */


/* ---------- 1. Общая страница ---------- */

.brand-plugin-page__wrapper {
    background: #ffffff !important;
    padding: 0;
    color: #222222;
    min-width: 0;
}

.brand-plugin-page__wrapper > h1 {
    margin: 0 0 24px;
    padding: 0;
    color: #222222;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* ---------- 2. Основной блок бренда ---------- */

.rozetkino-brand-header {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0 0 32px;
    padding: 28px;
    background: #ffffff !important;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.025);

    /* логотип | описание; секции ниже на всю ширину */
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
}

.rozetkino-brand-categories,
.rozetkino-brand-collections {
    grid-column: 1 / -1;
}

/* Линия под рядом «логотип + описание» — над первой секцией */
.rozetkino-brand-header > section:first-of-type {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid #eeeeee;
}


/* ---------- 3. Логотип бренда ---------- */

.rozetkino-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 110px;
    margin: 0;
    padding: 16px;
    background: #ffffff !important;
    border: 1px solid #eeeeee;
    border-radius: 8px;
}

.rozetkino-brand-logo__image {
    display: block;
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.rozetkino-brand-logo__name {
    margin: 0;
    padding: 0;
    text-align: center;
    color: #222222;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* ---------- 4. Описание бренда ---------- */

.rozetkino-brand-description {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
    color: #555555;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.rozetkino-brand-description > :first-child {
    margin-top: 0;
}

.rozetkino-brand-description > :last-child {
    margin-bottom: 0;
}

.rozetkino-brand-description img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ---------- 5. Категории ---------- */

.rozetkino-brand-categories {
    display: block;
    min-width: 0;
    margin: 0 0 30px;
    padding: 0;
    background: #ffffff !important;
}


/* Общие заголовки разделов */

.rozetkino-brand-section-title {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    color: #222222;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
}


/* Сетка категорий */

.rozetkino-brand-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
}


/* Кнопка категории */

.rozetkino-brand-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 14px 16px;
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #222222 !important;
    font-family: inherit !important;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    text-align: left;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Название категории */

.rozetkino-brand-category__name {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}


/* Стрелка категории */

.rozetkino-brand-category::after,
.rozetkino-brand-collection::after {
    content: "\2192";
    display: inline-block;
    flex: 0 0 auto;
    margin-left: auto;
    color: #a6a6a6;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* Наведение на категорию */

@media (hover: hover) {
    .rozetkino-brand-category:hover,
    .rozetkino-brand-collection:hover {
        background: #f8fafc !important;
        border-color: #1b5b94;
        color: #1b5b94 !important;
        box-shadow: 0 4px 14px rgba(27, 91, 148, 0.07);
    }

    .rozetkino-brand-category:hover::after,
    .rozetkino-brand-collection:hover::after {
        color: #1b5b94;
        transform: translateX(3px);
    }
}


/* ---------- 6. Коллекции ---------- */

.rozetkino-brand-collections {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
}


/* Сетка коллекций */

.rozetkino-brand-collections__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
}


/* Кнопка коллекции */

.rozetkino-brand-collection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 14px 16px;
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #222222 !important;
    font-family: inherit !important;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    text-align: left;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Название коллекции */

.rozetkino-brand-collection__name {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}


/* Не показываем скрытые коллекции */

.rozetkino-brand-collection[hidden] {
    display: none !important;
}


/* Кнопка показать все коллекции */

.rozetkino-brand-collections__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 16px 0 0;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #222222;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

@media (hover: hover) {
    .rozetkino-brand-collections__toggle:hover {
        background: #f8fafc;
        border-color: #1b5b94;
        color: #1b5b94;
    }
}

.rozetkino-brand-collections__toggle:focus-visible,
.rozetkino-brand-category:focus-visible,
.rozetkino-brand-collection:focus-visible {
    outline: 2px solid #1b5b94;
    outline-offset: 3px;
}


/* ---------- 7. Каталог товаров ---------- */

/* Каталог товаров не изменяем */

.brand-plugin-page__wrapper #product-list {
    background: #ffffff;
    min-width: 0;
}


/* ---------- 8. Планшеты ---------- */

@media (max-width: 900px) {
    .rozetkino-brand-header {
        padding: 22px;
        grid-template-columns: 180px minmax(0, 1fr);
        column-gap: 24px;
    }

    .rozetkino-brand-categories__grid,
    .rozetkino-brand-collections__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ---------- 9. Мобильные устройства ---------- */

@media (max-width: 600px) {
    .brand-plugin-page__wrapper > h1 {
        margin-bottom: 18px;
        font-size: 26px;
        line-height: 1.3;
    }

    .rozetkino-brand-header {
        margin-bottom: 24px;
        padding: 16px;
        border-radius: 8px;
        box-shadow: none;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px;
    }

    .rozetkino-brand-header > section:first-of-type {
        margin-top: 6px;
        padding-top: 20px;
    }

    .rozetkino-brand-logo {
        width: 100%;
        min-height: 80px;
        padding: 12px;
    }

    .rozetkino-brand-logo__image {
        max-height: 72px;
    }

    .rozetkino-brand-categories {
        margin-bottom: 24px;
    }

    .rozetkino-brand-section-title {
        margin-bottom: 14px;
        font-size: 20px;
    }

    .rozetkino-brand-categories__grid,
    .rozetkino-brand-collections__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .rozetkino-brand-category,
    .rozetkino-brand-collection {
        min-height: 48px;
        padding: 12px 14px;
    }

    .rozetkino-brand-collections__toggle {
        width: 100%;
        margin-top: 12px;
    }
}


/* ---------- 10. Уменьшение анимации ---------- */

@media (prefers-reduced-motion: reduce) {
    .rozetkino-brand-category,
    .rozetkino-brand-collection,
    .rozetkino-brand-category::after,
    .rozetkino-brand-collection::after,
    .rozetkino-brand-collections__toggle {
        transition: none;
    }
}