/* WM Archive Swatches — ריבועי צבע בכרטיסי מוצר בארכיון */

.pc-archive-swatches {
	display: flex;
	justify-content: center;
	margin: 8px 0 0;
}

.pc-archive-swatches--align-start {
	justify-content: flex-start;
}

.pc-archive-swatches--align-end {
	justify-content: flex-end;
}

.pc-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pc-swatch-gap, 6px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pc-swatch {
	display: inline-block;
	width: var(--pc-swatch-size, 18px);
	height: var(--pc-swatch-size, 18px);
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
	background-size: cover;
	background-position: center;
	cursor: default;
}

.pc-archive-swatches--circle .pc-swatch {
	border-radius: 50%;
}

/* צ'יפ "+N" כשמוגדר limit */
.pc-swatch--more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: var(--pc-swatch-size, 18px);
	padding: 0 4px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	color: #555;
	background: #f1f1f1;
	border-color: rgba(0, 0, 0, 0.08);
	direction: ltr;
}

/* Placeholder בעורך אלמנטור */
.pc-archive-swatches--placeholder .pc-swatch {
	opacity: 0.35;
}

/* מצב native — עוטף את הפלט המקורי של Variation Swatches Pro */
.pc-archive-swatches--native {
	display: block;
}

/* v1.1.0 — ריבועים לחיצים */
.pc-swatch-item {
	display: flex;
	margin: 0;
	padding: 0;
}

a.pc-swatch {
	display: block;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.pc-swatch--js {
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

a.pc-swatch:hover,
.pc-swatch--js:hover {
	transform: scale(1.18);
	border-color: rgba(0, 0, 0, 0.45);
}

a.pc-swatch:focus-visible,
.pc-swatch--js:focus-visible {
	outline: 2px solid #4a90d9;
	outline-offset: 1px;
}

a.pc-swatch--more {
	color: #555;
}

/* v1.2.0 — מצב swap: החלפת תמונה בכרטיס */
.pc-swatch--swap {
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.pc-swatch--swap:hover {
	transform: scale(1.18);
	border-color: rgba(0, 0, 0, 0.45);
}

.pc-swatch--selected {
	border-color: rgba(0, 0, 0, 0.7);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, 0.55);
}

.pc-swatch--swap:focus-visible {
	outline: 2px solid #4a90d9;
	outline-offset: 1px;
}
