/* Product Category Detail */
.category-detail-content {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Product Filter */
.product-filter-container {
    margin: 2rem 0;
}

.product-filter-buttons {
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: var(--dark-gray);
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.25rem;
}

.filter-btn:hover {
    background-color: var(--light-gray);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Product Grid */
.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em;
    margin-bottom: 1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    margin: 2rem auto;
}

/* Pagination */
.pagination-container {
    margin-top: 2rem;
}

.pagination {
    justify-content: center;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--dark-gray);
}

.page-link:hover {
    color: var(--primary-color);
}

/* Modal Styles */
.product-modal .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.product-detail-image {
    height: 100%;
    min-height: 400px;
    background-color: #f8f9fa;
}

.product-detail-title {
    color: var(--dark-gray);
    font-weight: 600;
}

.product-detail-desc {
    color: #666;
}

.product-modal .modal-dialog {
    max-width: 1000px;
}

@media (max-width: 767.98px) {
    .product-detail-image {
        min-height: 300px;
    }
}

/* Active Product Item */
.hd-rang-dong-product-item.active {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hd-rang-dong-product-item.active .hd-rang-dong-product-image {
    border: 3px solid var(--primary-color);
}

.hd-rang-dong-product-item.active .hd-rang-dong-product-name {
    color: var(--primary-color);
    font-weight: bold;
} 