.artweb-carrossel-wrap {
	--artweb-vinho: #7a1f2b;
	--artweb-cinza: #767676;
	--artweb-verde: #2e7d32;
	max-width: 1280px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	box-sizing: border-box;
}
.artweb-carrossel-wrap *, .artweb-carrossel-wrap *::before, .artweb-carrossel-wrap *::after {
	box-sizing: border-box;
}

.artweb-carrossel-topo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.artweb-carrossel-titulo {
	font-size: 28px;
	font-weight: 800;
	color: var(--artweb-vinho);
	margin: 0;
}
.artweb-carrossel-nav {
	display: flex;
	gap: 8px;
}
.artweb-seta {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	border: none;
	background: #ececec;
	color: #444;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease, transform .15s ease;
}
.artweb-seta:hover {
	background: var(--artweb-vinho);
	color: #fff;
	transform: translateY(-1px);
}
.artweb-seta:disabled {
	opacity: .35;
	cursor: default;
	pointer-events: none;
}

.artweb-carrossel-trilho {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 20px) / 4);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 6px;
	scrollbar-width: none;
}
.artweb-carrossel-trilho::-webkit-scrollbar {
	display: none;
}

.artweb-card {
	scroll-snap-align: start;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s ease, transform .25s ease;
}
.artweb-card:hover {
	box-shadow: 0 14px 30px rgba(0,0,0,.12);
	transform: translateY(-4px);
}

.artweb-card-imagem-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.artweb-card-imagem {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f4f4f2;
	overflow: hidden;
}

.artweb-imagem-principal {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: opacity .35s ease, transform .5s ease;
}
.artweb-card:hover .artweb-imagem-principal {
	transform: scale(1.04);
}

/* imagem de troca no hover (crossfade) */
.artweb-card-imagem::after {
	content: "";
	position: absolute;
	inset: 0;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-image: var(--img-hover, none);
	opacity: 0;
	transition: opacity .35s ease;
	pointer-events: none;
}
.artweb-card:hover .artweb-card-imagem::after {
	opacity: 1;
}

.artweb-badge-off {
	position: absolute;
	top: 54px;
	left: 10px;
	background: var(--artweb-vinho);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
	z-index: 2;
}

/* Botão flutuante genérico (base para carrinho e favorito) */
.artweb-cart-btn,
.artweb-favorito {
	position: absolute;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	cursor: pointer;
	color: #555;
	z-index: 3;
	transition: transform .15s ease, color .2s ease, background-color .25s ease;
}
.artweb-cart-btn svg,
.artweb-favorito svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	overflow: visible;
}
.artweb-cart-btn:hover,
.artweb-favorito:hover {
	transform: translateY(-1px) scale(1.08);
}

/* Carrinho — canto superior esquerdo */
.artweb-cart-btn {
	top: 10px;
	left: 10px;
}
.artweb-icone-carrinho {
	opacity: 1;
	transform: scale(1);
	transition: opacity .2s ease, transform .2s ease;
}
.artweb-icone-confirma {
	position: absolute;
	opacity: 0;
	transform: scale(.4);
	transition: opacity .2s ease, transform .2s ease;
}
.artweb-cart-btn.artweb-cart-sucesso {
	background: var(--artweb-verde);
	color: #fff;
}
.artweb-cart-btn.artweb-cart-sucesso .artweb-icone-carrinho {
	opacity: 0;
	transform: scale(.4);
}
.artweb-cart-btn.artweb-cart-sucesso .artweb-icone-confirma {
	opacity: 1;
	transform: scale(1);
}
.artweb-cart-btn.artweb-cart-carregando {
	opacity: .6;
	pointer-events: none;
}

/* Favorito — canto superior direito */
.artweb-favorito {
	top: 10px;
	right: 10px;
}
.artweb-icone-coracao {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linejoin: round;
	transition: fill .2s ease, stroke .2s ease, transform .2s ease;
}
.artweb-favorito.ativo {
	color: var(--artweb-vinho);
}
.artweb-favorito.ativo .artweb-icone-coracao {
	fill: currentColor;
}
.artweb-favorito.artweb-favorito-animando .artweb-icone-coracao {
	transform: scale(1.3);
}

/* Favorito na página de produto único (com texto ao lado) */
.artweb-favorito-produto {
	position: static;
	width: auto;
	height: auto;
	border-radius: 6px;
	padding: 8px 14px;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	background: #f6f6f6;
	box-shadow: none;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	margin: 6px 0 14px;
}
.artweb-favorito-produto .artweb-icone-coracao {
	width: 16px;
	height: 16px;
}
.artweb-favorito-produto:hover {
	background: #ececec;
	transform: none;
}
.artweb-favorito-produto.ativo {
	background: #fbe9eb;
}

/* miniaturas (cores / outras opções): visíveis, e destacadas ao passar o mouse no card */
.artweb-miniaturas {
	position: absolute;
	left: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 2;
	opacity: .85;
	transform: translateY(6px);
	transition: opacity .3s ease, transform .3s ease;
}
.artweb-card:hover .artweb-miniaturas {
	opacity: 1;
	transform: translateY(0);
}
.artweb-miniatura {
	width: 34px;
	height: 34px;
	padding: 2px;
	border-radius: 6px;
	border: 1.5px solid #ddd;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	transition: border-color .2s ease, transform .2s ease;
}
.artweb-miniatura:hover,
.artweb-miniatura.ativa {
	border-color: var(--artweb-vinho);
	transform: translateY(-2px);
}
.artweb-miniatura img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 3px;
}
.artweb-miniatura-mais {
	font-size: 12px;
	font-weight: 700;
	color: #555;
	background: #fff;
	border: 1.5px solid #ddd;
	border-radius: 6px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.artweb-card-info {
	padding: 14px 14px 16px;
}
.artweb-card-nome-link {
	text-decoration: none;
}
.artweb-card-nome {
	font-size: 15px;
	font-weight: 700;
	color: #222;
	margin: 0 0 4px;
	line-height: 1.3;
	min-height: 39px;
}
.artweb-card-categoria {
	font-size: 13px;
	color: var(--artweb-cinza);
	margin: 0 0 8px;
}

.artweb-card-preco {
	font-size: 15px;
	font-weight: 700;
	color: #222;
	margin: 0 0 8px;
}
.artweb-preco-de {
	font-weight: 400;
	color: #999;
	text-decoration: line-through;
	margin-left: 6px;
	font-size: 13px;
}
.artweb-preco-off {
	color: var(--artweb-verde);
	font-weight: 700;
	margin-left: 6px;
	font-size: 13px;
}

.artweb-card-avaliacao {
	display: flex;
	align-items: center;
	gap: 6px;
}
.artweb-estrelas {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1;
	color: #ddd;
}
.artweb-estrelas::before {
	content: "★★★★★";
	letter-spacing: 1px;
}
.artweb-estrelas::after {
	content: "★★★★★";
	letter-spacing: 1px;
	position: absolute;
	left: 0;
	top: 0;
	width: calc(var(--nota) / 5 * 100%);
	overflow: hidden;
	color: #f5a623;
	white-space: nowrap;
}
.artweb-nota-numero {
	font-size: 12px;
	color: #666;
	background: #f2f2f2;
	border-radius: 4px;
	padding: 1px 6px;
}

.artweb-carrossel-rodape {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}
.artweb-btn-todos {
	display: inline-block;
	background: var(--artweb-vinho);
	color: #fff;
	font-weight: 700;
	letter-spacing: .03em;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 6px;
	transition: background .2s ease, transform .15s ease;
}
.artweb-btn-todos:hover {
	background: #611722;
	transform: translateY(-1px);
	color: #fff;
}

/* Responsivo */
@media (max-width: 1024px) {
	.artweb-carrossel-trilho {
		grid-auto-columns: calc((100% - 2 * 16px) / 3);
		gap: 16px;
	}
}
@media (max-width: 720px) {
	.artweb-carrossel-trilho {
		grid-auto-columns: calc((100% - 1 * 14px) / 2);
		gap: 14px;
	}
	.artweb-carrossel-titulo {
		font-size: 22px;
	}
}
@media (max-width: 460px) {
	.artweb-carrossel-trilho {
		grid-auto-columns: 78%;
	}
}

/* ---------------------------------------------------------------------
 * Ícones (carrinho + favorito) em qualquer listagem padrão do WooCommerce
 * (loja, categorias, tags) — fora do carrossel.
 * ------------------------------------------------------------------- */
.woocommerce ul.products li.product,
ul.products li.product {
	position: relative;
	overflow: visible;
}
.artweb-icones-loop {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 3;
}
.artweb-icones-loop .artweb-cart-btn,
.artweb-icones-loop .artweb-favorito {
	pointer-events: auto;
}

/* ---------------------------------------------------------------------
 * Página / aba "Meus Favoritos"
 * ------------------------------------------------------------------- */
.artweb-pagina-favoritos {
	margin: 0;
	padding: 0;
	max-width: none;
}
.artweb-grade {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}
.artweb-favoritos-vazio {
	color: var(--artweb-cinza, #767676);
	font-size: 15px;
}
.artweb-favoritos-login {
	text-align: center;
	padding: 30px 20px;
	background: #f7f7f7;
	border-radius: 10px;
}
.artweb-favoritos-login p {
	margin: 0 0 14px;
	font-size: 15px;
	color: #444;
}
