/**
 * BK Product New Widget Styles
 * Author: Bùi Đức Hạnh (https://buhaweb.com/)
 * Prefix: bdh-bk-
 * Kit 4 Global Design System Compliant (Tông Xanh Lá Chủ Đạo)
 */

/* ==========================================================================
   1. CARD CONTAINER
   ========================================================================== */
.bdh-bk-product-new {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	background-color: var(--e-global-color-8d5d81d, #ffffff);
	border: 1px solid var(--e-global-color-fcc82ce, #e5e7eb);
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bdh-bk-product-new *,
.bdh-bk-product-new *::before,
.bdh-bk-product-new *::after {
	box-sizing: border-box;
}

.bdh-bk-product-new:hover {
	border-color: var(--e-global-color-5c987e6, #7fcb98);
}

/* ==========================================================================
   2. HEADER & ACCENT LINE
   ========================================================================== */
.bdh-bk-product-new__header {
	margin-bottom: 16px;
}

.bdh-bk-product-new__title {
	margin: 0;
	padding: 0;
	color: var(--e-global-color-d27c3cc, #1f2328);
	font-size: var(--e-global-typography-8dc9564-font-size, 24px);
	font-weight: var(--e-global-typography-8dc9564-font-weight, 700);
	line-height: var(--e-global-typography-8dc9564-line-height, 1.3);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.bdh-bk-product-new__line {
	width: 38px;
	height: 3px;
	background-color: var(--e-global-color-97923db, #1e6b3a);
	border-radius: 2px;
	margin-top: 8px;
	display: inline-block;
}

/* ==========================================================================
   3. PRODUCT LIST & GRID
   ========================================================================== */
.bdh-bk-product-new__list {
	display: grid;
	grid-template-columns: 1fr;
	width: 100%;
}

/* ==========================================================================
   4. PRODUCT ITEM
   ========================================================================== */
.bdh-bk-product-new__item {
	display: flex;
	align-items: center;
	padding: 14px 0;
	position: relative;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.bdh-bk-product-new--has-divider .bdh-bk-product-new__item:not(:last-child) {
	border-bottom: 1px solid var(--e-global-color-fcc82ce, #e5e7eb);
}

/* ==========================================================================
   5. THUMBNAIL
   ========================================================================== */
.bdh-bk-product-new__thumb {
	width: 70px;
	min-width: 70px;
	height: 70px;
	border-radius: 6px;
	overflow: hidden;
	background-color: var(--e-global-color-8d5d81d, #ffffff);
	margin-right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	text-decoration: none;
}

.bdh-bk-product-new__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.3s ease;
	user-select: none;
	-webkit-user-drag: none;
}

.bdh-bk-product-new__item:hover .bdh-bk-product-new__thumb img {
	transform: scale(1.06);
}

/* ==========================================================================
   6. CONTENT, TITLE & PRICE
   ========================================================================== */
.bdh-bk-product-new__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bdh-bk-product-new__item-title {
	margin: 0 0 6px 0;
	padding: 0;
	font-size: var(--e-global-typography-fc3ef67-font-size, 16px);
	font-weight: var(--e-global-typography-fc3ef67-font-weight, 600);
	line-height: var(--e-global-typography-fc3ef67-line-height, 1.4);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bdh-bk-product-new__item-title a {
	color: var(--e-global-color-d27c3cc, #1f2328);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bdh-bk-product-new__item:hover .bdh-bk-product-new__item-title a {
	color: var(--e-global-color-97923db, #1e6b3a);
}

.bdh-bk-product-new__price {
	font-size: var(--e-global-typography-afd6f4d-font-size, 15px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--e-global-color-d0d47e8, #ee3338);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.bdh-bk-product-new__price-prefix {
	font-weight: 700;
	color: var(--e-global-color-d0d47e8, #ee3338);
}

.bdh-bk-product-new__price .amount,
.bdh-bk-product-new__price ins {
	color: var(--e-global-color-d0d47e8, #ee3338);
	text-decoration: none;
	font-weight: 700;
}

.bdh-bk-product-new__price del {
	color: var(--e-global-color-47f60d3, #9ca3af);
	font-weight: 400;
	font-size: 0.9em;
	margin-right: 4px;
}

.bdh-bk-product-new__price-contact {
	color: var(--e-global-color-d0d47e8, #ee3338);
	font-weight: 700;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (Tablet <= 1024px, Mobile <= 767px)
   ========================================================================== */
@media (max-width: 1024px) {
	.bdh-bk-product-new {
		padding: 20px;
	}
	.bdh-bk-product-new__thumb {
		width: 65px;
		min-width: 65px;
		height: 65px;
		margin-right: 14px;
	}
}

@media (max-width: 767px) {
	.bdh-bk-product-new {
		padding: 16px;
	}
	.bdh-bk-product-new__thumb {
		width: 60px;
		min-width: 60px;
		height: 60px;
		margin-right: 12px;
	}
	.bdh-bk-product-new__item {
		padding: 12px 0;
	}
}
