﻿/* =========================================
   PREMIUM HIGHLIGHT PRODUCT CATEGORIES
   ========================================= */

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

/* 1. CARD CONTAINER (Khung Thẻ) */
.category-card-premium {
    display: block;
    position: relative;
    border-radius: 24px; /* Bo góc mềm mại hơn */
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    /* Bóng đổ siêu nhẹ ban đầu */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    /* Viền mờ bao quanh */
    border: 1px solid rgba(0,0,0,0.04);
}

    /* Hiệu ứng Hover vào Card */
    .category-card-premium:hover {
        transform: translateY(-15px); /* Bay lên cao hơn */
        /* Bóng đổ lan tỏa màu xanh thương hiệu */
        box-shadow: 0 25px 50px rgba(0, 70, 186, 0.25);
        border-color: rgba(0, 70, 186, 0.2);
    }

/* 2. IMAGE STYLES (Ảnh) */
.category-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px; /* Tăng chiều cao ảnh */
    overflow: hidden;
    /* Clip-path tạo đường cong nghệ thuật dưới chân ảnh */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    transition: all 0.5s;
}

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

.category-card-premium:hover .category-img {
    transform: scale(1.15) rotate(-2deg); /* Vừa zoom vừa xoay nhẹ */
}

/* Lớp phủ Gradient đẹp mắt */
.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, 70, 186, 0.3) 100%);
    opacity: 0.6;
    transition: opacity 0.3s;
}

/* 3. ICON BADGE (Điểm nhấn trung tâm) */
.icon-badge {
    width: 60px;
    height: 60px; /* To hơn */
    /* Gradient vàng kim loại sang trọng */
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Căn giữa tuyệt đối đè lên đường cong ảnh */
    position: absolute;
    top: 240px; /* Điều chỉnh khớp với chiều cao ảnh */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border: 4px solid #fff;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hiệu ứng nảy */
}

.category-card-premium:hover .icon-badge {
    transform: translateX(-50%) scale(1.1); /* Phóng to icon khi hover */
    background: linear-gradient(135deg, #0046ba 0%, #0060ff 100%); /* Đổi sang màu xanh */
    box-shadow: 0 10px 20px rgba(0, 70, 186, 0.4);
}

/* 4. CONTENT STYLES (Nội dung bên dưới) */
.category-content {
    padding: 50px 20px 30px; /* Padding top lớn để né icon */
    text-align: center;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

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

/* 5. BUTTON VIEW MORE (Nút bấm) */
.btn-view-more {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card-premium:hover .btn-view-more {
    background: var(--primary-color, #0046ba);
    color: #fff;
    padding-right: 30px;
    box-shadow: 0 5px 15px rgba(0, 70, 186, 0.3);
}

.btn-view-more i {
    transition: transform 0.3s;
}

.category-card-premium:hover .btn-view-more i {
    transform: translateX(5px);
}


/* --- STYLE 1: GHOST TEXT --- */
.premium-section-header {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #2c3e50;
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

    /* Chữ bóng mờ phía sau */
    .main-title::before {
        content: attr(data-text); /* Lấy nội dung từ HTML */
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 4.5rem;
        font-weight: 900;
        color: rgba(0, 70, 186, 0.05); /* Màu xanh rất mờ */
        z-index: -1;
        white-space: nowrap;
        text-transform: uppercase;
        pointer-events: none;
    }

/* Đường gạch trang trí */
.decor-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

    .decor-line::before,
    .decor-line::after {
        content: '';
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--primary-color, #0046ba));
        border-radius: 2px;
    }

    .decor-line::after {
        background: linear-gradient(90deg, var(--primary-color, #0046ba), transparent);
    }

    .decor-line i {
        color: #ffd700; /* Màu vàng */
        font-size: 1.2rem;
    }

/* =========================================
   RESPONSIVE CHO TITLE (MOBILE & TABLET)
   ========================================= */

/* 1. Màn hình Tablet & Laptop nhỏ (Dưới 1200px) */
@media (max-width: 1199px) {
    .main-title {
        font-size: 2rem; /* Giảm cỡ chữ chính */
    }

        .main-title::before {
            font-size: 3.5rem; /* Giảm cỡ chữ bóng */
            top: -25px;
        }
}

/* 2. Màn hình Tablet dọc & Mobile to (Dưới 991px) */
@media (max-width: 991px) {
    .premium-section-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .main-title {
        font-size: 1.8rem;
    }

        .main-title::before {
            font-size: 3rem;
            top: -20px;
            /* Nếu tên danh mục quá dài, chữ bóng sẽ bị tràn -> Cần ẩn phần thừa */
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
        }
}

/* 3. Màn hình Mobile nhỏ (Dưới 576px) */
@media (max-width: 576px) {
    .main-title {
        font-size: 1.5rem; /* Chữ chính nhỏ gọn */
        margin-bottom: 10px;
    }

        .main-title::before {
            font-size: 2.2rem; /* Chữ bóng chỉ lớn hơn chữ chính một chút */
            top: -12px; /* Kéo sát lại */
            opacity: 0.03; /* Làm mờ hơn nữa để không rối mắt trên màn hình bé */
            letter-spacing: 0; /* Bỏ khoảng cách chữ để gọn hơn */
        }

    .decor-line {
        gap: 10px; /* Thu hẹp khoảng cách dòng kẻ */
    }

        .decor-line::before,
        .decor-line::after {
            width: 40px; /* Dòng kẻ ngắn lại */
        }
}