/*
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.   ***************/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
	--primary-color: #025B97;
	--secondary-color: #FF8C42;
}

body {
	font-family: "Roboto", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {

	b,
	strong {
		font-weight: bold;
	}
}

.autocomplete-suggestion .search-price,
.wpcf7-not-valid-tip,
.wpcf7-spinner,
.product-info .price-wrapper,
.box-blog-post .is-divider,
.product-info .is-divider {
	display: none;
}

* {
	box-sizing: border-box;
}

img {
	max-width: 100%;
}

.col-inner:last-child {
	padding-bottom: 0;
}

a {
	transition: all .25s ease;
}

p:last-child {
	margin-bottom: 0;
}

.off-canvas-left .mfp-content,
.off-canvas-right .mfp-content {
	max-width: 350px;
	width: 100%;
}

.off-canvas:not(.off-canvas-center) .nav-vertical li>a {
	font-size: 16px;
	text-transform: math-auto;
	color: #000;
}

.mfp-bg.mfp-ready {
	background-color: rgba(0, 0, 0, 0.4) !important;
	opacity: 1 !important;
	backdrop-filter: blur(10px) !important;
	-webkit-backdrop-filter: blur(10px) !important;
}

.mfp-wrap.mfp-ready {
	backdrop-filter: none !important;
}

.nav:not(.nav-slide) .active>.children {
	padding-bottom: 0;
}

.icon-box-img img,
.icon-box-img svg {
	padding-top: 0;
}

.autocomplete-suggestion img+.search-name {
	font-size: 16px;
}

.header-nav .sub-menu .menu-item-has-children:after {
	content: '\f105';
	font-family: "FontAwesome";
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	font-size: 11px;
}

.header-nav .sub-menu .menu-item-has-children {
	position: relative;
	width: 100%;
}

.header-nav .sub-menu .menu-item-has-children .sub-menu {
	display: none;
	opacity: 0;
	transition: all 0.25s ease;
	position: absolute;
	left: 100%;
	background: #fff;
	border-radius: 5px;
	top: 0;
	box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.header-nav .sub-menu .menu-item-has-children:hover .sub-menu {
	display: block;
	opacity: 1;
}

.header-nav .sub-menu .menu-item-has-children:hover .sub-menu .sub-menu {
	display: none;
	opacity: 0;
}

.header-nav .sub-menu .menu-item-has-children:hover .sub-menu .menu-item-has-children:hover .sub-menu {
	display: block;
	opacity: 1;
}

.header-nav .sub-menu.nav-dropdown-default {
	display: flex;
	flex-direction: column;
	padding: 0;
}

.sub-menu li a {
	min-width: 150px;
	font-weight: 400 !important;
	text-transform: math-auto !important;
	color: initial !important;
	font-size: 14px !important;
}


.nav-uppercase li a,
.nav-uppercase li>a,
ul.nav-uppercase>li>a {
	text-transform: uppercase !important;
	letter-spacing: normal !important;
}

.flickity-button {
	opacity: 1;
}

.flickity-button svg {
	background-color: #fff;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
	padding: 10px;
	border-radius: 4px;
	min-width: 30px;
	max-width: 30px;
	height: 30px;
}

.row-slider .flickity-prev-next-button svg {
	padding: 10px !important;
	border: 0;
}

.slider-nav-light .flickity-prev-next-button .arrow,
.slider-nav-light .flickity-prev-next-button svg {
	fill: #333;
}

.flickity-page-dots {
	background: #ffffff30;
	width: max-content;
	margin: auto;
	border-radius: 16px;
	padding: 0px 4px;
	padding-bottom: 2px;

}

.flickity-page-dots .dot {
	width: 8px;
	height: 8px;
	background-color: #fff;
}

.wpcf7 div.wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
	background: #fddddd;
	border: 1px solid red;
	color: red;
	box-shadow: none;
	font-size: 14px;
	padding: 15px;
	border-radius: 6px;
	margin: 0;
	margin-top: 15px;
}

.wpcf7 form.sent .wpcf7-response-output {
	background: #ebfee3;
	color: #398f14;
	border-color: #398f142e;
}

ul:last-child,
li:last-child {
	margin-bottom: 0;
}

.logo a {
	color: #fff !important;
	font-size: 18px;
}

.ss-pd {
	padding-top: 60px !important;
	padding-bottom: 30px !important;
}

.blog-wrapper {
	padding-top: 60px;

	.large-12.col {
		padding-bottom: 0;
	}
}

.shop-page-title {
	padding-top: 60px;

	.page-title-inner {
		padding-top: 0;
		min-height: unset;
		display: none;
	}
}

.woocommerce {
	.col.large-12 {
		padding-bottom: 40px;
	}
}

.product-main {
	padding: 60px 0 30px 0;
}

.product-footer {
	padding-bottom: 40px;
}

ul.nav-pagination {
	padding-bottom: 20px;
}

form {
	margin-bottom: 0;

	.two-col {
		display: flex;
		gap: 15px;
		align-items: center;
	}

	.three-col {
		display: flex;
		gap: 15px;
		align-items: center;
	}

	label {
		font-size: 16px;
		font-weight: 500;

		span {
			color: red;
		}
	}

	input,
	select,
	textarea {
		height: 45px;
		border: 1px solid #ddd;
		padding: 0px 16px;
		border-radius: 6px !important;
		font-weight: 400;
		box-shadow: none !important;
		padding: 5px;

		&:focus {
			border-color: var(--primary-color);
		}
	}

	textarea {
		resize: vertical;
		min-height: 100px;
		padding: 10px;
	}

	.wpcf7-submit {
		display: block;
		width: 100%;
		margin: 0;
		text-transform: math-auto;
		font-weight: bold;
	}
}

.product-info {
	form {
		.three-col {
			display: block;
		}
	}
}

.ss-footer-main {
	h2 {
		padding-bottom: 15px;
		margin-bottom: 15px;
		position: relative;
		color: var(--secondary-color);
		font-size: 24px;

		&:after {
			content: '';
			width: 10px;
			height: 10px;
			background-color: var(--secondary-color);
			position: absolute;
			left: 0;
			bottom: 0;
			border-radius: 50%;
		}

		&:before {
			content: '';
			width: 100px;
			height: 2px;
			background-color: var(--secondary-color);
			position: absolute;
			left: 0;
			bottom: 4PX;
		}
	}

	.ul-1 {
		li {
			list-style-type: none;
			margin-left: 0;
		}
	}

	.ux-menu-link {
		i {
			font-size: 14px;
		}
	}
}

.nav-pills {
	gap: 8px;

	li {
		a {
			border-radius: 6px;
			background: #e6f5ff;
			color: var(--primary-color);
			font-weight: bold;
			padding: 2px 15px;
			font-size: 14px;

			&:hover {
				background: var(--primary-color);
				color: #fff;
			}
		}
	}
}

.product-small.box {
	background-color: #FAFAFA;
	border-radius: 16px;
	overflow: hidden;
	padding: 15px;
	border: 1px solid #ddd;
	box-shadow: 0 0 10px #33333324;

	.box-image {
		border-radius: 8px;
		overflow: hidden;
	}

	.box-text {
		padding: 0px;
		padding-top: 15px;
	}

	.product-title {
		margin-bottom: 10px;

		a {
			font-size: 16px;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 2;
			overflow: hidden;
			font-weight: 500;
		}
	}

	.price-wrapper .price {
		.amount {
			color: var(--primary-color);
			font-size: 16px;
		}

		del {
			text-decoration: none;

			.amount {
				color: #bbb;
				font-size: 14px;
				text-decoration: line-through;
			}
		}
	}
}

.badge-container {
	margin-top: 10px;
	margin-left: 10px;

	.badge-frame {
		margin-left: 0;
		height: unset;
		width: unset;
	}

	.badge-inner {
		border: 0;
		font-size: 14px;
		border-radius: 4px;
		color: #333;
		padding: 5px;
	}
}

table tr td,
table tr th {
	padding: 7px !important;
}

table tr:nth-child(even) {
	background-color: #f9f9f9;
}

.post-item {
	.col-inner {
		height: 100%;
	}

	.box {
		height: 100%;
		background-color: #FAFAFA;
		border-radius: 16px;
		overflow: hidden;
		border: 1px solid #ddd;
		box-shadow: 0 0 10px #33333324;


		.box-text {
			padding: 15px;

			.post-title a {
				font-size: 16px;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				overflow: hidden;
				font-weight: 500;
				color: var(--primary-color);
			}

			.from_the_blog_excerpt {
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				overflow: hidden;
			}
		}
	}
}

.ss-about-hp {
	.img-inner {
		border-radius: 12px;
		overflow: hidden;
	}
}

.nav-pagination>li>a {
	border-color: transparent;
	background-color: #DED5CB;
	color: var(--primary-color) !important;

	&:hover {
		color: #fff !important;
	}
}

.nav-pagination>li>span {
	color: #fff !important;
}

/* ===== TERM DESCRIPTION - READ MORE / COLLAPSE ===== */
.term-description-wrapper {
	position: relative;
}

.term-description li {
	margin-left: 1.3em;
}

.term-description-wrapper.is-collapsed .term-description {
	max-height: 175px;
	overflow: hidden;
}

/* Gradient mờ phía dưới khi thu gọn */
.term-description-wrapper.is-collapsed::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 158px;
	background: linear-gradient(to bottom, transparent, #fff);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/* Nút xem thêm / thu gọn */
.term-description-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 2px 16px;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	color: inherit;
	transition: all 0.25s ease;
	/* Nổi lên trên gradient mờ ::after của wrapper */
	position: relative;
	z-index: 1;
	margin: 15px auto;
	text-transform: math-auto;
}

.term-description-toggle:hover {
	opacity: 0.7;
}

.term-description-toggle i {
	transition: transform 0.3s ease;
}

.term-description-wrapper:not(.is-collapsed) .term-description-toggle i {
	transform: rotate(180deg);
}

.vw-single-stars {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 15px 0;
	line-height: 1;
}

.vw-single-stars .vw-stars {
	gap: 2px;
}

.vw-single-stars .vw-star {
	font-size: 15px;
}

.vw-single-stars-count {
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}

.phone-order {
	background-color: var(--primary-color);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff !important;
	padding: 5px 15px;
	border-radius: 50px;

	&:hover {
		background-color: var(--secondary-color);
	}
}

.title-form {
	margin: 15px 0;
	padding-bottom: 15px;
	position: relative;

	&:before {
		content: '';
		width: 100px;
		height: 2px;
		background-color: #333;
		position: absolute;
		left: 0;
		bottom: 4PX;
	}

	&:after {
		content: '';
		width: 10px;
		height: 10px;
		background-color: #333;
		position: absolute;
		left: 0;
		bottom: 0;
		border-radius: 50%;
	}
}

.ss-contact {
	i {
		width: 16px;
		height: 16px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

.html-1 {
	gap: 10px;
	line-height: 1.3 !important;

	i {
		width: 45px;
		height: 45px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 10px;
		border: 1px solid #fff;
		border-radius: 50%;
		color: #fff;
	}

	h3 {
		font-size: 12px;
		color: #fff;
		margin-bottom: 4px;
	}

	p {
		color: #fff;
		font-size: 16px;
	}
}

.header-nav-main.nav-line-bottom>li>a.html-1:before {
	background-color: transparent;
}

.category-page-row {
	padding-top: 0;
}

.mobile-nav .icon-menu {
	color: #fff;
}

.nav-dropdown-simple .nav-column li>a:hover,
.nav-dropdown.nav-dropdown-simple>li>a:hover {
	background-color: #025b971a;
	color: var(--primary-color) !important;
}

.qr-wrap {
	display: flex;
	justify-content: flex-start;
	margin: 0px 0px 20px;
}

.qr-box {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	user-select: none;
}

.entry-content {
	.qr-wrap {
		justify-content: flex-end;
	}

	.qr-box {
		align-items: flex-end;
	}
}

.qr-stars {
	display: flex;
	flex-direction: row-reverse;
	gap: 4px;
}

.qr-stars input {
	display: none;
}

.qr-stars label {
	font-size: 28px;
	color: #ccc;
	cursor: pointer;
	transition: color .15s, transform .12s;
	margin: 0;
}

.qr-stars label:hover,
.qr-stars label:hover~label,
.qr-stars input:checked~label {
	color: #f5a623;
}

.qr-stars label:hover {
	transform: scale(1.2);
}

.qr-stars.is-voted label {
	cursor: default;
}

.qr-stars.is-voted label:hover {
	transform: none;
}

.qr-summary {
	font-size: 13px;
	color: #666;
	text-align: right;
}

.qr-summary .qr-avg {
	font-weight: 700;
	color: #f5a623;
}

.qr-msg {
	font-size: 12px;
	color: #999;
	min-height: 16px;
	text-align: right;
	transition: opacity .3s;
}


.accordion-item {
	margin-bottom: 15px;
	border-radius: 8px;
	overflow: hidden;

	&:last-child {
		margin-bottom: 0;
	}

	.accordion-title,
	.accordion-title.active {
		border-top: 0;
		background-color: var(--primary-color);
		color: #fff;
		padding-left: 20px;
		font-weight: 500;
		margin-bottom: 0;
	}

	.accordion-title.active i {
		transform: rotate(180deg);
	}

	.toggle {
		left: unset;
		right: 0;
		margin-left: 0;
		top: 50%;
		transform: translateY(-50%);

		i {
			font-size: 18px;
		}
	}

	.accordion-inner {
		padding: 20px;
		background-color: #F3F5F3;
	}
}

.header-main .nav>li>a {
	text-transform: uppercase !important;
}









@media (max-width: 1024px) {
	.post-items.blog-items.three-col {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.post-items.blog-items.three-col {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media(max-width: 600px) {
	.product-small.box {
		padding: 10px;
	}

	.ss-footer-main {
		h2 {
			font-size: 20px;
		}
	}

	.product-footer {
		padding-bottom: 10px;
	}

	.product-main {
		padding: 30px 0 0;
	}

	.shop-page-title {
		padding-top: 30px;
	}

	.woocommerce {
		.col.large-12 {
			padding-bottom: 10px;
		}
	}

	.blog-wrapper {
		padding-top: 30px;
		padding-bottom: 0;

		.large-12.col {
			padding-bottom: 10px;
		}
	}

	.ss-pd {
		padding-top: 30px !important;
		padding-bottom: 0px !important;
	}

}