/* ==========================================================================
   WC Selos & Carrossel
   ========================================================================== */

/* ---- Selo (badge) base ---- */
.wsc-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wsc-formato-retangular {
	border-radius: 2px;
}

.wsc-formato-pilula {
	border-radius: 999px;
}

.wsc-formato-circular {
	border-radius: 50%;
	width: 52px;
	height: 52px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: normal;
	font-size: 10px;
}

/* ---- Posicionamento nos produtos (loop e produto único) ---- */
.wsc-badges-container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 9;
}

ul.products li.product,
.woocommerce-product-gallery {
	position: relative;
}

.wsc-badges {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wsc-pos-top-left {
	top: 10px;
	left: 10px;
	align-items: flex-start;
}

.wsc-pos-top-right {
	top: 10px;
	right: 10px;
	align-items: flex-end;
}

.wsc-pos-bottom-left {
	bottom: 10px;
	left: 10px;
	align-items: flex-start;
}

.wsc-pos-bottom-right {
	bottom: 10px;
	right: 10px;
	align-items: flex-end;
}

/* Badges dentro do card do carrossel: sempre no canto superior esquerdo. */
.wsc-card-badges.wsc-badges-container .wsc-badges {
	top: 8px !important;
	left: 8px !important;
	right: auto !important;
	bottom: auto !important;
}

/* ---- Admin: preview do selo ---- */
.wsc-preview-wrap {
	padding: 10px;
	background: #f6f6f6;
	border: 1px dashed #ccc;
	display: inline-block;
}

.wsc-form-table th {
	width: 220px;
}

/* ==========================================================================
   Carrossel
   ========================================================================== */

.wsc-carrossel-wrap {
	margin: 30px 0;
}

.wsc-carrossel-titulo {
	margin-bottom: 16px;
}

.wsc-carrossel {
	position: relative;
}

.wsc-carrossel-viewport {
	overflow: hidden;
	width: 100%;
}

.wsc-carrossel-trilho {
	display: flex;
	transition: transform 0.4s ease;
	will-change: transform;
}

.wsc-carrossel-slide {
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 0 10px;
}

.wsc-carrossel-card {
	position: relative;
	text-align: center;
	background: #fff;
}

.wsc-card-imagem-link {
	position: relative;
	display: block;
}

.wsc-card-imagem-link img {
	width: 100%;
	height: auto;
	display: block;
}

.wsc-card-titulo {
	font-size: 15px;
	margin: 10px 0 6px;
}

.wsc-card-titulo a {
	text-decoration: none;
	color: inherit;
}

.wsc-card-preco {
	margin-bottom: 10px;
}

.wsc-card-botao {
	margin-bottom: 10px;
}

.wsc-seta {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.wsc-seta:hover {
	background: #f2f2f2;
}

.wsc-seta-prev {
	left: -18px;
}

.wsc-seta-next {
	right: -18px;
}

.wsc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.wsc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	border: 0;
	padding: 0;
}

.wsc-dot.is-ativo {
	background: #333;
}

@media (max-width: 782px) {
	.wsc-seta-prev {
		left: 4px;
	}
	.wsc-seta-next {
		right: 4px;
	}
}
