/*
 * Specialist listing cards — drivers / translators / transfer.
 * Frozen to frontend/specialist-cards-mockup.html (v10).
 * Enqueued only where specialist cards render: the three listing pages, the
 * specialist category archives, and any loop containing a driver/specialist
 * product (late enqueue from the template swap — see driver module). Safe to
 * scope under .ova-product-list without leaking to other pages.
 *
 * ponytail: fonts (Manrope / Open Sans) assumed already loaded by the theme;
 * system-ui fallback if not — add a font enqueue only if they turn up missing.
 */

.ova-product-list {
	--sc-orange: #F28C00;
	--sc-orange-soft: rgba(242, 140, 0, .13);
	--sc-orange-line: rgba(242, 140, 0, .55);
	--sc-neutral-soft: #f3f2f6;
	--sc-purple: #5A3D8E;
	--sc-purple-soft: rgba(90, 61, 142, .08);
	--sc-card: #ffffff;
	--sc-t-main: #5e5e5e;
	--sc-t-strong: #2B2B2B;
	--sc-t-mid: #454545;
	--sc-line: #ececf1;
	--sc-r: 16px;
	--sc-r-sm: 11px;
	--sc-r-pill: 999px;
	--sc-sh-sm: 0 2px 10px rgba(30, 20, 60, .05);
	--sc-sh: 0 14px 40px rgba(60, 40, 110, .10);
	--sc-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---- grid (mockup: 3 / <=1024 2 / <=640 1; gaps 26 / 22) ----
   .column4 = the Elementor product-archive widget wrapper (category archives);
   the mockup layout is 3 columns regardless of the widget's column setting. */
.ova-product-list.ova-product-list-template1.column3,
.ova-product-list.ova-product-list-template1.column4 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column-gap: 26px;
	grid-row-gap: 26px;
	gap: 26px;
	/* Equal-height cards per row: the theme's align-items would otherwise let
	   each .ova-product shrink to its content (.sc is height:100% of it). */
	align-items: stretch;
}
.ova-product-list.ova-product-list-template1.column3 .ova-product,
.ova-product-list.ova-product-list-template1.column4 .ova-product {
	align-self: stretch;
	height: 100%;
}
@media (max-width: 1024px) {
	.ova-product-list.ova-product-list-template1.column3,
	.ova-product-list.ova-product-list-template1.column4 {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}
@media (max-width: 640px) {
	.ova-product-list.ova-product-list-template1.column3,
	.ova-product-list.ova-product-list-template1.column4 {
		grid-template-columns: 1fr;
	}
}

/* ---- neutralize the theme .ova-product wrapper so .sc fills the cell ---- */
.ova-product-list .ova-product {
	display: block;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	border-radius: 0;
	/* The theme's overflow:hidden clipped the card's hover lift + purple
	   shadow into a square-cornered slab; let them render past the wrapper. */
	overflow: visible;
}

/* ---- card ---- */
.ova-product-list .sc {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--sc-card);
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-r);
	overflow: hidden;
	box-shadow: var(--sc-sh-sm);
	font-family: 'Manrope', system-ui, sans-serif;
	color: var(--sc-t-main);
	transition: transform .28s var(--sc-ease), box-shadow .28s var(--sc-ease);
}
.ova-product-list .sc:hover {
	transform: translateY(-6px);
	box-shadow: var(--sc-sh);
}
.ova-product-list .sc a {
	text-decoration: none;
	color: inherit;
}

/* ---- photo ---- */
.ova-product-list .sc-photo {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--sc-purple-soft);
}
.ova-product-list .sc--driver .sc-photo {
	aspect-ratio: 1 / 1;
}
.ova-product-list .sc--translator .sc-photo,
.ova-product-list .sc--photographer .sc-photo,
.ova-product-list .sc--rental .sc-photo {
	aspect-ratio: 3 / 2;
}
.ova-product-list .sc-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s var(--sc-ease);
}
.ova-product-list .sc:hover .sc-photo img {
	transform: scale(1.06);
}
.ova-product-list .sc-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(30, 20, 55, .18) 0%, rgba(30, 20, 55, 0) 34%, rgba(30, 20, 55, 0) 62%, rgba(30, 20, 55, .28) 100%);
}

/* ---- chips on photo ---- */
.ova-product-list .sc-tags {
	position: absolute;
	top: 14px;
	left: 14px;
	right: 14px;
	display: flex;
	gap: 8px;
	z-index: 2;
}
.ova-product-list .sc-tags .spacer {
	flex: 1;
}
.ova-product-list .chip {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(6px);
	border: 1.5px solid var(--sc-orange);
	color: var(--sc-orange);
	font-size: 14px;
	font-weight: 800;
	padding: 6px 13px;
	border-radius: var(--sc-r-pill);
	letter-spacing: .02em;
	box-shadow: var(--sc-sh-sm);
	text-shadow: -0.25px -0.25px 0 rgba(90, 61, 142, .3), 0.25px -0.25px 0 rgba(90, 61, 142, .3), -0.25px 0.25px 0 rgba(90, 61, 142, .3), 0.25px 0.25px 0 rgba(90, 61, 142, .3);
}
.ova-product-list .chip.accent {
	background: var(--sc-purple);
	border-color: var(--sc-purple);
	color: #fff;
	text-shadow: none;
}

/* ---- body ---- */
.ova-product-list .sc-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.ova-product-list .sc-eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--sc-purple);
	margin-bottom: 9px;
	display: flex;
	align-items: center;
	gap: 7px;
}
.ova-product-list .sc-eyebrow svg {
	color: var(--sc-purple);
	flex: 0 0 auto;
}
.ova-product-list .sc-title {
	font-family: 'Open Sans', sans-serif;
	font-size: 21px;
	font-weight: 800;
	color: var(--sc-t-mid);
	letter-spacing: -.4px;
	line-height: 1.15;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ova-product-list .sc-title .age {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--sc-purple);
	background: var(--sc-purple-soft);
	padding: 3px 11px;
	border-radius: var(--sc-r-pill);
}

/* ---- meta chips ---- */
.ova-product-list .sc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.ova-product-list .sc-chips .tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--sc-neutral-soft);
	color: var(--sc-t-mid);
	font-weight: 700;
	font-size: 13px;
	padding: 6px 13px;
	border-radius: var(--sc-r-pill);
}
.ova-product-list .sc-chips .tag .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sc-purple);
	opacity: .6;
	flex: 0 0 auto;
}

/* ---- footer ---- */
.ova-product-list .sc-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 18px;
}
.ova-product-list .pricebox {
	display: inline-flex;
	gap: 4px;
	background: var(--sc-neutral-soft);
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-r-sm);
	padding: 4px;
}
.ova-product-list .seg {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	padding: 6px 13px;
	border-radius: 8px;
	line-height: 1.1;
}
.ova-product-list .seg .seg-lbl {
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .72;
}
.ova-product-list .seg .seg-val {
	font-family: 'Open Sans', sans-serif;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: -.3px;
}
.ova-product-list .seg--primary {
	background: var(--sc-orange);
	color: #fff;
	text-shadow: -0.5px -0.5px 0 rgba(90, 61, 142, .5), 0.5px -0.5px 0 rgba(90, 61, 142, .5), -0.5px 0.5px 0 rgba(90, 61, 142, .5), 0.5px 0.5px 0 rgba(90, 61, 142, .5);
}
.ova-product-list .seg--rate {
	background: var(--sc-orange-soft);
	border: 1px solid var(--sc-orange-line);
	color: var(--sc-t-strong);
}
.ova-product-list .btn-book {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--sc-purple);
	color: #fff;
	font-weight: 800;
	font-size: 14.5px;
	padding: 12px 22px;
	border-radius: var(--sc-r-sm);
	box-shadow: 0 8px 22px rgba(90, 61, 142, .30);
	transition: transform .15s, filter .2s, box-shadow .2s;
}
/* ponytail: 0,3,1 selector to beat .sc a{color:inherit} (0,2,1) — base state only, :hover already wins */
.ova-product-list .sc a.btn-book {
	color: #fff;
}
.ova-product-list .btn-book:hover {
	filter: brightness(.92);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(90, 61, 142, .42);
	color: #fff;
}
.ova-product-list .btn-book:active {
	transform: translateY(0);
}
.ova-product-list .btn-book svg {
	transition: transform .2s;
}
.ova-product-list .sc:hover .btn-book svg {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.ova-product-list .sc,
	.ova-product-list .sc *,
	.ova-product-list .btn-book {
		transition: none !important;
	}
}
