.wbp-card {
	background: var(--wbp-white);
	border: 1px solid var(--wbp-border);
	border-radius: var(--wbp-radius-md);
	box-shadow: var(--wbp-shadow-sm);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wbp-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--wbp-shadow-md);
}

.wbp-card__body {
	padding: var(--wbp-space-lg);
}

/* ── Product card ─────────────────────────────────────── */
.wbp-product-card {
	display: flex;
	flex-direction: column;
}

.wbp-product-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--wbp-beige);
	overflow: hidden;
}

.wbp-product-card__image-wrap {
	display: block;
	height: 100%;
}

.wbp-product-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.wbp-product-card:hover .wbp-product-card__image-wrap img {
	transform: scale(1.03);
}

.wbp-product-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 3rem;
	opacity: 0.5;
}

.wbp-product-card__ribbon {
	position: absolute;
	top: 0.65rem;
	left: 0;
	background: var(--wbp-green-primary);
	color: var(--wbp-white);
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.3rem 0.65rem 0.3rem 0.5rem;
	border-radius: 0 4px 4px 0;
	z-index: 1;
}

.wbp-product-card__actions {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
}

.wbp-product-card__body {
	padding: var(--wbp-space-md);
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.35rem;
}

.wbp-product-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.wbp-product-card__tag {
	font-size: 0.65rem;
	font-weight: 600;
	padding: 0.2rem 0.5rem;
	background: var(--wbp-beige);
	border-radius: 4px;
	color: var(--wbp-text-muted);
}

.wbp-product-card__title {
	margin: 0;
	font-family: var(--wbp-font-serif);
	font-size: 1rem;
	line-height: 1.3;
}

.wbp-product-card__title a {
	color: var(--wbp-green-deep);
	text-decoration: none;
}

.wbp-product-card__producer {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--wbp-text-muted);
}

.wbp-product-card__location {
	margin: 0;
	font-size: 0.75rem;
	color: var(--wbp-text-muted);
}

.wbp-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.5rem;
}

.wbp-product-card__price {
	margin: 0;
	font-size: 0.925rem;
}

.wbp-product-card__price strong {
	color: var(--wbp-green-deep);
	font-size: 1.05rem;
}

.wbp-product-card__price span {
	color: var(--wbp-text-muted);
	font-size: 0.8125rem;
}

.wbp-product-card__cart {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--wbp-green-deep);
	color: var(--wbp-white);
	border-radius: var(--wbp-radius-sm);
	text-decoration: none;
	font-size: 0.9rem;
	transition: background 0.15s ease;
}

.wbp-product-card__cart:hover {
	background: var(--wbp-green-primary);
	color: var(--wbp-white);
}

/* ── Producer card ────────────────────────────────────── */
.wbp-producer-card {
	display: flex;
	flex-direction: column;
}

.wbp-producer-card__media {
	position: relative;
}

.wbp-producer-card__image {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wbp-beige);
}

.wbp-producer-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.wbp-producer-card:hover .wbp-producer-card__image img {
	transform: scale(1.03);
}

.wbp-producer-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 3rem;
	opacity: 0.5;
}

.wbp-producer-card__featured {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1;
}

.wbp-producer-card__body {
	padding: var(--wbp-space-md);
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	flex: 1;
}

.wbp-producer-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.5rem;
}

.wbp-producer-card__title {
	margin: 0;
	font-family: var(--wbp-font-serif);
	font-size: 1rem;
	line-height: 1.3;
}

.wbp-producer-card__title a {
	color: var(--wbp-green-deep);
	text-decoration: none;
}

.wbp-producer-card__verified {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8f3e6;
	color: var(--wbp-green-primary);
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
}

.wbp-producer-card__type,
.wbp-producer-card__location,
.wbp-producer-card__excerpt {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--wbp-text-muted);
	line-height: 1.4;
}

.wbp-producer-card__rating {
	margin: auto 0 0;
	padding-top: 0.35rem;
	font-size: 0.8125rem;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.wbp-producer-card--horizontal {
	flex-direction: row;
	align-items: stretch;
}

.wbp-producer-card--horizontal .wbp-producer-card__media {
	width: 42%;
	flex-shrink: 0;
}

.wbp-producer-card--horizontal .wbp-producer-card__image {
	aspect-ratio: auto;
	height: 100%;
	min-height: 132px;
}

.wbp-producer-card--horizontal .wbp-producer-card__body {
	justify-content: center;
	padding: 0.85rem 1rem;
}

.wbp-producer-card--horizontal .wbp-producer-card__title {
	font-size: 0.95rem;
}

.wbp-producer-card--horizontal .wbp-producer-card__excerpt {
	font-size: 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wbp-producer-card__pin {
	margin-right: 0.15rem;
}

.wbp-product-card__distance {
	position: absolute;
	left: 0.65rem;
	bottom: 0.65rem;
	z-index: 2;
	background: rgba(255, 255, 255, 0.94);
	border-radius: 999px;
	padding: 0.25rem 0.55rem;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--wbp-green-deep);
	box-shadow: var(--wbp-shadow-sm);
}

.wbp-producer-card__stars {
	color: var(--wbp-gold);
	font-weight: 600;
}

/* ── Favorite icon button ─────────────────────────────── */
.wbp-favorite-form {
	display: inline;
	margin: 0;
	padding: 0;
}

.wbp-favorite-icon {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--wbp-shadow-sm);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	color: var(--wbp-text-muted);
	transition: transform 0.15s ease, color 0.15s ease;
	text-decoration: none;
}

.wbp-favorite-icon:hover,
.wbp-favorite-icon.is-active {
	color: var(--wbp-red-accent);
	transform: scale(1.08);
}

.wbp-favorite-icon--on-image {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
}

/* ── Review card ──────────────────────────────────────── */
.wbp-review-card .wbp-card__body {
	padding: var(--wbp-space-md);
}

.wbp-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--wbp-beige);
	color: var(--wbp-green-deep);
}

.wbp-badge--verified {
	background: #e8f3e6;
	color: var(--wbp-green-primary);
}

.wbp-badge--featured {
	background: #faf3e3;
	color: #8a6a1f;
}
