section[data-name="elf_product-listing"] {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #ffffff;
	font-family: "Assistant", sans-serif;
}

section[data-name="elf_product-listing"] * {
	box-sizing: border-box;
}

/* Main Wrapper */
section[data-name="elf_product-listing"] .permatex-list-wrap {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 70px 20px;
	overflow: visible;
}

/* Filter Area */
section[data-name="elf_product-listing"] .permatex-filter-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-bottom: 46px;
	flex-wrap: wrap;
	text-align: center;
}

section[data-name="elf_product-listing"] .permatex-filter-title {
	flex: 0 0 auto;
	color: #000000;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
}

section[data-name="elf_product-listing"] .permatex-filter-form {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* Dropdown */
section[data-name="elf_product-listing"] .permatex-filter-select {
	width: 300px;
	height: 50px;
	padding: 0 50px 0 20px;
	border: 1px solid rgba(1, 57, 137, 0.18);
	border-radius: 12px;
	outline: none;
	background-color: #f5f7fb;
	color: #111111;
	font-family: "Assistant", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 50px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image:
		linear-gradient(
			45deg,
			transparent 50%,
			#f1b209 50%
		),
		linear-gradient(
			135deg,
			#f1b209 50%,
			transparent 50%
		),
		linear-gradient(
			90deg,
			rgba(1, 57, 137, 0.12),
			rgba(1, 57, 137, 0.12)
		);
	background-position:
		calc(100% - 26px) 22px,
		calc(100% - 18px) 22px,
		calc(100% - 48px) 50%;
	background-size:
		8px 8px,
		8px 8px,
		1px 28px;
	background-repeat: no-repeat;
	transition:
		border-color 0.25s ease,
		background-color 0.25s ease,
		box-shadow 0.25s ease;
}

section[data-name="elf_product-listing"] .permatex-filter-select:hover {
	border-color: rgba(1, 57, 137, 0.45);
	background-color: #ffffff;
	box-shadow: 0 14px 30px rgba(1, 57, 137, 0.12);
}

section[data-name="elf_product-listing"] .permatex-filter-select:focus {
	border-color: #013989;
	background-color: #ffffff;
	box-shadow: 0 0 0 4px rgba(1, 57, 137, 0.1);
}

section[data-name="elf_product-listing"] .permatex-filter-select:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Simple Grid Loading */
section[data-name="elf_product-listing"] .permatex-grid-loading {
	width: 100%;
	min-height: 38px;
	margin: 0 0 18px;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 9px;
	color: #013989;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

section[data-name="elf_product-listing"].is-loading .permatex-grid-loading {
	display: flex;
}

section[data-name="elf_product-listing"] .permatex-grid-loading-spinner {
	width: 17px;
	height: 17px;
	display: inline-block;
	flex: 0 0 17px;
	border: 2px solid rgba(1, 57, 137, 0.18);
	border-top-color: #f1b209;
	border-radius: 50%;
	animation: permatexGridLoadingSpin 0.7s linear infinite;
}

section[data-name="elf_product-listing"].is-loading .permatex-product-grid,
section[data-name="elf_product-listing"].is-loading .permatex-pagination {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

@keyframes permatexGridLoadingSpin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* Product Grid */
section[data-name="elf_product-listing"] .permatex-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	align-items: stretch;
	overflow: visible;
	transition: opacity 0.2s ease;
}

/* Product Card */
section[data-name="elf_product-listing"] .ssauto-post-card {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: 395px;
	overflow: visible;
	background: #f4f4f4;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
	z-index: 1;
}

section[data-name="elf_product-listing"] .ssauto-post-card:hover {
	z-index: 20;
}

/* Product Image */
section[data-name="elf_product-listing"] .ssauto-post-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	overflow: hidden;
	background: linear-gradient(
		135deg,
		#f3f3f3 0%,
		#ffffff 55%,
		#e9eef4 100%
	);
	z-index: 1;
}

section[data-name="elf_product-listing"] .ssauto-post-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition:
		transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.65s ease;
}

section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-image img {
	transform: scale(1.06);
	filter: brightness(0.96) contrast(1.03) saturate(1.05);
}

section[data-name="elf_product-listing"] .ssauto-post-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		135deg,
		rgba(2, 47, 108, 0.08) 0%,
		rgba(2, 47, 108, 0.02) 50%,
		rgba(241, 178, 9, 0.08) 100%
	);
}

section[data-name="elf_product-listing"] .ssauto-post-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: 0;
	background: linear-gradient(
		to bottom,
		rgba(2, 47, 108, 0) 0%,
		rgba(2, 47, 108, 0.22) 100%
	);
	transition: opacity 0.45s ease;
}

section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-image::after {
	opacity: 1;
}

/* Bottom Information */
section[data-name="elf_product-listing"] .ssauto-post-info {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: 72px;
	overflow: visible;
	z-index: 6;
}

/* White Content Box */
section[data-name="elf_product-listing"] .ssauto-post-content {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 72px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	background: #ffffff;
	box-shadow: 0 16px 36px rgba(2, 47, 108, 0.08);
	transition:
		width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
		height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.2s ease,
		box-shadow 0.48s ease;
}

/* Text */
section[data-name="elf_product-listing"] .ssauto-post-text {
	width: 100%;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition:
		opacity 0.36s ease 0.12s,
		visibility 0.36s ease 0.12s,
		transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

/* Application + Partner Labels */
section[data-name="elf_product-listing"] .ssauto-post-categories {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

section[data-name="elf_product-listing"] .ssauto-post-category {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	margin: 0;
	padding: 5px 10px;
	background: #f4f4f4;
	color: #013989;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

section[data-name="elf_product-listing"] .ssauto-post-partner {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 5px 10px;
	background: rgba(241, 178, 9, 0.14);
	color: #8a6500;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Product Title */
section[data-name="elf_product-listing"] .ssauto-post-title {
	display: -webkit-box;
	margin: 0 0 8px;
	overflow: hidden;
	color: #000000;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.22;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

section[data-name="elf_product-listing"] .ssauto-post-title a {
	color: #000000;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 0.25s ease;
}

section[data-name="elf_product-listing"] .ssauto-post-title a:hover {
	color: #013989;
}

/* Excerpt */
section[data-name="elf_product-listing"] .ssauto-post-excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #111111;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

section[data-name="elf_product-listing"] .ssauto-post-excerpt p {
	margin: 0;
}

/* Arrow */
section[data-name="elf_product-listing"] .ssauto-post-arrow {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 8;
	background: #ffffff;
	color: #f1b209;
	text-decoration: none;
	transition:
		left 0.48s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.35s ease,
		color 0.35s ease;
}

section[data-name="elf_product-listing"] .ssauto-post-arrow::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.38) 45%,
		rgba(255, 255, 255, 0) 80%
	);
	transform: translateX(-120%);
	transition: transform 0.6s ease;
}

section[data-name="elf_product-listing"] .ssauto-post-arrow .fa {
	position: relative;
	z-index: 2;
	color: inherit;
	font-size: 34px;
	line-height: 1;
	transition:
		transform 0.35s ease,
		color 0.35s ease;
}

/* Hover Open State */
section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-info {
	width: 92%;
	height: 185px;
}

section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-content {
	width: calc(100% - 72px);
	height: 185px;
	opacity: 1;
	pointer-events: auto;
	overflow: hidden;
	box-shadow: 0 22px 46px rgba(2, 47, 108, 0.12);
}

section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-text {
	max-height: 185px;
	padding: 22px 24px 24px;
	overflow: hidden;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-arrow {
	left: calc(100% - 72px);
	background: #f1b209;
	color: #ffffff;
}

section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-arrow::before {
	transform: translateX(120%);
}

section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-arrow .fa {
	transform: translateX(4px);
}

/* Pagination */
section[data-name="elf_product-listing"] .permatex-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 42px;
	flex-wrap: wrap;
	transition: opacity 0.2s ease;
}

section[data-name="elf_product-listing"] .permatex-pagination a,
section[data-name="elf_product-listing"] .permatex-pagination .page-dots {
	min-width: 38px;
	height: 38px;
	padding: 0 13px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f2f2f2;
	color: #111111;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease;
}

section[data-name="elf_product-listing"] .permatex-pagination a.active,
section[data-name="elf_product-listing"] .permatex-pagination a:hover {
	background: #174fa3;
	color: #ffffff;
}

section[data-name="elf_product-listing"] .permatex-pagination .page-dots {
	min-width: auto;
	padding: 0 4px;
	background: transparent;
	color: #777777;
	pointer-events: none;
}

section[data-name="elf_product-listing"] .permatex-pagination .page-prev,
section[data-name="elf_product-listing"] .permatex-pagination .page-next {
	min-width: 92px;
	border: 1px solid #dddddd;
	background: #ffffff;
}

section[data-name="elf_product-listing"] .permatex-pagination .page-prev:hover,
section[data-name="elf_product-listing"] .permatex-pagination .page-next:hover {
	border-color: #174fa3;
	background: #174fa3;
	color: #ffffff;
}

/* No Result */
section[data-name="elf_product-listing"] .permatex-no-result {
	grid-column: 1 / -1;
	padding: 40px 20px;
	border-radius: 12px;
	background: #f7f7f7;
	color: #000000;
	font-size: 16px;
	text-align: center;
}

/* Laptop */
@media (max-width: 1199px) {
	section[data-name="elf_product-listing"] .permatex-list-wrap {
		max-width: 1120px;
	}

	section[data-name="elf_product-listing"] .permatex-filter-select {
		width: 270px;
	}

	section[data-name="elf_product-listing"] .permatex-product-grid {
		gap: 24px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-card {
		height: 360px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-info {
		width: 94%;
		height: 175px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-content {
		height: 175px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-text {
		max-height: 175px;
		padding: 20px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-title {
		font-size: 20px;
	}
}

/* Tablet */
@media (max-width: 991px) {
	section[data-name="elf_product-listing"] .permatex-filter-row {
		flex-direction: column;
		gap: 16px;
	}

	section[data-name="elf_product-listing"] .permatex-filter-form {
		width: 100%;
	}

	section[data-name="elf_product-listing"] .permatex-filter-select {
		width: calc(50% - 7px);
		max-width: 330px;
	}

	section[data-name="elf_product-listing"] .permatex-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-card {
		height: 360px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	section[data-name="elf_product-listing"] .permatex-list-wrap {
		padding: 50px 20px;
	}

	section[data-name="elf_product-listing"] .permatex-filter-row {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 16px;
		margin-bottom: 32px;
	}

	section[data-name="elf_product-listing"] .permatex-filter-title {
		font-size: 22px;
	}

	section[data-name="elf_product-listing"] .permatex-filter-form {
		width: 100%;
		flex-direction: column;
		gap: 12px;
	}

	section[data-name="elf_product-listing"] .permatex-filter-select {
		width: 100%;
		max-width: 360px;
	}

	section[data-name="elf_product-listing"] .permatex-grid-loading {
		margin-bottom: 16px;
		font-size: 15px;
	}

	section[data-name="elf_product-listing"] .permatex-product-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-card {
		height: 390px;
		box-shadow: 0 14px 34px rgba(2, 47, 108, 0.08);
	}

	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-image img {
		transform: none;
		filter: none;
	}

	section[data-name="elf_product-listing"] .ssauto-post-image::after {
		opacity: 1;
		background: linear-gradient(
			to bottom,
			rgba(2, 47, 108, 0) 0%,
			rgba(2, 47, 108, 0.16) 100%
		);
	}

	section[data-name="elf_product-listing"] .ssauto-post-info,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-info {
		left: 0;
		bottom: 0;
		width: calc(100% - 24px);
		height: 155px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-content,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-content {
		left: 0;
		bottom: 0;
		width: calc(100% - 72px);
		height: 155px;
		opacity: 1;
		pointer-events: auto;
		background: #ffffff;
		box-shadow: 0 16px 36px rgba(2, 47, 108, 0.08);
	}

	section[data-name="elf_product-listing"] .ssauto-post-text,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-text {
		max-height: 155px;
		padding: 18px;
		overflow: hidden;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	section[data-name="elf_product-listing"] .ssauto-post-categories {
		gap: 5px;
		margin-bottom: 7px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-category,
	section[data-name="elf_product-listing"] .ssauto-post-partner {
		padding: 4px 8px;
		font-size: 10px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-arrow,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-arrow {
		left: calc(100% - 72px);
		width: 72px;
		height: 72px;
		background: #f1b209;
		color: #ffffff;
	}

	section[data-name="elf_product-listing"] .ssauto-post-arrow .fa,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-arrow .fa {
		font-size: 30px;
		transform: none;
	}

	section[data-name="elf_product-listing"] .ssauto-post-title {
		margin-bottom: 7px;
		font-size: 20px;
		-webkit-line-clamp: 2;
	}

	section[data-name="elf_product-listing"] .ssauto-post-excerpt {
		font-size: 14px;
		line-height: 1.4;
		-webkit-line-clamp: 2;
	}

	section[data-name="elf_product-listing"] .permatex-pagination {
		gap: 6px;
		margin-top: 34px;
	}

	section[data-name="elf_product-listing"] .permatex-pagination a,
	section[data-name="elf_product-listing"] .permatex-pagination .page-dots {
		min-width: 34px;
		height: 34px;
		padding: 0 10px;
		font-size: 13px;
	}

	section[data-name="elf_product-listing"] .permatex-pagination .page-prev,
	section[data-name="elf_product-listing"] .permatex-pagination .page-next {
		min-width: 78px;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	section[data-name="elf_product-listing"] .permatex-list-wrap {
		padding: 40px 16px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-card {
		height: 350px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-info,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-info {
		width: calc(100% - 18px);
		height: 145px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-content,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-content {
		width: calc(100% - 64px);
		height: 145px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-text,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-text {
		max-height: 145px;
		padding: 15px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-arrow,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-arrow {
		left: calc(100% - 64px);
		width: 64px;
		height: 64px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-arrow .fa,
	section[data-name="elf_product-listing"] .ssauto-post-card:hover .ssauto-post-arrow .fa {
		font-size: 28px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-title {
		margin-bottom: 6px;
		font-size: 18px;
	}

	section[data-name="elf_product-listing"] .ssauto-post-excerpt {
		font-size: 13px;
		line-height: 1.35;
	}

	section[data-name="elf_product-listing"] .permatex-pagination .page-prev,
	section[data-name="elf_product-listing"] .permatex-pagination .page-next {
		min-width: 72px;
		padding: 0 8px;
	}
}