/* ============================================================
   ProductCard — wielokrotnego użytku karta produktu WooCommerce
   Klasy: .pc__*
   ============================================================ */

/* ── Karta ── */
.pc__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(80,30,20,.07);
	overflow: hidden;
	transition: transform .5s ease, box-shadow .3s ease;
	border: 1px solid #ede8e3;
	position: relative;
	height: 100%;
}
.pc__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(80,30,20,.13);
}

/* ── Zdjęcie ── */
.pc__img-wrap {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #fff;
	flex-shrink: 0;
	padding: 8px;
	position: relative;
	text-decoration: none;
}
.pc__img-wrap img {
	width: 100%;
	height: 100% !important;
	object-fit: contain;
	display: block;
	transition: transform .5s ease;
}
.pc__card:hover .pc__img-wrap img { transform: scale(1.04); }

.pc__no-img {
	width: 100%;
	height: 100% !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c8bdb8;
	font-size: 2rem;
}

/* ── Badge Promocja ── */
.pc__sale-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #8b1a2c;
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: .07em;
	padding: 3px 9px;
	border-radius: 20px;
}

/* ── Treść ── */
.pc__body {
	padding: 11px 12px 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
	background: #f2f0ec;
}

/* ── Region ── */
.pc__region {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 500;
	color: #8b1a2c;
	letter-spacing: .01em;
}
.pc__region i { font-size: 9px; color: #8b1a2c; }

/* ── Nazwa ── */
.pc__name {
	font-size: 12.5pt;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	min-height: calc(2 * 1.35em);
	max-height: calc(2 * 1.35em);
}
.pc__name a {
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: inherit;
	text-wrap: wrap;
	word-break: break-word;
}
.pc__name a:hover { color: #8b1a2c; }

/* ── Cena ── */
.pc__price-row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: auto;
}
.pc__price {
	font-size: 13px;
	font-weight: 700;
	color: #8b1a2c;
	flex: 1;
}
.pc__reg-price {
	font-size: 11px;
	color: #9a8a80;
	font-weight: 400;
	text-decoration: line-through;
	flex-basis: 100%;
	order: -1;
}

/* ── Przycisk dodaj do koszyka ── */
.pc__add {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: #d85d25;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .2s, transform .2s;
}
.pc__add:hover { background: #b94d1c; transform: scale(1.1); }
.pc__add.is-ok      { background: #2e7d32; }
.pc__add.is-error   { background: #c62828; }
.pc__add.is-loading { opacity: .7; cursor: default; }
.pc__add.is-disabled { background: #d0c8c4; cursor: default; }
.pc__add > i, .pc__fav > i { display: block; line-height: 0; }

/* ── Przycisk ulubionych ── */
.pc__fav {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #d0c8c4;
	background: transparent;
	color: #9a8a80;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color .2s, color .2s, transform .2s;
}
.pc__fav:hover { border-color: #8b1a2c; color: #8b1a2c; transform: scale(1.1); }

/* ── Atrybuty (kolor, smak, kraj) ── */
.pc__attrs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.pc__attr {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10.5px;
	color: #7a6a62;
	background: #f5f2ee;
	border: 1px solid #ede8e3;
	border-radius: 4px;
	padding: 2px 7px;
	white-space: nowrap;
}
.pc__attr--kolor { color: #8b1a2c; gap: 0; }
.pc__attr--kolor .color-dot { width: 10px; height: 10px; margin-right: 5px; }
.pc__attr--kraj  { gap: 5px; }
.pc__attr--kraj .fi { width: 14px; height: 14px; border-radius: 2px; display: inline-block; background-size: cover; }
