/* ═══════════════════════════════════════════════════════════════════════════
   Decibel Peak Shop — Software / Generic Single Product Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.ps-sw-hero {
	position: relative;
	min-height: 380px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #0d0d0d;
	padding-top: var(--header-h);
}

/* Blurred product image as atmospheric background */
.ps-sw-hero--has-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--thumb);
	background-size: cover;
	background-position: center 20%;
	filter: blur(48px) brightness(0.25) saturate(1.6);
	transform: scale(1.12);
	pointer-events: none;
}

/* Gradient overlay — fades image into body background */
.ps-sw-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(8,8,8,0.15) 0%, rgba(8,8,8,0.6) 55%, #080808 100%),
		linear-gradient(to right,  rgba(8,8,8,0.6) 0%, transparent 60%);
	pointer-events: none;
}

.ps-sw-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--max-width);
	width: 100%;
	margin-inline: auto;
	padding: 5rem var(--space-md) 3.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* ─── Badges ─────────────────────────────────────────────────────────────── */

.ps-sw-hero__badges {
	display: flex;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.ps-sw-hero__badge {
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 4px;
	white-space: nowrap;
}

.ps-sw-hero__badge--type {
	background: rgba(22,243,253,0.1);
	color: var(--color-accent);
	border: 1px solid rgba(22,243,253,0.25);
}

.ps-sw-hero__badge--cat {
	background: rgba(255,255,255,0.06);
	color: rgba(255,255,255,0.45);
	border: 1px solid rgba(255,255,255,0.1);
}

/* ─── Title ──────────────────────────────────────────────────────────────── */

.ps-sw-hero__title {
	font-family: var(--font-pilo);
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	font-weight: 100;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: var(--color-white);
	max-width: 18ch;
}

/* ─── Sidebar: hide duplicate title (hero already shows it) ──────────────── */

.product-single-page--software .product-single__title--desktop { display: none; }

/* ─── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
	.ps-sw-hero            { min-height: 260px; }
	.ps-sw-hero__inner     { padding: 4rem var(--space-md) 2.5rem; }
	.ps-sw-hero__title     { font-size: clamp(1.6rem, 6vw, 2.4rem); max-width: none; }
}

@media (max-width: 480px) {
	.ps-sw-hero { min-height: 220px; }
}
