/* Mariener product card — category landing + PDP related (Lovable-aligned) */

:root {
	--mariener-bg: #f7f5f1;
	--mariener-surface: #ffffff;
	--mariener-secondary: #f1ede7;
	--mariener-ink: #141414;
	--mariener-muted: #737373;
	--mariener-accent: #ff4400;
	--mariener-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mariener-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mariener-product-grid {
	--mariener-card-grid-gap: 24px;
	display: grid;
	gap: var(--mariener-card-grid-gap);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mariener-product-card {
	--mariener-card-radius: 16px;
	--mariener-card-media-bg: #f2f1ee;
	--mariener-card-border: rgba(20, 20, 20, 0.05);
	--mariener-card-shadow: 0 2px 24px -16px rgba(0, 0, 0, 0.12);
	--mariener-card-shadow-hover: 0 20px 50px -24px rgba(0, 0, 0, 0.18);
	background: var(--mariener-surface, #fff);
	border: 1px solid var(--mariener-card-border);
	border-radius: var(--mariener-card-radius);
	box-shadow: var(--mariener-card-shadow);
	color: var(--mariener-ink, #141414);
	display: flex;
	flex-direction: column;
	font-family: var(--mariener-body, "Inter", sans-serif);
	isolation: isolate;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mariener-product-card:hover {
	box-shadow: var(--mariener-card-shadow-hover);
}

/* Reset Rey / Woo bleed */
.mariener-product-card h3,
.mariener-product-card p,
.mariener-product-card a,
.mariener-product-card button {
	font-family: inherit;
	margin: 0;
}

.mariener-product-card a {
	text-decoration: none;
}

.mariener-product-card button:not(.mariener-product-card__swatch) {
	appearance: none;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
}

.mariener-product-card__media-wrap {
	position: relative;
}

.mariener-product-card__media {
	color: inherit;
	display: block;
	overflow: hidden;
	position: relative;
}

.mariener-product-card__media::before {
	aspect-ratio: 4 / 5;
	background: var(--mariener-card-media-bg);
	content: "";
	display: block;
	width: 100%;
}

.mariener-product-card__image {
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center top;
	position: absolute;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
}

.mariener-product-card:hover .mariener-product-card__image {
	transform: scale(1.03);
}

.mariener-product-card__badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	left: 12px;
	max-width: calc(100% - 60px);
	position: absolute;
	top: 12px;
	z-index: 2;
}

.mariener-product-card__badge {
	align-items: center;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(20, 20, 20, 0.05);
	border-radius: 999px;
	display: inline-flex;
	font-family: var(--mariener-display, "Space Grotesk", sans-serif);
	font-size: 10px;
	font-weight: 500;
	gap: 6px;
	letter-spacing: 0.2em;
	line-height: 1;
	padding: 6px 10px;
	position: static;
	text-transform: uppercase;
	white-space: nowrap;
}

.mariener-product-card__badge--variant {
	background: rgba(255, 255, 255, 0.9);
	color: var(--mariener-ink, #141414);
	overflow: hidden;
	text-overflow: ellipsis;
}

.mariener-product-card__badge--discount {
	background: var(--woocommerce-discount-color, #ff4400);
	border-color: transparent;
	color: #fff;
	letter-spacing: 0.08em;
	padding: 6px 10px;
}

.mariener-product-card__badge--discount .rey-discount {
	background: none;
	border-radius: 0;
	color: inherit;
	display: inline;
	font: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	padding: 0;
	text-transform: inherit;
}

.mariener-product-card__wishlist-slot {
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 3;
}

.mariener-product-card__wishlist-slot .rey-wishlistBtn-wrapper {
	margin: 0 !important;
	position: static !important;
}

.mariener-product-card__wishlist-slot .rey-wishlistBtn {
	align-items: center;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.9) !important;
	border: 1px solid rgba(20, 20, 20, 0.05) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: var(--mariener-ink, #141414) !important;
	cursor: pointer;
	display: inline-flex !important;
	height: 36px !important;
	justify-content: center;
	min-height: 36px !important;
	min-width: 36px !important;
	padding: 0 !important;
	width: 36px !important;
}

.mariener-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 16px;
	padding: 20px 24px 24px;
}

.mariener-product-card__meta-row {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	min-height: 14px;
}

.mariener-product-card__eyebrow {
	color: var(--mariener-accent, #ff4400);
	flex: 1 1 auto;
	font-family: var(--mariener-display, "Space Grotesk", sans-serif);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.3em;
	line-height: 1.2;
	text-transform: uppercase;
}

.mariener-product-card__title-row {
	align-items: baseline;
	display: flex;
	flex-direction: row;
	gap: 12px;
	justify-content: space-between;
}

.mariener-product-card__title {
	flex: 1 1 auto;
	font-family: var(--mariener-display, "Space Grotesk", sans-serif);
	font-size: 32px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
	min-width: 0;
}

.mariener-product-card__title a {
	color: inherit;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mariener-product-card__price {
	align-items: baseline;
	display: inline-flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	font-family: var(--mariener-display, "Space Grotesk", sans-serif);
	font-size: 14px;
	font-weight: 500;
	gap: 4px 6px;
	justify-content: flex-end;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-align: right;
	white-space: nowrap;
}

.mariener-product-card__price .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.mariener-product-card__price del {
	color: var(--mariener-muted, #737373);
	display: inline;
	font-size: 1em;
	font-weight: 400;
	opacity: 0.9;
	text-decoration: none;
}

.mariener-product-card__price del .amount {
	text-decoration: line-through;
}

.mariener-product-card__price ins {
	background: none;
	color: var(--woocommerce-discount-color, #ff4400);
	display: inline;
	font-weight: 600;
	text-decoration: none;
}

.mariener-product-card__price .woocommerce-Price-amount,
.mariener-product-card__price .amount {
	font: inherit;
	font-weight: inherit;
}

.mariener-product-card__subtitle {
	color: var(--mariener-muted, #737373);
	font-size: 13px;
	line-height: 1.45;
	margin-top: -8px;
}

.mariener-product-card__controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mariener-product-card__swatch-head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 14px;
}

.mariener-product-card__swatch-label {
	color: var(--mariener-muted, #737373);
	font-family: var(--mariener-display, "Space Grotesk", sans-serif);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mariener-product-card__stock {
	font-family: var(--mariener-display, "Space Grotesk", sans-serif);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mariener-product-card__stock.is-in-stock {
	color: var(--mariener-accent, #ff4400);
}

.mariener-product-card__stock.is-out-of-stock {
	color: var(--mariener-muted, #737373);
}

.mariener-product-card__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* Rey swatch list — card size; visual chip styles live in rey-swatches.css (site-wide). */
.mariener-product-card__swatches--rey .rey-swatchList {
	--item-width: 24px !important;
	--item-height: 24px !important;
	--item-spacing: 8px !important;
	margin-bottom: 0 !important;
	width: 100%;
}

.mariener-product-card__swatches--fallback {
	align-items: center;
}

.mariener-product-card__swatch {
	appearance: none;
	background-color: var(--swatch-color, #141414);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border: 0;
	border-radius: 50% !important;
	box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.15);
	cursor: pointer;
	flex: 0 0 24px;
	height: 24px;
	min-height: 24px;
	min-width: 24px;
	outline: none;
	overflow: hidden;
	padding: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 24px;
}

.mariener-product-card__swatch--image {
	background-color: #f2f1ee;
}

.mariener-product-card__swatch:hover:not(.is-active) {
	transform: scale(1.08);
}

.mariener-product-card__swatch.is-active {
	box-shadow: 0 0 0 2px var(--mariener-surface), 0 0 0 4px var(--mariener-ink);
	transform: none;
}

.mariener-product-card__swatch:focus-visible {
	outline: 2px solid var(--mariener-accent, #ff4400);
	outline-offset: 2px;
}

.mariener-product-card__cta {
	align-items: center;
	background: var(--mariener-ink, #141414);
	border-radius: 999px;
	color: #fff !important;
	display: flex;
	font-family: var(--mariener-display, "Space Grotesk", sans-serif);
	font-size: 11px;
	font-weight: 600;
	gap: 8px;
	justify-content: center;
	letter-spacing: 0.16em;
	line-height: 1;
	margin-top: auto;
	min-height: 48px;
	padding: 15px 20px;
	text-align: center;
	text-transform: uppercase;
	transition: background 0.2s ease, opacity 0.2s ease;
	width: 100%;
}

.mariener-product-card__cta:hover,
.mariener-product-card__cta:focus-visible {
	background: var(--mariener-accent, #ff4400);
	opacity: 1;
}

.mariener-product-card__cta-arrow {
	flex: 0 0 auto;
	font-size: 14px;
	line-height: 1;
	transform: translateY(-1px);
}

/* PDP related */
.mariener-pdp-related .mariener-product-grid {
	margin-top: 0;
}

.mariener-pdp-related .mariener-product-card__title {
	font-size: 22px;
}

.mariener-pdp-related .mariener-product-card__price {
	font-size: 17px;
}

@media (max-width: 1280px) {
	.mariener-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.mariener-product-grid {
		--mariener-card-grid-gap: 20px;
		grid-template-columns: minmax(0, 1fr);
	}

	.mariener-product-card__title {
		font-size: 22px;
	}

	.mariener-product-card__price {
		font-size: 17px;
	}
}

@media (max-width: 640px) {
	.mariener-product-grid {
		--mariener-card-grid-gap: 16px;
	}

	.mariener-product-card__body {
		gap: 14px;
		padding: 16px 18px 20px;
	}

	.mariener-product-card__title,
	.mariener-pdp-related .mariener-product-card__title {
		font-size: 20px;
	}

	.mariener-product-card__price,
	.mariener-pdp-related .mariener-product-card__price {
		font-size: 16px;
	}

	.mariener-product-card__cta {
		font-size: 10px;
		min-height: 44px;
		padding: 13px 16px;
	}
}

@media (max-width: 479px) {
	.mariener-pdp-related .mariener-product-grid {
		grid-template-columns: 1fr;
	}
}

/* ===========================================================================
   Editorial PLP card — catalog landing + PDP related only
   ========================================================================== */

body.mariener-category-landing-page .mariener-category-landing .mariener-product-card,
.mariener-pdp-related .mariener-product-card {
	--mariener-card-radius: 4px;
	--mariener-card-media-bg: var(--mariener-secondary, #f6f4f1);
	--mariener-card-border: transparent;
	--mariener-card-shadow: none;
	--mariener-card-shadow-hover: 0 18px 42px -34px rgba(20, 20, 20, 0.45);
	background: var(--mariener-card-media-bg);
}
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card:hover,
.mariener-pdp-related .mariener-product-card:hover { transform: translateY(-2px); }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__media::before,
.mariener-pdp-related .mariener-product-card__media::before { aspect-ratio: 3 / 2; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__image,
.mariener-pdp-related .mariener-product-card__image { object-fit: contain; object-position: center; padding: 18px 10px 0; transform: scale(1.16); }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card:hover .mariener-product-card__image,
.mariener-pdp-related .mariener-product-card:hover .mariener-product-card__image { transform: scale(1.19); }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__badge-row,
.mariener-pdp-related .mariener-product-card__badge-row { left: 14px; top: 14px; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__badge,
.mariener-pdp-related .mariener-product-card__badge { background: rgba(255, 255, 255, 0.94); border: 0; border-radius: 4px; box-shadow: 0 4px 14px rgba(20, 20, 20, 0.04); color: var(--mariener-ink, #141414); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; padding: 7px 9px; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__badge--new,
.mariener-pdp-related .mariener-product-card__badge--new { background: rgba(255, 255, 255, 0.94); }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__badge--discount,
.mariener-pdp-related .mariener-product-card__badge--discount { background: var(--mariener-accent, #ff4400); color: #fff; padding: 7px 9px; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__wishlist-slot,
.mariener-pdp-related .mariener-product-card__wishlist-slot { right: 14px; top: 14px; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__wishlist-slot .rey-wishlistBtn,
.mariener-pdp-related .mariener-product-card__wishlist-slot .rey-wishlistBtn { background: transparent !important; border: 0 !important; backdrop-filter: none; -webkit-backdrop-filter: none; height: 30px !important; min-height: 30px !important; min-width: 30px !important; width: 30px !important; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__body,
.mariener-pdp-related .mariener-product-card__body { background: var(--mariener-card-media-bg); display: flex; gap: 0; padding: 18px 18px 20px; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__meta-row,
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__swatch-head,
.mariener-pdp-related .mariener-product-card__meta-row,
.mariener-pdp-related .mariener-product-card__swatch-head { display: none; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__title-row,
.mariener-pdp-related .mariener-product-card__title-row { display: contents; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__title,
.mariener-pdp-related .mariener-product-card__title { font-family: var(--mariener-display, "Space Grotesk", sans-serif); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.35; order: 1; text-transform: uppercase; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__title a,
.mariener-pdp-related .mariener-product-card__title a { overflow: visible; text-overflow: clip; white-space: normal; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__subtitle,
.mariener-pdp-related .mariener-product-card__subtitle { color: #3f3f3f; display: block; font-size: 12px; line-height: 1.45; margin-top: 8px !important; order: 2; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__price,
.mariener-pdp-related .mariener-product-card__price { display: flex; font-size: 14px; font-weight: 600; justify-content: flex-start; margin-top: 13px; order: 3; text-align: left; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__controls,
.mariener-pdp-related .mariener-product-card__controls { gap: 0; margin: 17px 0 0; order: 4; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__swatches,
.mariener-pdp-related .mariener-product-card__swatches { gap: 22px; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__swatches--rey .rey-swatchList,
.mariener-pdp-related .mariener-product-card__swatches--rey .rey-swatchList { --item-height: 24px !important; --item-spacing: 22px !important; --item-width: 24px !important; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__swatches--rey .rey-swatchList-item,
.mariener-pdp-related .mariener-product-card__swatches--rey .rey-swatchList-item { flex-basis: 24px !important; height: 24px !important; max-height: 24px !important; max-width: 24px !important; min-height: 24px !important; min-width: 24px !important; width: 24px !important; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__swatches--rey .rey-swatchList-item.--selected,
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__swatches--rey .rey-swatchList-item.--selected:hover,
.mariener-pdp-related .mariener-product-card__swatches--rey .rey-swatchList-item.--selected,
.mariener-pdp-related .mariener-product-card__swatches--rey .rey-swatchList-item.--selected:hover { box-shadow: 0 0 0 2px var(--mariener-card-media-bg), 0 0 0 4px var(--mariener-accent, #ff4400) !important; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__swatch,
.mariener-pdp-related .mariener-product-card__swatch { flex-basis: 24px; height: 24px; min-height: 24px; min-width: 24px; width: 24px; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__swatch.is-active,
.mariener-pdp-related .mariener-product-card__swatch.is-active { box-shadow: 0 0 0 2px var(--mariener-card-media-bg), 0 0 0 4px var(--mariener-accent, #ff4400); }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__cta,
.mariener-pdp-related .mariener-product-card__cta {
	align-items: center;
	background: transparent;
	border: 1px solid var(--mariener-ink, #141414);
	border-radius: 3px;
	color: var(--mariener-ink, #141414) !important;
	display: flex;
	font-size: 11px;
	justify-content: center;
	letter-spacing: 0.04em;
	margin-top: 22px;
	min-height: 44px;
	order: 5;
	padding: 12px 16px;
	position: relative;
}
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__cta:hover,
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__cta:focus-visible,
.mariener-pdp-related .mariener-product-card__cta:hover,
.mariener-pdp-related .mariener-product-card__cta:focus-visible { background: var(--mariener-accent, #ff4400); border-color: var(--mariener-accent, #ff4400); color: #fff !important; }
body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__cta-arrow,
.mariener-pdp-related .mariener-product-card__cta-arrow { font-size: 20px; position: absolute; right: 14px; }

@media (max-width: 640px) {
	body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__body,
	.mariener-pdp-related .mariener-product-card__body { padding: 18px 18px 20px; }
	body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__title,
	.mariener-pdp-related .mariener-product-card__title { font-size: 13px; }
	body.mariener-category-landing-page .mariener-category-landing .mariener-product-card__price,
	.mariener-pdp-related .mariener-product-card__price { font-size: 14px; }
}
