/**
 * Skins "Card de Produto" — BASE comum do grupo (carregada como dependência de cada skin).
 *
 * Tokens (sobrescrevíveis pelo widget/tema):
 *   --dshe-rcard-accent  cor de destaque (data, ícones, links)
 *   --dshe-rcard-ink     texto principal
 *   --dshe-rcard-muted   texto secundário
 *   --dshe-rcard-line    linhas/bordas
 *   --dshe-rcard-paper   fundo neutro
 *   --dshe-rcard-dark    fundo escuro (lista de espera)
 *   --dshe-rcard-danger  "últimas vagas"
 *
 * Estrutura: .dshe-rcard > .dshe-rcard__link (bloco inteiro clicável) > partes (__image, __badges,
 * __date, __copy, __title, __place, __facts, __bottom, __price, __arrow). Cada skin só define o layout.
 */
.dshe-rcard {
	--dshe-rcard-accent-v: var(--dshe-rcard-accent, var(--e-global-color-accent, #214dff));
	--dshe-rcard-ink-v: var(--dshe-rcard-ink, #15181c);
	--dshe-rcard-muted-v: var(--dshe-rcard-muted, #687079);
	--dshe-rcard-line-v: var(--dshe-rcard-line, #cfd3d8);
	--dshe-rcard-paper-v: var(--dshe-rcard-paper, #f4f5f4);
	--dshe-rcard-dark-v: var(--dshe-rcard-dark, #262a30);
	--dshe-rcard-danger-v: var(--dshe-rcard-danger, #c62828);
	min-width: 0;
	position: relative;
	margin: 0;
}

.dshe-rcard *,
.dshe-rcard *::before,
.dshe-rcard *::after {
	box-sizing: border-box;
}

.dshe-rcard__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--dshe-rcard-ink-v);
	text-decoration: none;
	position: relative;
	transition: transform 240ms ease, box-shadow 240ms ease;
}

.dshe-rcard__link:hover,
.dshe-rcard__link:focus {
	color: var(--dshe-rcard-ink-v);
	text-decoration: none;
}

.dshe-rcard__link:focus-visible {
	outline: 3px solid var(--dshe-rcard-accent-v);
	outline-offset: 5px;
}

.dshe-rcard__title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.05;
	text-transform: uppercase;
	margin: 8px 0 10px;
	color: inherit;
}

.dshe-rcard p {
	margin: 0;
}

.dshe-rcard img.dshe-rcard__img,
.dshe-rcard__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
	max-width: none;
	border-radius: 0;
}

.dshe-rcard__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1.5;
}

/* Camada de overlay sobre a imagem (controle "Camada de Overlay" do widget → background do ::before). */
.dshe-rcard__image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	transition: background 240ms ease, opacity 240ms ease;
}

.dshe-rcard__category {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1.3px;
	font-weight: 700;
	color: var(--dshe-rcard-accent-v);
}

.dshe-rcard__place {
	font-size: 11px;
	color: var(--dshe-rcard-muted-v);
	line-height: 1.5;
}

.dshe-rcard__desc {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--dshe-rcard-muted-v);
}

/* Badges */
.dshe-rcard__badges {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	z-index: 2;
	justify-content: flex-end;
	max-width: calc(100% - 24px);
}

.dshe-rcard__status {
	padding: 7px 8px;
	white-space: nowrap;
	font-size: 9px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: var(--dshe-rcard-accent-v);
	border: 1px solid transparent;
}

.dshe-rcard__status--last {
	background: var(--dshe-rcard-danger-v);
}

.dshe-rcard__status--wait {
	background: var(--dshe-rcard-dark-v);
}

/* Data */
.dshe-rcard__date {
	background: var(--dshe-rcard-accent-v);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 10px 12px;
	border: 1px solid transparent;
}

.dshe-rcard__date small {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
}

.dshe-rcard__date b {
	font-size: 40px;
	font-weight: 600;
	line-height: .9;
}

.dshe-rcard__date>span {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
}

.dshe-rcard__date.is-wait {
	background: var(--dshe-rcard-dark-v);
}

/* Fatos */
.dshe-rcard__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	font-size: 11px;
	margin-top: 20px;
}

.dshe-rcard__fact {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.dshe-rcard__fact svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: currentColor;
	color: var(--dshe-rcard-accent-v);
}

.dshe-rcard__fact .dsh-i {
	font-size: 16px;
	flex-shrink: 0;
	color: var(--dshe-rcard-accent-v);
}

/* Rodapé / preço */
.dshe-rcard__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 20px;
}

.dshe-rcard__arrow {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	fill: currentColor;
	color: var(--dshe-rcard-accent-v);
	transition: transform 240ms ease;
}

.dshe-rcard__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 5px;
}

.dshe-rcard__price small {
	font-size: 10px;
	color: var(--dshe-rcard-muted-v);
}

.dshe-rcard__price small:first-child {
	flex-basis: 100%;
}

.dshe-rcard__price strong {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
}

.dshe-rcard__price--wait strong {
	font-size: 16px;
}

.dshe-rcard__action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: var(--dshe-rcard-accent-v);
	font-size: 12px;
	font-weight: 600;
}

.dshe-rcard__action .dshe-rcard__arrow {
	width: 20px;
	height: 20px;
}

@media (hover: hover) and (pointer: fine) {
	.dshe-rcard__link:hover {
		transform: translateY(-5px);
	}

	.dshe-rcard__link:hover img {
		transform: scale(1.05);
	}

	.dshe-rcard__link:hover .dshe-rcard__arrow {
		transform: translate(3px, -3px);
	}
}

@media (max-width: 600px) {
	.dshe-rcard__title {
		font-size: 26px;
	}

	.dshe-rcard__image {
		aspect-ratio: 1.6;
	}
}

@media (prefers-reduced-motion: reduce) {

	.dshe-rcard__link,
	.dshe-rcard img,
	.dshe-rcard__arrow {
		transition: none;
	}

	.dshe-rcard__link:hover,
	.dshe-rcard__link:hover img,
	.dshe-rcard__link:hover .dshe-rcard__arrow {
		transform: none;
	}
}

/* =========================================================================================================
 * HORIZONTAL (skins 05 Foto Destaque, 06 Imersivo, 07 Bilhete) — `.dshe-rcard--horizontal`: card largo em
 * 3 colunas: __image | __copy | __bottom (custo). Protótipo codex v7 › agenda.html `.agenda-variant`.
 * Mapa de cores: amarelo → accent (texto branco) · ink → ink · muted → muted · line → line ·
 * "últimas vagas" → danger · lista de espera / fundos escuros → dark · fundo do card #fff.
 * Cada skin só troca a grade e os acentos; a lista (1 coluna) vem da classe da grade da skin.
 * ======================================================================================================= */
.dshe-rcard--horizontal .dshe-rcard__link {
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(230px, 36%) minmax(0, 1fr) 200px;
	min-height: 245px;
	background: #fff;
	border: 1px solid var(--dshe-rcard-line-v);
	transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.dshe-rcard--horizontal .dshe-rcard__image {
	aspect-ratio: auto;
	min-height: 245px;
	background: var(--dshe-rcard-dark-v);
}

.dshe-rcard--horizontal .dshe-rcard__image img {
	position: absolute;
	inset: 0;
	transition: transform 550ms ease;
}

.dshe-rcard--horizontal .dshe-rcard__image::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	z-index: 1;
	background: linear-gradient(transparent, rgba(0, 0, 0, .33));
	pointer-events: none;
}

/* Data: dia + mês + ano em linha, bloco na cor de destaque (lista de espera: dark — base). */
.dshe-rcard--horizontal .dshe-rcard__date {
	align-items: baseline;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 6px;
	width: max-content;
	padding: 12px 16px;
	z-index: 2;
}

.dshe-rcard--horizontal .dshe-rcard__date b {
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.06em;
}

.dshe-rcard--horizontal .dshe-rcard__date>span {
	font-size: 12px;
	font-weight: 800;
}

.dshe-rcard--horizontal .dshe-rcard__year {
	letter-spacing: 0;
}

/* Selos (base: destaque · últimas vagas = danger · lista de espera = dark). */
.dshe-rcard--horizontal .dshe-rcard__badges {
	top: 16px;
	right: 16px;
}

.dshe-rcard--horizontal .dshe-rcard__status {
	padding: 6px 10px;
	font-weight: 800;
}

/* Leitura. */
.dshe-rcard--horizontal .dshe-rcard__copy {
	align-self: center;
	min-width: 0;
	padding: 30px 28px;
}

.dshe-rcard--horizontal .dshe-rcard__place {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 10px;
}

.dshe-rcard--horizontal .dshe-rcard__place-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	fill: currentColor;
}

.dshe-rcard--horizontal .dshe-rcard__title {
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -.05em;
	margin: 13px 0 19px;
}

.dshe-rcard--horizontal .dshe-rcard__desc {
	margin: -8px 0 16px;
}

.dshe-rcard--horizontal .dshe-rcard__facts {
	gap: 8px 20px;
	margin: 0;
}

.dshe-rcard--horizontal .dshe-rcard__fact svg {
	width: 17px;
	height: 17px;
}

.dshe-rcard--horizontal .dshe-rcard__fact .dsh-i {
	font-size: 17px;
}

.dshe-rcard--horizontal .dshe-rcard__category {
	display: block;
	margin-top: 22px;
	font-size: 8px;
	letter-spacing: .09em;
	color: var(--dshe-rcard-muted-v);
}

/* Custo + ação. */
.dshe-rcard--horizontal .dshe-rcard__bottom {
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	align-self: stretch;
	gap: 24px;
	min-width: 0;
	margin: 0;
	padding: 26px 24px;
	border-left: 1px solid var(--dshe-rcard-line-v);
}

.dshe-rcard--horizontal .dshe-rcard__price {
	display: block;
}

.dshe-rcard--horizontal .dshe-rcard__price small {
	display: block;
	font-size: 10px;
}

.dshe-rcard--horizontal .dshe-rcard__price small:last-child:not(:first-child) {
	font-size: 9px;
}

.dshe-rcard--horizontal .dshe-rcard__price strong {
	display: block;
	margin: 4px 0;
	font-size: 29px;
	font-weight: 800;
	letter-spacing: -.05em;
}

.dshe-rcard--horizontal .dshe-rcard__action {
	gap: 12px;
	padding-top: 18px;
	border-top: 1px solid var(--dshe-rcard-line-v);
	font-size: 10px;
	font-weight: 800;
	color: var(--dshe-rcard-ink-v);
}

.dshe-rcard--horizontal .dshe-rcard__action .dshe-rcard__arrow {
	width: 20px;
	height: 20px;
	color: currentColor;
	transition: transform 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.dshe-rcard--horizontal .dshe-rcard__link:hover {
		transform: translateY(-4px);
		border-color: var(--dshe-rcard-muted-v);
		box-shadow: 0 16px 35px rgba(17, 23, 18, .09);
	}

	.dshe-rcard--horizontal .dshe-rcard__link:hover img {
		transform: scale(1.035);
	}

	.dshe-rcard--horizontal .dshe-rcard__link:hover .dshe-rcard__arrow {
		transform: translateX(4px);
	}
}

@media (max-width: 1100px) {
	.dshe-rcard--horizontal .dshe-rcard__link {
		grid-template-columns: 30% minmax(0, 1fr) 175px;
	}

	.dshe-rcard--horizontal .dshe-rcard__copy {
		padding: 25px 20px;
	}

	.dshe-rcard--horizontal .dshe-rcard__bottom {
		padding: 24px 18px;
	}

	.dshe-rcard--horizontal .dshe-rcard__title {
		font-size: 21px;
	}

	.dshe-rcard--horizontal .dshe-rcard__facts {
		gap: 8px 13px;
	}
}

@media (max-width: 800px) {
	.dshe-rcard--horizontal .dshe-rcard__link {
		grid-template-columns: 38% minmax(0, 1fr);
		min-height: 260px;
	}

	.dshe-rcard--horizontal .dshe-rcard__image:not(.dshe-rcard__image--backdrop) {
		grid-row: 1 / span 2;
		height: 100%;
		min-height: 260px;
	}

	.dshe-rcard--horizontal .dshe-rcard__copy {
		padding: 22px;
	}

	.dshe-rcard--horizontal .dshe-rcard__bottom {
		grid-column: 2;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 15px;
		padding: 18px 22px;
		border-left: 0;
		border-top: 1px solid var(--dshe-rcard-line-v);
	}

	.dshe-rcard--horizontal .dshe-rcard__action {
		max-width: 150px;
		padding-top: 0;
		border: 0;
	}

	.dshe-rcard--horizontal .dshe-rcard__price strong {
		font-size: 24px;
	}

	.dshe-rcard--horizontal .dshe-rcard__category {
		margin-top: 16px;
	}
}

@media (max-width: 560px) {
	.dshe-rcard--horizontal .dshe-rcard__link {
		grid-template-columns: 35% minmax(0, 1fr);
	}

	.dshe-rcard--horizontal .dshe-rcard__title {
		font-size: 19px;
		line-height: 1.25;
		letter-spacing: -.045em;
		margin: 10px 0 13px;
	}

	.dshe-rcard--horizontal .dshe-rcard__image:not(.dshe-rcard__image--backdrop) {
		min-height: 255px;
	}

	.dshe-rcard--horizontal .dshe-rcard__date {
		gap: 4px;
		padding: 9px 10px;
	}

	.dshe-rcard--horizontal .dshe-rcard__date b {
		font-size: 30px;
	}

	.dshe-rcard--horizontal .dshe-rcard__date>span {
		font-size: 9px;
	}

	.dshe-rcard--horizontal .dshe-rcard__year {
		font-size: 7px;
	}

	.dshe-rcard--horizontal .dshe-rcard__badges {
		top: 9px;
		right: 8px;
		left: 8px;
		max-width: calc(100% - 16px);
	}

	.dshe-rcard--horizontal .dshe-rcard__status {
		padding: 5px 6px;
		font-size: 8px;
	}

	.dshe-rcard--horizontal .dshe-rcard__copy {
		padding: 18px 14px;
	}

	.dshe-rcard--horizontal .dshe-rcard__place {
		gap: 5px;
		font-size: 8px;
	}

	.dshe-rcard--horizontal .dshe-rcard__place-icon {
		width: 12px;
		height: 12px;
	}

	.dshe-rcard--horizontal .dshe-rcard__facts {
		flex-direction: column;
		gap: 8px;
		font-size: 9px;
	}

	.dshe-rcard--horizontal .dshe-rcard__fact svg {
		width: 14px;
		height: 14px;
	}

.dshe-rcard--horizontal .dshe-rcard__fact .dsh-i {
		font-size: 14px;
}

	.dshe-rcard--horizontal .dshe-rcard__category {
		font-size: 7px;
		line-height: 1.7;
		letter-spacing: .05em;
	}

	.dshe-rcard--horizontal .dshe-rcard__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 13px;
		padding: 15px 14px;
	}

	.dshe-rcard--horizontal .dshe-rcard__price small {
		font-size: 8px;
	}

	.dshe-rcard--horizontal .dshe-rcard__action {
		width: 100%;
		max-width: none;
		font-size: 9px;
	}

	.dshe-rcard--horizontal .dshe-rcard__action .dshe-rcard__arrow {
		width: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dshe-rcard--horizontal .dshe-rcard__link,
	.dshe-rcard--horizontal .dshe-rcard__image img,
	.dshe-rcard--horizontal .dshe-rcard__arrow {
		transition: none;
	}

	.dshe-rcard--horizontal .dshe-rcard__link:hover,
	.dshe-rcard--horizontal .dshe-rcard__link:hover img,
	.dshe-rcard--horizontal .dshe-rcard__link:hover .dshe-rcard__arrow {
		transform: none;
	}
}
