/**
 * ShopTop — Hero (Sprint D)
 * ------------------------------------------------------------------
 * Layout de campanha comercial em 2 colunas no desktop (texto |
 * mídia); 1 coluna no mobile (a ordem do HTML já é texto-depois-mídia,
 * então o empilhamento mobile não precisa de "order" no CSS).
 *
 * Depende de: tokens.css, variables.css, typography.css, buttons.css,
 * visual-refinements.css (keyframe de entrada)
 */

.shoptop-hero {
	padding-block: var(--shoptop-space-6);
	background: linear-gradient(180deg, var(--shoptop-color-primary-50), var(--shoptop-color-bg));
	overflow: hidden;
}

@media (min-width: 768px) {
	.shoptop-hero {
		padding-block: var(--shoptop-space-7);
	}
}

.shoptop-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--shoptop-space-5);
	align-items: center;
}

@media (min-width: 1024px) {
	.shoptop-hero__grid {
		grid-template-columns: 1.1fr 1fr;
		gap: var(--shoptop-space-6);
	}
}

.shoptop-hero__title {
	max-width: 20ch;
	font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
}

.shoptop-hero__text {
	max-width: 52ch;
	color: var(--shoptop-color-text-secondary);
}

.shoptop-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--shoptop-space-3);
	margin-top: var(--shoptop-space-4);
}

/* Selos de confiança (Sprint E) — lista em linha, era 1 parágrafo só. */
.shoptop-hero__trust-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--shoptop-space-1) var(--shoptop-space-4);
	margin: var(--shoptop-space-3) 0 0 0;
	padding: 0;
	list-style: none;
}

.shoptop-hero__trust-list li {
	color: var(--shoptop-color-text-secondary);
	font-size: var(--shoptop-font-size-sm);
}

/* Mídia (imagem/vídeo real, quando configurado). Altura ~220px,
 * conforme pedido — nem excessiva, nem vazia demais. */
.shoptop-hero__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--shoptop-radius-lg);
	min-height: 220px;
}

.shoptop-hero__image,
.shoptop-hero__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.shoptop-hero__media-link {
	position: absolute;
	inset: 0;
}

/* Placeholder decorativo (sem imagem configurada) — composição de "cards
 * flutuantes" via CSS puro, sem baixar nenhuma imagem externa (Sprint E:
 * antes eram só 2 manchas de gradiente). Mesma altura da mídia real
 * (~220px), para não sobrar espaço vazio. */
.shoptop-hero__placeholder {
	position: relative;
	min-height: 220px;
	border-radius: var(--shoptop-radius-lg);
	background: radial-gradient(circle at 30% 20%, var(--shoptop-color-primary-100), transparent 60%),
		var(--shoptop-color-bg-alt);
	overflow: hidden;
}

/* 3 retângulos com raio/sombra, simulando cards de produto empilhados —
 * puramente decorativo (aria-hidden na section pai), nenhum texto real. */
.shoptop-hero__placeholder-card {
	position: absolute;
	border-radius: var(--shoptop-radius-md);
	background: var(--shoptop-color-surface);
	box-shadow: var(--shoptop-shadow-lg);
}

.shoptop-hero__placeholder-card--1 {
	width: 54%;
	height: 62%;
	top: 14%;
	left: 8%;
	transform: rotate(-6deg);
	background: linear-gradient(160deg, var(--shoptop-color-surface), var(--shoptop-color-primary-50));
}

.shoptop-hero__placeholder-card--2 {
	width: 40%;
	height: 46%;
	top: 30%;
	right: 6%;
	transform: rotate(5deg);
	background: linear-gradient(160deg, var(--shoptop-color-surface), var(--shoptop-color-secondary-50));
}

.shoptop-hero__placeholder-card--3 {
	width: 30%;
	height: 30%;
	bottom: 8%;
	left: 30%;
	transform: rotate(-3deg);
	background: var(--shoptop-color-surface);
}

/* Barra + "chip" dentro do card maior, sugerindo título + selo de preço
 * sem escrever texto nenhum (continua 100% decorativo). */
.shoptop-hero__placeholder-card--1::before {
	content: "";
	position: absolute;
	top: 18%;
	left: 12%;
	width: 60%;
	height: 10%;
	border-radius: var(--shoptop-radius-full);
	background: var(--shoptop-color-border);
}

.shoptop-hero__placeholder-card--1::after {
	content: "";
	position: absolute;
	bottom: 16%;
	left: 12%;
	width: 34%;
	height: 12%;
	border-radius: var(--shoptop-radius-full);
	background: var(--shoptop-color-success-500);
	opacity: 0.85;
}

/*
 * Entrada suave — pura CSS, dispara no carregamento (não no scroll,
 * sem IntersectionObserver). O conteúdo SEMPRE termina visível
 * (opacity:1) ao fim da animação, sem depender de JavaScript; em
 * prefers-reduced-motion, visual-refinements.css reduz a duração para
 * ~0, então o conteúdo aparece de imediato.
 */
.shoptop-hero__content,
.shoptop-hero__media,
.shoptop-hero__placeholder {
	animation: shoptop-fade-in-up 0.5s ease-out both;
}

.shoptop-hero__media,
.shoptop-hero__placeholder {
	animation-delay: 0.1s;
}
