/* Product Card — Luxury catalog grid
 * Light photography media window on dark page background.
 * No image filters / forced shadows — images are pre-processed.
 */

:root {
	--adult-store-product-media-bg: #f2eee7;
	--adult-store-product-media-radius: 10px;
	--adult-store-product-media-pad: 16px;
	--adult-store-product-card-gap: 28px;
	--adult-store-product-accent: var(--adult-store-accent, #c9a86a);
}

/* ── Shell: light catalog block, not a heavy boxed card ── */
.adult-store-product-card,
.adult-store-showcase__card,
.adult-store-archive__card-inner,
.adult-store-search__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
	transform: none;
	transition: opacity 0.2s ease;
}

.adult-store-product-card:hover,
.adult-store-showcase__card:hover,
.adult-store-archive__card-inner:hover,
.adult-store-search__card:hover {
	border-color: transparent;
	transform: none;
	opacity: 1;
}

/* Bundle cards keep a soft frame (composite imagery) */
.adult-store-bundle-card,
.adult-store-bundles-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.adult-store-bundle-card:hover,
.adult-store-bundles-card:hover {
	border-color: transparent;
	transform: none;
}

/* ── Media window ── */
.adult-store-product-card__media,
.adult-store-archive__card-media,
.adult-store-search__card-media {
	position: relative;
	overflow: visible;
}

.adult-store-product-card__media-link,
.adult-store-showcase__card-image-link,
.adult-store-archive__card-image-link,
.adult-store-search__card-media .adult-store-showcase__card-image-link,
.adult-store-bundle-card__image-link,
.adult-store-bundles-card__media-link {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	padding: var(--adult-store-product-media-pad);
	background: var(--adult-store-product-media-bg);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: var(--adult-store-product-media-radius);
	overflow: hidden;
	box-sizing: border-box;
	transition: border-color 0.25s ease;
}

.adult-store-product-card:hover .adult-store-product-card__media-link,
.adult-store-showcase__card:hover .adult-store-showcase__card-image-link,
.adult-store-archive__card-inner:hover .adult-store-archive__card-image-link,
.adult-store-search__card:hover .adult-store-showcase__card-image-link {
	border-color: rgba(201, 168, 106, 0.22);
}

.adult-store-product-card__media-link img,
.adult-store-product-card__image,
.adult-store-showcase__card-image-link img,
.adult-store-showcase__card img.adult-store-showcase__image,
.adult-store-archive__card-image-link img,
.adult-store-archive__card-image-link .adult-store-showcase__image,
.adult-store-search__card-media .adult-store-showcase__card-image-link img,
.adult-store-bundle-card__image-link img,
.adult-store-bundle-card__image,
.adult-store-bundles-card__media-link img,
.adult-store-bundles-card__media-link .adult-store-bundle-card__image {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	margin: 0;
	padding: 0;
	background: transparent;
	filter: none;
	box-shadow: none;
	transform: none;
}

.adult-store-archive__card-inner:hover .adult-store-archive__card-image-link img,
.adult-store-archive__card-inner:hover .adult-store-archive__card-image-link .adult-store-showcase__image,
.adult-store-product-card:hover .adult-store-product-card__media-link img {
	transform: none;
}

.adult-store-showcase__card-image--placeholder,
.adult-store-archive__card-placeholder,
.adult-store-search__card-placeholder,
.adult-store-bundle-card__image--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(145deg, #f7f3ed 0%, #ebe6de 100%);
	border-radius: calc(var(--adult-store-product-media-radius) - 2px);
}

/* ── Badge ── */
.adult-store-product-card__badge,
.adult-store-archive__card-badge,
.adult-store-search__card-badge,
.adult-store-bundle-card__tag,
.adult-store-bundles-card__tag {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	padding: 4px 8px;
	border: 1px solid color-mix(in srgb, var(--adult-store-product-accent) 50%, transparent);
	border-radius: 999px;
	background: rgba(10, 10, 10, 0.68);
	color: var(--adult-store-product-accent);
	font-size: 0.52rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.2;
	backdrop-filter: blur(4px);
	pointer-events: none;
}

/* ── Hover actions (desktop) ── */
.adult-store-product-card__hover,
.adult-store-archive__card-hover {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	opacity: 0;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.adult-store-product-card:hover .adult-store-product-card__hover,
.adult-store-archive__card-inner:hover .adult-store-archive__card-hover,
.adult-store-search__card:hover .adult-store-product-card__hover,
.adult-store-showcase__card:hover .adult-store-product-card__hover {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.adult-store-product-card__action,
.adult-store-product-card__action--ghost,
.adult-store-archive__quick-buy.adult-store-product-card__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 2px;
	background: rgba(8, 8, 8, 0.78) !important;
	color: #f5f5f5 !important;
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	backdrop-filter: blur(6px);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.adult-store-product-card__action:hover,
.adult-store-product-card__action--ghost:hover {
	border-color: var(--adult-store-product-accent) !important;
	color: var(--adult-store-product-accent) !important;
	background: rgba(8, 8, 8, 0.88) !important;
}

.adult-store-product-card__link,
.adult-store-archive__view-details {
	display: block;
	text-align: center;
	font-size: 0.6rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72) !important;
	text-decoration: none;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.adult-store-product-card__link:hover,
.adult-store-archive__view-details:hover {
	color: var(--adult-store-product-accent) !important;
}

.adult-store-product-card__mobile-link {
	display: none;
	margin-top: 4px;
	font-size: 0.6rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.adult-store-product-card__mobile-link:hover {
	color: var(--adult-store-product-accent);
}

.adult-store-archive__out-of-stock {
	display: block;
	text-align: center;
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 2px;
	font-size: 0.58rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	background: rgba(8, 8, 8, 0.72);
}

/* ── Body ── */
.adult-store-product-card__body,
.adult-store-showcase__card-body,
.adult-store-archive__card-body,
.adult-store-search__card-body {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
	padding: 16px 4px 4px;
	min-width: 0;
}

.adult-store-product-card__title,
.adult-store-showcase__card-title,
.adult-store-archive__card-title,
.adult-store-search__card-body .adult-store-showcase__card-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin: 0 0 6px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 1.05rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: none;
	line-height: 1.3;
	color: rgba(245, 245, 245, 0.94);
}

.adult-store-product-card__title a,
.adult-store-showcase__card-title a,
.adult-store-archive__card-title a {
	color: inherit;
	text-decoration: none;
}

.adult-store-product-card__title a:hover,
.adult-store-showcase__card-title a:hover,
.adult-store-archive__card-title a:hover {
	color: var(--adult-store-product-accent);
}

.adult-store-product-card__subtitle,
.adult-store-showcase__card-desc,
.adult-store-archive__card-desc,
.adult-store-search__card-body .adult-store-showcase__card-desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
	margin: 0 0 8px;
	min-height: 0;
	font-size: 0.72rem;
	line-height: 1.45;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.42);
}

/* Meta: rating + sold */
.adult-store-product-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 0 0 10px;
	font-size: 0.68rem;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.5);
}

.adult-store-product-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.adult-store-product-card__stars {
	color: var(--adult-store-product-accent);
	font-size: 0.62rem;
	letter-spacing: 0.02em;
	line-height: 1;
}

.adult-store-product-card__rating-value {
	color: rgba(255, 255, 255, 0.78);
	font-weight: 500;
}

.adult-store-product-card__rating-count,
.adult-store-product-card__sold,
.adult-store-product-card__meta-sep {
	color: rgba(255, 255, 255, 0.42);
	white-space: nowrap;
}

.adult-store-product-card__sold {
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.62rem;
}

/* Price */
.adult-store-product-card__price,
.adult-store-showcase__card-price,
.adult-store-archive__card-price,
.adult-store-search__card-body .adult-store-showcase__card-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 12px;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	color: rgba(245, 245, 245, 0.92);
	white-space: nowrap;
}

.adult-store-product-card__price .amount,
.adult-store-showcase__card-price .amount,
.adult-store-archive__card-price .amount {
	color: inherit;
}

.adult-store-product-card__price del,
.adult-store-showcase__card-price del,
.adult-store-archive__card-price del {
	opacity: 0.4;
	font-weight: 400;
	font-size: 0.82em;
	color: rgba(255, 255, 255, 0.55);
}

.adult-store-product-card__price ins,
.adult-store-showcase__card-price ins,
.adult-store-archive__card-price ins {
	text-decoration: none;
	color: var(--adult-store-product-accent);
	font-weight: 500;
}

/* Color swatches */
.adult-store-product-card__swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 100%;
}

.adult-store-product-card__swatches li {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.adult-store-product-card__swatch {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swatch-color, #999);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.adult-store-product-card__swatch.is-light {
	border-color: rgba(0, 0, 0, 0.18);
}

.adult-store-product-card:hover .adult-store-product-card__swatch,
.adult-store-product-card__swatch:hover {
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 0 2px var(--adult-store-product-accent);
}

.adult-store-product-card__swatch-more {
	font-size: 0.58rem;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.4);
	line-height: 14px;
}

/* Hide legacy showcase action stacks that fight catalog look */
.adult-store-product-card .adult-store-showcase__card-actions,
.adult-store-search__card-actions {
	display: none;
}

/* Reviews mini thumb */
.adult-store-review-card__product-media {
	background: var(--adult-store-product-media-bg) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
	border-radius: 6px;
	padding: 4px;
	box-sizing: border-box;
}

.adult-store-review-card__product-media img,
.adult-store-reviews__product-image {
	object-fit: contain !important;
	object-position: center center;
	background: transparent;
}

/* ── Shared product grids: breathing room ── */
.adult-store-archive__grid,
.adult-store-showcase__grid-cards,
.adult-store-search__products--grid,
.single-product .related.products ul.products,
.single-product .upsells.products ul.products,
.adult-store-pdp .related.products ul.products,
.adult-store-pdp .upsells.products ul.products,
.adult-store-cart__ritual-grid {
	gap: var(--adult-store-product-card-gap) !important;
}

/* ── Tablet ── */
@media (max-width: 1100px) {
	:root {
		--adult-store-product-card-gap: 22px;
	}
}

/* ── Mobile: two columns ── */
@media (max-width: 768px) {
	:root {
		--adult-store-product-media-pad: 10px;
		--adult-store-product-media-radius: 8px;
		--adult-store-product-card-gap: 14px;
	}

	.adult-store-archive__grid,
	.adult-store-showcase__grid-cards,
	.adult-store-search__products--grid,
	.adult-store-hp-bestseller .adult-store-showcase__grid-cards,
	.single-product .related.products ul.products,
	.single-product .upsells.products ul.products,
	.adult-store-pdp .related.products ul.products,
	.adult-store-pdp .upsells.products ul.products,
	.adult-store-cart__ritual-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}

	.adult-store-product-card__body,
	.adult-store-showcase__card-body,
	.adult-store-archive__card-body,
	.adult-store-search__card-body {
		padding: 12px 2px 2px;
	}

	.adult-store-product-card__title,
	.adult-store-showcase__card-title,
	.adult-store-archive__card-title,
	.adult-store-search__card-body .adult-store-showcase__card-title {
		font-size: 0.88rem;
		margin-bottom: 4px;
	}

	.adult-store-product-card__subtitle,
	.adult-store-showcase__card-desc,
	.adult-store-archive__card-desc,
	.adult-store-search__card-body .adult-store-showcase__card-desc {
		-webkit-line-clamp: 1;
		font-size: 0.64rem;
		margin-bottom: 6px;
	}

	.adult-store-product-card__meta {
		font-size: 0.6rem;
		margin-bottom: 6px;
	}

	.adult-store-product-card__sold {
		display: none;
	}

	.adult-store-product-card__meta-sep {
		display: none;
	}

	.adult-store-product-card__price,
	.adult-store-showcase__card-price,
	.adult-store-archive__card-price {
		font-size: 0.84rem;
		margin-bottom: 8px;
		white-space: nowrap;
	}

	.adult-store-product-card__swatch {
		width: 11px;
		height: 11px;
	}

	.adult-store-product-card__swatches {
		gap: 5px;
	}

	.adult-store-product-card__badge,
	.adult-store-archive__card-badge,
	.adult-store-search__card-badge {
		top: 8px;
		left: 8px;
		padding: 3px 6px;
		font-size: 0.48rem;
	}

	/* No hover on touch — show light text link instead */
	.adult-store-product-card__hover,
	.adult-store-archive__card-hover {
		display: none !important;
	}

	.adult-store-product-card__mobile-link {
		display: inline-block;
	}
}

@media (max-width: 360px) {
	.adult-store-archive__grid,
	.adult-store-showcase__grid-cards,
	.adult-store-search__products--grid,
	.single-product .related.products ul.products,
	.single-product .upsells.products ul.products,
	.adult-store-pdp .related.products ul.products,
	.adult-store-pdp .upsells.products ul.products {
		grid-template-columns: 1fr !important;
	}

	.adult-store-product-card__sold {
		display: inline;
	}

	.adult-store-product-card__meta-sep {
		display: inline;
	}
}
