/* =========================================================
   PRODUCT CATEGORY - VERTICAL LIST
   ========================================================= */


/*
 * Mỗi category chiếm toàn bộ chiều ngang
 */
.product-category.cat-vertical-item {
	flex-basis: 100% !important;
	max-width: 100% !important;
	width: 100% !important;

	padding-left: 0 !important;
	padding-right: 0 !important;

	margin-bottom: 16px;
}


/*
 * Container
 */
.cat-vertical-inner {
	width: 100%;

	background: #fff;

	border: 1px solid #e8e8e8;
	border-radius: 14px;

	overflow: hidden;

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}


/*
 * Hover
 */
.cat-vertical-inner:hover {
	transform: translateY(-2px);

	border-color: #d8d8d8;

	box-shadow:
		0 8px 30px rgba(0, 0, 0, 0.07);
}


/*
 * Link wrapper
 */
.cat-vertical-link {
	display: flex;

	align-items: stretch;

	width: 100%;

	color: inherit !important;

	text-decoration: none !important;
}


/* =========================================================
   IMAGE
   ========================================================= */

.cat-vertical-image {
	flex: 0 0 190px;

	width: 190px;
	min-height: 160px;

	background: #f7f7f7;

	overflow: hidden;
}


.cat-vertical-image img {
	width: 100% !important;
	height: 100% !important;

	min-height: 160px;

	object-fit: cover;

	margin: 0 !important;

	display: block;

	transition: transform 0.4s ease;
}


.cat-vertical-inner:hover .cat-vertical-image img {
	transform: scale(1.035);
}


/* =========================================================
   CONTENT
   ========================================================= */

.cat-vertical-content {
	position: relative;

	flex: 1;

	min-width: 0;

	padding: 25px 28px;

	display: flex;

	flex-direction: column;

	justify-content: center;
}


/*
 * Header
 */
.cat-vertical-header {
	display: flex;

	align-items: flex-start;

	justify-content: space-between;

	gap: 20px;
}


.cat-vertical-heading {
	flex: 1;
	min-width: 0;
}


/*
 * Title
 */
.cat-vertical-title {
	margin: 0;

	font-size: 21px;
	line-height: 1.3;

	font-weight: 600;

	text-transform: none;
	letter-spacing: -0.2px;

	color: #171717;
}


.cat-vertical-inner:hover .cat-vertical-title {
	color: #000;
}


/*
 * Count
 */
.cat-vertical-count {
	margin-top: 6px;

	font-size: 12px;
	line-height: 1.3;

	color: #8a8a8a;

	text-transform: uppercase;

	letter-spacing: 0.5px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.cat-vertical-description-wrap {
	margin-top: 13px;

	max-width: 780px;
}


.cat-vertical-description {
	font-size: 14px;
	line-height: 1.65;

	color: #626262;

	margin: 0;
}


.cat-vertical-description p {
	margin: 0 0 7px;
}


.cat-vertical-description p:last-child {
	margin-bottom: 0;
}


/*
 * Giới hạn khoảng 3 dòng.
 * JS sẽ có thể bỏ giới hạn khi cần.
 */
.cat-vertical-description:not(.is-expanded) {
	display: -webkit-box;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;

	overflow: hidden;
}


/* =========================================================
   ARROW
   ========================================================= */

.cat-vertical-arrow {
	flex: 0 0 42px;

	width: 42px;
	height: 42px;

	display: flex;

	align-items: center;
	justify-content: center;

	border-radius: 50%;

	background: #f4f4f4;

	color: #333;

	transition:
		background 0.25s ease,
		transform 0.25s ease;
}


.cat-vertical-inner:hover .cat-vertical-arrow {
	background: #111;

	color: #fff;

	transform: translateX(3px);
}


/* =========================================================
   FIX FLATSOME
   ========================================================= */


/*
 * Category row trong Flatsome thường dùng negative margin.
 */
.products.row .product-category.cat-vertical-item {
	width: 100% !important;
}


/*
 * Override large-columns-x
 */
.large-columns-2 > .product-category.cat-vertical-item,
.large-columns-3 > .product-category.cat-vertical-item,
.large-columns-4 > .product-category.cat-vertical-item,
.large-columns-5 > .product-category.cat-vertical-item,
.large-columns-6 > .product-category.cat-vertical-item {
	flex-basis: 100% !important;
	max-width: 100% !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 849px) {

	.cat-vertical-image {
		flex-basis: 160px;
		width: 160px;
		min-height: 150px;
	}


	.cat-vertical-image img {
		min-height: 150px;
	}


	.cat-vertical-content {
		padding: 20px 22px;
	}


	.cat-vertical-title {
		font-size: 19px;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 549px) {

	.product-category.cat-vertical-item {
		margin-bottom: 12px;
	}


	.cat-vertical-inner {
		border-radius: 12px;
	}


	.cat-vertical-link {
		align-items: stretch;
	}


	.cat-vertical-image {
		flex: 0 0 115px;

		width: 115px;

		min-height: 125px;
	}


	.cat-vertical-image img {
		min-height: 125px;
	}


	.cat-vertical-content {
		padding: 16px 15px;
	}


	.cat-vertical-header {
		gap: 10px;
	}


	.cat-vertical-title {
		font-size: 16px;
		line-height: 1.35;
	}


	.cat-vertical-count {
		margin-top: 4px;

		font-size: 10px;
	}


	.cat-vertical-description-wrap {
		margin-top: 8px;
	}


	.cat-vertical-description {
		font-size: 12px;
		line-height: 1.5;
	}


	.cat-vertical-description:not(.is-expanded) {
		-webkit-line-clamp: 2;
	}


	.cat-vertical-arrow {
		width: 30px;
		height: 30px;

		flex-basis: 30px;
	}


	.cat-vertical-arrow svg {
		width: 16px;
		height: 16px;
	}

}
.custom-category-section-title {
	width: 100%;

	margin: 10px 0 22px;

	display: flex;
	align-items: center;

	gap: 18px;
}


.custom-category-section-title:after {
	content: "";

	height: 1px;

	flex: 1;

	background: #e8e8e8;
}


.custom-category-section-title span {
	font-size: 13px;

	font-weight: 600;

	text-transform: uppercase;

	letter-spacing: 1.2px;

	color: #777;
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 380px) {

	.cat-vertical-image {
		flex-basis: 95px;
		width: 95px;
	}


	.cat-vertical-content {
		padding: 13px 12px;
	}


	.cat-vertical-arrow {
		display: none;
	}

}


/* =========================================================
   CATEGORY TITLE + COMING SOON
   ========================================================= */

.cat-title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}


/*
 * Coming Soon badge
 */
.cat-coming-soon {
	display: inline-flex;
	align-items: center;

	padding: 5px 9px;

	font-size: 10px;
	line-height: 1;

	font-weight: 600;

	text-transform: uppercase;
	letter-spacing: 0.7px;

	color: #8a6a20;
	background: #fff7df;

	border: 1px solid #f0dfaa;
	border-radius: 999px;

	white-space: nowrap;
}


/* =========================================================
   COMING SOON CATEGORY
   ========================================================= */

.cat-is-coming-soon .cat-vertical-inner {
	background: #fafafa;
}


.cat-is-coming-soon .cat-vertical-image img {
	opacity: 0.82;
}


.cat-is-coming-soon .cat-vertical-title {
	color: #555;
}


.cat-is-coming-soon .cat-vertical-arrow {
	background: #f0f0f0;
	color: #aaa;
}


.cat-is-coming-soon .cat-vertical-inner:hover {
	transform: none;
	box-shadow: none;
	border-color: #e8e8e8;
}


.cat-is-coming-soon .cat-vertical-inner:hover .cat-vertical-image img {
	transform: none;
}


.cat-is-coming-soon .cat-vertical-inner:hover .cat-vertical-arrow {
	background: #f0f0f0;
	color: #aaa;
	transform: none;
}

/* =========================================================
   COMING SOON CATEGORY
   ========================================================= */

.cat-is-coming-soon .cat-vertical-inner {
	background: #fafafa;
}


.cat-is-coming-soon .cat-vertical-image img {
	opacity: 0.82;
}


.cat-is-coming-soon .cat-vertical-title {
	color: #555;
}


.cat-is-coming-soon .cat-vertical-arrow {
	background: #f0f0f0;
	color: #aaa;
}


.cat-is-coming-soon .cat-vertical-inner:hover {
	transform: none;
	box-shadow: none;
	border-color: #e8e8e8;
}


.cat-is-coming-soon .cat-vertical-inner:hover .cat-vertical-image img {
	transform: none;
}


.cat-is-coming-soon .cat-vertical-inner:hover .cat-vertical-arrow {
	background: #f0f0f0;
	color: #aaa;
	transform: none;
}