.avs-attribute-wrapper {
	margin: 4px 0 10px;
}

.avs-original-select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.avs-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.avs-swatch {
	position: relative;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform .1s ease, box-shadow .1s ease;
}

.avs-swatch:hover {
	transform: translateY(-1px);
}

/* Tooltip (color/size name) — shows on hover for pointer devices,
   and via .avs-show-tooltip (tap) for touch devices. */
.avs-tooltip {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: #1f2937;
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	padding: 3px 8px;
	border-radius: 5px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .12s ease;
	z-index: 5;
}
.avs-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: #1f2937;
}
.avs-swatch:hover .avs-tooltip,
.avs-swatch.avs-show-tooltip .avs-tooltip {
	opacity: 1;
	visibility: visible;
}

/* Sold out (every variation for this option is out of stock) */
.avs-swatch.avs-soldout {
	opacity: .5;
}
.avs-soldout-tag {
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%);
	background: #6b7280;
	color: #fff;
	font-size: 9px;
	line-height: 1;
	padding: 2px 5px;
	border-radius: 4px;
	white-space: nowrap;
}

/* Color swatches */
.avs-swatch-color {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #e5e7eb;
}
.avs-swatch-color.avs-active {
	border-color: #f97316;
	box-shadow: 0 0 0 2px rgba(249, 115, 22, .25);
}

/* Image swatches */
.avs-swatch-image {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid #e5e7eb;
	padding: 0;
}
.avs-swatch-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.avs-swatch-image.avs-active {
	border-color: #f97316;
	box-shadow: 0 0 0 2px rgba(249, 115, 22, .25);
}

/* Button swatches (e.g. Size) */
.avs-swatch-button {
	min-width: 42px;
	padding: 6px 14px;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: #374151;
	background: #fff;
}
.avs-swatch-button.avs-active {
	border-color: #f97316;
	background: #fff7ed;
	color: #f97316;
}

/* Disabled (out of stock / invalid combination) */
.avs-swatch.avs-disabled {
	cursor: not-allowed;
	opacity: .35;
	position: relative;
}
.avs-swatch-color.avs-disabled::before,
.avs-swatch-image.avs-disabled::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top right, transparent 47%, #9ca3af 48%, #9ca3af 52%, transparent 53%);
}

/* -----------------------------------------------------------------
 * Shop / category loop — small color dots under each product card
 * ------------------------------------------------------------- */

.avs-loop-swatches {
	display: flex;
	align-items: center;
	gap: 5px;
	justify-content: center;
	margin: 6px 0;
}

.avs-loop-dot {
	position: relative;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	cursor: pointer;
}

.avs-loop-dot:hover .avs-tooltip,
.avs-loop-dot.avs-show-tooltip .avs-tooltip {
	opacity: 1;
	visibility: visible;
}

.avs-loop-more {
	font-size: 11px;
	color: #6b7280;
	font-weight: 600;
}
