/* Vegan Flavours — duas colunas: slideshow (imagem + miniaturas) | título, compra Stripe, nota, acordeão.
   Elementor: contentor 70% (94% tablet/telemóvel), intervalo 60px (40px tablet, 20px telemóvel). */
.on-vegan {
	flex-direction: row;
	gap: 60px;
	width: 70%;
}
.on-vegan__media,
.on-vegan__info {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1 1 0;
	min-width: 0;
}
.on-vegan__info { padding-top: 40px; }

/* ---------- Slideshow (media-carousel "slideshow" do Elementor, parado no 1.º slide) ---------- */
.on-vegan__main { height: 70vh; margin-bottom: 10px; overflow: hidden; }
.on-vegan__main figure { width: 100%; height: 100%; }
/* O Swiper dá ao slide a largura arredondada ao píxel (367px num contentor de 366,6px). */
.on-vegan__main img { width: round(100%, 1px); height: 100%; }
.on-vegan__main img,
.on-vegan__thumb img {
	max-width: none;
	object-fit: cover;
	object-position: center;
	border-radius: var(--radius);
}
.on-vegan__thumbs {
	--per-view: 5;
	display: flex;
	gap: 10px;
	overflow: hidden;
}
.on-vegan__thumb {
	/* o Swiper usa a largura arredondada ao píxel (clientWidth) */
	flex: 0 0 calc((round(100%, 1px) - (var(--per-view) - 1) * 10px) / var(--per-view));
	min-width: 0;
}
.on-vegan__thumb img { width: 100%; aspect-ratio: 1 / 1; }

/* ---------- Coluna de informação ---------- */
.on-vegan .on-title { line-height: 1.2em; }
.on-vegan__subtitle { line-height: 1.4em; color: var(--c-muted); }
.on-vegan__buy { display: block; } /* linha de texto 16px/24px como o widget HTML: o botão fica igual */
.on-vegan__note {
	font-family: var(--f-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--c-primary);
}

/* Acordeão (nested-accordion → <details>) */
.on-vegan__details > summary {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 10px;
	border-bottom: 1px solid var(--c-grey);
	font-family: var(--f-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--c-primary);
	list-style: none;
	cursor: pointer;
}
.on-vegan__details > summary::-webkit-details-marker { display: none; }
.on-vegan__details > summary::before {
	content: "";
	flex: none;
	width: 10.5px;
	height: 12px;
	background-color: var(--c-muted);
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E");
}
.on-vegan__details[open] > summary::before {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E");
}
.on-vegan__details-body {
	padding: 20px;
	font-family: var(--f-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--c-muted);
}
.on-vegan__details-body p { margin: 0 0 .9rem; }
.on-vegan__details-body p:last-child { margin-bottom: 0; }
.on-vegan__details-body b { font-weight: 700; }

@media (max-width: 1024px) {
	.on-vegan { gap: 40px; width: var(--container); }
	.on-vegan__main { height: 60vh; }
	.on-vegan__thumbs { --per-view: 4; }
}
@media (max-width: 767px) {
	.on-vegan { flex-direction: column; gap: 20px; }
	.on-vegan__media,
	.on-vegan__info { flex: none; width: 100%; }
	.on-vegan__info { padding-top: 0; }
	.on-vegan__main { height: 55vh; }
	.on-vegan__thumbs { --per-view: 3; }
	/* O fundo do Swiper é pintado na posição fracionária (x = 11,7px); a <img> encaixa no píxel.
	   Meio píxel à direita deixa as imagens sobre os mesmos píxeis da produção. */
	.on-vegan__main img, .on-vegan__thumb img { translate: .5px 0; }
	.on-vegan__details > summary,
	.on-vegan__details-body { font-size: 16px; }
}

/* Miniaturas não ativas escurecidas (Elementor: .swiper-slide:not(.swiper-slide-active)::after) */
.on-vegan__thumb { position: relative; }
.on-thumbshow:not(.is-ready) .on-vegan__thumb:not(:first-child)::after,
.on-thumbshow.is-ready .on-vegan__thumb:not(.is-active)::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--radius);
	background-color: rgb(0 0 0 / .3);
	pointer-events: none;
}

/* Slideshow com miniaturas (on-thumbshow, ver blocks.js) */
.on-thumbshow.is-ready .on-vegan__thumb { cursor: pointer; }
.on-thumbshow.is-ready .on-vegan__main img { cursor: zoom-in; }
