﻿#main {
	background: url("/assets/images/bg_pro.png") no-repeat;
	background-size: cover;
}
.cate_ttl {
    position: relative;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 500;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
}
/*.cate_ttl:before {
	content: "";
	position: absolute;
	background: url(/assets/images/idx_bg.png) no-repeat center center / 100% auto;
	width: 22px;
	height: 22px;
	left: 0;
	top: 7px;
}*/
.tab_ttl p {
	margin-bottom: 0;
    font-weight: 300;
    font-size: 18px;
}
.pro_list {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.pro_item {
	text-align: center;
	width: calc(100%/4 - 15px);
}
    .pro_item a {
        color: var(--mcolor);
		transition: all 0.3s;
    }
	.pro_item a:hover img {
		background: rgba(19, 135, 162, 0.3);
	}
.pro_itm_ttl {
    font-size: 20px;
	color: #000;
	line-height: 1.5em;
	font-weight: 400;
	margin-bottom: 5px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 2;
	text-align: center;
}

.pro_item a:hover .pro_itm_ttl {
    color: var(--mcolor);
}

.pro_itm_txt {
    color: #000;
    font-size: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pro_itm_btn {
    font-size: 14px;
	margin: 0;
}

    .pro_itm_btn .txt {
        /*color: var(--mcolor);*/
        text-decoration: underline;
    }

.pro_itm_img {
	border-radius: 10px;
	overflow: hidden;
	margin: 0;
}

.pro_list.slick-initialized .slick-slide > div {
    padding: 15px;
}
.pro_itm_img {
	position: relative;
	border-radius: 25px;
	overflow: hidden;
}

/* Nút chi tiết */
.pro_btn_detail {
	position: absolute;
	left: 50%;
	bottom: 42%;
	transform: translateX(-50%) translateY(10px);
	background: #fff;
	color: #0084c7;
	font-size: 16px;
	padding: 6px 14px;
	border-radius: 20px;
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: none;
	white-space: nowrap;
	z-index: 1;
}

/* Hover thì hiện nút */
.pro_item:hover .pro_btn_detail {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Hiệu ứng zoom nhẹ ảnh (giống hình mẫu) */
.pro_itm_img img {
	transition: transform 0.4s ease;
}

.pro_item:hover .pro_itm_img img {
	transform: scale(1.05);
}

.pro_itm_img img {
    width: 100%;
	height: 100%;
	object-fit: cover;
}
.pro_cate {
    display: inline-block;
	margin: 17px 0 12px;
	padding: 4px 14px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	color: #0084c7;
	border: 1px solid #0084c7;
	border-radius: 20px;
}
.pro_itm_more {
    color: #000;
    font-weight: 700;
    font-size: 15px;
}

    .pro_itm_more i {
        font-size: 14px;
        margin-left: 5px;
    }
.pro_itm_img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(19, 135, 162, 0.3);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

/* Hover thì hiện overlay */
.pro_item:hover .pro_itm_img::after {
	opacity: 1;
}


@media screen and (max-width: 768px) {
	.cate_ttl {
		font-size: 24px;
	}
	.cate_ttl:before {
		width: 23px;
		height: 23px;
		top: 2px;
	}
	.pro_list {
		grid-template-columns: repeat(2, 1fr);
	}
	.pro_itm_ttl {
		font-size: 18px;
	}
	.pro_item {
		text-align: center;
		width: calc(100% / 2 - 10px);
	}
}