﻿/* --- PRODUCT CATEGORIES (PREMIUM CARDS) --- */

.product-categories-wrapper {
    position: relative;
    padding-bottom: 20px;
}

/* 1. Card Container */
.category-card-premium {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%; /* Đảm bảo các card cao bằng nhau */
}

    .category-card-premium:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 70, 186, 0.15);
    }

/* 2. Image Styles */
.category-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px; /* Chiều cao cố định cho ảnh */
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card-premium:hover .category-img {
    transform: scale(1.1); /* Zoom ảnh khi hover */
}

/* Lớp phủ màu gradient lên ảnh */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.category-card-premium:hover .category-overlay {
    opacity: 0.8; /* Tối hơn chút khi hover để chữ rõ hơn */
}

/* 3. Content Styles */
.category-content {
    position: relative;
    padding: 25px;
    text-align: center;
    background: #fff;
    margin-top: -40px; /* Kéo nội dung chồm lên ảnh một chút */
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.icon-badge {
    width: 40px;
    height: 40px;
    background: var(--primary-color, #0046ba);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -45px auto 10px; /* Icon nằm giữa biên giới ảnh và content */
    border: 3px solid #fff;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.category-card-premium:hover .category-title {
    color: var(--primary-color, #0046ba);
}

/* 4. Button View More */
.btn-view-more {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.category-card-premium:hover .btn-view-more {
    background: var(--primary-color, #0046ba);
    color: #fff;
    padding-right: 25px; /* Tạo hiệu ứng mở rộng */
}
