/**
 * Vitrine de produtos — banner + carrossel.
 *
 * O carrossel é scroll-snap nativo: sem Swiper, sem dependência da versão
 * do Elementor. As setas só empurram o scroll; sem JS ele continua
 * navegável por arraste e teclado.
 */

.sempra-vitrine {
	--sempra-navy: #071d4e;
	--sempra-lime: #aad609;
	--sempra-texto: #1a1f2e;
	--sempra-suave: #5b6270;
	--sempra-borda: #e7e9ee;
	--sempra-fundo-card: #fff;
	--sempra-raio: 10px;
	--sempra-cols: 4;
	--sempra-cols-tablet: 3;
	--sempra-cols-mobile: 1.15;
	--sempra-gap: 14px;
	--sempra-img-altura: 130px;
	--sempra-banner-w: 230px;

	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

/* A largura vem por variável, não por grid-template-columns direto: assim o
   controle do Elementor ajusta a medida sem vencer a media query do mobile,
   que precisa empilhar banner e carrossel. */
.sempra-vitrine--com-banner {
	grid-template-columns: minmax(0, var(--sempra-banner-w)) minmax(0, 1fr);
	align-items: stretch;
}

/* ---------- Banner ---------- */

.sempra-vitrine__banner {
	position: relative;
	overflow: hidden;
	border-radius: var(--sempra-raio);
	background: var(--sempra-navy);
	min-height: 200px;
}

.sempra-vitrine__banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: absolute;
	inset: 0;
}

.sempra-vitrine__banner-label {
	position: absolute;
	inset: auto 0 0 0;
	padding: 40px 14px 14px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	color: #fff;
	z-index: 1;
}

.sempra-vitrine__banner-label strong {
	display: block;
	font-size: 17px;
	line-height: 1.25;
	margin-bottom: 4px;
}

.sempra-vitrine__banner-label a {
	color: var(--sempra-lime);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.sempra-vitrine__banner-label a:hover {
	text-decoration: underline;
}

/* ---------- Carrossel ---------- */

.sempra-vitrine__carrossel {
	position: relative;
	min-width: 0;
}

.sempra-vitrine__trilho {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(
		(100% - (var(--sempra-cols) - 1) * var(--sempra-gap)) / var(--sempra-cols)
	);
	gap: var(--sempra-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	list-style: none;
	margin: 0;
	padding: 0 0 10px;
}

.sempra-vitrine__trilho::-webkit-scrollbar {
	height: 6px;
}

.sempra-vitrine__trilho::-webkit-scrollbar-thumb {
	background: #d7dae0;
	border-radius: 6px;
}

.sempra-vitrine__item {
	scroll-snap-align: start;
	min-width: 0;
	margin: 0;
	list-style: none;
	display: flex;
}

.sempra-vitrine__item::before {
	content: none; /* alguns temas injetam bullets em li */
}

/* Setas */

.sempra-vitrine__seta {
	position: absolute;
	top: calc(var(--sempra-img-altura) / 2 + 12px);
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sempra-borda);
	border-radius: 50%;
	background: #fff;
	color: var(--sempra-navy);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(7, 29, 78, 0.14);
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.sempra-vitrine__seta:hover {
	transform: scale(1.06);
}

.sempra-vitrine__seta[hidden] {
	display: none;
}

.sempra-vitrine__seta svg {
	width: 18px;
	height: 18px;
}

/* Ficam por dentro da faixa: com o banner colado à esquerda, uma seta
   estourando pra fora do trilho passaria por cima dele. */
.sempra-vitrine__seta--prev {
	left: 6px;
}

.sempra-vitrine__seta--next {
	right: 6px;
}

/* Dots */

.sempra-vitrine__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 6px;
}

.sempra-vitrine__dots button {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c9cdd6;
	cursor: pointer;
}

.sempra-vitrine__dots button[aria-selected="true"] {
	background: var(--sempra-navy);
	width: 18px;
	border-radius: 4px;
}

/* ---------- Card ---------- */

.sempra-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--sempra-fundo-card);
	border: 1px solid var(--sempra-borda);
	border-radius: var(--sempra-raio);
	padding: 12px;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.sempra-card:hover {
	box-shadow: 0 8px 22px rgba(7, 29, 78, 0.1);
	transform: translateY(-2px);
}

.sempra-card__midia {
	position: relative;
	margin-bottom: 10px;
}

.sempra-card__img {
	display: block;
	width: 100%;
	height: var(--sempra-img-altura);
	object-fit: contain;
	mix-blend-mode: multiply; /* recorta o fundo branco dos pack-shots */
}

.sempra-card__img--vazia {
	background: repeating-linear-gradient(45deg, #eef0f3, #eef0f3 10px, #e3e6ec 10px, #e3e6ec 20px);
	border-radius: 6px;
}

.sempra-card__selo {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	background: #ff5470;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 4px;
}

.sempra-card__corpo {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.sempra-card__marca {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sempra-suave);
	margin-bottom: 3px;
}

.sempra-card__nome {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sempra-texto);
	margin: 0 0 4px;

	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sempra-card__unidade {
	font-size: 11px;
	color: var(--sempra-suave);
	margin-bottom: 8px;
}

.sempra-card__preco {
	margin: auto 0 10px;
	font-size: 12px;
	color: var(--sempra-suave);
	line-height: 1.35;
}

.sempra-card__prefixo {
	display: block;
	font-size: 11px;
}

.sempra-card__preco-de {
	color: #9aa0ad;
	font-size: 11px;
	margin-right: 4px;
}

.sempra-card__preco-por {
	font-size: 16px;
	color: var(--sempra-navy);
	font-weight: 700;
}

.sempra-card__cta {
	display: block;
	text-align: center;
	background: var(--sempra-navy);
	color: #fff;
	padding: 9px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.sempra-card__cta:hover {
	filter: brightness(1.25);
	color: #fff;
}

/* ---------- Variante escura (seção "Ofertas do mês") ---------- */

.sempra-vitrine--escuro {
	--sempra-fundo-card: #16265a;
	--sempra-borda: #23366e;
	--sempra-texto: #fff;
	--sempra-suave: #a9b0c6;
}

.sempra-vitrine--escuro .sempra-card__preco-por {
	color: var(--sempra-lime);
}

.sempra-vitrine--escuro .sempra-card__cta {
	background: var(--sempra-lime);
	color: var(--sempra-navy);
}

.sempra-vitrine--escuro .sempra-card__cta:hover {
	color: var(--sempra-navy);
}

.sempra-vitrine--escuro .sempra-card__img {
	mix-blend-mode: normal;
	background: #fff;
	border-radius: 6px;
}

.sempra-vitrine--escuro .sempra-vitrine__trilho::-webkit-scrollbar-thumb {
	background: #2b3f7d;
}

/* ---------- Aviso do editor ---------- */

.sempra-vitrine__aviso {
	padding: 22px;
	border: 1px dashed #c3c8d2;
	border-radius: 8px;
	color: #5b6270;
	font-size: 13px;
	text-align: center;
	background: #fafbfc;
}

/* ---------- Responsivo ---------- */

@media (max-width: 1024px) {
	.sempra-vitrine__trilho {
		grid-auto-columns: calc(
			(100% - (var(--sempra-cols-tablet) - 1) * var(--sempra-gap)) / var(--sempra-cols-tablet)
		);
	}
}

@media (max-width: 767px) {
	.sempra-vitrine--com-banner {
		grid-template-columns: 1fr;
	}

	.sempra-vitrine__banner {
		min-height: 180px;
	}

	.sempra-vitrine__trilho {
		grid-auto-columns: calc(
			(100% - (var(--sempra-cols-mobile) - 1) * var(--sempra-gap)) / var(--sempra-cols-mobile)
		);
	}

	.sempra-vitrine__seta {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sempra-vitrine__trilho {
		scroll-behavior: auto;
	}

	.sempra-card,
	.sempra-vitrine__seta {
		transition: none;
	}
}

/* ---------- Mosaico de categorias ---------- */

.sempra-mosaico {
	--sempra-mosaico-cols: 3;
	--sempra-mosaico-h: 190px;
	--sempra-gap: 14px;
	--sempra-raio: 10px;

	display: grid;
	grid-template-columns: repeat(var(--sempra-mosaico-cols), minmax(0, 1fr));
	gap: var(--sempra-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.sempra-mosaico__item {
	list-style: none;
	margin: 0;
}

.sempra-mosaico__item::before {
	content: none;
}

.sempra-mosaico__card {
	position: relative;
	display: block;
	height: var(--sempra-mosaico-h);
	overflow: hidden;
	border-radius: var(--sempra-raio);
	background: #071d4e;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.sempra-mosaico__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(7, 29, 78, 0.18);
}

.sempra-mosaico__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sempra-mosaico__label {
	position: absolute;
	inset: auto 0 0 0;
	padding: 40px 14px 14px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	color: #fff;
}

.sempra-mosaico__nome {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.sempra-mosaico__link {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	font-weight: 700;
	color: #aad609;
}

@media (max-width: 1024px) {
	.sempra-mosaico {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.sempra-mosaico {
		grid-template-columns: 1fr;
	}
}

/* ---------- Depoimentos ---------- */

.sempra-deps {
	--sempra-deps-cols: 3;

	display: grid;
	grid-template-columns: repeat(var(--sempra-deps-cols), minmax(0, 1fr));
	gap: 18px;
}

.sempra-dep {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 20px;
	background: #f4f5f7;
	border-radius: 10px;
	list-style: none;
}

.sempra-dep::before {
	content: none;
}

/* ---------- Depoimentos em carrossel ---------- */

.sempra-deps-wrap {
	position: relative;
}

.sempra-deps--carrossel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(
		(100% - (var(--sempra-deps-cols) - 1) * 18px) / var(--sempra-deps-cols)
	);
	grid-template-columns: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.sempra-deps--carrossel::-webkit-scrollbar {
	display: none;
}

.sempra-deps--carrossel .sempra-dep {
	scroll-snap-align: start;
	min-width: 0;
}

.sempra-deps__seta {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 38px;
	height: 38px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e7e9ee;
	border-radius: 50%;
	background: #fff;
	color: #071d4e;
	cursor: pointer;
	box-shadow: 0 3px 14px rgba(7, 29, 78, 0.15);
}

.sempra-deps__seta[hidden] {
	display: none;
}

.sempra-deps__seta svg {
	width: 18px;
	height: 18px;
}

.sempra-deps__seta--prev {
	left: -14px;
}

.sempra-deps__seta--next {
	right: -14px;
}

.sempra-deps__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.sempra-deps__dots button {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c9cdd6;
	cursor: pointer;
	transition: width 0.18s ease, background 0.18s ease;
}

.sempra-deps__dots button[aria-selected="true"] {
	width: 20px;
	border-radius: 4px;
	background: #071d4e;
}

.sempra-dep__nota {
	color: #f5a623;
	font-size: 14px;
	letter-spacing: 2px;
	margin-bottom: 10px;
}

.sempra-dep__texto {
	flex: 1;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #1a1f2e;
	quotes: "\201C" "\201D";
}

.sempra-dep__texto::before {
	content: open-quote;
}

.sempra-dep__texto::after {
	content: close-quote;
}

.sempra-dep__autor {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sempra-dep__foto {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.sempra-dep__foto--iniciais {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #071d4e;
	color: #aad609;
	font-size: 13px;
	font-weight: 700;
}

.sempra-dep__quem {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.sempra-dep__quem b {
	font-size: 13px;
}

.sempra-dep__quem span {
	font-size: 11px;
	color: #5b6270;
}

.sempra-dep__fonte {
	align-self: flex-start;
	margin-top: 3px;
	padding: 2px 7px;
	border-radius: 4px;
	background: #eef1f6;
	color: #5b6270;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
	.sempra-deps {
		--sempra-deps-cols: 2;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sempra-deps--carrossel {
		grid-template-columns: none;
	}
}

@media (max-width: 767px) {
	.sempra-deps {
		--sempra-deps-cols: 1.08;
		grid-template-columns: 1fr;
	}

	.sempra-deps--carrossel {
		grid-template-columns: none;
	}

	.sempra-deps__seta {
		display: none;
	}
}
