.categories-index-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem;
}

.categories-index-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #64748b;
}

.categories-index-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.categories-index-breadcrumb a:hover {
    color: #1d4ed8;
}

.categories-index-header {
    margin-bottom: 2rem;
}

.categories-index-kicker {
    margin: 0 0 0.55rem;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.categories-index-header h1 {
    margin: 0 0 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.08;
    color: #0f172a;
}

.categories-index-header p {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

.categories-index-count {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.categories-index-panel {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.categories-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-index-list .categories-index-list {
    margin-top: 0.45rem;
    padding-left: clamp(1rem, 2.5vw, 1.6rem);
    border-left: 1px solid #e2e8f0;
}

.categories-index-item {
    margin: 0.25rem 0;
}

.categories-index-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.categories-index-link:hover {
    background: #f8fafc;
    color: #1d4ed8;
    transform: translateX(2px);
}

.category-link-main {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    font-weight: 700;
}

.category-link-main span {
    overflow-wrap: anywhere;
}

.category-link-main i {
    color: #2563eb;
}

.category-product-count {
    flex: 0 0 auto;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.categories-index-empty {
    display: grid;
    place-items: center;
    gap: 0.8rem;
    min-height: 220px;
    color: #64748b;
    text-align: center;
}

.categories-index-empty i {
    font-size: 2rem;
    color: #94a3b8;
}

@media (max-width: 720px) {
    .categories-index-page {
        padding: 1.25rem;
    }

    .categories-index-panel {
        padding: 0.65rem;
        border-radius: 12px;
    }

    .categories-index-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }
}
