/* Parent Category Card */
.parent-category-card {
    background: white;
    border-radius: 20px;
    margin: 0 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;

}

/* Parent Header with Color Line */
.parent-header {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent);
}

.parent-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: 6px;
    border-radius: 50vw;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}

.parent-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
}

.category-count {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 10px;
}

/* Scroll Container (using your existing classes) */
.card.categories {
    position: relative;
    margin: 10px;
    background: transparent;
    box-shadow: none;
    border: none;
}

.category.nested_item {
    width: max-content;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nested_items .nested_item {
    min-width: 80px;
}

.scroller.left,
.scroller.right {
    top: -55px;
}

.scroller.right {
    right: 5px;
}

.scroller.left {
    left: auto;
    right: 60px;
}


/* Cover image - 1:1 ratio */
.category.nested_item .cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    background: #fbf9ffff;
    margin-bottom: 12px;
    /* box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05); */
    height: 70px;
    width: 70px;
}

.category.nested_item .cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.category.nested_item:hover .cover img {
    transform: scale(1.08);
}

/* Title */
.category.nested_item .title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    padding: 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.empty-icon {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 15px;
    display: block;
}

.empty-title {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-text {
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Fade In Animation */
.parent-category-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---- Above 600px increase sizing ---- */
@media (min-width: 600px) {
    .category.nested_item .cover {
        height: 100px;
        width: 100px;
    }

    .nested_items .nested_item {
        min-width: 120px;
    }
}