/**
 * Single Product - Flatsome Child (SMT)
 * -------------------------------------
 * Làm đẹp & ĐỒNG NHẤT trang chi tiết sản phẩm.
 * Mục tiêu:
 *   - Ảnh chính + thumbnail có tỉ lệ đồng nhất (không lệch kích thước).
 *   - Cột thông tin (summary) gọn gàng, có thứ bậc rõ ràng.
 *   - Nút hành động & giá nổi bật, chuyên nghiệp.
 *
 * Chỉ nạp trên trang chi tiết sản phẩm (is_product()).
 * Tiền tố: .smt-...  (kết hợp override một số class của Flatsome/WooCommerce)
 */

/* ============ Biến (token) ============ */
:root {
	--smt-sp-radius: 14px;
	--smt-sp-border: #ececec;
	--smt-sp-bg-soft: #f7f8fa;
	/* Màu chủ đạo lấy theo biến của Flatsome/WordPress để đồng bộ toàn site.
	 * Đổi màu primary trong Theme Options là khối này tự đổi theo. */
	--smt-sp-primary: var(--primary-color, #1e73be);
	--smt-sp-text: #222;

	--smt-sp-muted: #7a7a7a;
	--smt-sp-gallery-ratio: 1 / 1; /* tỉ lệ ô ảnh (vuông cho đồng nhất) */
	--smt-sp-sidebar-offset: 154px; /* chừa khoảng cho header sticky của Flatsome */
}

/* =========================================================================
 * 1) KHUNG TỔNG & KHOẢNG CÁCH 2 CỘT
 * ========================================================================= */
.single-product div.product {
	margin-top: 10px;
}

.single-product .product-gallery,
.single-product .product-info {
	margin-bottom: 10px;
}

/* Thêm 1 chút thở giữa 2 cột trên desktop */
@media (min-width: 850px) {
	.single-product .product-info {
		padding-left: 28px;
	}
}

/* =========================================================================
 * 2) GALLERY - ĐỒNG NHẤT KÍCH THƯỚC ẢNH
 * ========================================================================= */

/* Ảnh chính: bọc trong khung tỉ lệ cố định, ảnh contain để không méo/cắt lẹm */
.single-product .product-gallery-slider .img,
.single-product .woocommerce-product-gallery__image {
	position: relative;
	background: #fff;
	border: 1px solid var(--smt-sp-border);
	border-radius: var(--smt-sp-radius);
	overflow: hidden;
}

.single-product .product-gallery-slider .img::before,
.single-product .woocommerce-product-gallery__image::before {
	content: "";
	display: block;
	padding-top: 100%; /* tỉ lệ 1:1 */
}

.single-product .product-gallery-slider .img img,
.single-product .woocommerce-product-gallery__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 18px;
}

/* Thumbnail: ô vuông đều nhau, có viền, bo góc */
.single-product .thumbnails .img,
.single-product .product-thumbnails .img,
.single-product .flickity-slider .thumb {
	border-radius: 10px;
	overflow: hidden;
}

.single-product .thumbnails .img img,
.single-product .product-thumbnails img,
.single-product .woocommerce-product-gallery__wrapper .flex-control-thumbs img {
	border: 1px solid var(--smt-sp-border);
	border-radius: 10px;
	background: #fff;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-product .thumbnails .img img:hover {
	border-color: var(--smt-sp-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Ẩn nút Zoom: bấm thẳng vào ảnh đã tự mở lightbox rồi */
.single-product .image-tools,
.single-product .product-gallery .image-tools,
.single-product .zoom-button {
	display: none !important;
}

/* Con trỏ tay để khách biết ảnh bấm được */
.single-product .woocommerce-product-gallery__image,
.single-product .product-gallery-slider .img {
	cursor: zoom-in;
}


/* =========================================================================
 * 3) SUMMARY - TIÊU ĐỀ, GIÁ, META
 * ========================================================================= */
.single-product .product-title,
.single-product .product_title {
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--smt-sp-text);
	margin-bottom: 10px;
}

/* Đường kẻ nhỏ trang trí dưới tiêu đề (Flatsome có .is-divider) */
.single-product .product-info .is-divider {
	margin: 10px 0 16px;
	height: 3px;
	width: 60px;
	background: var(--smt-sp-primary);
	border-radius: 3px;
}

/* Giá */
.single-product .product-info .price,
.single-product .single_variation_wrap .price {
	font-size: 28px;
	font-weight: 800;
	color: var(--smt-sp-text);
	margin: 6px 0 14px;
}

.single-product .product-info .price del {
	color: var(--smt-sp-muted);
	font-weight: 500;
	font-size: 18px;
	margin-right: 8px;
}

.single-product .product-info .price ins {
	text-decoration: none;
	color: #e7402b;
}

/* Mô tả ngắn */
.single-product .product-short-description {
	color: #555;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 18px;
}

.single-product .product-short-description h2 {
	font-size: 18px;
	font-weight: 700;
	color: var(--smt-sp-text);
	margin: 0 0 8px;
}

/* =========================================================================
 * 4) NÚT HÀNH ĐỘNG (Add to cart / số lượng / chat)
 * ========================================================================= */
.single-product .cart .quantity {
	border-radius: 999px;
	overflow: hidden;
}

.single-product .single_add_to_cart_button,
.single-product .cart .button {
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.3px;
	padding-left: 28px;
	padding-right: 28px;
}

/* Nút báo giá chính (thay add to cart) — cột summary */
.smt-single-quote-cta {
	margin: 16px 0 8px;
}

.smt-single-quote-cta__btn.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 360px;
	min-height: 48px;
	margin: 0;
	padding: 14px 24px;
	border: 0;
	border-radius: 10px;
	background: var(--smt-sp-primary, #1e73be);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transition: filter 0.2s ease, transform 0.2s ease;
}

.smt-single-quote-cta__btn.button:hover,
.smt-single-quote-cta__btn.button:focus {
	filter: brightness(0.92);
	transform: translateY(-1px);
	color: #fff !important;
}

#smt-quote-form {
	scroll-margin-top: 110px;
}

/* Khu vực meta (categories, sku) */
.single-product .product_meta {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--smt-sp-border);
	font-size: 13px;
	color: var(--smt-sp-muted);
}

.single-product .product_meta a {
	color: var(--smt-sp-primary);
}

/* Wishlist gọn gàng */
.single-product .wishlist-button .button {
	border-radius: 999px;
}

/* =========================================================================
 * 5) TABS MÔ TẢ / THÔNG SỐ  (giao diện "pill" hiện đại)
 * ========================================================================= */
/* Flatsome đặt border-top + padding trên ".product-footer .woocommerce-tabs"
 * (xem flatsome-shop.css). Override bằng selector cụ thể hơn để bỏ đường kẻ. */
.single-product .product-footer .woocommerce-tabs,
.single-product .woocommerce-tabs {
	margin-top: 40px;
	padding-top: 0;
	border-top: 0;
}


/* Thanh tab: dạng cuộn ngang trên mobile, không vỡ dòng */
.single-product .woocommerce-tabs .nav-tabs,
.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 4px;
	padding: 6px;
	list-style: none;
	background: var(--smt-sp-bg-soft);
	border: 1px solid var(--smt-sp-border);
	border-radius: 999px;
	/* bỏ gạch chân mặc định của Flatsome */
	border-bottom: 1px solid var(--smt-sp-border);
}

.single-product .woocommerce-tabs ul.tabs li,
.single-product .woocommerce-tabs .nav-tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* Bỏ tam giác/after mặc định của một số theme */
.single-product .woocommerce-tabs ul.tabs li::after,
.single-product .woocommerce-tabs ul.tabs li::before {
	display: none;
}

.single-product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 9px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	color: var(--smt-sp-muted);
	text-transform: none;
	border: 0;
	background: transparent;
	transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--smt-sp-primary);
	background: rgba(30, 115, 190, 0.08);
}

/* Tab đang chọn: nền primary, chữ trắng, nổi khối */
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs .nav-tabs li.active a {
	color: #fff;
	background: var(--smt-sp-primary);
	box-shadow: 0 4px 12px rgba(30, 115, 190, 0.28);
}

/* Panel nội dung: thẻ bo góc, nền trắng, viền nhẹ.
 * LƯU Ý: Flatsome giữ MỌI panel trong DOM (panel ẩn để height:0).
 * Nếu đặt margin/padding cho mọi .panel thì các panel ẩn phía trên vẫn cộng
 * dồn khoảng cách -> tab càng về sau nội dung càng bị đẩy xa. Vì vậy chỉ áp
 * style thẻ cho panel ĐANG hiển thị (.active) và ép panel ẩn về 0. */
.single-product .woocommerce-tabs .panel:not(.active) {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
}

.single-product .woocommerce-tabs .panel.active,
.single-product .woocommerce-tabs .panel:only-child {
	margin-top: 16px;
	padding: 26px 28px;
	font-size: 15px;
	line-height: 1.75;
	color: #444;
	background: #fff;
	border: 1px solid var(--smt-sp-border);
	border-radius: var(--smt-sp-radius);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}


.single-product .woocommerce-tabs .panel > h2:first-child,
.single-product .woocommerce-tabs .panel > h3:first-child {
	margin-top: 0;
}

/* Tiêu đề bên trong panel có gạch nhấn cho rõ thứ bậc */
.single-product .woocommerce-tabs .panel h2 {
	font-size: 19px;
	font-weight: 700;
	color: var(--smt-sp-text);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--smt-sp-border);
}

/* Cuộn ngang gọn trên mobile để tab không tràn */
@media (max-width: 549px) {
	.single-product .woocommerce-tabs .nav-tabs,
	.single-product .woocommerce-tabs ul.tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
		display: none;
	}

	.single-product .woocommerce-tabs ul.tabs li a {
		white-space: nowrap;
	}

	.single-product .woocommerce-tabs .panel {
		padding: 18px 16px;
	}
}


/* Bảng thông số kỹ thuật (attributes) đẹp hơn */
.single-product .woocommerce-product-attributes,
.single-product table.shop_attributes {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--smt-sp-border);
	border-radius: var(--smt-sp-radius);
	overflow: hidden;
}

.single-product table.shop_attributes th,
.single-product table.shop_attributes td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--smt-sp-border);
	text-align: left;
	font-size: 14px;
}

.single-product table.shop_attributes th {
	width: 30%;
	background: var(--smt-sp-bg-soft);
	font-weight: 700;
	color: var(--smt-sp-text);
}

.single-product table.shop_attributes tr:last-child th,
.single-product table.shop_attributes tr:last-child td {
	border-bottom: 0;
}

/* =========================================================================
 * 6) SẢN PHẨM LIÊN QUAN
 * ========================================================================= */
.single-product .related.products,
.single-product .up-sells.products {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--smt-sp-border);
}

.single-product .related.products h2,
.single-product .up-sells.products h2 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 18px;
}

/* =========================================================================
 * 7) QUICK SPECS (dòng Model / Brand / Origin dưới tiêu đề)
 * ========================================================================= */
.smt-quick-specs {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.smt-quick-specs .smt-qs__item {
	margin: 0;
	font-size: 13px;
	color: var(--smt-sp-muted);
}

.smt-quick-specs .smt-qs__label {
	font-weight: 600;
}

.smt-quick-specs .smt-qs__value {
	color: var(--smt-sp-text);
	font-weight: 700;
}

/* =========================================================================
 * 8) COMMERCIAL BOX (bảng thương mại + CTA báo giá + liên hệ)
 * ========================================================================= */
.smt-commercial {
	margin: 18px 0;
	padding: 16px 18px;
	background: var(--smt-sp-bg-soft);
	border: 1px solid var(--smt-sp-border);
	border-radius: var(--smt-sp-radius);
}

.smt-commercial__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 14px;
}

.smt-commercial__table th,
.smt-commercial__table td {
	padding: 7px 0;
	font-size: 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px dashed #e2e2e2;
}

.smt-commercial__table tr:last-child th,
.smt-commercial__table tr:last-child td {
	border-bottom: 0;
}

.smt-commercial__table th {
	width: 38%;
	color: var(--smt-sp-muted);
	font-weight: 600;
}

.smt-commercial__table td {
	color: var(--smt-sp-text);
	font-weight: 600;
}

.smt-quote-btn.button {
	display: block;
	width: 100%;
	margin: 0 0 10px;
	padding: 14px 20px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.smt-contact-phone {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 13px;
	color: var(--smt-sp-text);
	white-space: nowrap;
	text-decoration: none;
}

.smt-contact-phone strong {
	color: var(--smt-sp-primary);
}

/* =========================================================================
 * 9) TRUST BADGES (dải cam kết)
 * ========================================================================= */
.smt-trust-badges {
	list-style: none;
	margin: 0 0 18px;
	padding: 14px 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	border-top: 1px solid var(--smt-sp-border);
	border-bottom: 1px solid var(--smt-sp-border);
}

.smt-trust-badges__item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	color: #555;
}

.smt-trust-badges__icon {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(30, 115, 190, 0.1);
	color: var(--smt-sp-primary);
}

.smt-trust-badges__icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* =========================================================================
 * 10) TAB CONTENT (feature list / doc list / video)
 * ========================================================================= */
.single-product .smt-feature-list {
	margin: 0 0 10px 0;
	padding: 0;
	list-style: none;
}

.single-product .smt-feature-list li {
	position: relative;
	padding: 6px 0 6px 26px;
	font-size: 15px;
	line-height: 1.6;
	border-bottom: 1px solid #f0f0f0;
}

.single-product .smt-feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 6px;
	color: var(--smt-sp-primary);
	font-weight: 700;
}

.single-product .smt-text-block {
	font-size: 15px;
	line-height: 1.75;
	color: #444;
}

.single-product .smt-doc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.single-product .smt-doc-list__item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--smt-sp-border);
	border-radius: 10px;
	background: #fff;
	color: var(--smt-sp-text);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-product .smt-doc-list__item a:hover {
	border-color: var(--smt-sp-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.single-product .smt-doc-list__icon {
	font-size: 18px;
}

/* Lưới video: nhiều video xếp đều, mỗi ô tỉ lệ 16:9 */
.single-product .smt-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
}

.single-product .smt-video {
	position: relative;
}

.single-product .smt-video iframe,
.single-product .smt-video video {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 12px;
	background: #000;
	display: block;
}

/* Lưới ảnh minh họa: ô vuông đều, bo góc, phóng to khi hover */
.single-product .smt-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.single-product .smt-gallery__item {
	display: block;
	border: 1px solid var(--smt-sp-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	cursor: zoom-in;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-product .smt-gallery__item:hover {
	border-color: var(--smt-sp-primary);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.single-product .smt-gallery__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}


/* =========================================================================
 * 12) SIDEBAR BOXES (C/D/E/F) - khung chung cho các khối cột phải
 * ========================================================================= */
#product-sidebar {
	display: block;
}

/* Cột sidebar có thanh cuộn RIÊNG: dính ở đầu màn hình, giới hạn chiều cao
 * theo viewport và tự cuộn khi nội dung dài (chỉ áp dụng trên desktop). */
@media (min-width: 850px) {
	#product-sidebar {
		position: -webkit-sticky;
		position: sticky;
		top: var(--smt-sp-sidebar-offset);
		align-self: flex-start;
		max-height: calc(100vh - var(--smt-sp-sidebar-offset) - 18px);
		overflow-y: auto;
		overscroll-behavior-y: auto; /* cuộn hết sidebar thì tiếp tục cuộn trang (scroll chaining) */
		-webkit-overflow-scrolling: touch;
		padding-right: 6px; /* chừa chỗ cho thanh cuộn, tránh che nội dung */
	}

	/* Thanh cuộn mảnh, gọn cho riêng sidebar */
	#product-sidebar {
		scrollbar-width: thin; /* Firefox */
		scrollbar-color: var(--smt-sp-primary) transparent;
	}

	#product-sidebar::-webkit-scrollbar {
		width: 8px;
	}

	#product-sidebar::-webkit-scrollbar-track {
		background: transparent;
	}

	#product-sidebar::-webkit-scrollbar-thumb {
		background: #d3dbe4;
		border-radius: 8px;
	}

	#product-sidebar::-webkit-scrollbar-thumb:hover {
		background: var(--smt-sp-primary);
	}
}

.smt-box {
	margin: 0 0 18px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--smt-sp-border);
	border-radius: var(--smt-sp-radius);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.smt-box__title {
	position: relative;
	margin: 0 0 14px;
	padding: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--smt-sp-primary);
	border-bottom: 1px solid var(--smt-sp-border);
}

/* Gạch nhấn ngắn dưới tiêu đề khối cho tinh tế */
.smt-box__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 36px;
	height: 2px;
	background: var(--smt-sp-primary);
	border-radius: 2px;
}

.smt-box__body {
	font-size: 14px;
	line-height: 1.6;
	color: var(--smt-sp-text);
}

/* Khối C - bảng thương mại: hàng mềm mại, nền xen kẽ thay vì gạch đứt */
.smt-box--commercial .smt-commercial__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 16px;
	border-radius: 10px;
	overflow: hidden;
}

.smt-box--commercial .smt-commercial__table th,
.smt-box--commercial .smt-commercial__table td {
	padding: 9px 12px;
	font-size: 13.5px;
	line-height: 1.5;
	text-align: left;
	vertical-align: top;
	border: 0;
}

.smt-box--commercial .smt-commercial__table tr:nth-child(odd) th,
.smt-box--commercial .smt-commercial__table tr:nth-child(odd) td {
	background: var(--smt-sp-bg-soft);
}

.smt-box--commercial .smt-commercial__table th {
	width: 40%;
	color: var(--smt-sp-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	font-size: 12px;
}

.smt-box--commercial .smt-commercial__table td {
	color: var(--smt-sp-text);
	font-weight: 600;
}

/* Nút báo giá */
.smt-quote-btn.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 10px;
	padding: 13px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--smt-sp-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.smt-quote-btn.button:hover {
	filter: brightness(0.92);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}



/* Hotline */
.smt-contact-phone {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--smt-sp-primary);
	border-radius: 10px;
	font-size: 13px;
	color: var(--smt-sp-primary);
	text-decoration: none;
	white-space: nowrap;
}

.smt-contact-phone strong {
	color: var(--smt-sp-primary);
	font-weight: 700;
}

.smt-contact-phone__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(30, 115, 190, 0.1);
	color: var(--smt-sp-primary);
}

.smt-contact-phone__icon svg {
	display: block;
	width: 14px;
	height: 14px;
}

.smt-contact-phone__text {
	white-space: nowrap;
	line-height: 1.2;
}

/* Khung Datasheets dưới Commercial Information */
.smt-datasheets {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smt-datasheets__item + .smt-datasheets__item {
	margin-top: 10px;
}

.smt-datasheet-card {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 12px;
	border: 1px solid rgba(130, 212, 61, 0.28);
	border-radius: 12px;
	background:
		linear-gradient(135deg, rgba(130, 212, 61, 0.08), rgba(255, 255, 255, 0) 56%),
		#fff;
	color: var(--smt-sp-text);
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(15, 31, 61, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease;
}

.smt-datasheet-card:hover,
.smt-datasheet-card:focus {
	border-color: var(--smt-sp-primary);
	color: var(--smt-sp-text);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(15, 31, 61, 0.1);
}

.smt-datasheet-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: rgba(130, 212, 61, 0.14);
	color: var(--smt-sp-primary);
}

.smt-datasheet-card__icon svg {
	display: block;
	width: 21px;
	height: 21px;
}

.smt-datasheet-card__content {
	min-width: 0;
	flex: 1 1 auto;
}

.smt-datasheet-card__title {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--smt-sp-text);
}

.smt-datasheet-card__meta {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	line-height: 1.35;
	color: var(--smt-sp-muted);
}

.smt-datasheet-card__type {
	flex: 0 0 auto;
	padding: 4px 7px;
	border-radius: 999px;
	background: var(--smt-sp-primary);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.35px;
}

/* Khối D - lưu ý quan trọng */
.smt-notes-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smt-notes-list li {
	position: relative;
	padding: 5px 0 5px 22px;
	font-size: 13px;
	color: #555;
	line-height: 1.55;
}

.smt-notes-list li::before {
	content: "•";
	position: absolute;
	left: 4px;
	top: 4px;
	color: var(--smt-sp-primary);
	font-weight: 700;
}

/* Khối E - cam kết: trong sidebar xếp 1 cột */
.smt-box--commitments .smt-trust-badges {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
}

.smt-box--commitments .smt-trust-badges__item {
	padding: 8px 0;
	gap: 12px;
}

.smt-box--commitments .smt-trust-badges__text {
	font-size: 13.5px;
	line-height: 1.45;
	color: #4a5568;
}

/* Khối F - form báo giá (sidebar) */
.smt-box--quote .smt-quote-product {
	margin: 0 0 12px;
	padding: 10px 12px;
	background: var(--smt-sp-bg-soft);
	border: 1px solid var(--smt-sp-border);
	border-radius: 8px;
}

.smt-box--quote .smt-quote-product__label {
	display: block;
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.35px;
	color: var(--smt-sp-muted);
}

.smt-box--quote .smt-quote-product__value {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--smt-sp-text);
}

.smt-box--quote .smt-quote-product__link {
	color: inherit;
	text-decoration: none;
}

.smt-box--quote .smt-quote-product__link:hover {
	color: var(--smt-sp-primary);
}

.smt-box--quote .smt-quote-product__sku {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--smt-sp-muted);
}

.smt-box--quote .smt-quote__field {
	margin: 0 0 11px;
}

.smt-box--quote .smt-quote__field--qty {
	max-width: 110px;
}

.smt-box--quote .smt-quote__field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	text-transform: none;
	letter-spacing: 0;
}

.smt-box--quote .smt-quote__field label span {
	color: #e7402b;
}

.smt-box--quote .smt-quote__field input,
.smt-box--quote .smt-quote__field textarea {
	width: 100%;
	margin-top: 5px;
	padding: 9px 12px;
	border: 1px solid #dfe4ea !important;
	border-radius: 8px !important;
	font-size: 14px;
	line-height: 1.45;
	color: var(--smt-sp-text);
	background: #fff !important;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.smt-box--quote .smt-quote__field input::placeholder,
.smt-box--quote .smt-quote__field textarea::placeholder {
	color: #aab2bd;
}

.smt-box--quote .smt-quote__field input:hover,
.smt-box--quote .smt-quote__field textarea:hover {
	border-color: #c4ccd6 !important;
}

.smt-box--quote .smt-quote__field input:focus,
.smt-box--quote .smt-quote__field textarea:focus {
	border-color: var(--smt-sp-primary) !important;
	box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.12) !important;
	outline: none;
}

.smt-box--quote .smt-quote__field textarea {
	min-height: 88px;
	resize: vertical;
}

.smt-box--quote .smt-quote__submit.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 4px 0 0;
	padding: 11px 16px;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--smt-sp-primary) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-transform: none !important;
	letter-spacing: 0;
	box-shadow: none;
	transition: filter 0.2s ease, transform 0.15s ease;
}

.smt-box--quote .smt-quote__submit.button:hover {
	filter: brightness(0.92);
	transform: translateY(-1px);
	color: #fff !important;
}

.smt-box--quote .smt-quote-msg {
	margin: 0 0 10px;
	padding: 9px 11px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.45;
}

.smt-box--quote .smt-quote-msg--ok {
	background: #e7f6ec;
	color: #1a7a3c;
	border: 1px solid #b7e3c5;
}

.smt-box--quote .smt-quote-msg--err {
	background: #fdecec;
	color: #c0392b;
	border: 1px solid #f3c2c2;
}

/* Fallback chung (ngoài sidebar box) */
.smt-quote__field {
	margin: 0 0 14px;
}

.smt-quote__field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--smt-sp-muted);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.smt-quote__field label span {
	color: #e7402b;
}

.smt-quote__field input,
.smt-quote__field textarea {
	width: 100%;
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid #dfe4ea;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--smt-sp-text);
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.smt-quote__field input::placeholder,
.smt-quote__field textarea::placeholder {
	color: #aab2bd;
}

.smt-quote__field input:hover,
.smt-quote__field textarea:hover {
	border-color: #c4ccd6;
}

.smt-quote__field input:focus,
.smt-quote__field textarea:focus {
	border-color: var(--smt-sp-primary);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
	outline: none;
}

.smt-quote__field textarea {
	min-height: 104px;
	resize: vertical;
}

.smt-quote__submit.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 4px 0 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--smt-sp-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.smt-quote__submit.button:hover {
	filter: brightness(0.92);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.smt-quote-msg {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
}

.smt-quote-msg--ok {
	background: #e7f6ec;
	color: #1a7a3c;
	border: 1px solid #b7e3c5;
}

.smt-quote-msg--err {
	background: #fdecec;
	color: #c0392b;
	border: 1px solid #f3c2c2;
}

/* =========================================================================
 * 11) RESPONSIVE
 * ========================================================================= */
@media (max-width: 849px) {

	.single-product .product-title,
	.single-product .product_title {
		font-size: 22px;
	}

	.single-product .product-info .price,
	.single-product .single_variation_wrap .price {
		font-size: 24px;
	}

	.single-product .woocommerce-product-gallery__image img,
	.single-product .product-gallery-slider .img img {
		padding: 12px;
	}
}

/* Orderable product — commercial box */
.smt-order-badge {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	color: #0a7a3e;
	background: #e8f7ee;
	border-radius: 999px;
}

.smt-order-hint {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}
