/**
 * NNF Commerce — Product Card Component (Hover Actions, Stepper, Badges & Grid)
 * @package NNF_Commerce
 */

/* ==========================================================================
   5. WOODMART FEATURED PRODUCTS & CARDS
   ========================================================================= */
.nnf-products-carousel-section {
	margin-bottom: 44px;
}

.nnf-slider-nav-btns {
	display: flex;
	gap: 8px;
}

.nnf-arrow-btn {
	width: 44px;
	height: 44px;
	border-radius: var(--wd-radius);
	border: 1px solid var(--wd-border);
	background: #fff;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--wd-transition);
}

.nnf-arrow-btn:hover {
	background: var(--wd-primary);
	color: #fff;
	border-color: var(--wd-primary);
}

.nnf-featured-products-swiper {
	cursor: grab;
	padding: 8px 0;
}

.nnf-featured-products-swiper:active {
	cursor: grabbing;
}

/* Featured Products Swiper Wrapper as WooCommerce Products List */
.nnf-featured-products-swiper .swiper-wrapper.products,
.nnf-featured-products-swiper ul.products {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	width: auto;
}

.nnf-featured-products-swiper .swiper-wrapper.products::before,
.nnf-featured-products-swiper .swiper-wrapper.products::after {
	display: none;
}

.nnf-featured-products-swiper .swiper-slide.product {
	flex-shrink: 0;
	height: 100%;
	margin: 0;
	float: none;
}

/* WoodMart Product Card (Equal Height & Clean-room Architecture) */
.swiper-slide.nnf-product-slide-item,
.woocommerce ul.products li.product.nnf-woodmart-prod-card,
.woocommerce ul.products li.product {
	position: relative;
	background: #ffffff;
	border-radius: var(--wd-radius, 8px);
	padding: 0 0 12px 0;
	border: 1px solid var(--wd-border, #eaeaea);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woocommerce ul.products li.product.nnf-woodmart-prod-card:hover,
.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
	border-color: rgba(140, 188, 103, 0.5);
}

.nnf-prod-badge-sale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #ec4141;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: var(--wd-radius-pill, 20px);
	z-index: 6;
	pointer-events: none;
}

/* Image Wrap: Tràn sát tuyệt đối ra 3 góc trên (trái, trên, phải) của thẻ sản phẩm */
.nnf-prod-img-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: visible;
	border-radius: var(--wd-radius, 8px) var(--wd-radius, 8px) 0 0;
	margin: 0;
	padding: 0;
	background: transparent;
	flex-shrink: 0;
	position: relative;
	z-index: 4;
}

/* Image Link: Cắt cúp bo góc và zoom ảnh chuẩn xác, không bị tràn ra ngoài */
.nnf-prod-img-wrap > a {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--wd-radius, 8px) var(--wd-radius, 8px) 0 0;
	position: relative;
	line-height: 0;
}

.nnf-prod-img-wrap > a .nnf-prod-img,
.nnf-woodmart-prod-card .nnf-prod-img,
.woocommerce ul.products li.product.nnf-woodmart-prod-card img,
.woocommerce ul.products li.product img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	border-radius: var(--wd-radius, 8px) var(--wd-radius, 8px) 0 0;
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nnf-woodmart-prod-card:hover .nnf-prod-img,
.woocommerce ul.products li.product:hover img {
	transform: scale(1.04);
}



/* Khối nội dung thống nhất: Chừa lề 12px hai bên trái/phải, không cách xa ảnh */
.nnf-prod-content,
.nnf-prod-info {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: flex-start;
	background: #ffffff;
	position: relative;
	z-index: 3;
	margin-top: 8px;
	padding: 0 12px;
	width: 100%;
	box-sizing: border-box;
}

.nnf-woodmart-prod-card:hover .nnf-prod-content,
.woocommerce ul.products li.product:hover .nnf-prod-content,
.nnf-woodmart-prod-card:hover .nnf-prod-info,
.woocommerce ul.products li.product:hover .nnf-prod-info {
	transform: none;
}

/* Danh mục sản phẩm trên thẻ (ẩn hoặc hiển thị theo Customizer) */
.nnf-prod-cat {
	font-size: 11px;
	color: #94a3b8;
	margin-bottom: 2px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Tên sản phẩm: Nền trắng, 2 dòng gọn gàng, không cách xa giá */
.woocommerce ul.products li.product.nnf-woodmart-prod-card .nnf-prod-title,
.woocommerce ul.products li.product .nnf-prod-title,
.woocommerce ul.products li.product.nnf-woodmart-prod-card .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 4px 0;
	line-height: 1.35;
	height: 38px;
	min-height: 38px;
	max-height: 38px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nnf-prod-title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
	color: var(--wd-dark, #242424);
	text-decoration: none;
	transition: color 0.2s ease;
}

.nnf-prod-title a:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
	color: var(--wd-primary, #8CBC67);
}

/* Hàng Giá & Đánh giá: Giá bên trái, Đánh giá bên phải */
.woocommerce ul.products li.product.nnf-woodmart-prod-card .nnf-prod-meta-row,
.woocommerce ul.products li.product .nnf-prod-meta-row,
.nnf-prod-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin: 0 0 6px 0;
	min-height: 24px;
	width: 100%;
	box-sizing: border-box;
}

.woocommerce ul.products li.product.nnf-woodmart-prod-card .price,
.woocommerce ul.products li.product.nnf-woodmart-prod-card .nnf-prod-price,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .nnf-prod-price,
.nnf-prod-price {
	font-size: 15px;
	font-weight: 800;
	color: var(--wd-primary, #8CBC67);
	margin: 0;
	min-height: auto;
	line-height: 1.25;
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
}

.woocommerce ul.products li.product.nnf-woodmart-prod-card .price del,
.woocommerce ul.products li.product .price del,
.nnf-prod-price del {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 400;
	margin-right: 5px;
}

.woocommerce ul.products li.product.nnf-woodmart-prod-card .price ins,
.woocommerce ul.products li.product .price ins,
.nnf-prod-price ins {
	text-decoration: none;
}

.nnf-price-contact,
.price .nnf-price-contact,
.nnf-prod-price .nnf-price-contact {
	color: #B91C1C;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.2px;
	display: inline-block;
}

.nnf-price-contact .amount {
	color: #B91C1C;
}

.woocommerce ul.products li.product .nnf-prod-rating,
.nnf-prod-rating {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
	flex-shrink: 0;
}

.woocommerce ul.products li.product .star-rating,
.nnf-prod-meta-row .star-rating {
	font-size: 11px;
	color: #f59e0b;
	margin: 0;
	float: none;
	display: inline-block;
}

/* Container bọc combo nút: Giữ chiều cao cố định để triệt tiêu hoàn toàn Layout Shift (CLS = 0) */
.woocommerce ul.products li.product.nnf-woodmart-prod-card .nnf-prod-actions-wrap,
.woocommerce ul.products li.product .nnf-prod-actions-wrap,
.nnf-prod-actions-wrap {
	margin-top: auto;
	width: 100%;
	height: 38px;
	min-height: 38px;
	box-sizing: border-box;
	overflow: hidden;
	background: #ffffff;
	position: relative;
}

/* Thông tin bổ sung dưới thẻ khi chưa hover: Dòng sản phẩm & Thương hiệu */
.nnf-prod-extra-meta {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	background: #ffffff;
	z-index: 1;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: auto;
}

.nnf-meta-item {
	font-size: 11px;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #64748b;
	display: flex;
	align-items: center;
}

.nnf-meta-lbl {
	font-weight: 700;
	color: #475569;
	margin-right: 4px;
	flex-shrink: 0;
}

.nnf-meta-txt {
	color: #0f172a;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nnf-season-active {
	font-weight: 800;
	color: #15803d;
}

.nnf-season-inactive {
	font-weight: 500;
	color: #94a3b8;
}

.nnf-season-badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	background: rgba(22, 163, 74, 0.12);
	color: #16a34a;
	font-size: 11px;
	font-weight: 700;
	margin-left: 4px;
}

/* Khối Quốc gia & Mùa vụ ở trang chi tiết sản phẩm */
.nnf-single-country-season {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 14px 0 18px;
	padding: 12px 16px;
	background: #f8fafc;
	border-left: 3px solid var(--wd-primary, #8CBC67);
	border-radius: 6px;
	font-size: 13.5px;
	color: #334155;
}

.nnf-single-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1.4;
}

.nnf-single-meta-lbl {
	font-weight: 700;
	color: #1e293b;
	min-width: 130px;
	flex-shrink: 0;
}

.nnf-single-meta-val {
	color: #334155;
}

/* Khi hover vào thẻ: 2 dòng thông tin mờ đi và trượt nhẹ */
.nnf-woodmart-prod-card:hover .nnf-prod-extra-meta,
.woocommerce ul.products li.product:hover .nnf-prod-extra-meta,
.nnf-woodmart-prod-card:focus-within .nnf-prod-extra-meta,
.woocommerce ul.products li.product:focus-within .nnf-prod-extra-meta {
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
}

/* Combo nút thêm giỏ hàng & số lượng: Mặc định ẩn bên dưới, trượt lên đè kín 2 dòng thông tin */
.woocommerce ul.products li.product.nnf-woodmart-prod-card .nnf-loop-hover-action,
.woocommerce ul.products li.product .nnf-loop-hover-action,
.nnf-loop-hover-action {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	box-sizing: border-box;
	z-index: 2;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(100%);
	transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease, visibility 0.2s ease;
}

/* Trạng thái Hover hoặc Keyboard Focus: Trượt lên chuẩn xác, che phủ hoàn toàn 2 dòng thông tin */
.nnf-woodmart-prod-card:hover .nnf-loop-hover-action,
.woocommerce ul.products li.product:hover .nnf-loop-hover-action,
.nnf-woodmart-prod-card:focus-within .nnf-loop-hover-action,
.woocommerce ul.products li.product:focus-within .nnf-loop-hover-action {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

/* Tùy chọn Customizer "Luôn hiển thị cố định" */
.nnf-actions-always-visible .nnf-loop-hover-action {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

.nnf-actions-always-visible .nnf-prod-extra-meta {
	display: none;
}

/* Hỗ trợ chế độ giảm chuyển động (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
	.nnf-loop-hover-action,
	.nnf-woodmart-prod-card,
	.woocommerce ul.products li.product,
	.nnf-prod-img,
	.woocommerce ul.products li.product img {
		transition: none;
		transform: none;
	}
}

/* Bộ nút tăng giảm số lượng (+ -): Cân đối tỉ lệ, vừa vặn không chiếm quá nhiều bề ngang */
.woocommerce ul.products li.product .nnf-qty-box,
.nnf-loop-hover-action .nnf-qty-box,
.nnf-qty-box {
	display: inline-flex;
	align-items: center;
	gap: 0;
	height: 34px;
	width: 78px;
	min-width: 78px;
	max-width: 78px;
	border: 1px solid #dcdfe4;
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

.woocommerce ul.products li.product .nnf-qty-btn,
.nnf-loop-hover-action .nnf-qty-btn,
.nnf-qty-btn {
	width: 25px;
	min-width: 25px;
	max-width: 25px;
	height: 32px;
	background: #f8fafc;
	border: none;
	border-radius: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--wd-dark, #242424);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
	user-select: none;
	padding: 0;
	margin: 0;
	line-height: 1;
}

.nnf-qty-btn.nnf-qty-minus {
	border-right: 1px solid #dcdfe4;
}

.nnf-qty-btn.nnf-qty-plus {
	border-left: 1px solid #dcdfe4;
}

.woocommerce ul.products li.product .nnf-qty-btn:hover,
.nnf-loop-hover-action .nnf-qty-btn:hover,
.nnf-qty-btn:hover {
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
}

.nnf-qty-btn:active {
	transform: scale(0.92);
}

.woocommerce ul.products li.product .nnf-qty-input,
.nnf-loop-hover-action .nnf-qty-input,
.nnf-qty-input {
	width: 28px;
	min-width: 28px;
	max-width: 28px;
	height: 32px;
	border: none;
	border-radius: 0;
	background: #ffffff;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--wd-dark, #242424);
	padding: 0;
	margin: 0;
	-moz-appearance: textfield;
	appearance: textfield;
	box-shadow: none;
}

.nnf-qty-input::-webkit-outer-spin-button,
.nnf-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}

.woocommerce ul.products li.product .nnf-qty-input:focus,
.nnf-qty-input:focus {
	outline: none;
	background: #ffffff;
}

/* Nút Thêm Giỏ: Co giãn linh hoạt khít 100% thẻ sản phẩm, không bao giờ bị lệch */
.woocommerce ul.products li.product.nnf-woodmart-prod-card .nnf-ajax-add-btn,
.woocommerce ul.products li.product.nnf-woodmart-prod-card .button,
.woocommerce ul.products li.product.nnf-woodmart-prod-card .add_to_cart_button,
.woocommerce .nnf-loop-hover-action .nnf-ajax-add-btn,
.nnf-loop-hover-action .nnf-ajax-add-btn,
button.nnf-ajax-add-btn,
.nnf-ajax-add-btn {
	flex: 1 1 auto;
	min-width: 0;
	height: 34px;
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
	border: 1px solid var(--wd-primary, #8CBC67);
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0 8px;
	margin: 0;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	box-sizing: border-box;
	line-height: 1;
}

.nnf-ajax-add-btn .nnf-cart-icon-svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.nnf-ajax-add-btn span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.woocommerce ul.products li.product.nnf-woodmart-prod-card .nnf-ajax-add-btn:hover,
.woocommerce ul.products li.product.nnf-woodmart-prod-card .button:hover,
.woocommerce ul.products li.product.nnf-woodmart-prod-card .add_to_cart_button:hover,
.woocommerce .nnf-loop-hover-action .nnf-ajax-add-btn:hover,
.nnf-loop-hover-action .nnf-ajax-add-btn:hover,
button.nnf-ajax-add-btn:hover,
.nnf-ajax-add-btn:hover {
	background: var(--wd-primary-hover, #80AB5E);
	border-color: var(--wd-primary-hover, #80AB5E);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(140, 188, 103, 0.35);
}

.nnf-ajax-add-btn.loading {
	opacity: 0.65;
	pointer-events: none;
}

/* Nút hết hàng & xem tùy chọn */
.woocommerce ul.products li.product.nnf-woodmart-prod-card .nnf-btn-outofstock,
.nnf-btn-outofstock {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #94a3b8;
	cursor: not-allowed;
	box-shadow: none;
}

.woocommerce ul.products li.product.nnf-woodmart-prod-card .nnf-btn-outofstock:hover,
.nnf-btn-outofstock:hover {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #94a3b8;
	box-shadow: none;
}

.nnf-view-product-btn {
	width: 100%;
}

/* ==========================================================================
   Lưới "Tất Cả Sản Phẩm Nổi Bật" (Chuẩn tỉ lệ 4 cột như Slider Trái Cây Tươi Mới)
   ========================================================================== */
.nnf-all-products-section .woocommerce ul.products,
.nnf-all-products-section ul.products.columns-4,
.woocommerce ul.products.columns-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	clear: both;
}

.nnf-all-products-section .woocommerce ul.products::before,
.nnf-all-products-section .woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products.columns-4 li.product,
.nnf-all-products-section .woocommerce ul.products li.product {
	width: 100%;
	margin: 0;
	float: none;
}

@media (min-width: 769px) and (max-width: 1200px) {
	.nnf-all-products-section .woocommerce ul.products,
	.woocommerce ul.products.columns-4 {
		grid-template-columns: repeat(4, 1fr);
		gap: 16px;
	}
}

@media (max-width: 768px) {
	.nnf-all-products-section .woocommerce ul.products,
	.woocommerce ul.products.columns-4 {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.nnf-all-products-section .woocommerce ul.products,
	.woocommerce ul.products.columns-4 {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

/* Shared product grids: homepage, archives and [nnf_products]. */
.nnf-popular-grid,
.woocommerce ul.products.nnf-popular-grid {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	clear: both;
}

.nnf-popular-grid::before,
.nnf-popular-grid::after {
	display: none;
}

.nnf-popular-grid li.product,
.nnf-popular-grid.cols-5 li.product,
.nnf-popular-grid.cols-4 li.product,
.nnf-popular-grid.cols-6 li.product {
	width: 100%;
	margin: 0;
	float: none;
}

.nnf-popular-grid.cols-5,
.woocommerce ul.products.columns-5,
.woocommerce ul.products.nnf-popular-grid.cols-5 {
	grid-template-columns: repeat(5, 1fr);
}

.nnf-popular-grid.cols-4,
.woocommerce ul.products.columns-4,
.woocommerce ul.products.nnf-popular-grid.cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.nnf-popular-grid.cols-6,
.woocommerce ul.products.columns-6,
.woocommerce ul.products.nnf-popular-grid.cols-6 {
	grid-template-columns: repeat(6, 1fr);
}

.nnf-popular-grid.cols-3,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.nnf-popular-grid.cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 769px) and (max-width: 1200px) {
	.nnf-popular-products-section .woocommerce ul.products,
	.nnf-all-products-section .woocommerce ul.products,
	.woocommerce ul.products.nnf-popular-grid,
	.woocommerce ul.products.nnf-popular-grid.cols-5,
	.woocommerce ul.products.nnf-popular-grid.cols-4,
	.woocommerce ul.products.nnf-popular-grid.cols-6,
	.woocommerce ul.products.nnf-popular-grid.cols-3,
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-6,
	.woocommerce ul.products.columns-3,
	.nnf-popular-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 16px;
	}
}

@media (max-width: 768px) {
	.nnf-popular-products-section .woocommerce ul.products,
	.nnf-all-products-section .woocommerce ul.products,
	.woocommerce ul.products.nnf-popular-grid,
	.woocommerce ul.products.nnf-popular-grid.cols-5,
	.woocommerce ul.products.nnf-popular-grid.cols-4,
	.woocommerce ul.products.nnf-popular-grid.cols-6,
	.woocommerce ul.products.nnf-popular-grid.cols-3,
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-6,
	.woocommerce ul.products.columns-3,
	.nnf-popular-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.nnf-popular-products-section .woocommerce ul.products,
	.nnf-all-products-section .woocommerce ul.products,
	.woocommerce ul.products.nnf-popular-grid,
	.woocommerce ul.products.nnf-popular-grid.cols-5,
	.woocommerce ul.products.nnf-popular-grid.cols-4,
	.woocommerce ul.products.nnf-popular-grid.cols-6,
	.woocommerce ul.products.nnf-popular-grid.cols-3,
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-6,
	.woocommerce ul.products.columns-3,
	.nnf-popular-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

/* Customizer Card Option: Always visible actions */
.nnf-woodmart-prod-card.nnf-actions-always-visible .nnf-loop-hover-action {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	margin-top: 10px;
}

.nnf-woodmart-prod-card.nnf-actions-always-visible:hover .nnf-prod-info {
	transform: none;
}

/* Hỗ trợ thiết bị cảm ứng (Mobile / Tablet) */
@media (hover: none), (max-width: 991px) {
	.nnf-woodmart-prod-card:active .nnf-loop-hover-action,
	.woocommerce ul.products li.product:active .nnf-loop-hover-action,
	.woocommerce ul.products li.product.nnf-actions-touch-visible .nnf-loop-hover-action {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.nnf-actions-touch-visible .nnf-prod-extra-meta {
		display: none;
	}

	.woocommerce ul.products li.product.nnf-actions-touch-visible .nnf-prod-actions-wrap {
		height: 44px;
		min-height: 44px;
	}

	.woocommerce ul.products li.product.nnf-actions-touch-visible .nnf-ajax-add-btn {
		height: 44px;
	}

	.woocommerce ul.products li.product.nnf-actions-touch-visible.nnf-card-has-qty .nnf-prod-actions-wrap {
		height: 94px;
		min-height: 94px;
	}

	.woocommerce ul.products li.product.nnf-actions-touch-visible.nnf-card-has-qty .nnf-loop-hover-action {
		flex-direction: column;
	}

	.woocommerce ul.products li.product.nnf-actions-touch-visible .nnf-qty-box {
		width: 100%;
		max-width: none;
		height: 44px;
	}

	.woocommerce ul.products li.product.nnf-actions-touch-visible .nnf-qty-btn {
		width: 44px;
		min-width: 44px;
		max-width: 44px;
		height: 44px;
	}

	.woocommerce ul.products li.product.nnf-actions-touch-visible .nnf-qty-input {
		flex: 1;
		max-width: none;
		height: 44px;
	}

	.woocommerce ul.products li.product.nnf-actions-touch-visible.nnf-card-has-qty .nnf-ajax-add-btn {
		width: 100%;
		flex: 0 0 44px;
	}
}
