/* ===============================================
   CATEGORY ITEM STYLES (MATCHING PRODUCT ITEM)
   =============================================== */

.category-item {
    text-decoration: none;
    position: relative;
    display: block;
    transition: all 0.3s ease;
}

.category-item:hover {
    text-decoration: none;
    transform: translateY(-5px);
}

.category-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.category-item:hover .category-thumbnail {
    transform: scale(1.05);
}

.category-placeholder-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1.3;
}

.category-item:hover .category-title {
    color: #3498db;
}

.category-info {
    margin-bottom: 1rem;
}

.category-count {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.category-item .icon-cross {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.category-item:hover .icon-cross {
    opacity: 1;
    transform: scale(1);
}

.category-item .icon-cross img {
    width: 16px;
    height: 16px;
}

/* Responsive Category Item */
@media (max-width: 768px) {
    .category-thumbnail,
    .category-placeholder-img {
        height: 150px;
    }
    
    .category-title {
        font-size: 0.9rem;
    }
    
    .category-count {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 24px;   
    }

    .section-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .category-thumbnail,
    .category-placeholder-img {
        height: 120px;
    }
    
    .category-title {
        font-size: 0.85rem;
        margin: 0.5rem 0 0.25rem 0;
    }
    
    .category-count {
        font-size: 0.75rem;
    }

    .category-item .img-fluid {
        height: 120px;
    }
} 