/**
 * AfriÉlan Studio — the product card (assets/css/product-card.css)
 * ONE card look everywhere it appears: homepage rows, shop / category
 * pages, search results and "You may also like" on product pages.
 * Flat card, photo with stock + size chips on it, name, price and a
 * full-width dark button. Loaded after homepage.css (inc/product-page.php),
 * so it restyles the base card defined there.
 * Markup: template-parts/content-product-card.php
 */

.ael-product-card {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	overflow: visible;
	box-shadow: none;
	transform: none;
}
.ael-product-card:hover { box-shadow: none; transform: none; }

.ael-product-card .ael-card-image {
	overflow: hidden;
	border-radius: var(--brand-radius);
}
.ael-product-card .ael-card-image img { transition: transform .6s ease; }
.ael-product-card:hover .ael-card-image img { transform: scale(1.04); }

/* badges: stock + fabric on the left, sale on the right; sizes along the bottom */
.ael-product-card .ael-badge-stock { top: 8px; bottom: auto; left: 8px; }
.ael-product-card .ael-badge-fabric { top: 34px; }
.ael-product-card .ael-badge-sale { top: 8px; }

.ael-product-card .ael-card-sizes {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ael-product-card .ael-card-sizes li {
	margin: 0;
	padding: 2px 8px;
	border: 0;
	border-radius: 2px;
	background: rgba(255, 255, 255, .92);
	font-family: var(--brand-font-body);
	font-size: .7rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--brand-ink);
}

.ael-product-card .ael-card-category { margin: 14px 0 0; }
.ael-product-card .ael-card-title { margin: 4px 0 6px; }
.ael-product-card .ael-card-price { margin: 0 0 14px; }

/* full-width dark button */
.ael-product-card .ael-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: auto 0 0;
	align-self: stretch;
	padding: 11px 14px;
	text-align: center;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.ael-product-card .ael-btn:not(.ael-btn-disabled) { background: var(--brand-ink); }
.ael-product-card .ael-btn:not(.ael-btn-disabled):hover { background: var(--brand-accent); transform: none; }

@media (max-width: 600px) {
	.ael-product-card .ael-card-sizes li { font-size: .64rem; padding: 1px 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.ael-product-card .ael-card-image img { transition: none; }
}
