/* ==========================================================================
   Awesome Product List Widget (Global Token Edition v2.5.0)
   ========================================================================== */

.awea-product-list-wrap {
	--awea-pl-primary: var(--e-global-color-primary);
	--awea-pl-secondary: var(--e-global-color-secondary);
	--awea-pl-text: var(--e-global-color-text);
	--awea-pl-accent: var(--e-global-color-accent);
	--awea-pl-surface: var(--e-global-color-background, #ffffff);
	--awea-pl-border: color-mix(in srgb, currentColor 12%, transparent);

	width: 100%;
	position: relative;
	box-sizing: border-box;
	background-color: color-mix(in srgb, currentColor 3%, transparent);
	border: 1px solid var(--awea-pl-border);
	border-radius: 20px;
	padding: 32px;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.awea-product-list-wrap *,
.awea-product-list-wrap *::before,
.awea-product-list-wrap *::after {
	box-sizing: border-box;
}

.awea-product-list-wrap:hover {
	border-color: var(--awea-pl-accent);
}

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */
.awea-product-list-header {
	margin-top: 0;
	margin-bottom: 20px;
	color: var(--awea-pl-primary);
	line-height: 1.25;
	word-break: break-word;
}

/* --------------------------------------------------------------------------
   Product Rows Container
   -------------------------------------------------------------------------- */
.awea-product-list-items {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 16px;
}

.awea-product-list-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
	transition: border-color 0.25s ease;
}

.awea-pl-cols-1 .awea-product-list-row:last-child {
	padding-bottom: 0 !important;
	border-bottom: none !important;
	margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   Thumbnail Image & Sale Badge
   -------------------------------------------------------------------------- */
.awea-product-list-thumb {
	position: relative;
	width: 84px;
	height: 84px;
	border-radius: 14px;
	overflow: hidden;
	background-color: color-mix(in srgb, currentColor 6%, transparent);
	flex-shrink: 0;
	border: 1px solid var(--awea-pl-border);
}

.awea-pl-sale-badge {
	position: absolute;
	top: 6px;
	inset-inline-start: 6px;
	z-index: 2;
	padding: 2px 7px;
	border-radius: 100px;
	background-color: var(--awea-pl-accent);
	color: var(--awea-pl-surface);
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.2;
	pointer-events: none;
}

.awea-product-list-thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.awea-product-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.awea-product-list-row:hover .awea-product-list-thumb img {
	transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Content & Meta Details
   -------------------------------------------------------------------------- */
.awea-product-list-content {
	flex-grow: 1;
	min-width: 0;
}

.awea-product-list-title {
	margin-top: 0;
	margin-bottom: 6px;
	line-height: 1.35;
	word-break: break-word;
}

.awea-product-list-title a {
	text-decoration: none;
	color: var(--awea-pl-primary);
	transition: color 0.25s ease;
}

.awea-product-list-title a:focus-visible {
	outline: 2px solid var(--awea-pl-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.awea-product-list-row:hover .awea-product-list-title a,
.awea-product-list-title a:hover {
	color: var(--awea-pl-accent);
}

.awea-product-list-rating {
	margin-bottom: 6px;
	font-size: 0.78rem;
}

.awea-product-list-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.awea-product-list-price {
	color: var(--awea-pl-accent);
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.awea-product-list-price ins {
	text-decoration: none;
	color: inherit;
}

.awea-product-list-price del {
	font-size: 0.85em;
	color: var(--awea-pl-text);
	opacity: 0.55;
	margin-inline-end: 4px;
}

/* --------------------------------------------------------------------------
   Action Button Toggle
   -------------------------------------------------------------------------- */
.awea-product-list-action {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.awea-product-list-action .added_to_cart {
	display: none !important;
}

.awea-product-list-wrap .awea-product-grid-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 100px;
	text-decoration: none;
	background-color: color-mix(in srgb, currentColor 6%, transparent);
	color: var(--awea-pl-primary);
	border: 1px solid var(--awea-pl-border);
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease;
	white-space: nowrap;
	line-height: 1.2;
}

.awea-product-list-wrap .awea-product-grid-btn:focus-visible {
	outline: 2px solid var(--awea-pl-accent);
	outline-offset: 2px;
}

.awea-product-list-wrap .awea-product-grid-btn:hover,
.awea-product-list-wrap .awea-product-grid-btn:focus-visible {
	background-color: var(--awea-pl-accent);
	color: var(--awea-pl-surface);
	border-color: var(--awea-pl-accent);
}

.awea-product-list-wrap .awea-view-cart {
	display: none;
	background-color: #16a34a !important;
	color: #ffffff !important;
	border-color: transparent !important;
}

.product-in-cart .awea-add-to-cart {
	display: none;
}

.product-in-cart .awea-view-cart {
	display: inline-flex;
}

/* --------------------------------------------------------------------------
   Accessibility & Responsive
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.awea-product-list-wrap,
	.awea-product-list-thumb img,
	.awea-product-list-wrap .awea-product-grid-btn {
		transition: none !important;
		transform: none !important;
	}
}

@media (max-width: 640px) {
	.awea-product-list-wrap {
		padding: 20px 16px;
		border-radius: 16px;
	}

	.awea-product-list-row {
		gap: 12px;
	}

	.awea-product-list-thumb {
		width: 68px;
		height: 68px;
		border-radius: 12px;
	}

	.awea-product-list-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		margin-top: 4px;
	}

	.awea-product-list-wrap .awea-product-grid-btn {
		padding: 6px 12px;
	}
}