/* 
 * Custom Category Card Styles - Modern Luxury 
 * Chỉ can thiệp tối thiểu, không override các style của Flatsome
 */

/* 1. Bo góc và bóng đổ cho card */
.product-category .box.has-hover {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    overflow: hidden !important;
}

/* 2. Hover card */
.product-category .box.has-hover:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-5px) !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
}

/* 3. Zoom ảnh khi hover */
.product-category .box:hover .box-image img {
    transform: scale(1.07) !important;
}
.product-category .box-image img {
    transition: transform 0.5s ease !important;
}

/* 4. FIX LỖI LỆCH CHIỀU CAO:
   Đặt min-height cố định cho vùng text = đủ chứa 2 dòng chữ.
   Dù tên 1 dòng hay 2 dòng, các card sẽ cao bằng nhau. */
.product-category .box-text {
    min-height: 85px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* 5. Màu chữ tiêu đề: đen đậm thay vì xanh */
.product-category .box-text h5,
.product-category .box-text .header-title {
    color: #1a1a1a !important;
    transition: color 0.3s ease !important;
    position: relative !important;
    padding-bottom: 12px !important;
}

/* 6. Màu chữ khi hover: vàng gold */
.product-category .box:hover .box-text h5,
.product-category .box:hover .box-text .header-title {
    color: #d4af37 !important;
}

/* 7. Đường kẻ vàng bên dưới chữ */
.product-category .box-text .header-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f3e5ab);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.product-category .box:hover .box-text .header-title::after {
    width: 55px;
}

/* 8. Ẩn số lượng sản phẩm */
.product-category .box-text .count {
    display: none !important;
}
