/**
 * DLD Product Card - default WooCommerce/Flatsome product loops only.
 * All rules are scoped to the .dld-product-card namespace.
 */

.dld-product-card-item > .col-inner {
	height: 100%;
}

.dld-product-card {
	--dld-card-navy: #1c2473;
	--dld-card-red: #ee2d38;
	--dld-card-muted: #68738f;
	--dld-card-line: #e3e9f5;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(28, 36, 115, 0.1);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(28, 36, 115, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dld-product-card:hover {
	transform: translateY(-3px);
	border-color: rgba(28, 36, 115, 0.18);
	box-shadow: 0 14px 32px rgba(28, 36, 115, 0.14);
}

.dld-product-card .dld-product-card__media {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f7ff;
	border-radius: 17px 17px 0 0;
}

.dld-product-card .dld-product-card__image,
.dld-product-card .dld-product-card__image > a {
	display: block;
	width: 100%;
	height: 100%;
}

.dld-product-card .dld-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.dld-product-card:hover .dld-product-card__image img {
	transform: scale(1.035);
}

.dld-product-card-item.out-of-stock .dld-product-card__media::after {
	position: absolute;
	z-index: 8;
	inset: 0;
	content: "";
	pointer-events: none;
	background: rgba(8, 18, 42, 0.44);
}

.dld-product-card-item.out-of-stock .dld-product-card__media .out-of-stock-label {
	position: absolute;
	z-index: 9;
	top: 50%;
	left: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	max-width: calc(100% - 28px);
	min-height: 40px;
	margin: 0;
	padding: 9px 16px;
	color: var(--dld-card-navy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(28, 36, 115, 0.1);
	border-radius: 10px;
	box-shadow: 0 7px 20px rgba(8, 18, 42, 0.2);
	transform: translate(-50%, -50%);
}

.dld-product-card-item.out-of-stock .dld-product-card__stock-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dld-product-card .dld-product-card__sale {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	display: block;
	width: 68px;
	height: 68px;
	padding: 0;
	overflow: hidden;
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	background: linear-gradient(135deg, #ff344b 0%, #f20f35 72%);
	clip-path: polygon(0 0, 100% 0, 0 100%);
	filter: drop-shadow(2px 3px 4px rgba(151, 9, 31, 0.2));
	pointer-events: none;
}

.dld-product-card .dld-product-card__sale > span {
	position: absolute;
	top: 25px;
	left: 25px;
	display: block;
	width: 52px;
	text-align: center;
	transform: translate(-50%, -50%) rotate(-45deg);
	transform-origin: center;
}

.dld-product-card .dld-product-card__badges {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 6px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}

.dld-product-card .dld-product-card__badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 4px 9px;
	overflow: hidden;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.15;
	border: 1px solid transparent;
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 5px 14px rgba(28, 36, 115, 0.14);
	backdrop-filter: blur(5px);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dld-product-card .dld-product-card__badge::before {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	font-size: 12px;
	line-height: 1;
}

.dld-product-card .dld-product-card__badge::after {
	position: absolute;
	top: -45%;
	bottom: -45%;
	left: -55%;
	width: 32%;
	content: "";
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
	transform: skewX(-20deg);
	animation: dld-product-card-badge-shine 3.6s ease-in-out infinite;
}

.dld-product-card .dld-product-card__badge--promotion {
	color: #ee2d38;
	background: #fff1f2;
	border-color: #fecdd3;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 5px 15px rgba(238, 45, 56, 0.2);
}

.dld-product-card .dld-product-card__badge--promotion::before {
	content: "⚡";
}

.dld-product-card .dld-product-card__badge--highlight {
	color: #1c2473;
	background: #eef2ff;
	border-color: #c7d2fe;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 5px 15px rgba(28, 36, 115, 0.2);
}

.dld-product-card .dld-product-card__badge--highlight::before {
	content: "🔥";
}

.dld-product-card:hover .dld-product-card__badge {
	transform: translateY(-1px);
}

.dld-product-card:hover .dld-product-card__badge--promotion {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 7px 18px rgba(238, 45, 56, 0.26);
}

.dld-product-card:hover .dld-product-card__badge--highlight {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 7px 18px rgba(28, 36, 115, 0.26);
}

@keyframes dld-product-card-badge-shine {
	0%,
	58% {
		left: -55%;
		opacity: 0;
	}

	66% {
		opacity: 1;
	}

	82%,
	100% {
		left: 125%;
		opacity: 0;
	}
}

.dld-product-card .dld-product-card__content.box-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 14px 20px 13px;
	text-align: left;
	background: #fff;
}

.dld-product-card .dld-product-card__eyebrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 21px;
	margin-bottom: 8px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.dld-product-card .dld-product-card__type {
	min-width: 0;
	padding-left: 9px;
	overflow: hidden;
	color: var(--dld-card-navy);
	text-overflow: ellipsis;
	white-space: nowrap;
	border-left: 3px solid var(--dld-card-red);
}

.dld-product-card .dld-product-card__attribute {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	overflow: hidden;
	color: #526080;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dld-product-card .dld-product-card__attribute-icon {
	flex: 0 0 auto;
	display: block;
	width: 14px;
	height: 14px;
	margin-right: 5px;
	object-fit: contain;
	opacity: 0.78;
}

.dld-product-card .dld-product-card__title {
	display: -webkit-box;
	min-height: 2.8em;
	max-height: 2.8em;
	margin: 0 0 9px;
	overflow: hidden;
	color: var(--dld-card-navy);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.dld-product-card .dld-product-card__title a {
	color: inherit;
}

.dld-product-card .dld-product-card__title a:hover {
	color: var(--dld-card-red);
}

.dld-product-card .dld-product-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 22px;
	margin-bottom: 12px;
	color: var(--dld-card-muted);
	font-size: 13.5px;
	line-height: 1.25;
}

.dld-product-card .dld-product-card__location,
.dld-product-card .dld-product-card__rating {
	display: flex;
	align-items: center;
	min-width: 0;
	white-space: nowrap;
}

.dld-product-card .dld-product-card__location {
	flex: 1 1 auto;
	overflow: hidden;
}

.dld-product-card .dld-product-card__location span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
}

.dld-product-card .dld-product-card__location-icon {
	flex: 0 0 auto;
	display: block;
	width: 13px;
	height: 15px;
	margin-right: 5px;
	object-fit: contain;
	opacity: 0.72;
}

.dld-product-card .dld-product-card__rating {
	flex: 0 0 auto;
	justify-content: flex-end;
}

.dld-product-card .dld-product-card__rating-star {
	margin-right: 4px;
	color: #ffb400;
	font-size: 17px;
	line-height: 1;
}

.dld-product-card .dld-product-card__rating-value {
	color: #30343b;
	font-weight: 700;
}

.dld-product-card .dld-product-card__rating-count {
	margin-left: 4px;
	color: #737b8c;
	font-weight: 400;
}

.dld-product-card .dld-product-card__rating-empty {
	margin-right: 0;
	color: #98a2b9;
}

.dld-product-card .dld-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 47px;
	margin-top: auto;
	padding-top: 11px;
	border-top: 1px solid var(--dld-card-line);
}

.dld-product-card .dld-product-card__price {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
}

.dld-product-card .dld-product-card__price .price {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	margin: 0;
	color: var(--dld-card-red);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.18;
	white-space: nowrap;
}

.dld-product-card .dld-product-card__price .price br {
	display: none;
}

.dld-product-card .dld-product-card__price .price ins {
	display: inline-flex;
	align-items: baseline;
	margin: 0;
	color: var(--dld-card-red);
	font-weight: 700;
	text-decoration: none;
}

.dld-product-card .dld-product-card__price .price ins .amount,
.dld-product-card .dld-product-card__price .price > .amount {
	color: var(--dld-card-red);
	font-size: inherit;
	font-weight: 700;
	line-height: inherit;
}

.dld-product-card .dld-product-card__price .price del {
	display: block;
	margin: 2px 0 0;
	color: #929bad;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.15;
	opacity: 1;
}

.dld-product-card .dld-product-card__price .span-unit {
	margin-left: 2px;
	font-size: 0.62em;
	font-weight: 600;
	color: #6f7890;
}

.dld-product-card .dld-product-card__cta {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 11px;
	color: var(--dld-card-navy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	background: #f3f7ff;
	border: 1px solid rgba(28, 36, 115, 0.18);
	border-radius: 999px;
	transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.dld-product-card .dld-product-card__cta-arrow {
	margin-left: 4px;
	transition: transform 0.22s ease;
}

.dld-product-card .dld-product-card__cta:hover {
	color: #fff;
	background: linear-gradient(135deg, #1c2473, #2a378e);
	box-shadow: 0 7px 16px rgba(28, 36, 115, 0.2);
	transform: translateY(-1px);
}

.dld-product-card .dld-product-card__cta:hover .dld-product-card__cta-arrow {
	transform: translateX(3px);
}

@media (max-width: 849px) {
	.dld-product-card {
		border-radius: 16px;
	}

	.dld-product-card .dld-product-card__media {
		border-radius: 15px 15px 0 0;
	}

	.dld-product-card .dld-product-card__content.box-text {
		padding: 12px 16px 11px;
	}

	.dld-product-card .dld-product-card__eyebrow {
		margin-bottom: 7px;
		font-size: 11.5px;
	}

	.dld-product-card .dld-product-card__title {
		margin-bottom: 8px;
		font-size: 16px;
	}

	.dld-product-card .dld-product-card__meta {
		margin-bottom: 10px;
		font-size: 12.5px;
	}

	.dld-product-card .dld-product-card__footer {
		gap: 7px;
		padding-top: 9px;
	}

	.dld-product-card .dld-product-card__price .price {
		font-size: 18px;
	}

	.dld-product-card .dld-product-card__cta {
		min-height: 32px;
		padding: 6px 9px;
		font-size: 12.5px;
	}
}

@media (max-width: 549px) {
	.dld-product-card .dld-product-card__rating-count-label {
		display: none;
	}

	.dld-product-card .dld-product-card__sale {
		width: 58px;
		height: 58px;
		font-size: 11.5px;
	}

	.dld-product-card .dld-product-card__sale > span {
		top: 21px;
		left: 21px;
		width: 46px;
	}

	.dld-product-card .dld-product-card__badges {
		left: 7px;
		right: 7px;
		bottom: 4px;
		gap: 4px;
	}

	.dld-product-card .dld-product-card__badge {
		min-height: 20px;
		max-width: 100%;
		padding: 3px 6px;
		overflow: hidden;
		font-size: 10.5px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.dld-product-card .dld-product-card__content.box-text {
		padding: 10px 10px 9px;
	}

	.dld-product-card .dld-product-card__eyebrow {
		gap: 5px;
		min-height: 19px;
		font-size: 10.5px;
		letter-spacing: 0.015em;
	}

	.dld-product-card .dld-product-card__type {
		padding-left: 6px;
		border-left-width: 2px;
	}

	.dld-product-card .dld-product-card__attribute-icon {
		width: 12px;
		height: 12px;
		margin-right: 3px;
	}

	.dld-product-card .dld-product-card__title {
		font-size: 15px;
		line-height: 1.35;
		min-height: 2.7em;
		max-height: 2.7em;
	}

	.dld-product-card .dld-product-card__meta {
		gap: 5px;
		font-size: 11.5px;
	}

	.dld-product-card .dld-product-card__location-icon {
		width: 11px;
		height: 13px;
		margin-right: 3px;
	}

	.dld-product-card .dld-product-card__footer {
		gap: 5px;
		min-height: 39px;
	}

	.dld-product-card .dld-product-card__price .price {
		font-size: 15.5px;
	}

	.dld-product-card .dld-product-card__price .price del {
		font-size: 11.5px;
	}

	.dld-product-card .dld-product-card__cta {
		min-height: 31px;
		padding: 5px 8px;
		font-size: 11.5px;
	}

	.dld-product-card .dld-product-card__cta-arrow {
		margin-left: 2px;
	}
}

/* Compact card used only by content-product-small.php list/sidebar contexts. */
.product_list_widget li.dld-product-card-small {
	--dld-small-navy: #1c2473;
	--dld-small-red: #ee2d38;
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 12px;
	width: 100%;
	max-width: 560px;
	min-height: 0;
	margin: 0 0 10px;
	padding: 10px;
	clear: both;
	overflow: hidden;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(28, 36, 115, 0.11);
	border-radius: 12px;
	box-shadow: 0 5px 16px rgba(28, 36, 115, 0.07);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product_list_widget li.dld-product-card-small:hover {
	border-color: rgba(28, 36, 115, 0.2);
	box-shadow: 0 8px 20px rgba(28, 36, 115, 0.11);
	transform: translateY(-1px);
}

.product_list_widget .dld-product-card-small__media {
	display: block;
	width: 104px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f7ff;
	border-radius: 9px;
}

.product_list_widget li.dld-product-card-small .dld-product-card-small__media img {
	position: static;
	float: none;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
}

.dld-product-card-small__content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dld-product-card-small__title {
	display: block;
	min-height: 1.35em;
	max-height: 1.35em;
	margin: 0 0 4px;
	overflow: hidden;
	color: var(--dld-small-navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product_list_widget li.dld-product-card-small .dld-product-card-small__title a {
	display: inline;
	color: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.dld-product-card-small__title a:hover {
	color: var(--dld-small-red);
}

.dld-product-card-small__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	margin-bottom: 4px;
	overflow: hidden;
	color: #68738f;
	font-size: 11.5px;
	line-height: 1.2;
	white-space: nowrap;
}

.dld-product-card-small__location,
.dld-product-card-small__attribute,
.dld-product-card-small__rating {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 3px;
}

.dld-product-card-small__location {
	flex: 0 1 auto;
	min-width: 0;
}

.dld-product-card-small__location > span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product_list_widget li.dld-product-card-small img.dld-product-card-small__meta-icon {
	position: static;
	flex: 0 0 auto;
	display: block;
	float: none;
	width: 12px;
	max-width: 12px;
	height: 12px;
	margin: 0;
	object-fit: contain;
	border-radius: 0;
}

.dld-product-card-small__rating {
	color: #737b8c;
}

.dld-product-card-small__rating strong {
	color: #30343b;
}

.dld-product-card-small__rating-star {
	color: #ffb400;
	font-size: 14px;
}

.dld-product-card-small__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 7px;
	min-width: 0;
	margin-top: auto;
}

.dld-product-card-small__price {
	flex: 1 1 auto;
	min-width: 0;
}

.product_list_widget li.dld-product-card-small .dld-product-card-small__price .price {
	display: grid;
	grid-template-columns: max-content max-content;
	align-items: baseline;
	column-gap: 3px;
	margin: 0;
	color: var(--dld-small-red);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.15;
}

.dld-product-card-small__price .price br {
	display: none;
}

.dld-product-card-small__price .price ins,
.dld-product-card-small__price .price del {
	display: block;
	margin: 0;
	text-decoration-thickness: 1px;
}

.dld-product-card-small__price .price ins {
	grid-column: 1;
	grid-row: 1;
	color: var(--dld-small-red);
	text-decoration: none;
}

.dld-product-card-small__price .price del {
	grid-column: 1 / -1;
	grid-row: 2;
	color: #98a0af;
	font-size: 10.5px;
	font-weight: 400;
}

.dld-product-card-small__price .price > .amount {
	grid-column: 1;
	grid-row: 1;
}

.dld-product-card-small__price .price > .span-unit {
	grid-column: 2;
	grid-row: 1;
}

.dld-product-card-small__price .price .amount,
.dld-product-card-small__price .price .span-unit {
	margin: 0;
	font-size: inherit;
	white-space: nowrap;
}

.product_list_widget li.dld-product-card-small .dld-product-card-small__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	padding: 4px 7px;
	color: var(--dld-small-navy);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	background: #f3f7ff;
	border: 1px solid rgba(28, 36, 115, 0.16);
	border-radius: 999px;
}

.product_list_widget li.dld-product-card-small .dld-product-card-small__cta:hover {
	color: #fff;
	background: var(--dld-small-navy);
}

@media (max-width: 549px) {
	.product_list_widget li.dld-product-card-small {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 9px;
		padding: 8px;
	}

	.product_list_widget .dld-product-card-small__media {
		width: 92px;
	}

	.dld-product-card-small__title {
		font-size: 13px;
	}

	.product_list_widget li.dld-product-card-small .dld-product-card-small__price .price {
		font-size: 13px;
	}

	.product_list_widget li.dld-product-card-small .dld-product-card-small__cta {
		padding: 4px 6px;
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dld-product-card .dld-product-card__badge::after {
		animation: none;
	}
}
