/* 1. Thiết lập Grid layout (Giữ nguyên) */
.minkprod-grid {
    display: grid;
    grid-template-columns: repeat(var(--minkprod-columns, 3), 1fr);
    gap: 25px; /* Tăng khoảng cách một chút cho đẹp */
    width: 100%;
    margin: 20px 0;
}

/* * 2. CSS CHO CARD SẢN PHẨM (MỚI)
 * (Thay thế toàn bộ CSS cũ cho .minkprod-box và các con của nó)
*/
a {
    color: #0073aa;
    text-decoration: none !important;
}
.minkprod-box {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    padding: 0 0 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.7em;
    overflow: hidden;
	color: red;
    font-size: 18px;
}

/* Hiệu ứng Hover */
.minkprod-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}
a:not(.dropdown-item):not(.btn):not(.nav-link) {
    transition: color .3s 
linear !important;
    color: #1a1a1a;
}
/* 3. Vùng Hình ảnh */
.minkprod-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f4f4;
}
.minkprod-image-wrapper a {
    display: block;
    height: 100%;
}
h3.minkprod-name a {
color: #1A1A19 !important;
}
.minkprod-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh lấp đầy */
    transition: transform 0.3s ease;
}
.minkprod-box:hover .minkprod-image-wrapper img {
    transform: scale(1.05); /* Hiệu ứng zoom khi hover */
}

/* 4. Vùng Nội dung */
.minkprod-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Giúp đẩy nút xuống dưới */
}

/* 5. Category (mới) */
.minkprod-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0073aa;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* 6. Tên sản phẩm */
.minkprod-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    /* Giới hạn 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.4em * 2); /* Giữ chiều cao cố định */
}
.minkprod-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}
.minkprod-name a:hover {
    color: #0073aa;
}

/* 7. Rating (mới) */
.minkprod-rating {
    margin-bottom: 10px;
    color: #ffb900; /* Màu vàng sao */
}
.minkprod-rating span {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* 8. Giá */
.minkprod-price {
    font-size: 1.2rem;
    color: #d9534f;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 9. Nút "Xem chi tiết" */
.minkprod-action {
    margin-top: auto; /* Quan trọng: Đẩy nút xuống dưới cùng */
	margin-left: 0;
}
.minkprod-button {
	display: block;
    text-align: center;
    background-color: #b117a0;
    margin-top: 10px !important;
    color: #ffffff !important;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: all 0.2s ease;
    max-width: 150px;
    margin: auto;
}
.minkprod-button:hover {
    background-color: #005a87;
    transform: scale(1.02);
}

/* 10. Responsive */
@media (max-width: 768px) {
    .minkprod-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên tablet */
        gap: 15px;
    }
}
@media (max-width: 480px) {
    .minkprod-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }
}

/* 11. CSS Phân trang (Giữ nguyên) */
.minkprod-pagination {
    margin-top: 30px;
    text-align: center;
}
.minkprod-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}
.minkprod-pagination .page-numbers:hover,
.minkprod-pagination .page-numbers.current {
    background: #0073aa;
    color: #ffffff;
}
.minkprod-pagination .page-numbers.dots {
    background: none;
}
/* 12. BỔ SUNG CSS CHO THANH FILTER */
.minkprod-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.minkprod-filter-bar a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f4f4f4;
    color: #444;
    border-radius: 20px; /* Bo tròn như hình */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.minkprod-filter-bar a:hover {
    background-color: #e0e0e0;
    color: #000;
}
/* Style cho nút đang active (đang chọn) */
.minkprod-filter-bar a.is-active {
    background-color: red !important; /* ĐỔI THÀNH MÀU ĐỎ CỦA BẠN */
    color: #ffffff;
}