/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
.header:not(.transparent) .header-bottom-nav.nav > li > a {
    font-weight: 500;
}
.product-page-price > .woocommerce-Price-amount,
ins .woocommerce-Price-amount {
    color: #dd3333;
    font-weight: 500;
}
del span.amount {
    opacity: .6;
    font-weight: normal;
    margin-right: .3em;
    font-size: 13px;
}

.single-product-thumbnail .p-nav a {
    overflow: hidden;
    display: block;
    border: 1px solid rgba(0,0,0,0.2);
    background-color: #FFF;
    -ms-transform: translateY(0);
    transform: translateY(0);
}
.product-thumbnails a {
    border-color: rgba(0,0,0,0.4);
}
.product-thumbnails a:hover, .product-thumbnails .is-nav-selected a {
    border-color: #e32124;
}

body a.devvn_buy_now_style {
	display: block;
	max-width: 100%;
}
.tab-panels #ftwp-container-outer,
#content #ftwp-container-outer {
	display: none !important;
}
.product-small.box a.quick-view:before {
    content: "\e012";
    font-family: 'fl-icons';
    width: 21px;
    height: 21px;
    display: block;
}
.product-small.box a.quick-view {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    width: 24px;
    height: 24px;
    font-size: 10px;
    line-height: 1.9em;
    padding: 0;
    background: #fff;
    border: 2px solid #e52c25;
    color: #e52c25;
    overflow: hidden;
    margin: 0 5px 5px 15px;
}
.product-small.box a.quick-view:hover {
    background: #e52c25;
    color: #fff;
}

/* CSS Tạo hiệu ứng chuyển từ Ảnh 1 sang Ảnh 2 khi Hover */
.doingu-box {
cursor: pointer;
}

.doingu-box .box {
position: relative;
overflow: hidden;
border-radius: 15px;
}

.doingu-box .box-image {
position: relative;
border-radius: 15px;
overflow: hidden;
}

/* 1. Lớp phủ Gradient màu xanh lá đậm xuất hiện khi rê chuột */
.doingu-box .box-image::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(15, 55, 42, 0.9) 100%);
opacity: 0;
transition: opacity 0.35s ease-in-out;
pointer-events: none;
border-radius: 15px;
}

.doingu-box:hover .box-image::after {
opacity: 1;
}

/* 2. Đẩy chữ lên đè vào lòng ảnh & chuyển màu chữ sang trắng */
.doingu-box .box-text {
transition: transform 0.35s ease-in-out, color 0.35s ease-in-out;
color: #00382f;
position: relative;
z-index: 2;
padding-top: 12px;
font-weight: 600;
}

.doingu-box:hover .box-text {
transform: translateY(-52px);
color: #ffffff !important;
}

.doingu-box:hover .box-text * {
color: #ffffff !important;
}
.box-excerpt {
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.shop-page-title.category-page-title {
	display: none;
}
.tax-product_cat #main {
	background-color: #F3F8F3;
}
/* =========================================================
   BIẾN MÀU (lấy mẫu trực tiếp từ file thiết kế)
   ========================================================= */
:root {
	--pc-cream: #F7F3DE;      /* nền thanh menu + badge */
	--pc-dark-green: #22392F; /* màu active/hover chính */
	--pc-text-dark: #1C231E;
	--pc-text-gray: #8C8C8C;
	--pc-btn-default-bg: #F5F5F5;
	--pc-btn-default-text: #6E6E6E;
}

/* =========================================================
   MENU DANH MỤC CHA / CON
   ========================================================= */

.product-cat-nav {
	margin-bottom: 30px;
}

/* 1 hàng duy nhất, bo tròn, nền be, "Tất cả" + tất cả danh mục con cùng 1 dòng */
.product-cat-nav__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	background: var(--pc-cream);
	border-radius: 999px;
	padding: 0px;
}

.product-cat-nav__item {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 500;
	color: var(--pc-text-dark);
	text-decoration: none;
	padding: 6px 16px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease;
}

.product-cat-nav__item:hover {
	color: var(--pc-dark-green);
}

/* Mục đang active (dù là "Tất cả", cha, hay con): pill xanh đậm, chữ trắng */
.product-cat-nav__item.is-active {
	background: var(--pc-dark-green);
	color: #fff;
}

@media (max-width: 768px) {
	.product-cat-nav__row {
		overflow-x: auto;
		flex-wrap: nowrap;
	}
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card-custom .product-card-inner {
	background: #fff;
	border-radius: 14px;
	border: 3px solid transparent; /* mặc định KHÔNG có viền hiện, chỉ hiện khi hover */
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: border-color .2s ease, box-shadow .2s ease;
	position: relative;
}

/* Trạng thái hover / focus: viền xanh đậm bao quanh card */
/*.product-card-custom .product-card-inner:hover,
.product-card-custom .product-card-inner:focus-within {
	border-color: var(--pc-dark-green);
	box-shadow: 0 4px 14px rgba(34, 57, 47, .12);
}*/


.product-card-custom .box-image {
	position: relative;
	overflow: hidden;
	z-index: 2;
	width: 100%;
}
.product-card-inner .box-text {
	position: relative;
	z-index: 2;
}

/*.product-card-custom .box-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}*/

/* Badge "Khay thủ công": pill nền be, giống màu thanh menu */
.product-card-custom .product-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: #F9F3DD;
	color: #00382F;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 999px;
	line-height: 1;
}

.product-card-custom .out-of-stock-label {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #b91c1c;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}

.product-card-custom .box-text {
	padding: 16px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.product-card-custom .product-sku {
	font-size: 12.5px;
	color: var(--pc-text-gray);
}

.product-card-custom .title-wrapper {
	margin-bottom: 10px;
}

.product-card-custom .product-card-title {
	display: block;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--pc-text-dark);
	text-decoration: none;
}

.product-card-custom .product-card-title:hover {
	color: var(--pc-dark-green);
}

/* ---- Nút add-to-cart thật của WooCommerce, style lại theo pill ---- */
.product-card-custom .product-card-cta {
	margin-top: auto;
}

.product-card-custom .product-card-cta a.button,
.product-card-custom .product-card-cta .add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 0px 16px;
	margin-bottom: 0;
	font-size: 16px;
	border-radius: 8px;
	text-transform: none;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #D9D9D9;
	background: var(--pc-btn-default-bg);
	color: var(--pc-btn-default-text);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

/* Khi hover cả card (giống ảnh: card 1 đang hover -> nút đổ nền xanh đậm) */
.product-card-custom .product-card-inner:hover .product-card-cta a.button,
.product-card-custom .product-card-cta a.button:hover,
.product-card-custom .product-card-cta a.button:focus,
.product-card-custom .product-card-cta a.added {
	background: var(--pc-dark-green);
	border-color: var(--pc-dark-green);
	color: #F2CE9E;
}

.product-card-custom .product-card-cta a.button::before {
	content: "+";
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	margin-right: 8px;
}

/* Ẩn icon loading mặc định của WC nếu không cần */
.product-card-custom .product-card-cta a.loading::after {
	display: none;
}

.single-product .product-cat-nav {
	display: none;
}
h1.product-title {
	color: #24453E;
	font-size: 26px;
	font-weight: bold;
}
.button.single_add_to_cart_button.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 360px;
	padding: 0px 16px;
	margin-bottom: 0;
	font-size: 16px;
	border-radius: 8px;
	text-transform: none;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #D9D9D9 !important;
	background: var(--pc-btn-default-bg) !important;
	color: var(--pc-btn-default-text) !important;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.button.single_add_to_cart_button.button:hover {
	background: var(--pc-dark-green) !important;
	border-color: var(--pc-dark-green) !important;
	color: #F2CE9E !important;
}
.chonmau-single {
	display: none;
}
.product-small .price-wrapper, 
.product-info .price-wrapper {
	display: none;
}
.woocommerce-tabs .nav > li > a {
	font-size: 30px;
	color: var(--primary-color);
}
h3.product-section-title, 
h4.title-related {
	font-size: 30px;
	color: var(--primary-color);
	text-transform: uppercase;
	font-weight: bold;
	max-width: none;
}
h3.product-section-title:after {
	content: '';
	display: block;
	width: 170px;
	height: 1px;
	background-color: #F2CC9B;
	margin-top: 12px;
}
.product-footer .woocommerce-tabs {
	border-top: none;
}
.nav-line-bottom>li>a:before, .nav-line-grow>li>a:before, .nav-line>li>a:before {
	top: auto;
	bottom: 0;
	background-color: #F2CC9B !important;
	height: 1px;
}

.product-main, .product-footer {
	background-color: #F3F8F3;
}
.thongtin-sec input[type='submit'] {
	background-color: #fff !important;
}
.thongtin-sec input[type='submit']:hover {
	background-color: var(--primary-color) !important;
	color: #fff !important;
}
ul.product_list_widget li .quantity, 
.woocommerce-Price-amount.amount, 
.woocommerce-mini-cart__total.total, 
.price {
	display: none !important;
}
.product-small.col .col-inner {
	padding: 3px;
}
.product-small.col .col-inner:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0%;
    left: 0%;
    opacity: 0;
    box-sizing: border-box;
    border-radius: 15px;
}
.product-small.col .col-inner:before {
    bottom: 0px;
    transform: scaleX(0);
    transition: opacity 0.5s, transform 0.5s;
    border-top: 2px solid #22392f;
    border-bottom: 2px solid #22392f;
}
.product-small.col .col-inner:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    box-sizing: border-box;
    border-radius: 15px;
}
.product-small.col .col-inner:after {
    transform: scaleY(0);
    transition: opacity 0.3s, transform 0.3s;
    border-left: 2px solid #22392f;
    border-right: 2px solid #22392f;
}
.product-small.col .col-inner:hover:after {
    opacity: 1;
    transform: scale(1);
}
.product-small.col .col-inner:hover:before {
    opacity: 1;
    transform: scale(1);
}
/* */
.form-dk-ct {
	overflow: hidden;
	background: #fff;
	border-radius: 8px;
	padding: 10px;
}
.box-title {
	background: #24453E;
	color: #fff;
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 20px;
}
.box-title h4 {
	font-size: 30px;
	color: #fff;
	margin-bottom: 0;
}
.box-dk-form {
	overflow: hidden;
	padding: 0 30px;
}
.box-dk-form label span {
	padding-top: 10px;
	display: block;
}
.box-dk-form input {
	background: #F3F8F3;
	border: 1px solid #D9D9D9;
	min-height: 50px;
	border-radius: 5px;
}
.box-dk-form textarea {
	background: #F3F8F3;
	border: 1px solid #D9D9D9;
	border-radius: 5px;
	height: 70px;
}

@media (max-width: 480px) {
	h3.product-section-title, h4.title-related {
		font-size: 25px;
	}
	.box-title h4 {
		font-size: 21px;
	}
	.box-dk-form {
	    padding: 0 5px;
	}
}
