/* =========================================================
   ОБЩАЯ АРХИТЕКТУРА DETAIL-СТРАНИЦ
   ========================================================= */

.category-detail__figure,
.style-hero__figure {
    min-width: 0;
    margin: 0;
}

.category-detail__media,
.style-hero__media {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f2f0e9;
    border-radius: 18px;
}

.category-detail__placeholder,
.style-hero__placeholder {
    padding: 20px;
    color: #9aa19d;
    font-size: 14px;
    text-align: center;
}

.category-detail__title::after,
.style-hero__title::after {
    content: "";
    display: block;
    width: 110px;
    height: 4px;
    margin-top: 14px;
    background: #f2a20d;
    border-radius: 4px;
}

.category-detail__description p:first-child,
.style-hero__description p:first-child {
    margin-top: 0;
}

.category-detail__description p:last-child,
.style-hero__description p:last-child {
    margin-bottom: 0;
}


/* Специфика страницы категории */
/* =========================================================
   СТРАНИЦА КАТЕГОРИИ
   ========================================================= */




/* =========================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================= */










/* =========================================================
   ВЕРХНИЙ БЛОК
   ========================================================= */

.category-detail__hero {
    display: block;
    margin-bottom: 60px;
}

.category-detail__hero::after {
    content: "";
    display: block;
    clear: both;
}

.category-detail__figure {
    float: left;
    width: min(38%, 430px);
    margin: 0 60px 24px 0;
}


/* =========================================================
   ГЛАВНОЕ ИЗОБРАЖЕНИЕ КАТЕГОРИИ

   Фото всегда полностью показывается по высоте.
   Если изображение широкое — края обрезаются.
   Если узкое — по бокам остаётся фоновая область.
   ========================================================= */













.category-detail__caption {
    margin-top: 10px;

    color: #8490a7;

    font-size: 13px;
    line-height: 1.35;

    text-align: center;
}


/* =========================================================
   ТЕКСТ КАТЕГОРИИ
   ========================================================= */

.category-detail__content {
    min-width: 0;

    padding-top: 4px;
}


.category-detail__title {
    margin: 0;

    color: #10201c;

    font-size: clamp(40px, 5vw, 62px);
    line-height: 1;

    letter-spacing: -0.035em;
}





.category-detail__subtitle {
    margin: 16px 0 0;

    color: #8090aa;

    font-size: 20px;
    line-height: 1.3;
}


.category-detail__description {
    margin-top: 26px;

    color: #536078;

    font-size: 17px;
    line-height: 1.6;
}








/* =========================================================
   БЛОК СТИЛЕЙ
   ========================================================= */

.category-styles {
    margin-top: 20px;
}


.category-styles__header {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}


.category-styles__title {
    margin: 0;

    display: flex;
    align-items: center;

    gap: 14px;

    color: #10201c;

    font-size: 30px;
    line-height: 1.2;
}





.category-styles__count {
    color: #8490a7;

    font-size: 14px;
}


.category-styles__empty {
    color: #8490a7;
}


/* =========================================================
   КАРТОЧКА СТИЛЯ
   ========================================================= */

.category-style-card {
    min-height: 170px;

    display: grid;
    grid-template-columns:
        190px
        minmax(0, 1fr)
        52px;

    gap: 24px;

    align-items: center;

    padding: 12px;

    background: #ffffff;

    border: 1px solid #eceeea;
    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(20, 40, 30, 0.05);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


.category-style-card + .category-style-card {
    margin-top: 16px;
}


.category-style-card:hover {
    transform: translateY(-2px);

    border-color: #d8e7df;

    box-shadow:
        0 9px 28px rgba(20, 40, 30, 0.09);
}


/* =========================================================
   ФОТО СТИЛЯ

   Та же логика, что у главного фото:
   полная высота + обрезка только по ширине.
   ========================================================= */

.category-style-card__media {
    width: 190px;
    height: 146px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f2f0e9;

    border-radius: 11px;
}





.category-style-card__placeholder {
    padding: 12px;

    color: #a1a7a3;

    font-size: 13px;
    line-height: 1.3;

    text-align: center;
}


/* =========================================================
   ТЕКСТ КАРТОЧКИ СТИЛЯ
   ========================================================= */

.category-style-card__content {
    min-width: 0;
}


.category-style-card__title {
    margin: 0;

    color: #15201d;

    font-size: 22px;
    line-height: 1.2;
}


.category-style-card__subtitle {
    margin-top: 4px;

    color: #8090aa;

    font-size: 14px;
    line-height: 1.3;
}


.category-style-card__description {
    max-width: 760px;

    margin: 13px 0 0;

    color: #69758b;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   СТРЕЛКА
   ========================================================= */

.category-style-card__arrow {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid #badace;
    border-radius: 50%;

    color: #08753f;

    font-size: 21px;
    line-height: 1;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}


.category-style-card:hover .category-style-card__arrow {
    color: #ffffff;

    background: #08753f;
    border-color: #08753f;
}


/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */
