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

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

.products .col .product-small.box {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.products .col .product-small.box.box-vertical {
	display: flex !important;
	flex-direction: column !important;
}

.products .col .product-small.box .box-image {
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	border-radius: 8px 8px 0 0 !important;
	overflow: hidden;
}

.products .col .product-small.box.box-vertical .box-image,
.products .col .product-small.box.box-vertical .box-text {
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
}

.products .col .product-small.box .box-image > div:first-child {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 0 !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f6f8;
}

.products .col .product-small.box .box-image > div:first-child > a {
	position: absolute;
	inset: 0;
	display: block;
}

.products .col .product-small.box .box-image > div:first-child img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.products .col .product-small.box .box-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100% !important;
}

.products .col .product-small.box .thong-tin-du-an {
	flex: 1 1 auto;
}

.products .col .product-small.box .bds2 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: auto;
}

.products .col .product-small.box .price-wrapper,
.products .col .product-small.box .nut-xem-ngay {
	display: block !important;
	float: none !important;
}

.products .col .product-small.box .price-wrapper {
	flex: 1 1 160px;
	min-width: 0;
}

.products .col .product-small.box .nut-xem-ngay {
	flex: 0 0 auto;
}

.products .col .product-small.box .nut-xem-ngay .btn-views {
	margin-bottom: 0;
}

.products .hslands-product-item {
	display: flex;
}

.products .hslands-product-item > .col-inner {
	display: flex;
	width: 100%;
	height: 100%;
}

.products .hslands-product-item .hslands-product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.products .hslands-product-item .hslands-product-card.box-vertical {
	display: flex !important;
	flex-direction: column !important;
}

.products .hslands-product-item .hslands-product-card__image {
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	border-radius: 8px 8px 0 0 !important;
	overflow: hidden;
}

.products .hslands-product-item .hslands-product-card.box-vertical .hslands-product-card__image,
.products .hslands-product-item .hslands-product-card.box-vertical .hslands-product-card__content {
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
}

.products .hslands-product-item .hslands-product-card__media {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 0 !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f6f8;
}

.products .hslands-product-item .hslands-product-card__media > a {
	position: absolute;
	inset: 0;
	display: block;
}

.products .hslands-product-item .hslands-product-card__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.products .hslands-product-item .hslands-product-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100% !important;
}

.products .hslands-product-item .hslands-product-card__details {
	flex: 1 1 auto;
}

.products .hslands-product-item .hslands-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: auto;
}

.products .hslands-product-item .hslands-product-card__price,
.products .hslands-product-item .hslands-product-card__cta {
	display: block !important;
	float: none !important;
}

.products .hslands-product-item .hslands-product-card__price {
	flex: 1 1 160px;
	min-width: 0;
}

.products .hslands-product-item .hslands-product-card__cta {
	flex: 0 0 auto;
}

.products .hslands-product-item .hslands-product-card__cta .btn-views {
	margin-bottom: 0;
}


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

	.products .hslands-product-item .hslands-product-card__media {
		aspect-ratio: 4 / 3;
	}

	.products .col .product-small.box .box-image > div:first-child {
		aspect-ratio: 4 / 3;
	}

	.products .col .product-small.box .bds2 {
		align-items: stretch;
	}

	.products .col .product-small.box .price-wrapper,
	.products .col .product-small.box .nut-xem-ngay {
		flex: 1 1 100%;
		width: 100%;
	}

	.products .col .product-small.box .nut-xem-ngay .btn-views {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
	}

	.products .hslands-product-item .hslands-product-card__footer {
		align-items: stretch;
	}

	.products .hslands-product-item .hslands-product-card__price,
	.products .hslands-product-item .hslands-product-card__cta {
		flex: 1 1 100%;
		width: 100%;
	}

	.products .hslands-product-item .hslands-product-card__cta .btn-views {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
	}


}
