/**
 * Single product: Color image swatches + Style variation cards.
 * Product gallery uses Blocksy default (no layout overrides).
 */

/* ── Style variation cards (replace ugly native select) ── */
.single-product form.variations_form .variations {
	width: 100%;
	border: 0;
	margin: 0 0 1.25rem;
}

.single-product form.variations_form .variations tr,
.single-product form.variations_form .variations td,
.single-product form.variations_form .variations th {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}

.single-product form.variations_form .variations .label {
	margin: 0 0 10px;
}

.single-product form.variations_form .variations .label label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7a746c;
}

.single-product form.variations_form .variations select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.vioiv-style-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vioiv-style-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 14px 72px 14px 16px;
	border: 1.5px solid #e8e2da;
	border-radius: 14px;
	background: #fff;
	color: #2a2420;
	text-align: left;
	cursor: pointer;
	font: inherit;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

/* Quiet social proof — right side, never louder than title/price */
.vioiv-style-card__sold {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	padding: 0;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: #b0a49a;
	white-space: nowrap;
	pointer-events: none;
}

.vioiv-style-card.is-on .vioiv-style-card__sold {
	color: #9a8d84;
}

.vioiv-style-card:hover {
	border-color: #cfc6bb;
	transform: translateY(-1px);
}

.vioiv-style-card.is-on {
	border-color: #231f20;
	background: #fbf7f2;
	box-shadow: 0 0 0 1px #231f20;
}

.vioiv-style-card__radio {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 2px solid #cfc6bb;
	border-radius: 50%;
	position: relative;
	background: #fff;
}

.vioiv-style-card.is-on .vioiv-style-card__radio {
	border-color: #231f20;
}

.vioiv-style-card.is-on .vioiv-style-card__radio::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #231f20;
}

.vioiv-style-card__body {
	flex: 1;
	min-width: 0;
}

.vioiv-style-card__title {
	display: block;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #231f20;
}

.vioiv-style-card__meta {
	display: block;
	margin-top: 4px;
	font-size: 0.8rem;
	line-height: 1.4;
	color: #8a7d74;
}

.vioiv-style-card__badge {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f0ebe4;
	color: #5c534c;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.vioiv-style-card.is-on .vioiv-style-card__badge {
	background: #231f20;
	color: #fff;
}

.vioiv-style-card.is-disabled,
.vioiv-color-swatch.is-disabled {
	opacity: 0.38;
	cursor: not-allowed;
	transform: none;
	pointer-events: none;
}

.vioiv-style-includes {
	margin: 12px 0 0;
	padding: 14px 14px 12px;
	background: #f7f6f3;
	border: 1px solid #e8e4dc;
	border-radius: 12px;
	box-sizing: border-box;
}

.vioiv-style-includes[hidden],
.vioiv-style-include:not(.is-on),
.vioiv-style-include[hidden] {
	display: none !important;
}

.vioiv-style-include__lead {
	margin: 0 0 10px;
	color: #5c554c;
	font-size: 13px;
	line-height: 1.55;
}

.vioiv-style-include__duo {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.vioiv-style-include__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 calc(50% - 4px);
	min-width: 132px;
	padding: 10px 12px;
	border: 1px solid #e0dbd3;
	border-radius: 10px;
	background: #fff;
	color: #1c1916;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	box-sizing: border-box;
}

.vioiv-style-include__chip::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #245c48;
	flex: 0 0 auto;
}

.vioiv-style-include__title {
	margin: 0 0 8px;
	color: #1c1916;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.vioiv-style-include__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vioiv-style-include__list li {
	position: relative;
	margin: 0 0 7px;
	padding-left: 14px;
	color: #5c554c;
	font-size: 13px;
	line-height: 1.45;
}

.vioiv-style-include__list li:last-child {
	margin-bottom: 0;
}

.vioiv-style-include__list li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #245c48;
}

/* ── Color image swatches ──
 * Use !important so stale theme/cache CSS cannot blow swatches into full-size photos.
 */

/* One UI only: never show Blocksy/plugin swatches alongside ours */
.single-product .ct-variation-swatches,
.single-product .ct-product-swatches,
.single-product .variations .swatches {
	display: none !important;
}

.vioiv-color-swatches {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
}

.vioiv-color-swatch {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 6px !important;
	position: relative !important;
	width: 76px !important;
	max-width: 76px !important;
	margin: 0 !important;
	padding: 6px !important;
	border: 2px solid #e8e2da !important;
	border-radius: 14px !important;
	background: #fff !important;
	color: #2a2420 !important;
	cursor: pointer;
	font: inherit;
	overflow: hidden !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

/* Legacy LOOK spinner removed — never show overlay/spinner on swatches */
html.vv-look-pending .vioiv-color-swatch::before,
html.vv-look-pending .vioiv-color-swatch::after,
.vioiv-color-swatch.is-loading::before,
.vioiv-color-swatch.is-loading::after {
	display: none !important;
	content: none !important;
	animation: none !important;
}

html.vv-look-pending .vioiv-color-swatch,
.vioiv-color-swatch.is-loading {
	pointer-events: auto !important;
	cursor: pointer !important;
}

.vioiv-color-swatch:hover {
	border-color: #cfc6bb !important;
	transform: translateY(-1px);
}

.vioiv-color-swatch.is-on {
	border-color: #231f20 !important;
	background: #fbf7f2 !important;
	box-shadow: 0 0 0 1px #231f20 !important;
}

.vioiv-color-swatch__img,
.vioiv-color-swatch img {
	display: block !important;
	width: 60px !important;
	height: 60px !important;
	max-width: 60px !important;
	max-height: 60px !important;
	border-radius: 10px !important;
	object-fit: cover !important;
	background: #f3eee8 !important;
	margin: 0 !important;
}

.vioiv-color-swatch__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 10px;
	background: #f0ebe4;
	color: #5c534c;
	font-size: 1.1rem;
	font-weight: 700;
}

.vioiv-color-swatch__label {
	display: block;
	max-width: 100%;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: #7a746c;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vioiv-color-swatch.is-on .vioiv-color-swatch__label {
	color: #231f20;
	font-weight: 700;
}

@media (min-width: 690px) {
	.vioiv-style-cards {
		grid-template-columns: 1fr;
	}

	.vioiv-color-swatch {
		width: 84px !important;
		max-width: 84px !important;
	}

	.vioiv-color-swatch__img,
	.vioiv-color-swatch img,
	.vioiv-color-swatch__fallback {
		width: 68px !important;
		height: 68px !important;
		max-width: 68px !important;
		max-height: 68px !important;
	}
}

/* Title-row rating: same (N) as shop cards, not “N customer reviews”. */
.single-product .woocommerce-product-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.single-product .woocommerce-product-rating .woocommerce-review-link ~ .woocommerce-review-link {
	display: none !important;
}

.single-product .woocommerce-product-rating .woocommerce-review-link,
.single-product .woocommerce-product-rating .vv-pdp-rating-count {
	color: #666 !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
