/* 3DMAT Blocos. Colours follow the theme's palette when it has one (3DMAT theme), with fallbacks. */

.tdm-icon {
	flex: none;
	display: block;
}
.tdm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Icon link                                                           */
/* ------------------------------------------------------------------ */

.tdm-iconlink {
	display: inline-flex;
}
.tdm-iconlink__a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	padding: 0.4rem;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	font-weight: 500;
}
a.tdm-iconlink__a:hover {
	background: var(--wp--preset--color--soft, #f2f6f8);
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Icon box                                                            */
/* ------------------------------------------------------------------ */

.tdm-iconbox {
	display: flex;
	gap: 0.9rem;
	align-items: center;
}
.tdm-iconbox.is-vertical {
	flex-direction: column;
	align-items: flex-start;
}
.tdm-iconbox__icon {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--wp--preset--color--accent-soft, #e6f4f3);
	color: var(--wp--preset--color--accent-dark, #0b6b63);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tdm-iconbox__body > p {
	margin: 0;
}
.tdm-iconbox__title {
	font-weight: 600;
	line-height: 1.3;
}
.tdm-iconbox__title a {
	color: inherit;
}
.tdm-iconbox__text {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #4b5b67);
}

/* ------------------------------------------------------------------ */
/* Category menu                                                       */
/* ------------------------------------------------------------------ */

.tdm-catmenu {
	position: relative;
	--tdm-cm-text: var(--wp--preset--color--texto, #102a3a);
	--tdm-cm-accent: var(--wp--preset--color--primary, #0b4f71);
	--tdm-cm-line: var(--wp--preset--color--line, #e2e8ee);
	--tdm-cm-soft: var(--wp--preset--color--soft, #f2f6f8);
	--tdm-cm-sale: var(--wp--preset--color--sale, #c2410c);
	font-size: 0.9375rem;
}
.tdm-catmenu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tdm-catmenu a {
	color: var(--tdm-cm-text);
	text-decoration: none;
}
.tdm-catmenu a:hover {
	color: var(--tdm-cm-accent);
	text-decoration: none;
}
.tdm-catmenu button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}
.tdm-catmenu__open,
.tdm-catmenu__head,
.tdm-catmenu__backdrop {
	display: none;
}
.tdm-catmenu__count,
.tdm-catmenu .tdm-catmenu__more {
	color: var(--wp--preset--color--muted, #4b5b67);
	font-weight: 400;
	font-size: 0.8125rem;
}
.tdm-chev {
	transition: transform 0.15s;
}
.is-open > .tdm-catmenu__row .tdm-chev {
	transform: rotate(180deg);
}

/* Wide screens: a row of links, panels drop down under the whole bar */
@media (min-width: 900px) {
	.tdm-catmenu__list {
		display: flex;
		flex-wrap: wrap;
		gap: 0 0.25rem;
	}
	.tdm-catmenu__item {
		position: static;
	}
	.tdm-catmenu__row {
		display: flex;
		align-items: center;
	}
	.tdm-catmenu__link {
		display: block;
		padding: 0.75rem 0.25rem 0.75rem 0.75rem;
		font-weight: 600;
	}
	.tdm-catmenu__item:not(.has-panel) .tdm-catmenu__link {
		padding-right: 0.75rem;
	}
	.tdm-catmenu__toggle {
		display: flex;
		align-items: center;
		padding: 0.75rem 0.5rem 0.75rem 0.15rem !important;
		color: var(--wp--preset--color--muted, #4b5b67) !important;
	}
	.tdm-catmenu__item.is-extra.is-highlight {
		margin-left: auto;
	}
	.is-highlight .tdm-catmenu__link {
		color: var(--tdm-cm-sale);
	}
	.tdm-catmenu__item:hover > .tdm-catmenu__row .tdm-catmenu__link,
	.tdm-catmenu__item.is-open > .tdm-catmenu__row .tdm-catmenu__link {
		color: var(--tdm-cm-accent);
		box-shadow: inset 0 -3px 0 var(--tdm-cm-accent);
	}
	.tdm-catmenu__panel {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 60;
		display: none;
		padding: 1.5rem 1.75rem 1.25rem;
		background: #fff;
		border: 1px solid var(--tdm-cm-line);
		border-radius: 0 0 16px 16px;
		box-shadow: 0 18px 40px rgba(13, 36, 51, 0.14);
	}
	.tdm-catmenu__item.has-panel:hover > .tdm-catmenu__panel,
	.tdm-catmenu__item.has-panel:focus-within > .tdm-catmenu__panel,
	.tdm-catmenu__item.is-open > .tdm-catmenu__panel {
		display: block;
	}
	.tdm-catmenu.is-closing .tdm-catmenu__panel {
		display: none !important;
	}
	/* Newspaper columns: short groups (no subcategories) stack instead of leaving gaps. */
	.tdm-catmenu__cols {
		columns: 190px 5;
		column-gap: 2rem;
	}
	.tdm-catmenu__col {
		break-inside: avoid;
		margin-bottom: 1.1rem;
	}
	.tdm-catmenu__heading {
		display: block;
		margin-bottom: 0.4rem;
		font-weight: 700;
	}
	.tdm-catmenu__col li a {
		display: block;
		padding: 0.2rem 0;
		font-size: 0.875rem;
		color: var(--wp--preset--color--muted, #3d505d);
	}
	.tdm-catmenu__all {
		display: inline-block;
		margin-top: 1.25rem;
		font-weight: 600;
		color: var(--tdm-cm-accent) !important;
	}
	.tdm-catmenu__brands {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 0.5rem 1.5rem;
	}
	.tdm-catmenu__brands a {
		display: block;
		padding: 0.35rem 0;
		font-weight: 500;
	}
}

/* Phones and tablets: a "Categorias" button opens a drawer with accordions */
@media (max-width: 899px) {
	.tdm-catmenu__open {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		min-height: 44px;
		padding: 0.5rem 0.25rem;
		font-weight: 600 !important;
	}
	.tdm-catmenu__drawer {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 100002;
		width: min(88vw, 380px);
		display: flex;
		flex-direction: column;
		background: #fff;
		transform: translateX(-102%);
		visibility: hidden;
		transition: transform 0.22s ease, visibility 0s 0.22s;
	}
	.tdm-catmenu.is-drawer-open .tdm-catmenu__drawer {
		transform: none;
		visibility: visible;
		transition: transform 0.22s ease;
	}
	.tdm-catmenu__backdrop {
		position: fixed;
		inset: 0;
		z-index: 100001;
		background: rgba(13, 36, 51, 0.45);
	}
	.tdm-catmenu.is-drawer-open .tdm-catmenu__backdrop {
		display: block;
	}
	.tdm-catmenu__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0.5rem 0.5rem 0.5rem 1.25rem;
		border-bottom: 1px solid var(--tdm-cm-line);
		font-size: 1.125rem;
	}
	.tdm-catmenu__close {
		width: 44px;
		height: 44px;
		font-size: 1.75rem !important;
		line-height: 1;
	}
	.tdm-catmenu__list {
		flex: 1;
		overflow: auto;
		overscroll-behavior: contain;
		padding: 0.5rem 0 1.5rem;
	}
	.tdm-catmenu__row {
		display: flex;
		align-items: center;
		border-bottom: 1px solid var(--tdm-cm-line);
	}
	.tdm-catmenu__link {
		flex: 1;
		padding: 0.85rem 1.25rem;
		font-weight: 600;
		font-size: 1rem;
	}
	.is-highlight .tdm-catmenu__link {
		color: var(--tdm-cm-sale);
	}
	.tdm-catmenu__toggle {
		width: 52px;
		height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-left: 1px solid var(--tdm-cm-line) !important;
	}
	.tdm-catmenu__panel {
		display: none;
		padding: 0.5rem 1.25rem 1rem;
		background: var(--tdm-cm-soft);
	}
	.tdm-catmenu__item.is-open > .tdm-catmenu__panel {
		display: block;
	}
	.tdm-catmenu__heading {
		display: block;
		padding: 0.55rem 0 0.25rem;
		font-weight: 700;
	}
	.tdm-catmenu__col ul,
	.tdm-catmenu__brands {
		display: flex;
		flex-wrap: wrap;
		gap: 0.4rem;
		padding-bottom: 0.4rem;
	}
	.tdm-catmenu__col li a,
	.tdm-catmenu__brands a {
		display: inline-block;
		padding: 0.4rem 0.75rem;
		border-radius: 999px;
		background: #fff;
		font-size: 0.875rem;
	}
	.tdm-catmenu__all {
		display: block;
		padding-top: 0.75rem;
		font-weight: 600;
		color: var(--tdm-cm-accent) !important;
	}
	html.tdm-lock,
	html.tdm-lock body {
		overflow: hidden;
	}
	/* A sticky header is its own layer: lift it while the drawer is open, over the bottom bar. */
	html.tdm-lock header.wp-block-template-part,
	html.tdm-lock .tdm-catmenu {
		z-index: 100000 !important;
	}
	.admin-bar .tdm-catmenu__drawer {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

/* ------------------------------------------------------------------ */
/* Mobile bar                                                          */
/* ------------------------------------------------------------------ */

.tdm-mobilebar {
	display: none;
}
@media (max-width: 781px) {
	.tdm-mobilebar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		height: calc(64px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: #fff;
		border-top: 1px solid var(--wp--preset--color--line, #e2e8ee);
		box-shadow: 0 -4px 16px rgba(13, 36, 51, 0.06);
		margin: 0 !important;
	}
	.tdm-mobilebar > a,
	.tdm-mobilebar > button {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 0;
		border: 0;
		background: none;
		color: var(--wp--preset--color--muted, #4b5b67);
		font: inherit;
		font-size: 11px;
		font-weight: 600;
		text-decoration: none;
		cursor: pointer;
	}
	.tdm-mobilebar > [aria-current="page"] {
		color: var(--wp--preset--color--primary, #0b4f71);
	}
}

/* Editor: the menu is shown as it renders, links are not followed */
.editor-styles-wrapper .tdm-catmenu a,
.editor-styles-wrapper .tdm-mobilebar a {
	pointer-events: none;
}
.editor-styles-wrapper .tdm-mobilebar {
	display: grid;
	position: static;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	max-width: 420px;
	height: 64px;
	border: 1px dashed #c9d6de;
}
.editor-styles-wrapper .tdm-card a,
.editor-styles-wrapper .tdm-tile,
.editor-styles-wrapper .tdm-brand {
	pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Product card (shared)                                               */
/* ------------------------------------------------------------------ */

.tdm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	height: 100%;
}
/* Photos fill the card: no frame, no side bars. */
.tdm-card__media {
	position: relative;
	display: block;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(13, 36, 51, 0.06);
}
.tdm-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.tdm-card:hover .tdm-card__media img {
	transform: scale(1.04);
}
.tdm-card.is-out .tdm-card__media img {
	opacity: 0.6;
	filter: grayscale(0.85);
}
.tdm-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}
.tdm-card__badge {
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--wp--preset--color--sale, #c2410c);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.tdm-card__badge.is-out {
	background: var(--wp--preset--color--ink, #0d2433);
}
.tdm-card__brand {
	margin-top: 0.3rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted, #4b5b67);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.tdm-card .tdm-card__name {
	margin: 0;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
}
.tdm-card__name a {
	color: var(--wp--preset--color--texto, #102a3a);
	text-decoration: none;
}
.tdm-card__name a:hover {
	color: var(--wp--preset--color--primary, #0b4f71);
}
.tdm-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}
.tdm-card__specs span {
	padding: 1px 8px;
	border-radius: 6px;
	background: #eef2f5;
	color: #3d505d;
	font-size: 0.75rem;
}
.tdm-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.3rem;
}
.tdm-card__buy {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}
.tdm-card__price {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink, #0d2433);
}
.tdm-card__price del {
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--wp--preset--color--muted, #4b5b67);
	margin-right: 0.25rem;
}
.tdm-card__price ins {
	text-decoration: none;
}
.tdm-card__stock {
	font-size: 0.75rem;
	font-weight: 600;
}
.tdm-card__stock::before {
	content: "\25CF\00a0";
}
.tdm-card__stock.is-in { color: var(--wp--preset--color--success, #1e7b3a); }
.tdm-card__stock.is-out { color: #b3261e; }
.tdm-card__stock.is-back { color: #9a5b00; }
.tdm-card__add {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary, #0b4f71);
	color: #fff !important;
	text-decoration: none !important;
	transition: background 0.15s, transform 0.15s;
}
.tdm-card__add:hover {
	background: var(--wp--preset--color--primary-dark, #083a54);
	transform: scale(1.05);
}
.tdm-card__add.loading {
	opacity: 0.5;
}
.tdm-card__add.added {
	background: var(--wp--preset--color--success, #1e7b3a);
}
.tdm-card .added_to_cart {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Product grid / carousel                                             */
/* ------------------------------------------------------------------ */

.tdm-pgrid__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}
.tdm-pgrid__tabs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.tdm-pgrid__tabs button {
	min-height: 40px;
	padding: 0 1.1rem;
	border-radius: 999px;
	border: 1px solid #c9d6de;
	background: #fff;
	color: var(--wp--preset--color--ink, #0d2433);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}
.tdm-pgrid__tabs button[aria-selected="true"] {
	background: var(--wp--preset--color--ink, #0d2433);
	border-color: var(--wp--preset--color--ink, #0d2433);
	color: #fff;
}
.tdm-pgrid .tdm-pgrid__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large, 1.75rem);
}
.tdm-pgrid__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.tdm-pgrid__more {
	font-weight: 600;
	margin-left: 0.5rem;
}
.tdm-pgrid__nav {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #c9d6de;
	background: #fff;
	color: var(--wp--preset--color--ink, #0d2433);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.tdm-pgrid__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--tdm-cols, 5), minmax(0, 1fr));
	gap: 1.5rem 1.25rem;
}
.tdm-pgrid__list > li {
	margin: 0;
}
.tdm-pgrid.is-carousel .tdm-pgrid__list {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	gap: 1.25rem;
	padding-bottom: 0.25rem;
}
.tdm-pgrid.is-carousel .tdm-pgrid__list::-webkit-scrollbar {
	display: none;
}
.tdm-pgrid.is-carousel .tdm-pgrid__list > li {
	flex: 0 0 calc((100% - (var(--tdm-cols, 5) - 1) * 1.25rem) / var(--tdm-cols, 5));
	scroll-snap-align: start;
}
.tdm-pgrid__empty {
	color: var(--wp--preset--color--muted, #4b5b67);
}
@media (max-width: 1100px) {
	.tdm-pgrid__list { grid-template-columns: repeat(min(var(--tdm-cols, 5), 4), minmax(0, 1fr)); }
	.tdm-pgrid.is-carousel .tdm-pgrid__list > li { flex-basis: calc((100% - 3 * 1.25rem) / 4); }
}
@media (max-width: 781px) {
	.tdm-pgrid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
	.tdm-pgrid.is-carousel .tdm-pgrid__list > li { flex-basis: 44%; }
	.tdm-pgrid__nav { display: none; }
	/* Tabs in one row that slides sideways */
	.tdm-pgrid__bar { flex-wrap: nowrap; }
	.tdm-pgrid__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
	.tdm-pgrid__tabs::-webkit-scrollbar { display: none; }
	.tdm-pgrid__tabs button { flex: none; min-height: 38px; padding: 0 0.9rem; }
	.tdm-pgrid__more { white-space: nowrap; font-size: 0.875rem; }
}

/* ------------------------------------------------------------------ */
/* Category tiles                                                      */
/* ------------------------------------------------------------------ */

.tdm-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--tdm-cols, 6), minmax(0, 1fr));
	gap: 1rem;
}
.tdm-tiles > li {
	margin: 0;
}
.tdm-tile {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	padding: 1.1rem;
	border-radius: 18px;
	background: var(--wp--preset--color--soft, #f2f6f8);
	color: var(--wp--preset--color--texto, #102a3a);
	text-decoration: none !important;
	transition: box-shadow 0.15s, transform 0.15s;
}
.tdm-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(13, 36, 51, 0.1);
}
.tdm-tile__img img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
	background: #fff;
}
.tdm-tile__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}
.tdm-tile__name {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.2rem;
	line-height: 1.15;
}
.tdm-tile__count,
.tdm-tile__hint {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #4b5b67);
}
.tdm-tiles.is-compact .tdm-tile {
	align-items: center;
	padding: 0.75rem 0.5rem;
	text-align: center;
}
.tdm-tiles.is-compact .tdm-tile__img img {
	width: 72px;
	margin-inline: auto;
}

/* "Linhas grandes": one row per category, big name. Colours follow the section (works on dark bands). */
.tdm-tiles.is-rows {
	display: block;
	border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.tdm-tiles.is-rows .tdm-tile {
	display: grid;
	grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) auto 96px 32px;
	grid-template-areas: "name hint count img arrow";
	align-items: center;
	gap: 0.75rem 2rem;
	padding: 1.25rem 0;
	border-radius: 0;
	background: none;
	color: inherit;
	border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.tdm-tiles.is-rows .tdm-tile:hover {
	transform: none;
	box-shadow: none;
}
.tdm-tiles.is-rows .tdm-tile__head {
	display: contents;
}
.tdm-tiles.is-rows .tdm-tile__name {
	grid-area: name;
	font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
	transition: color 0.2s;
}
.tdm-tiles.is-rows .tdm-tile:hover .tdm-tile__name {
	color: var(--wp--preset--color--accent, #19b3a6);
}
.tdm-tiles.is-rows .tdm-tile__hint {
	grid-area: hint;
	font-size: 1.05rem;
	color: inherit;
	opacity: 0.78;
}
.tdm-tiles.is-rows .tdm-tile__count {
	grid-area: count;
	font-size: 0.95rem;
	color: inherit;
	opacity: 0.78;
	white-space: nowrap;
}
.tdm-tiles.is-rows .tdm-tile__count strong {
	font-size: 1.25rem;
}
.tdm-tiles.is-rows .tdm-tile__img {
	grid-area: img;
}
.tdm-tiles.is-rows .tdm-tile__img img {
	width: 96px;
	height: 72px;
	aspect-ratio: auto;
	object-fit: cover;
}
.tdm-tiles.is-rows .tdm-tile__arrow {
	grid-area: arrow;
	display: flex;
	color: var(--wp--preset--color--accent, #19b3a6);
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tdm-tiles.is-rows .tdm-tile:hover .tdm-tile__arrow {
	transform: translateX(6px);
}
@media (max-width: 781px) {
	.tdm-tiles.is-rows .tdm-tile {
		grid-template-columns: minmax(0, 1fr) auto 24px;
		grid-template-areas: "name count arrow" "hint hint arrow";
		gap: 0.15rem 0.75rem;
		padding: 0.9rem 0;
		text-align: left;
	}
	.tdm-tiles.is-rows .tdm-tile__hint,
	.tdm-tiles.is-rows .tdm-tile__count {
		display: block;
	}
	.tdm-tiles.is-rows .tdm-tile__img {
		display: none;
	}
	.tdm-tiles.is-rows .tdm-tile__name {
		font-size: 1.9rem;
	}
	.tdm-tiles.is-rows .tdm-tile__hint {
		font-size: 0.875rem;
	}
}
.tdm-tiles.is-compact .tdm-tile__head {
	justify-content: center;
}
.tdm-tiles.is-compact .tdm-tile__count {
	display: none;
}
@media (max-width: 1100px) {
	.tdm-tiles { grid-template-columns: repeat(min(var(--tdm-cols, 6), 4), minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.tdm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
	.tdm-tile { padding: 0.65rem; gap: 0.3rem; text-align: center; }
	.tdm-tile__head { justify-content: center; }
	.tdm-tile__name { font-size: 0.95rem; }
	.tdm-tile__count, .tdm-tile__hint { display: none; }
}

/* ------------------------------------------------------------------ */
/* Brands                                                              */
/* ------------------------------------------------------------------ */

.tdm-brands {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--tdm-cols, 8), minmax(0, 1fr));
	gap: 0.75rem;
}
.tdm-brands > li {
	margin: 0;
}
.tdm-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	min-height: 84px;
	height: 100%;
	padding: 0.75rem;
	border: 1px solid var(--wp--preset--color--line, #e2e8ee);
	border-radius: 14px;
	color: #3d505d;
	text-decoration: none !important;
	text-align: center;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.tdm-brand:hover {
	border-color: var(--wp--preset--color--primary, #0b4f71);
	box-shadow: 0 6px 18px rgba(13, 36, 51, 0.08);
}
.tdm-brand__logo {
	max-height: 48px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
.tdm-brand__name {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.05rem;
	font-weight: 700;
}
.tdm-brand__count {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted, #4b5b67);
}
@media (max-width: 1100px) {
	.tdm-brands { grid-template-columns: repeat(min(var(--tdm-cols, 8), 5), minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.tdm-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tdm-brand { min-height: 64px; }
}

/* ------------------------------------------------------------------ */
/* Reviews                                                             */
/* ------------------------------------------------------------------ */

.tdm-stars {
	color: #a16207;
	letter-spacing: 1px;
}
.tdm-reviews__summary {
	margin: 0 0 1rem;
	color: #3d505d;
	font-size: 0.95rem;
}
.tdm-reviews__list {
	display: grid;
	grid-template-columns: repeat(var(--tdm-cols, 3), minmax(0, 1fr));
	gap: 1rem;
}
.tdm-review {
	margin: 0;
	padding: 1.5rem;
	border-radius: 18px;
	background: var(--wp--preset--color--soft, #f2f6f8);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.tdm-review blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1rem;
	line-height: 1.55;
}
.tdm-review figcaption {
	font-weight: 600;
	font-size: 0.875rem;
}
@media (max-width: 781px) {
	.tdm-reviews__list { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Contact form                                                        */
/* ------------------------------------------------------------------ */

.tdm-cform__form {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
.tdm-cform__form p {
	margin: 0;
}
.tdm-cform__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.9rem;
}
.tdm-cform label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
	font-size: 0.9rem;
}
.tdm-cform input[type="text"],
.tdm-cform input[type="email"],
.tdm-cform input[type="tel"],
.tdm-cform textarea,
.tdm-cform input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.9rem;
	border: 1px solid #c9d6de;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
	color: inherit;
}
.tdm-cform input:focus,
.tdm-cform textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary, #0b4f71);
	outline-offset: 1px;
	border-color: transparent;
}
.tdm-cform input[type="file"] {
	padding: 0.55rem;
	background: var(--wp--preset--color--soft, #f2f6f8);
}
.tdm-cform__help {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted, #4b5b67);
}
.tdm-cform__consent label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.875rem;
}
.tdm-cform__consent input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex: none;
}
.tdm-cform__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.tdm-cform__status {
	padding: 1rem 1.25rem;
	border-radius: 12px;
	background: #e7f5ec;
	color: #14532d;
	font-weight: 600;
}
.tdm-cform__error {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: #fdecea;
	color: #8a1c13;
	font-weight: 600;
}
.tdm-cform.is-sending button[type="submit"] {
	opacity: 0.6;
	pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Pages built with Flatsome's UX Builder (shortcodes)                 */
/* ------------------------------------------------------------------ */

.tdm-fs-section {
	margin-block: 1.5rem;
}
.tdm-fs-section.has-bg {
	background-size: cover;
	background-position: center;
	padding: 2rem;
	border-radius: 20px;
}
.tdm-fs-row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.5rem;
	margin-block: 1rem;
}
.tdm-fs-row.is-middle {
	align-items: center;
}
.tdm-fs-col {
	grid-column: span var(--tdm-span, 12);
	min-width: 0;
}
.tdm-fs-col > :first-child {
	margin-top: 0;
}
.tdm-fs-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	margin-block: 1rem 1.5rem;
	padding: 2.5rem 1.5rem;
	border-radius: 20px;
	overflow: hidden;
	background-color: var(--wp--preset--color--ink, #0d2433);
	background-size: cover;
	background-position: center;
	color: #fff;
}
.tdm-fs-banner__overlay {
	position: absolute;
	inset: 0;
}
.tdm-fs-banner__content {
	position: relative;
	max-width: 760px;
	text-align: center;
}
.tdm-fs-banner :where(h1, h2, h3, h4, p, a, .tdm-fs-text) {
	color: inherit !important;
}
.tdm-fs-text > :last-child {
	margin-bottom: 0;
}
.tdm-fs-video iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
}
.tdm-fs-image img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}
.tdm-fs-menu ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}
@media (max-width: 781px) {
	.tdm-fs-col {
		grid-column: span var(--tdm-span-sm, 12);
	}
	.tdm-fs-banner {
		min-height: 200px;
	}
}

/* ------------------------------------------------------------------ */
/* Product page: colours, format, specs, stock, bought together       */
/* ------------------------------------------------------------------ */

.tdm-editor-note {
	padding: 0.75rem 1rem;
	border: 1px dashed #c9d6de;
	border-radius: 8px;
	color: #4b5b67;
	font-size: 0.85rem;
}
.tdm-colors__label,
.tdm-format__label {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
}
.tdm-colors__label span {
	font-weight: 400;
}
.tdm-colors__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.tdm-colors__list li {
	margin: 0;
}
.tdm-swatch {
	position: relative;
	display: block;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
	transition: transform 0.12s;
}
a.tdm-swatch:hover {
	transform: scale(1.1);
}
.tdm-swatch.is-current {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp--preset--color--primary, #0b4f71);
}
.tdm-swatch.is-out::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: rgba(13, 36, 51, 0.6);
	transform: rotate(45deg);
}
.tdm-format__options {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}
.tdm-format__opt {
	flex: 1 1 130px;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid #c9d6de;
	border-radius: 14px;
	color: var(--wp--preset--color--texto, #102a3a);
	text-decoration: none !important;
	font-size: 0.875rem;
}
.tdm-format__opt span {
	color: var(--wp--preset--color--muted, #4b5b67);
	font-size: 0.8rem;
}
a.tdm-format__opt:hover {
	border-color: var(--wp--preset--color--primary, #0b4f71);
}
.tdm-format__opt.is-current {
	border: 2px solid var(--wp--preset--color--primary, #0b4f71);
	padding: calc(0.7rem - 1px) calc(0.9rem - 1px);
}
.tdm-format__opt.is-out {
	opacity: 0.6;
}
.tdm-specs.is-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.tdm-specs.is-chips li {
	margin: 0;
	padding: 0.3rem 0.7rem;
	border-radius: 8px;
	background: #eef2f5;
	color: #3d505d;
	font-size: 0.8125rem;
	font-weight: 500;
}
.tdm-specs.is-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.tdm-specs.is-table th,
.tdm-specs.is-table td {
	padding: 0.7rem 0;
	border: 0;
	border-bottom: 1px solid #eef2f5;
	text-align: left;
	vertical-align: top;
}
.tdm-specs.is-table th {
	width: 45%;
	font-weight: 500;
	color: var(--wp--preset--color--muted, #4b5b67);
}
.tdm-specs.is-table td {
	font-weight: 600;
}
/* "Grelha grande": the values large, the names small underneath. Colours follow the section. */
.tdm-specs.is-grid dl {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: 0;
	margin: 0;
	border-radius: 20px;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	overflow: hidden;
	clip-path: inset(0 round 20px);
}
.tdm-specs.is-grid dl > div {
	margin: 0 -1px -1px 0;
	box-shadow: inset -1px -1px 0 color-mix(in srgb, currentColor 18%, transparent);
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 0.35rem;
	padding: 1.4rem 1.4rem 1.5rem;
}
.tdm-specs.is-grid dt {
	font-size: 0.875rem;
	opacity: 0.75;
}
.tdm-specs.is-grid dd {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
.tdm-specs.is-grid .tdm-specs__pdf {
	color: inherit;
}
.tdm-specs__pdf {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1rem;
	font-weight: 600;
}
.tdm-stockline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.9rem;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
}
.tdm-stockline__status::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 0.45rem;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 1px;
}
.tdm-stockline.is-in .tdm-stockline__status { color: var(--wp--preset--color--success, #1e7b3a); }
.tdm-stockline.is-low .tdm-stockline__status { color: #9a5b00; }
.tdm-stockline.is-out .tdm-stockline__status { color: #b3261e; }
.tdm-stockline.is-back .tdm-stockline__status { color: #9a5b00; }
.tdm-stockline__pickup {
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-soft, #e6f4f3);
	color: var(--wp--preset--color--accent-dark, #0b6b63);
	font-size: 0.8rem;
}
.tdm-bundle {
	padding: 1.5rem;
	border-radius: 20px;
	background: var(--wp--preset--color--soft, #f2f6f8);
}
.tdm-bundle .tdm-bundle__title {
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
}
.tdm-bundle__text {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: #3d505d;
}
.tdm-bundle__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.tdm-bundle__list li {
	margin: 0;
}
.tdm-bundle__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem;
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	font-size: 0.875rem;
}
.tdm-bundle__item input {
	width: 20px;
	height: 20px;
	margin: 0;
	flex: none;
	accent-color: var(--wp--preset--color--primary, #0b4f71);
}
.tdm-bundle__img img {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 10px;
	background: var(--wp--preset--color--soft, #f2f6f8);
}
.tdm-bundle__name {
	flex: 1;
	min-width: 0;
}
.tdm-bundle__price {
	font-weight: 700;
	white-space: nowrap;
}
.tdm-bundle__price del {
	display: none;
}
.tdm-bundle__price ins {
	text-decoration: none;
}
.tdm-bundle__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}
.tdm-bundle__total strong {
	font-size: 1.25rem;
}
.tdm-bundle__add {
	min-height: 46px;
	padding: 0 1.3rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #0b4f71);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.tdm-bundle__add:disabled {
	opacity: 0.6;
}
.tdm-bundle__done {
	margin: 0.75rem 0 0;
	font-weight: 600;
	color: var(--wp--preset--color--success, #1e7b3a);
}

/* ------------------------------------------------------------------ */
/* Slider                                                              */
/* ------------------------------------------------------------------ */

.tdm-slider {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	background: var(--wp--preset--color--soft, #f2f6f8);
}
.tdm-slider__track {
	display: grid;
}
.tdm-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1rem, 4vw, 3rem);
	min-height: var(--tdm-slider-h, 420px);
	padding: clamp(1.5rem, 4vw, 3.5rem);
	background: var(--wp--preset--color--soft, #f2f6f8);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.tdm-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.5s ease;
}
.tdm-slide__media {
	order: 2;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tdm-slide__img {
	max-width: 100%;
	max-height: calc(var(--tdm-slider-h, 420px) - 4rem);
	width: auto;
	height: auto;
	object-fit: contain;
}
.tdm-slide__text {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	align-items: flex-start;
	max-width: 560px;
}
.tdm-slide__text > * {
	margin: 0 !important;
}
.tdm-slide__eyebrow {
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--primary, #0b4f71);
	font-size: 0.8rem;
	font-weight: 600;
}
.tdm-slide .tdm-slide__title {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink, #0d2433);
}
.tdm-slide__body {
	font-size: 1.05rem;
	color: #3d505d;
}
.tdm-slide__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}
.tdm-slide__btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #0b4f71);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.tdm-slide__btn2 {
	font-weight: 600;
}
.tdm-slide.is-dark .tdm-slide__title,
.tdm-slide.is-dark .tdm-slide__body,
.tdm-slide.is-dark .tdm-slide__btn2 {
	color: #fff;
}
.tdm-slide.is-dark .tdm-slide__btn {
	background: #fff;
	color: var(--wp--preset--color--ink, #0d2433) !important;
}
/* Picture behind the text */
.tdm-slide.is-cover {
	grid-template-columns: minmax(0, 1fr);
	position: relative;
}
.tdm-slide.is-cover .tdm-slide__media {
	position: absolute;
	inset: 0;
	order: 0;
}
.tdm-slide.is-cover .tdm-slide__img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
}
.tdm-slide.is-cover .tdm-slide__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(13, 36, 51, 0.82), rgba(13, 36, 51, 0.25));
}
.tdm-slide.is-cover .tdm-slide__text {
	position: relative;
}
.tdm-slider__controls {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 16px rgba(13, 36, 51, 0.12);
}
.tdm-slider__btn {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--ink, #0d2433);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.tdm-slider__btn:hover {
	background: var(--wp--preset--color--soft, #f2f6f8);
}
.tdm-slider__pause .i-play,
.tdm-slider.is-paused .tdm-slider__pause .i-pause {
	display: none;
}
.tdm-slider.is-paused .tdm-slider__pause .i-play {
	display: block;
}
.tdm-slider__dots {
	display: flex;
	gap: 0.35rem;
	padding: 0 0.25rem;
}
.tdm-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c9d6de;
	cursor: pointer;
	transition: width 0.2s;
}
.tdm-slider__dot.is-active {
	width: 24px;
	background: var(--wp--preset--color--primary, #0b4f71);
}
@media (max-width: 781px) {
	.tdm-slide {
		grid-template-columns: minmax(0, 1fr);
		align-content: start;
		padding-bottom: 4.5rem;
	}
	.tdm-slide__media {
		order: 0;
	}
	.tdm-slide__img {
		max-height: 200px;
	}
	.tdm-slider__controls {
		left: 50%;
		right: auto;
		transform: translateX(-50%);
	}
}

/* ------------------------------------------------------------------ */
/* Countdown                                                           */
/* ------------------------------------------------------------------ */

.tdm-countdown {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: 20px;
	background: var(--wp--preset--color--sale, #c2410c);
	color: #fff;
}
.tdm-countdown__text > p {
	margin: 0;
}
.tdm-countdown__title {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
}
.tdm-countdown__body {
	margin-top: 0.3rem !important;
	opacity: 0.9;
}
.tdm-countdown__clock {
	display: flex;
	gap: 0.5rem;
	margin: 0;
}
.tdm-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	padding: 0.5rem 0.4rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.tdm-countdown__unit strong {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.75rem;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}
.tdm-countdown .tdm-countdown__btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.4rem;
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--ink, #0d2433) !important;
	font-weight: 600;
	text-decoration: none !important;
}
.tdm-countdown.is-over {
	background: var(--wp--preset--color--soft, #f2f6f8);
	color: var(--wp--preset--color--texto, #102a3a);
}
@media (max-width: 781px) {
	.tdm-countdown__unit {
		min-width: 0;
		flex: 1;
	}
	.tdm-countdown__clock {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* FAQ, WhatsApp, announcement bar, tabs                               */
/* ------------------------------------------------------------------ */

.tdm-faq-item__answer > :first-child {
	margin-top: 0;
}
.tdm-wa__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0 1.3rem;
	border-radius: 999px;
	background: #167a41;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.tdm-wa__link:hover {
	background: #10612f;
}
.tdm-wa.is-floating {
	position: fixed;
	right: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom));
	z-index: 95;
	margin: 0 !important;
}
.tdm-wa.is-floating .tdm-wa__link {
	width: 56px;
	height: 56px;
	padding: 0;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.tdm-wa.is-floating .tdm-wa__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.has-tdm-mobile-bar .tdm-wa.is-floating {
	bottom: calc(80px + env(safe-area-inset-bottom));
}
@media (min-width: 782px) {
	.has-tdm-mobile-bar .tdm-wa.is-floating {
		bottom: 1.25rem;
	}
}
.tdm-announce__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 0;
}
.tdm-announce__item {
	margin: 0;
	text-align: center;
}
.tdm-announce__item + .tdm-announce__item::before {
	content: "•";
	margin: 0 0.75rem;
	opacity: 0.55;
}
.tdm-announce a {
	color: inherit;
	text-decoration: underline;
}
@media (max-width: 781px) {
	.tdm-announce__list {
		display: grid;
	}
	.tdm-announce__item {
		grid-area: 1 / 1;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.4s, visibility 0s 0.4s;
	}
	.tdm-announce__item.is-active {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.4s;
	}
	.tdm-announce__item + .tdm-announce__item::before {
		content: none;
	}
}
.tdm-tabs__list {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--line, #e2e8ee);
	overflow-x: auto;
	scrollbar-width: none;
}
.tdm-tabs__list button {
	flex: none;
	padding: 0.8rem 1rem;
	border: 0;
	background: none;
	color: var(--wp--preset--color--muted, #4b5b67);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.tdm-tabs__list button[aria-selected="true"] {
	color: var(--wp--preset--color--primary, #0b4f71);
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--primary, #0b4f71);
}
.tdm-tabs:not(.is-ready) > .tdm-tab::before {
	content: attr(data-title);
	display: block;
	margin: 1rem 0 0.5rem;
	font-weight: 700;
}
.tdm-tab__content > :first-child {
	margin-top: 0;
}
/* Editor */
.tdm-tab.is-editing {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px dashed #c9d6de;
	border-radius: 12px;
}
.tdm-tab__title-input {
	width: 100%;
	margin-bottom: 0.5rem;
	padding: 0.4rem 0.6rem;
	border: 1px solid #c9d6de;
	border-radius: 8px;
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Secção avançada                                                     */
/* ------------------------------------------------------------------ */

.tdm-sec {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--tdm-sec-mh, auto);
	isolation: isolate;
	overflow: hidden;
}
.tdm-sec.is-v-top { justify-content: flex-start; }
.tdm-sec.is-v-bottom { justify-content: flex-end; }
@media (max-width: 1024px) {
	.tdm-sec { min-height: var(--tdm-sec-mh-t, var(--tdm-sec-mh, auto)); }
}
@media (max-width: 767px) {
	.tdm-sec { min-height: var(--tdm-sec-mh-m, var(--tdm-sec-mh-t, var(--tdm-sec-mh, auto))); }
}
.tdm-sec__bg,
.tdm-sec__video,
.tdm-sec__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
}
.tdm-sec__bg {
	background-repeat: no-repeat;
}
.tdm-sec__bg[style*="background-size:auto"] {
	background-repeat: repeat;
}
.tdm-sec__bg.is-fixed {
	background-attachment: fixed;
}
@media (max-width: 1024px), (hover: none) {
	.tdm-sec__bg.is-fixed { background-attachment: scroll; }
}
.tdm-sec__video {
	object-fit: cover;
}
.tdm-sec__inner {
	position: relative;
	width: 100%;
	margin-inline: auto;
}
.tdm-sec__inner.is-w-normal { max-width: var(--wp--style--global--content-size, 860px); }
.tdm-sec__inner.is-w-wide { max-width: var(--wp--style--global--wide-size, 1280px); }
/* Text colour chosen on the section also applies to titles and links inside. */
.tdm-sec.has-text-color :where(h1, h2, h3, h4, h5, h6, p, li, a:not(.wp-element-button)) {
	color: inherit;
}
.tdm-sec.has-text-color h1,
.tdm-sec.has-text-color h2,
.tdm-sec.has-text-color h3,
.tdm-sec.has-text-color h4 {
	color: inherit;
}
.tdm-sec__inner > :first-child { margin-top: 0; }
.tdm-sec__inner > :last-child { margin-bottom: 0; }
.tdm-sec__shape {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 0;
	line-height: 0;
	pointer-events: none;
}
.tdm-sec__shape svg {
	display: block;
	width: 100%;
	height: 100%;
}
.tdm-sec__shape.is-bottom { bottom: -1px; }
.tdm-sec__shape.is-top { top: -1px; transform: rotate(180deg); }

/* ------------------------------------------------------------------ */
/* Grelha responsiva                                                   */
/* ------------------------------------------------------------------ */

.tdm-grid {
	display: grid;
	grid-template-columns: repeat(var(--tdm-g-d, 3), minmax(0, 1fr));
	gap: var(--tdm-g-gap, 24px);
	align-items: var(--tdm-g-al, stretch);
}
.tdm-grid > * {
	margin: 0 !important;
	min-width: 0;
}
@media (max-width: 1024px) {
	.tdm-grid { grid-template-columns: repeat(var(--tdm-g-t, 2), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.tdm-grid {
		grid-template-columns: repeat(var(--tdm-g-m, 1), minmax(0, 1fr));
		gap: var(--tdm-g-gap-m, 16px);
	}
}
.tdm-grid > .tdm-cell,
.tdm-grid > .wp-block-group.has-background {
	border-radius: 16px;
}
/* Editor: the appender sits in its own cell */
.tdm-grid > .block-list-appender {
	position: relative;
	align-self: center;
	justify-self: start;
}

/* ================================================================== */
/* 0.6.0 – content and shop blocks                                     */
/* ================================================================== */

.tdm-placeholder {
	margin: 0;
	padding: 1.25rem;
	border: 1px dashed #c9d6de;
	border-radius: 12px;
	color: var(--wp--preset--color--muted, #4b5b67);
	text-align: center;
}
html.tdm-noscroll {
	overflow: hidden;
}

/* Caixa com imagem ------------------------------------------------- */
.tdm-ibox {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 0 1px var(--wp--preset--color--line, #e2e8ee);
	transition: box-shadow 0.2s, transform 0.2s;
}
.tdm-ibox.is-link:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(13, 36, 51, 0.12);
}
.tdm-ibox__media {
	overflow: hidden;
}
.tdm-ibox__media img {
	display: block;
	width: 100%;
	aspect-ratio: var(--tdm-ibox-ratio, 4 / 3);
	height: auto;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.tdm-ibox.is-link:hover .tdm-ibox__media img {
	transform: scale(1.04);
}
.tdm-ibox__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.35rem 1.4rem;
}
.tdm-ibox__body > * {
	margin: 0;
}
.tdm-ibox.is-text-center .tdm-ibox__body {
	align-items: center;
	text-align: center;
}
.tdm-ibox .tdm-ibox__title {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.2rem;
	line-height: 1.2;
}
.tdm-ibox__link {
	color: inherit;
	text-decoration: none;
}
.tdm-ibox__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.tdm-ibox__text {
	color: var(--wp--preset--color--muted, #4b5b67);
}
.tdm-ibox__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: auto !important;
	padding-top: 0.25rem;
	color: var(--wp--preset--color--primary, #0b4f71);
	font-weight: 600;
}
.tdm-ibox.is-left {
	flex-direction: row;
}
.tdm-ibox.is-left .tdm-ibox__media {
	flex: 0 0 40%;
}
.tdm-ibox.is-left .tdm-ibox__media img {
	height: 100%;
	aspect-ratio: auto;
	min-height: 160px;
}
.tdm-ibox.is-overlay {
	min-height: 280px;
	justify-content: flex-end;
	color: #fff;
}
.tdm-ibox.is-overlay .tdm-ibox__media {
	position: absolute;
	inset: 0;
}
.tdm-ibox.is-overlay .tdm-ibox__media img {
	height: 100%;
	aspect-ratio: auto;
}
.tdm-ibox.is-overlay .tdm-ibox__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 36, 51, 0) 30%, rgba(13, 36, 51, 0.85));
}
.tdm-ibox.is-overlay .tdm-ibox__body {
	position: relative;
	flex: 0;
}
.tdm-ibox.is-overlay .tdm-ibox__text,
.tdm-ibox.is-overlay .tdm-ibox__more {
	color: #fff;
}
@media (max-width: 600px) {
	.tdm-ibox.is-left {
		flex-direction: column;
	}
	.tdm-ibox.is-left .tdm-ibox__media {
		flex-basis: auto;
	}
}

/* Contadores --------------------------------------------------------- */
.tdm-counters {
	display: grid;
	grid-template-columns: repeat(var(--tdm-cols, 3), minmax(0, 1fr));
	gap: 1.5rem;
	text-align: center;
}
.tdm-counter > p {
	margin: 0;
}
.tdm-counter__value {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	font-weight: 700;
	line-height: 1.05;
	color: var(--wp--preset--color--primary, #0b4f71);
	font-variant-numeric: tabular-nums;
}
.tdm-counters.has-text-color .tdm-counter__value {
	color: inherit;
}
.tdm-counter__label {
	margin-top: 0.35rem !important;
	color: var(--wp--preset--color--muted, #4b5b67);
}
.tdm-counters.has-text-color .tdm-counter__label {
	color: inherit;
	opacity: 0.85;
}
@media (max-width: 767px) {
	/* Two per row; an odd last one sits in the middle. */
	.tdm-counters {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.tdm-counter {
		flex: 0 0 calc(50% - 0.75rem);
	}
}

/* Passos --------------------------------------------------------------- */
.tdm-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
}
.tdm-steps.is-horizontal {
	grid-template-columns: repeat(var(--tdm-steps, 3), minmax(0, 1fr));
}
.tdm-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	margin: 0;
}
.tdm-step__marker {
	position: relative;
	z-index: 1;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary, #0b4f71);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.25rem;
	font-weight: 700;
	box-shadow: 0 0 0 6px var(--wp--preset--color--accent-soft, #e6f4f3);
}
.tdm-step__body > p {
	margin: 0;
}
.tdm-step__title {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.1rem;
	font-weight: 700;
}
.tdm-step__text {
	margin-top: 0.3rem !important;
	color: var(--wp--preset--color--muted, #4b5b67);
}
.tdm-steps.is-horizontal .tdm-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 24px;
	left: 64px;
	right: -0.75rem;
	border-top: 2px dashed #c9d6de;
}
.tdm-steps.is-vertical .tdm-step {
	flex-direction: row;
	gap: 1.1rem;
}
.tdm-steps.is-vertical .tdm-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 56px;
	bottom: -1.25rem;
	left: 23px;
	border-left: 2px dashed #c9d6de;
}
.tdm-steps.is-vertical .tdm-step__body {
	padding-top: 0.6rem;
}
@media (max-width: 767px) {
	.tdm-steps.is-horizontal {
		grid-template-columns: minmax(0, 1fr);
	}
	.tdm-steps.is-horizontal .tdm-step {
		flex-direction: row;
		gap: 1.1rem;
	}
	.tdm-steps.is-horizontal .tdm-step:not(:last-child)::after {
		top: 56px;
		bottom: -1.25rem;
		left: 23px;
		right: auto;
		border-top: 0;
		border-left: 2px dashed #c9d6de;
	}
	.tdm-steps.is-horizontal .tdm-step__body {
		padding-top: 0.6rem;
	}
}

/* Lista com ícones ---------------------------------------------------- */
.tdm-ilist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.tdm-ilist.is-inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
}
.tdm-ilist__item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0;
	line-height: 1.45;
}
.tdm-ilist__item .tdm-icon {
	flex: none;
	width: var(--tdm-il-size, 20px);
	height: var(--tdm-il-size, 20px);
	margin-top: calc((1.45em - var(--tdm-il-size, 20px)) / 2);
	color: var(--tdm-il-color, var(--wp--preset--color--accent, #19b3a6));
}
.tdm-ilist__item a {
	color: inherit;
}

/* Antes e depois ------------------------------------------------------ */
.tdm-ba {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	aspect-ratio: var(--tdm-ba-ratio, 4 / 3);
	user-select: none;
	background: var(--wp--preset--color--soft, #f2f6f8);
}
.tdm-ba__img,
.tdm-ba__before img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.tdm-ba__before {
	position: absolute;
	inset: 0;
	clip-path: inset(0 calc(100% - var(--tdm-ba, 50%)) 0 0);
}
.tdm-ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--tdm-ba, 50%);
	width: 3px;
	transform: translateX(-50%);
	background: #fff;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}
.tdm-ba__handle .tdm-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	padding: 10px;
	box-sizing: border-box;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff;
	color: var(--wp--preset--color--ink, #0d2433);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.tdm-ba__label {
	position: absolute;
	top: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(13, 36, 51, 0.7);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	pointer-events: none;
}
.tdm-ba__label.is-before { left: 12px; }
.tdm-ba__label.is-after { right: 12px; }
.tdm-ba__range {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
	touch-action: pan-y;
}
.tdm-ba:focus-within .tdm-ba__handle {
	outline: 2px solid var(--wp--preset--color--accent, #19b3a6);
}

/* Barras de progresso ------------------------------------------------- */
.tdm-progress {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.tdm-progress__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 0.4rem;
	font-weight: 600;
}
.tdm-progress__value {
	color: var(--wp--preset--color--muted, #4b5b67);
	font-variant-numeric: tabular-nums;
}
.tdm-progress__track {
	height: 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--soft, #f2f6f8);
	overflow: hidden;
}
.tdm-progress__fill {
	display: block;
	height: 100%;
	width: var(--tdm-v, 0%);
	border-radius: inherit;
	background: var(--tdm-bar, linear-gradient(90deg, var(--wp--preset--color--primary, #0b4f71), var(--wp--preset--color--accent, #19b3a6)));
	transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Only empty before animating when the script runs (never in the editor). */
.tdm-js .tdm-progress:not(.is-in) .tdm-progress__fill {
	width: 0;
}

/* Tabela comparativa -------------------------------------------------- */
.tdm-cmp__scroll {
	overflow-x: auto;
	border-radius: 16px;
	box-shadow: 0 0 0 1px var(--wp--preset--color--line, #e2e8ee);
}
.tdm-cmp table {
	width: 100%;
	min-width: 520px;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.tdm-cmp th,
.tdm-cmp td {
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line, #e2e8ee);
	text-align: center;
	vertical-align: middle;
}
.tdm-cmp tbody th {
	text-align: left;
	font-weight: 600;
}
.tdm-cmp thead th {
	background: var(--wp--preset--color--soft, #f2f6f8);
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.05rem;
}
.tdm-cmp thead th:first-child {
	text-align: left;
	font-family: inherit;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted, #4b5b67);
}
.tdm-cmp tr:last-child > * {
	border-bottom: 0;
}
.tdm-cmp .is-hl {
	background: var(--wp--preset--color--accent-soft, #e6f4f3);
}
.tdm-cmp thead .is-hl {
	background: var(--wp--preset--color--primary, #0b4f71);
	color: #fff;
}
.tdm-cmp__tag {
	display: block;
	margin-bottom: 2px;
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.85;
}
.tdm-cmp__yes .tdm-icon {
	color: #1e7b3a;
	vertical-align: middle;
}
.tdm-cmp__no .tdm-icon {
	color: #b42318;
	vertical-align: middle;
}
.tdm-cmp__btn {
	white-space: nowrap;
}

/* Vídeo em pop-up and the shared viewer -------------------------------- */
.tdm-vpop__open {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font: inherit;
	color: inherit;
}
.tdm-vpop.is-thumb .tdm-vpop__thumb {
	display: block;
	overflow: hidden;
	border-radius: 18px;
	background: var(--wp--preset--color--ink, #0d2433);
}
.tdm-vpop.is-thumb .tdm-vpop__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: var(--tdm-vpop-ratio, 16 / 9);
	height: auto;
	object-fit: cover;
	opacity: 0.9;
	transition: transform 0.4s, opacity 0.2s;
}
.tdm-vpop.is-thumb .tdm-vpop__open:hover img {
	transform: scale(1.03);
	opacity: 1;
}
.tdm-vpop.is-thumb .tdm-vpop__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.3rem 0.7rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--wp--preset--color--ink, #0d2433);
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.tdm-vpop.is-thumb .tdm-vpop__play .tdm-icon {
	color: var(--wp--preset--color--sale, #c2410c);
}
.tdm-vpop.is-button .tdm-vpop__open {
	display: inline-flex;
	width: auto;
}
.tdm-vpop.is-button .tdm-vpop__play {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0 1.3rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #0b4f71);
	color: #fff;
	font-weight: 600;
}
.tdm-viewer {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(6, 18, 26, 0.92);
	color: #fff;
}
.tdm-viewer::backdrop {
	background: transparent;
}
.tdm-viewer__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 56px 16px;
	box-sizing: border-box;
}
.tdm-viewer__stage > img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
}
.tdm-viewer__video {
	width: min(1100px, 100%);
	aspect-ratio: 16 / 9;
}
.tdm-viewer__video iframe,
.tdm-viewer__video video {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 12px;
	background: #000;
}
.tdm-viewer__close,
.tdm-viewer__prev,
.tdm-viewer__next {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
}
.tdm-viewer__close:hover,
.tdm-viewer__prev:hover,
.tdm-viewer__next:hover {
	background: rgba(255, 255, 255, 0.28);
}
.tdm-viewer__close { top: 12px; right: 12px; }
.tdm-viewer__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.tdm-viewer__next { right: 12px; top: 50%; transform: translateY(-50%); }
.tdm-viewer__prev[hidden],
.tdm-viewer__next[hidden],
.tdm-viewer__caption[hidden] { display: none; }
.tdm-viewer__caption {
	position: absolute;
	left: 50%;
	bottom: 14px;
	max-width: 90%;
	margin: 0;
	transform: translateX(-50%);
	text-align: center;
	font-size: 0.95rem;
}

/* Mapa ------------------------------------------------------------------ */
.tdm-map {
	overflow: hidden;
	border-radius: 18px;
	background: var(--wp--preset--color--soft, #f2f6f8);
}
.tdm-map iframe {
	display: block;
	width: 100%;
	height: var(--tdm-map-h, 380px);
	border: 0;
}
.tdm-map__consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: var(--tdm-map-h, 380px);
	padding: 1.5rem;
	box-sizing: border-box;
	text-align: center;
	background: linear-gradient(135deg, #eef4f7, #e2eef0);
}
.tdm-map__consent > p {
	margin: 0;
}
.tdm-map__consent .tdm-icon {
	color: var(--wp--preset--color--primary, #0b4f71);
}
.tdm-map__address {
	font-weight: 700;
}
.tdm-map__note {
	color: var(--wp--preset--color--muted, #4b5b67);
	font-size: 0.875rem;
}
.tdm-map__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
	margin-top: 0.6rem !important;
}

/* Galeria ---------------------------------------------------------------- */
.tdm-gal__item {
	margin: 0;
}
.tdm-gal__link {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	cursor: zoom-in;
}
.tdm-gal__link img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--tdm-gal-ratio, 1 / 1);
	object-fit: cover;
	transition: transform 0.4s ease;
}
.tdm-gal__link:hover img {
	transform: scale(1.05);
}
.tdm-gal figcaption {
	margin-top: 0.4rem;
	color: var(--wp--preset--color--muted, #4b5b67);
	font-size: 0.85rem;
}

/* Pop-up ----------------------------------------------------------------- */
.tdm-pop__dialog {
	width: min(var(--tdm-pop-w, 560px), calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: transparent;
	overflow: visible;
}
.tdm-pop__dialog::backdrop {
	background: rgba(6, 18, 26, 0.6);
	backdrop-filter: blur(2px);
}
.tdm-pop__dialog[open] {
	animation: tdm-pop-in 0.25s ease;
}
@keyframes tdm-pop-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
}
.tdm-pop__box {
	position: relative;
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 2rem;
	border-radius: 20px;
	background: #fff;
	box-sizing: border-box;
}
.tdm-pop__box > .tdm-pop__close + * {
	margin-top: 0;
}
.tdm-pop__box > :last-child {
	margin-bottom: 0;
}
.tdm-pop__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--soft, #f2f6f8);
	color: var(--wp--preset--color--ink, #0d2433);
	cursor: pointer;
}
.tdm-pop-editor {
	padding: 1rem;
	border: 2px dashed #c9d6de;
	border-radius: 16px;
	background: rgba(6, 18, 26, 0.04);
}
.tdm-pop-editor__note {
	margin: 0 0 0.75rem !important;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted, #4b5b67);
}
.tdm-pop-editor .tdm-pop__box {
	margin: 0 auto;
	max-height: none;
	box-shadow: 0 10px 30px rgba(13, 36, 51, 0.15);
}

/* Botão com ícone ------------------------------------------------------- */
.tdm-btnw {
	display: flex;
}
.tdm-btnw.is-center { justify-content: center; }
.tdm-btnw.is-right { justify-content: flex-end; }
.tdm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0 1.4rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #0b4f71);
	color: #fff !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.tdm-btn:hover { transform: translateY(-1px); }
.tdm-btn.is-s { min-height: 38px; padding: 0 1rem; font-size: 0.9rem; }
.tdm-btn.is-l { min-height: 56px; padding: 0 1.9rem; font-size: 1.1rem; }
.tdm-btn.is-primary:hover { background: var(--wp--preset--color--primary-dark, #083b55); }
.tdm-btn.is-accent { background: var(--wp--preset--color--accent, #19b3a6); color: var(--wp--preset--color--ink, #0d2433) !important; }
.tdm-btn.is-dark { background: var(--wp--preset--color--ink, #0d2433); }
.tdm-btn.is-outline { background: transparent; border-color: currentColor; color: var(--wp--preset--color--primary, #0b4f71) !important; }
.tdm-btn.is-outline:hover { background: var(--wp--preset--color--soft, #f2f6f8); }
.tdm-btn.is-white { background: #fff; color: var(--wp--preset--color--ink, #0d2433) !important; }
.tdm-btn.is-sale { background: var(--wp--preset--color--sale, #c2410c); }
.tdm-btn.is-whatsapp { background: #167a41; }
.tdm-btn.is-whatsapp:hover { background: #10612f; }
@media (max-width: 767px) {
	.tdm-btnw.is-full-m .tdm-btn { width: 100%; }
}

/* Banner de categoria ---------------------------------------------------- */
.tdm-catb {
	position: relative;
	display: flex;
	min-height: var(--tdm-catb-h, 260px);
	overflow: hidden;
	border-radius: 20px;
	background: var(--wp--preset--color--soft, #f2f6f8);
	color: var(--wp--preset--color--ink, #0d2433);
	text-decoration: none !important;
}
.tdm-catb__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.tdm-catb:hover .tdm-catb__media img {
	transform: scale(1.05);
}
.tdm-catb__body {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.35rem;
	padding: 1.5rem;
}
.tdm-catb__count {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--wp--preset--color--primary, #0b4f71);
	font-size: 0.75rem;
	font-weight: 700;
}
.tdm-catb__title {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
	font-weight: 700;
	line-height: 1.1;
}
.tdm-catb__text {
	max-width: 44ch;
	opacity: 0.9;
}
.tdm-catb__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.4rem;
	font-weight: 600;
}
.tdm-catb.is-overlay .tdm-catb__media {
	position: absolute;
	inset: 0;
}
.tdm-catb.is-overlay:not(.no-img) {
	color: #fff;
}
.tdm-catb.is-overlay:not(.no-img) .tdm-catb__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 36, 51, 0) 25%, rgba(13, 36, 51, 0.85));
}
.tdm-catb.is-overlay .tdm-catb__body {
	width: 100%;
}
.tdm-catb.is-split .tdm-catb__media {
	flex: 0 0 45%;
	order: 2;
}
.tdm-catb.is-split .tdm-catb__body {
	flex: 1;
	justify-content: center;
}
@media (max-width: 600px) {
	.tdm-catb.is-split {
		flex-direction: column;
	}
	.tdm-catb.is-split .tdm-catb__media {
		flex-basis: 180px;
		order: 0;
	}
}

/* Destaque de produto --------------------------------------------------- */
.tdm-phl {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 4vw, 3rem);
	align-items: center;
}
.tdm-phl.is-img-right .tdm-phl__media {
	order: 2;
}
.tdm-phl__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 24px;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(13, 36, 51, 0.06);
}
.tdm-phl__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.tdm-phl.is-out .tdm-phl__media img {
	filter: grayscale(0.85);
	opacity: 0.65;
}
.tdm-phl__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
}
.tdm-phl__body > * {
	margin: 0;
}
.tdm-phl .tdm-phl__name {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
	line-height: 1.1;
}
.tdm-phl__name a {
	color: inherit;
	text-decoration: none;
}
.tdm-phl__price {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.5rem;
	font-weight: 700;
}
.tdm-phl__price del {
	margin-right: 0.4rem;
	color: var(--wp--preset--color--muted, #4b5b67);
	font-size: 1rem;
	font-weight: 400;
}
.tdm-phl__price ins {
	text-decoration: none;
	color: var(--wp--preset--color--sale, #c2410c);
}
.tdm-phl__desc {
	color: var(--wp--preset--color--muted, #4b5b67);
}
.tdm-phl__desc p {
	margin: 0;
}
.tdm-phl__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 0.4rem !important;
}
.tdm-phl__more,
.tdm-phl .added_to_cart {
	font-weight: 600;
}
@media (max-width: 767px) {
	.tdm-phl {
		grid-template-columns: minmax(0, 1fr);
	}
	.tdm-phl.is-img-right .tdm-phl__media {
		order: 0;
	}
}

/* Vistos recentemente --------------------------------------------------- */
.tdm-recent__title {
	margin: 0 0 1rem;
	font-size: 1.35rem;
}
.tdm-recent__list {
	list-style: none;
	margin: 0;
	padding: 0 0 0.5rem;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(150px, 210px);
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.tdm-recent__list .tdm-card {
	scroll-snap-align: start;
}
.tdm-recent__list .tdm-card__name {
	color: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.3;
	text-decoration: none;
}
.tdm-recent__list .tdm-card__price {
	font-weight: 700;
}
.tdm-recent__list .tdm-card__price del {
	margin-right: 0.3rem;
	color: var(--wp--preset--color--muted, #4b5b67);
	font-weight: 400;
}
.tdm-recent__list .tdm-card__price ins {
	text-decoration: none;
	color: var(--wp--preset--color--sale, #c2410c);
}

/* Selos de confiança ---------------------------------------------------- */
.tdm-trust {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}
.tdm-trust__item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
}
.tdm-trust__item .tdm-icon {
	flex: none;
	color: var(--wp--preset--color--primary, #0b4f71);
}
.tdm-trust.has-text-color .tdm-trust__item .tdm-icon {
	color: inherit;
}
.tdm-trust__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}
.tdm-trust__text strong {
	font-size: 0.92rem;
}
.tdm-trust__text span {
	color: var(--wp--preset--color--muted, #4b5b67);
	font-size: 0.8rem;
}
.tdm-trust.is-boxed {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 0.75rem;
}
.tdm-trust.is-boxed .tdm-trust__item {
	padding: 0.9rem 1rem;
	border-radius: 14px;
	background: var(--wp--preset--color--soft, #f2f6f8);
}
.tdm-trust.is-compact {
	gap: 0.4rem 1rem;
	font-size: 0.85rem;
}
.tdm-trust.is-compact .tdm-trust__text strong {
	font-weight: 600;
	font-size: inherit;
}

/* Newsletter ----------------------------------------------------------- */
.tdm-nl {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 1rem 2rem;
	align-items: center;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: 22px;
	background: var(--wp--preset--color--accent-soft, #e6f4f3);
}
.tdm-nl.is-stacked {
	grid-template-columns: minmax(0, 1fr);
	text-align: center;
	justify-items: center;
}
.tdm-nl__text > * {
	margin: 0;
}
.tdm-nl .tdm-nl__title {
	font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem);
	line-height: 1.15;
}
.tdm-nl__text p {
	margin-top: 0.4rem;
	opacity: 0.85;
}
.tdm-nl__form {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	width: 100%;
	max-width: 520px;
	margin: 0;
}
.tdm-nl__row {
	display: flex;
	gap: 0.5rem;
	padding: 6px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--wp--preset--color--line, #e2e8ee);
}
.tdm-nl__row input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 0 1rem;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--wp--preset--color--ink, #0d2433);
}
.tdm-nl__row input[type="email"]:focus {
	outline: none;
}
.tdm-nl__row:focus-within {
	box-shadow: 0 0 0 2px var(--wp--preset--color--primary, #0b4f71);
}
.tdm-nl__row .wp-element-button {
	flex: none;
	min-height: 44px;
	padding: 0 1.3rem;
	border-radius: 999px;
}
.tdm-nl__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.8rem;
	line-height: 1.4;
	text-align: left;
}
.tdm-nl__consent input {
	margin-top: 2px;
	accent-color: var(--wp--preset--color--primary, #0b4f71);
}
.tdm-nl__hp {
	position: absolute !important;
	left: -9999px;
}
.tdm-nl__error {
	margin: 0;
	color: #b42318;
	font-size: 0.875rem;
	font-weight: 600;
}
.tdm-nl__done {
	margin: 0;
	font-weight: 600;
	color: #1e7b3a;
}
.tdm-nl.is-sending .tdm-nl__form {
	opacity: 0.6;
	pointer-events: none;
}
@media (max-width: 767px) {
	.tdm-nl {
		grid-template-columns: minmax(0, 1fr);
	}
	.tdm-nl__row {
		flex-direction: column;
		border-radius: 18px;
	}
	.tdm-nl__row input[type="email"] {
		min-height: 44px;
	}
}
