/* categories-products.css */
/* CSS độc lập cho component CategoriesAndProducts */

.categoriesproduct {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Khu vực danh mục */
.category-section {
    margin-bottom: 1rem;
}

.category-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-card {
    flex: 1 0 100px;
    max-width: calc(25% - 1rem);
    aspect-ratio: 4/3;
    height: auto;
    min-height: 70px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: none;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-card.active {
    border: 2px solid var(--primary-dark);
}

.category-card.primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.category-card.back {
    background-color: var(--gray-medium);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card.back i {
    font-size: 1.5rem;
}

.category-card .card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Khu vực sản phẩm */
.product-section {
    flex: 1;
    /* overflow-y: auto; */
}

.product-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Badge giá - đã ẩn theo yêu cầu */
.price-badge {
    display: none;
}

/* Chỉ thị loading */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
}
