/**
 * Woo Badge - Icons in Row, Compact Text Badges
 */

/* ========== Badge Container - Left Aligned ========== */
.woo-badge-list {
	position: absolute !important;
	top: 5px !important; /* Inside image, near top */
	left: 10px !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	z-index: 999 !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	flex-direction: row !important;
	gap: 4px !important;
	row-gap: 4px !important;
	pointer-events: none !important;
	direction: ltr !important;
	width: auto !important;
	max-width: calc(100% - 20px) !important;
	align-items: center !important;
	align-content: center !important;
	justify-content: flex-start !important;
}

/* ========== Badge Item ========== */
.woo-badge-item {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 38px !important;
	width: 38px !important;
	min-height: 38px !important;
	min-width: 38px !important;
	max-height: 38px !important;
	max-width: 38px !important;
	padding: 3px !important;
	margin: 0 !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
	pointer-events: auto !important;
	list-style: none !important;
	border: none !important;
	box-sizing: border-box !important;
	cursor: help !important;
	font-family: inherit !important;
	flex-shrink: 0 !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}

/* Badge with text - same size as icons */
.woo-badge-item.has-text {
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	padding: 3px !important;
	margin: 0 !important;
	border-radius: 50% !important;
	overflow: hidden !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}

/* Badge Order Priority */
.woo-badge-item.woo-badge-discount {
	order: 1 !important;
}

.woo-badge-item.woo-badge-limited_stock {
	order: 2 !important;
}

.woo-badge-item.woo-badge-free_shipping {
	order: 3 !important;
}

.woo-badge-item.woo-badge-gift_shipping {
	order: 4 !important;
}

.woo-badge-item.woo-badge-original {
	order: 5 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 38px !important;
	width: 38px !important;
	min-height: 38px !important;
	min-width: 38px !important;
	max-height: 38px !important;
	max-width: 38px !important;
	margin: 0 !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}

.woo-badge-item.woo-badge-new {
	order: 6 !important;
}

.woo-badge-item.woo-badge-hot {
	order: 7 !important;
}

.woo-badge-item.woo-badge-authenticity {
	order: 8 !important;
}

.woo-badge-item.woo-badge-out_of_stock {
	order: 0 !important; /* Always first */
}

.woo-badge-item.woo-badge-custom {
	order: 9 !important;
}

/* ========== Tooltip - Simple ========== */
.woo-badge-item[data-tooltip]::after {
	content: attr(data-tooltip) !important;
	position: absolute !important;
	bottom: calc(100% + 5px) !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	background: rgba(0, 0, 0, 0.9) !important;
	color: #fff !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	z-index: 10000 !important;
	line-height: 1.4 !important;
	direction: rtl !important;
	text-align: center !important;
	font-family: Tahoma, Arial, sans-serif !important;
}

.woo-badge-item:hover[data-tooltip]::after {
	opacity: 1 !important;
	visibility: visible !important;
}

/* ========== Icon ========== */
.woo-badge-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 16px !important;
	flex-shrink: 0 !important;
	line-height: 1 !important;
}

.woo-badge-icon i {
	line-height: 1 !important;
	font-size: 16px !important;
}

/* Icon only badges - larger icon */
.woo-badge-item.icon-only .woo-badge-icon {
	font-size: 18px !important;
}

.woo-badge-item.icon-only .woo-badge-icon i {
	font-size: 18px !important;
}

/* ========== Text ========== */
.woo-badge-text {
	font-size: 9px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	white-space: normal !important;
	display: block !important;
	text-align: center !important;
	word-break: keep-all !important; /* Keep words together */
	overflow-wrap: normal !important;
	max-width: 34px !important;
	hyphens: none !important;
}

/* Hide icon when badge has text */
.woo-badge-item.has-text .woo-badge-icon {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
}

/* Hide text when badge is icon-only */
.woo-badge-item.icon-only .woo-badge-text {
	display: none !important;
	visibility: hidden !important;
}

/* Ensure discount badge icon is hidden and text is centered */
.woo-badge-discount .woo-badge-icon,
.woo-badge-discount.has-text .woo-badge-icon {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	visibility: hidden !important;
}
.woo-badge-discount .woo-badge-text,
.woo-badge-discount.has-text .woo-badge-text {
	display: block !important;
	text-align: center !important;
	width: 100% !important;
}

/* ========== Badge Colors ========== */

.woo-badge-out_of_stock {
	background: #95a5a6 !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-out_of_stock.has-text {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-out_of_stock.has-text .woo-badge-text {
	font-size: 9px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}

.woo-badge-discount {
	background: #e74c3c !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 3px !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-discount.has-text {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-discount.has-text .woo-badge-text {
	font-size: 13px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	text-align: center !important;
}

.woo-badge-limited_stock {
	background: #f39c12 !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-limited_stock.has-text {
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-limited_stock.has-text .woo-badge-text {
	font-size: 8px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}

.woo-badge-free_shipping {
	background: #2ecc71 !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-free_shipping.has-text {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-free_shipping.has-text .woo-badge-text {
	font-size: 8px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}

.woo-badge-hot {
	background: #ff6b6b !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-hot.has-text {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-hot.has-text .woo-badge-text {
	font-size: 10px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}

.woo-badge-authenticity {
	background: #3498db !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-authenticity.has-text {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-authenticity.has-text .woo-badge-text {
	font-size: 8px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}

.woo-badge-gift_shipping {
	background: #9b59b6 !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-gift_shipping.has-text {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-gift_shipping.has-text .woo-badge-text {
	font-size: 8px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}

.woo-badge-new {
	background: #1abc9c !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-new.has-text {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-new.has-text .woo-badge-text {
	font-size: 10px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}

.woo-badge-original {
	background: #34495e !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-original.has-text {
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-original.has-text .woo-badge-text {
	font-size: 9px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	text-align: center !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.woo-badge-custom {
	background: #ff6b6b !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-custom.has-text {
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 3px !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}
.woo-badge-custom.has-text .woo-badge-text {
	font-size: 9px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	text-align: center !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* ========== Image Wrapper Position ========== */
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product .product-thumbnail,
.woocommerce div.product .images,
.woocommerce div.product .product-images,
.woocommerce ul.products li.product .wp-post-image,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery,
.product-images-wrapper,
.woocommerce-loop-product__link {
	position: relative !important;
}

/* Single product badge positioning */
.woo-badge-single {
	position: absolute !important;
	top: 5px !important;
	left: 10px !important;
	z-index: 999 !important;
}

/* ========== RTL Support ========== */
body.rtl .woo-badge-list,
[dir="rtl"] .woo-badge-list {
	left: auto !important;
	right: 10px !important;
	top: 5px !important; /* Same as LTR - inside image */
	direction: rtl !important;
}

/* RTL Tooltip adjustments */
body.rtl .woo-badge-item[data-tooltip]::after,
[dir="rtl"] .woo-badge-item[data-tooltip]::after {
	direction: rtl !important;
	text-align: center !important;
}

body.rtl .woo-badge-item[data-tooltip]::before,
[dir="rtl"] .woo-badge-item[data-tooltip]::before {
	left: 50% !important;
	transform: translateX(-50%) !important;
}

/* ========== Tablet (769px - 1024px) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
	.woo-badge-list {
		top: 5px !important; /* Inside image */
		left: 8px !important;
		gap: 4px !important;
	}
	
	/* Maintain badge order in tablet */
	.woo-badge-item.woo-badge-out_of_stock {
		order: 0 !important;
	}
	.woo-badge-item.woo-badge-discount {
		order: 1 !important;
	}
	.woo-badge-item.woo-badge-limited_stock {
		order: 2 !important;
	}
	.woo-badge-item.woo-badge-free_shipping {
		order: 3 !important;
	}
	.woo-badge-item.woo-badge-gift_shipping {
		order: 4 !important;
	}
	.woo-badge-item.woo-badge-original {
		order: 5 !important;
	}
	.woo-badge-item.woo-badge-new {
		order: 6 !important;
	}
	.woo-badge-item.woo-badge-hot {
		order: 7 !important;
	}
	.woo-badge-item.woo-badge-authenticity {
		order: 8 !important;
	}
	
	.woo-badge-item {
		height: 30px !important;
		width: 30px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	.woo-badge-item.has-text {
		width: 30px !important;
		height: 30px !important;
		min-width: 30px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	.woo-badge-discount {
		height: 36px !important;
		width: 36px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-discount .woo-badge-text {
		font-size: 13px !important;
	}
	
	.woo-badge-original {
		height: 36px !important;
		width: 36px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-original.has-text {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-original .woo-badge-text {
		font-size: 8px !important;
	}
	
	.woo-badge-icon {
		font-size: 15px !important;
	}
	
	.woo-badge-icon i {
		font-size: 15px !important;
	}
	
	.woo-badge-item.icon-only .woo-badge-icon {
		font-size: 16px !important;
	}
	
	.woo-badge-item.icon-only .woo-badge-icon i {
		font-size: 16px !important;
	}
	
	.woo-badge-text {
		font-size: 9px !important;
	}
	
	.woo-badge-item[data-tooltip]::after {
		font-size: 10px !important;
		padding: 5px 10px !important;
		bottom: calc(100% + 6px) !important;
	}
	
	.woo-badge-item[data-tooltip]::before {
		bottom: calc(100% + 2px) !important;
		border-width: 4px !important;
	}
	
	body.rtl .woo-badge-list,
	[dir="rtl"] .woo-badge-list {
		right: 8px !important;
		top: 5px !important; /* Inside image */
	}
}

/* ========== Mobile (481px - 768px) ========== */
@media (min-width: 481px) and (max-width: 768px) {
	.woo-badge-list {
		top: 5px !important; /* Inside image */
		left: 8px !important;
		gap: 3px !important;
		max-width: calc(100% - 16px) !important;
	}
	
	/* Maintain badge order in mobile - PERCENTAGE FIRST */
	.woo-badge-archive .woo-badge-item.woo-badge-out_of_stock {
		order: 0 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-discount {
		order: 1 !important; /* ALWAYS FIRST (after out of stock) */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-limited_stock {
		order: 2 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-free_shipping {
		order: 3 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-gift_shipping {
		order: 4 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-original {
		order: 5 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-new {
		order: 6 !important;
		display: none !important; /* Hide after 5th */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-hot {
		order: 7 !important;
		display: none !important; /* Hide after 5th */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-authenticity {
		order: 8 !important;
		display: none !important; /* Hide after 5th */
	}
	
	.woo-badge-item {
		height: 34px !important;
		width: 34px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	.woo-badge-item.has-text {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	.woo-badge-text {
		font-size: 7px !important;
		line-height: 1.1 !important;
	}
	
	.woo-badge-discount {
		height: 34px !important;
		width: 34px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-discount.has-text {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-discount .woo-badge-text {
		font-size: 11px !important;
	}
	
	.woo-badge-original {
		height: 34px !important;
		width: 34px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-original.has-text {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-original .woo-badge-text {
		font-size: 7px !important;
	}
	
	.woo-badge-hot .woo-badge-text {
		font-size: 8px !important;
	}
	
	.woo-badge-new .woo-badge-text {
		font-size: 8px !important;
	}
	
	.woo-badge-icon {
		font-size: 14px !important;
	}
	
	.woo-badge-icon i {
		font-size: 14px !important;
	}
	
	.woo-badge-item.icon-only .woo-badge-icon {
		font-size: 15px !important;
	}
	
	.woo-badge-item.icon-only .woo-badge-icon i {
		font-size: 15px !important;
	}
	
	.woo-badge-text {
		font-size: 8px !important;
	}
	
	.woo-badge-item[data-tooltip]::after {
		font-size: 10px !important;
		padding: 5px 9px !important;
		bottom: calc(100% + 6px) !important;
	}
	
	.woo-badge-item[data-tooltip]::before {
		bottom: calc(100% + 2px) !important;
		border-width: 4px !important;
	}
	
	body.rtl .woo-badge-list,
	[dir="rtl"] .woo-badge-list {
		right: 8px !important;
		top: 5px !important; /* Inside image */
	}
}

/* ========== Small Mobile (max 480px) ========== */
@media (max-width: 480px) {
	.woo-badge-list {
		top: 5px !important; /* Inside image */
		left: 6px !important;
		gap: 2px !important;
		max-width: calc(100% - 12px) !important;
	}
	
	/* Maintain badge order in small mobile - PERCENTAGE FIRST */
	.woo-badge-archive .woo-badge-item.woo-badge-out_of_stock {
		order: 0 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-discount {
		order: 1 !important; /* ALWAYS FIRST (after out of stock) */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-limited_stock {
		order: 2 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-free_shipping {
		order: 3 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-gift_shipping {
		order: 4 !important;
		display: none !important; /* Hide after 4th */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-original {
		order: 5 !important;
		display: none !important; /* Hide after 4th */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-new {
		order: 6 !important;
		display: none !important; /* Hide after 4th */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-hot {
		order: 7 !important;
		display: none !important; /* Hide after 4th */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-authenticity {
		order: 8 !important;
		display: none !important; /* Hide after 4th */
	}
	
	.woo-badge-item {
		height: 32px !important;
		width: 32px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	.woo-badge-item.has-text {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	.woo-badge-text {
		font-size: 7px !important;
		line-height: 1.1 !important;
	}
	
	.woo-badge-discount {
		height: 32px !important;
		width: 32px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-discount.has-text {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-discount .woo-badge-text {
		font-size: 10px !important;
	}
	
	.woo-badge-original {
		height: 32px !important;
		width: 32px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-original.has-text {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-original .woo-badge-text {
		font-size: 6px !important;
	}
	
	.woo-badge-hot .woo-badge-text {
		font-size: 7px !important;
		white-space: nowrap !important;
	}
	
	.woo-badge-new .woo-badge-text {
		font-size: 7px !important;
	}
	
	.woo-badge-limited_stock .woo-badge-text,
	.woo-badge-free_shipping .woo-badge-text,
	.woo-badge-authenticity .woo-badge-text,
	.woo-badge-gift_shipping .woo-badge-text,
	.woo-badge-out_of_stock .woo-badge-text {
		font-size: 6px !important;
	}
	
	.woo-badge-icon {
		font-size: 12px !important;
	}
	
	.woo-badge-icon i {
		font-size: 12px !important;
	}
	
	.woo-badge-item.icon-only .woo-badge-icon {
		font-size: 13px !important;
	}
	
	.woo-badge-item.icon-only .woo-badge-icon i {
		font-size: 13px !important;
	}
	
	.woo-badge-text {
		font-size: 7px !important;
	}
	
	.woo-badge-item[data-tooltip]::after {
		font-size: 9px !important;
		padding: 4px 8px !important;
		bottom: calc(100% + 5px) !important;
	}
	
	.woo-badge-item[data-tooltip]::before {
		bottom: calc(100% + 1px) !important;
		border-width: 3px !important;
	}
	
	body.rtl .woo-badge-list,
	[dir="rtl"] .woo-badge-list {
		right: 6px !important;
		top: 5px !important; /* Inside image */
	}
}

/* ========== Very Small Mobile (max 360px) ========== */
@media (max-width: 360px) {
	.woo-badge-list {
		top: 5px !important; /* Inside image */
		left: 5px !important;
		gap: 2px !important;
		max-width: calc(100% - 10px) !important;
	}
	
	/* Maintain badge order in very small mobile - PERCENTAGE FIRST */
	.woo-badge-archive .woo-badge-item.woo-badge-out_of_stock {
		order: 0 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-discount {
		order: 1 !important; /* ALWAYS FIRST (after out of stock) */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-limited_stock {
		order: 2 !important;
	}
	.woo-badge-archive .woo-badge-item.woo-badge-free_shipping {
		order: 3 !important;
		display: none !important; /* Hide after 3rd */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-gift_shipping {
		order: 4 !important;
		display: none !important; /* Hide after 3rd */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-original {
		order: 5 !important;
		display: none !important; /* Hide after 3rd */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-new {
		order: 6 !important;
		display: none !important; /* Hide after 3rd */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-hot {
		order: 7 !important;
		display: none !important; /* Hide after 3rd */
	}
	.woo-badge-archive .woo-badge-item.woo-badge-authenticity {
		order: 8 !important;
		display: none !important; /* Hide after 3rd */
	}
	
	.woo-badge-item {
		height: 30px !important;
		width: 30px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	.woo-badge-item.has-text {
		width: 30px !important;
		height: 30px !important;
		min-width: 30px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	.woo-badge-text {
		font-size: 6px !important;
		line-height: 1.1 !important;
	}
	
	.woo-badge-discount {
		height: 30px !important;
		width: 30px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-discount.has-text {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-discount .woo-badge-text {
		font-size: 9px !important;
	}
	
	.woo-badge-original {
		height: 30px !important;
		width: 30px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-original.has-text {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.woo-badge-original .woo-badge-text {
		font-size: 5px !important;
	}
	
	.woo-badge-hot .woo-badge-text {
		font-size: 6px !important;
		white-space: nowrap !important;
	}
	
	.woo-badge-new .woo-badge-text {
		font-size: 6px !important;
	}
	
	.woo-badge-limited_stock .woo-badge-text,
	.woo-badge-free_shipping .woo-badge-text,
	.woo-badge-authenticity .woo-badge-text,
	.woo-badge-gift_shipping .woo-badge-text,
	.woo-badge-out_of_stock .woo-badge-text {
		font-size: 5px !important;
	}
	
	.woo-badge-icon {
		font-size: 11px !important;
	}
	
	.woo-badge-icon i {
		font-size: 11px !important;
	}
	
	.woo-badge-item.icon-only .woo-badge-icon {
		font-size: 12px !important;
	}
	
	.woo-badge-item.icon-only .woo-badge-icon i {
		font-size: 12px !important;
	}
	
	.woo-badge-text {
		font-size: 6px !important;
	}
	
	.woo-badge-item[data-tooltip]::after {
		font-size: 8px !important;
		padding: 3px 6px !important;
		bottom: calc(100% + 5px) !important;
	}
	
	.woo-badge-item[data-tooltip]::before {
		bottom: calc(100% + 1px) !important;
		border-width: 3px !important;
	}
	
	body.rtl .woo-badge-list,
	[dir="rtl"] .woo-badge-list {
		right: 5px !important;
		top: 5px !important; /* Inside image */
	}
}

/* ========== Print ========== */
@media print {
	.woo-badge-list {
		display: none !important;
	}
}
