/* Fotos de Clientes (UGC) — ajuste à vontade */
.fc-ugc {
	--fc-cor: #111;
	--fc-gap: 12px;
	--fc-por-linha: 5;
	margin: 48px auto;
	max-width: 1400px;
	padding: 0 16px;
	box-sizing: border-box;
}
.fc-ugc *, .fc-ugc *::before, .fc-ugc *::after { box-sizing: border-box; }

.fc-ugc__cabecalho { text-align: center; margin-bottom: 24px; }
.fc-ugc__titulo { margin: 0 0 6px; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.fc-ugc__subtitulo { margin: 0; opacity: .7; font-size: 15px; }

.fc-ugc__area { position: relative; }

.fc-ugc__lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--fc-gap);
}

/* Carrossel */
.fc-ugc--carrossel .fc-ugc__lista {
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--fc-por-linha) - 1) * var(--fc-gap)) / var(--fc-por-linha));
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.fc-ugc--carrossel .fc-ugc__lista::-webkit-scrollbar { display: none; }
.fc-ugc--carrossel .fc-ugc__item { scroll-snap-align: start; }

/* Grade */
.fc-ugc--grade .fc-ugc__lista { grid-template-columns: repeat(var(--fc-por-linha), 1fr); }

.fc-ugc__item { margin: 0; padding: 0; }

.fc-ugc__card {
	all: unset;
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	cursor: pointer;
	background: #eee;
	border-radius: 4px;
}
.fc-ugc__card:focus-visible { outline: 3px solid var(--fc-cor); outline-offset: 2px; }
.fc-ugc__img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
	max-width: none !important;
}
.fc-ugc__card:hover .fc-ugc__img { transform: scale(1.05); }

.fc-ugc__hover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	transition: opacity .25s ease;
}
.fc-ugc__card:hover .fc-ugc__hover,
.fc-ugc__card:focus-visible .fc-ugc__hover { opacity: 1; }
.fc-ugc__hover svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
.fc-ugc__hover .fc-ugc__ponto { fill: currentColor; stroke: none; }
.fc-ugc__usuario { font-size: 14px; font-weight: 600; }

.fc-ugc__seta {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #fff;
	color: #111;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.fc-ugc__seta[hidden] { display: none; }
.fc-ugc__seta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fc-ugc__seta--ant { left: -8px; }
.fc-ugc__seta--prox { right: -8px; }

@media (max-width: 1024px) {
	.fc-ugc { --fc-por-linha: 3; }
}
@media (max-width: 600px) {
	.fc-ugc { --fc-por-linha: 2; --fc-gap: 8px; }
	/* No celular o carrossel mostra "um pedaço" da próxima foto, convidando a arrastar */
	.fc-ugc--carrossel .fc-ugc__lista { grid-auto-columns: 42%; }
	.fc-ugc__seta { display: none; }
	/* No celular não há hover: mostra o @ sempre */
	.fc-ugc__hover { opacity: 1; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); justify-content: flex-end; padding-bottom: 8px; }
	.fc-ugc__hover svg { display: none; }
	.fc-ugc__usuario { font-size: 12px; }
}

/* ---------------- Modal ---------------- */
.fc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, .7);
	opacity: 0;
	transition: opacity .2s ease;
}
.fc-modal[hidden] { display: none; }
.fc-modal.fc-aberto { opacity: 1; }
.fc-modal * { box-sizing: border-box; }

.fc-modal__caixa {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	width: 100%;
	max-width: 960px;
	max-height: calc(100vh - 48px);
	background: #fff;
	color: #111;
	border-radius: 8px;
	overflow: hidden;
}
.fc-modal__foto { position: relative; background: #000; display: flex; align-items: center; justify-content: center; min-height: 0; }
.fc-modal__foto img { width: 100%; height: 100%; max-height: calc(100vh - 48px); object-fit: contain; display: block; }

.fc-modal__info { display: flex; flex-direction: column; padding: 24px; overflow-y: auto; min-height: 0; }
.fc-modal__usuario { font-weight: 700; font-size: 16px; margin: 0 40px 4px 0; }
.fc-modal__insta { font-size: 13px; color: inherit; opacity: .7; text-decoration: underline; }
.fc-modal__legenda { margin: 14px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.fc-modal__subtitulo { margin: 22px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }

.fc-modal__produtos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fc-modal__produto { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: start; }
.fc-modal__produto img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; display: block; background: #f3f3f3; }
.fc-modal__nome { display: block; font-weight: 600; font-size: 14px; color: inherit; text-decoration: none; line-height: 1.3; }
.fc-modal__nome:hover { text-decoration: underline; }
.fc-modal__preco { font-size: 14px; margin: 4px 0 8px; }
.fc-modal__preco del { opacity: .5; margin-right: 4px; }
.fc-modal__preco ins { text-decoration: none; font-weight: 700; }
.fc-modal__botoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fc-modal__btn {
	display: inline-block;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	border-radius: 4px;
	border: 1px solid var(--fc-cor);
	background: var(--fc-cor);
	color: #fff !important;
	cursor: pointer;
}
.fc-modal__btn--linha { background: transparent; color: var(--fc-cor) !important; }
.fc-modal__btn.loading { opacity: .6; pointer-events: none; }
.fc-modal__botoes .added_to_cart { font-size: 13px; color: inherit; text-decoration: underline; }

.fc-modal__fechar, .fc-modal__nav {
	position: absolute;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fc-modal__fechar { top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: #f1f1f1; color: #111; z-index: 3; }
.fc-modal__fechar svg, .fc-modal__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fc-modal__nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); color: #111; z-index: 3; }
.fc-modal__nav[hidden] { display: none; }
.fc-modal__nav--ant { left: 12px; }
.fc-modal__nav--prox { right: 12px; }

@media (max-width: 760px) {
	.fc-modal { padding: 0; align-items: flex-end; }
	.fc-modal__caixa { grid-template-columns: 1fr; grid-template-rows: auto 1fr; max-height: 100vh; height: 100%; border-radius: 0; overflow-y: auto; }
	.fc-modal__foto img { max-height: 60vh; }
	.fc-modal__info { overflow: visible; }
}

body.fc-modal-aberto { overflow: hidden; }
