/**
 * Category Sizes - Vertical pills on product cards
 */

/* Ensure box-image is positioned for absolute children */
.box-image {
	position: relative;
}

.product-sizes-overlay {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%) translateX(5px);
	z-index: 10;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

/* Only show when scrolled into view - not on hover */
.product-sizes-overlay.is-visible {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
	pointer-events: auto;
}

.product-sizes-list {
	display: flex;
	flex-direction: column;
	gap: 1px;
	align-items: flex-end;
}

.product-size-pill {
	background: rgba(247, 247, 247, 0.6);
	box-shadow: 0px 4px 4px rgba(200, 200, 200, 0.25);
	backdrop-filter: blur(4px);
	color: #6c6c6c;
	font-size: 10px;
	font-weight: 500;
	padding: 4px 0;
	border-radius: 20px 0 0 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	white-space: nowrap;
	width: 36px;
	text-align: center;
	line-height: 1.2;
	position: relative;
}

/* Desktop - larger pills */
@media screen and (min-width: 850px) {
	.product-size-pill {
		font-size: 12px;
		padding: 5px 0;
		width: 44px;
	}
}

/* Out of stock - diagonal strikethrough */
.product-size-pill.out-of-stock {
	color: #aaa;
}

.product-size-pill.out-of-stock::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 4px;
	right: 4px;
	height: 1px;
	background: #aaa;
	transform: rotate(-45deg);
}

/* Stagger animation for each pill */
.product-sizes-overlay.is-visible .product-size-pill {
	animation: slideInRight 0.25s ease forwards;
	opacity: 0;
}

.product-sizes-overlay.is-visible .product-size-pill:nth-child(1) { animation-delay: 0s; }
.product-sizes-overlay.is-visible .product-size-pill:nth-child(2) { animation-delay: 0.04s; }
.product-sizes-overlay.is-visible .product-size-pill:nth-child(3) { animation-delay: 0.08s; }
.product-sizes-overlay.is-visible .product-size-pill:nth-child(4) { animation-delay: 0.12s; }
.product-sizes-overlay.is-visible .product-size-pill:nth-child(5) { animation-delay: 0.16s; }
.product-sizes-overlay.is-visible .product-size-pill:nth-child(6) { animation-delay: 0.2s; }

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(8px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}
