/* KOSMOSTORE CATEGORY HIERARCHY START */

.category-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.category-breadcrumbs a,
.category-breadcrumbs span {
    line-height: 1.45;
}

.category-breadcrumbs span[aria-current="page"] {
    color: rgba(210, 222, 233, 0.82);
}

.category-heading__summary {
    display: grid;
    gap: 16px;
}

.category-hierarchy-total {
    display: inline-flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #d9e4ed;
    border: 1px solid rgba(112, 145, 174, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.025em;
}

.category-children {
    margin-top: 8px;
}

.category-children__header {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 430px);
    gap: 46px;
    align-items: end;
    margin-bottom: 26px;
}

.category-children__header h2 {
    margin: 0;
    color: #f6f0e8;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.category-children__header > p {
    margin: 0;
    color: #91a4b7;
    font-size: 14px;
    line-height: 1.65;
}

.category-children__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-child-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 236px;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 20px;
    overflow: hidden;
    padding: 24px;
    color: inherit;
    border: 1px solid rgba(67, 113, 153, 0.42);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(194, 82, 41, 0.11),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(14, 37, 61, 0.97),
            rgba(6, 22, 40, 0.99)
        );
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    text-decoration: none;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.category-child-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(224, 91, 43, 0.78),
            transparent
        );
    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.category-child-card:hover,
.category-child-card:focus-visible {
    color: inherit;
    border-color: rgba(211, 102, 58, 0.68);
    outline: none;
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(190, 72, 31, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
}

.category-child-card:hover::after,
.category-child-card:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.category-child-card__icon {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(121, 151, 179, 0.14);
    border-radius: 18px;
    background: rgba(117, 146, 178, 0.12);
}

.category-child-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-child-card__icon > span {
    font-size: 25px;
    line-height: 1;
}

.category-child-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
}

.category-child-card__content > strong {
    color: #ef7042;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.category-child-card__description {
    color: #9dafc0;
    font-size: 13px;
    line-height: 1.55;
}

.category-child-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.category-child-card__meta > span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    color: #d4dfe8;
    border: 1px solid rgba(111, 143, 170, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.category-child-card__action {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    color: #eef4f8;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.category-child-card__action > span {
    color: #ef7042;
    font-size: 18px;
    transition: transform 0.22s ease;
}

.category-child-card:hover
.category-child-card__action > span,
.category-child-card:focus-visible
.category-child-card__action > span {
    transform: translateX(4px);
}

.category-products-section {
    margin-top: 8px;
}

@media (max-width: 1120px) {
    .category-children__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .category-children__header {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 680px) {
    .category-page {
        padding-top: 112px;
    }

    .category-heading {
        gap: 22px;
        margin-bottom: 34px;
    }

    .category-heading h1 {
        font-size: clamp(34px, 12vw, 48px);
        line-height: 0.98;
        letter-spacing: -0.05em;
        overflow-wrap: anywhere;
    }

    .category-children__grid {
        grid-template-columns: 1fr;
    }

    .category-child-card {
        min-height: 214px;
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
        border-radius: 20px;
    }

    .category-child-card__icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .category-child-card__content > strong {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-child-card,
    .category-child-card::after,
    .category-child-card__action > span {
        transition: none;
    }
}

/* KOSMOSTORE CATEGORY HIERARCHY END */
