/* Container chính của Section */
.home-tabs-section {
    margin: 40px 0;
    position: relative;
}

/* Header: Tiêu đề bên trái, Tabs bên phải */
.home-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.home-tabs-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a3a;
    margin: 0;
}

/* Điều hướng Tabs */
.tab-nav {
    display: flex;
    gap: 20px;
}

.tab-link {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    padding-bottom: 12px;
    position: relative;
    transition: color 0.3s;
}

.tab-link.active {
    color: #e31d1b;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e31d1b;
}

/* Lưới sản phẩm - Sử dụng CSS Grid */
.tab-content-panel {
    display: none; /* Ẩn mặc định */
}

/* Đoạn code MỚI - Chỉ dùng display: block vì Woo đã tự chia cột */
.tab-content-panel.active {
    display: block; 
    animation: fadeIn 0.4s ease-in-out; /* Thêm tí hiệu ứng chuyển tab cho mượt */
}

/* Khai báo animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Đảm bảo danh sách sản phẩm chiếm trọn chiều rộng */
.home-tabs-section .woocommerce ul.products {
    margin-bottom: 0; 
}

/* Nút Xem tất cả phía dưới */
.home-tabs-footer {
    text-align: center;
    margin-top: 40px; /* Tăng khoảng cách với lưới sản phẩm để thoáng hơn */
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0b1a30; 
    color: #ffffff !important; 
    font-size: 15px;
    font-weight: 600;
    padding: 14px 36px; 
    border-radius: 6px; 
    text-decoration: none !important; /* Bắt buộc xóa gạch chân */
    border-bottom: none !important; /* Đề phòng theme dùng viền dưới làm gạch chân */
    box-shadow: none !important; /* Xóa luôn bóng đổ mặc định của link nếu có */
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-view-all:hover {
    background-color: #152b4d; 
    text-decoration: none !important; /* Giữ trạng thái không gạch chân khi hover */
    box-shadow: 0 4px 12px rgba(11, 26, 48, 0.2) !important; 
    transform: translateY(-2px); 
}

/* Hiệu ứng mũi tên đẩy nhẹ sang phải khi hover (rất giống các site xịn) */
.btn-view-all svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover svg {
    transform: translateX(4px);
}