/**
 * Samir Child — Single CPT pages v2.0 (premium layout)
 */

.sm-single {
	background: var(--sm-cream);
	min-height: 60vh;
	font-family: var(--sm-font);
	position: relative;
}

.sm-single::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--sm-gradient-mesh);
	pointer-events: none;
	opacity: 0.6;
}

.sm-single__wrap {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin: 0 auto;
	padding: 1.5rem 1.5rem 4rem;
}

/* ── Breadcrumb ── */
.sm-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	font-size: 0.82rem;
	color: var(--sm-muted);
	margin-bottom: 1.5rem;
}

.sm-breadcrumb a {
	color: var(--sm-navy-light);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.sm-breadcrumb a:hover {
	color: var(--sm-gold-dark);
}

.sm-breadcrumb__sep {
	opacity: 0.4;
}

.sm-breadcrumb__current {
	color: var(--sm-navy);
	font-weight: 600;
	max-width: 280px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── Hero premium ── */
.sm-single__hero--premium {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
	background: var(--sm-white);
	border-radius: var(--sm-radius);
	border: 1px solid var(--sm-border);
	padding: 2rem;
	box-shadow: var(--sm-shadow-lg);
	overflow: hidden;
	position: relative;
}

.sm-single__hero--premium::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--sm-gradient-gold);
}

@media (min-width: 768px) {
	.sm-single__hero--premium {
		grid-template-columns: 1fr 1.15fr;
		align-items: center;
		padding: 2.5rem;
		gap: 2.5rem;
	}
}

.sm-single__visual {
	order: -1;
}

@media (min-width: 768px) {
	.sm-single__visual {
		order: 0;
	}
}

.sm-single__image-frame {
	border-radius: var(--sm-radius-sm);
	overflow: hidden;
	box-shadow: var(--sm-shadow-lg);
	border: 1px solid var(--sm-border);
	background: var(--sm-cream);
}

.sm-single__image-frame img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s ease;
}

.sm-single__hero--premium:hover .sm-single__image-frame img {
	transform: scale(1.02);
}

.sm-single__badge {
	display: inline-block;
	background: rgba(212, 168, 83, 0.12);
	border: 1px solid rgba(212, 168, 83, 0.35);
	color: var(--sm-gold-dark);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.35rem 0.9rem;
	border-radius: 24px;
	margin-bottom: 0.85rem;
}

.sm-single__badge--soon {
	background: #c45c26;
	border-color: #c45c26;
	color: #fff;
}

.sm-single--soon .sm-single__price {
	color: #c45c26;
}

.sm-single--soon-sm-ecole .sm-single__badge--soon {
	background: #3d4a8a;
	border-color: #3d4a8a;
}

.sm-single--soon-sm-ecole .sm-single__price {
	color: #3d4a8a;
}

.sm-single__title {
	font-size: clamp(1.6rem, 3.5vw, 2.25rem);
	font-weight: 800;
	color: var(--sm-navy);
	margin: 0 0 0.75rem;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.sm-single__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--sm-gold-dark);
	margin: 0 0 1rem;
}

.sm-single__price-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--sm-muted);
}

.sm-single__excerpt {
	font-size: 1.05rem;
	color: var(--sm-muted);
	line-height: 1.7;
	margin: 0 0 1.25rem;
}

/* ── Trust pills ── */
.sm-trust-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.sm-trust-pills li {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--sm-navy);
	background: var(--sm-cream);
	border: 1px solid var(--sm-border);
	padding: 0.35rem 0.75rem;
	border-radius: 20px;
}

.sm-trust-pills li::before {
	content: '●';
	color: var(--sm-gold);
	font-size: 0.5rem;
	margin-right: 0.4rem;
	vertical-align: middle;
}

.sm-single__hero-cta {
	margin-top: 0.5rem;
}

.sm-single__cta-note {
	font-size: 0.82rem;
	color: var(--sm-muted);
	margin: 0.75rem 0 0;
}

.sm-btn--lg {
	padding: 1rem 2rem;
	font-size: 1rem;
}

.sm-btn--block {
	width: 100%;
}

/* ── Body layout: main + sidebar ── */
.sm-single__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
	.sm-single__body {
		grid-template-columns: 1fr 300px;
		align-items: start;
	}
}

.sm-single__content {
	background: var(--sm-white);
	border-radius: var(--sm-radius);
	border: 1px solid var(--sm-border);
	padding: 2rem;
	margin-bottom: 2rem;
	line-height: 1.8;
	box-shadow: var(--sm-shadow);
}

.sm-section-heading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--sm-navy);
	margin: 0 0 1.25rem;
}

.sm-section-heading__icon {
	color: var(--sm-gold);
	font-size: 0.9rem;
}

/* ── Feature grid ── */
.sm-feature-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) {
	.sm-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.sm-feature-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: var(--sm-white);
	border: 1px solid var(--sm-border);
	border-radius: var(--sm-radius-sm);
	padding: 1rem 1.15rem;
	box-shadow: var(--sm-shadow);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
	line-height: 1.55;
	font-size: 0.95rem;
	color: var(--sm-text);
}

.sm-feature-card:hover {
	transform: translateY(-3px);
	border-color: rgba(212, 168, 83, 0.35);
	box-shadow: var(--sm-shadow-lg);
}

.sm-feature-card__check {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(212, 168, 83, 0.15);
	color: var(--sm-gold-dark);
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 800;
}

/* ── Sticky aside ── */
.sm-single__aside-card {
	background: var(--sm-white);
	border-radius: var(--sm-radius);
	border: 1px solid var(--sm-border);
	padding: 1.75rem;
	box-shadow: var(--sm-shadow-lg);
	position: sticky;
	top: 1.5rem;
}

.sm-single__aside-card::before {
	content: '';
	display: block;
	height: 3px;
	background: var(--sm-gradient-gold);
	border-radius: 2px;
	margin: -1.75rem -1.75rem 1.25rem;
}

.sm-single__aside-card--whatsapp::before {
	background: linear-gradient(90deg, #25d366, #1ebe57);
}

.sm-single__aside-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sm-navy);
	margin: 0 0 0.5rem;
	line-height: 1.35;
}

.sm-single__aside-price {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--sm-gold-dark);
	margin: 0 0 1rem;
}

.sm-single__aside-text {
	font-size: 0.9rem;
	color: var(--sm-muted);
	line-height: 1.6;
	margin: 0 0 1rem;
}

.sm-single__aside-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.sm-single__aside-list li {
	font-size: 0.88rem;
	color: var(--sm-text);
	padding: 0.4rem 0 0.4rem 1.4rem;
	position: relative;
	border-bottom: 1px solid var(--sm-border);
}

.sm-single__aside-list li:last-child {
	border-bottom: none;
}

.sm-single__aside-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--sm-gold-dark);
	font-weight: 700;
	font-size: 0.8rem;
}

.sm-single__aside-link {
	display: block;
	text-align: center;
	margin-top: 0.85rem;
	font-size: 0.85rem;
	color: var(--sm-navy-light);
	text-decoration: none;
	font-weight: 500;
}

.sm-single__aside-link:hover {
	color: var(--sm-gold-dark);
	text-decoration: underline;
}

/* ── Rich content sections ── */
.sm-content-section,
.sm-product-section {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: var(--sm-white);
	border-radius: var(--sm-radius-sm);
	border: 1px solid var(--sm-border);
	box-shadow: var(--sm-shadow);
}

.sm-content-section h2,
.sm-product-section h2 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--sm-navy);
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid rgba(212, 168, 83, 0.25);
}

.sm-content-section h3,
.sm-product-section h3 {
	font-size: 1rem;
	font-weight: 600;
	color: var(--sm-navy);
	margin: 1.25rem 0 0.5rem;
}

.sm-content-section ul,
.sm-product-section ul {
	margin: 0;
	padding-left: 1.25rem;
}

.sm-content-section li,
.sm-product-section li {
	margin-bottom: 0.5rem;
	line-height: 1.65;
}

.sm-product-gallery {
	display: grid;
	gap: 1rem;
	margin: 0.25rem 0 0;
}

@media (min-width: 640px) {
	.sm-product-gallery {
		grid-template-columns: 1fr 1fr;
	}
}

.sm-product-gallery figure {
	margin: 0;
	border-radius: var(--sm-radius-sm);
	overflow: hidden;
	border: 1px solid var(--sm-border);
	background: var(--sm-cream);
}

.sm-product-gallery img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.sm-product-gallery figcaption {
	padding: 0.65rem 0.85rem;
	font-size: 0.85rem;
	color: var(--sm-muted);
}

/* FAQ cards */
.sm-content-faq h3,
.sm-product-faq h3 {
	background: var(--sm-cream);
	border: 1px solid var(--sm-border);
	border-left: 3px solid var(--sm-gold);
	border-radius: var(--sm-radius-sm);
	padding: 0.85rem 1rem;
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
}

.sm-content-faq h3 + p,
.sm-product-faq h3 + p {
	background: var(--sm-white);
	border: 1px solid var(--sm-border);
	border-top: none;
	border-radius: 0 0 var(--sm-radius-sm) var(--sm-radius-sm);
	padding: 0.85rem 1rem 1rem;
	margin: 0 0 0.5rem;
	font-size: 0.92rem;
	color: var(--sm-muted);
	line-height: 1.65;
}

.sm-content-faq h3:first-of-type,
.sm-product-faq h3:first-of-type {
	margin-top: 0;
}

/* ── CTA band (single page) ── */
.sm-single__cta-band {
	background: var(--sm-gradient-hero);
	border-radius: var(--sm-radius);
	padding: 3rem 2rem;
	text-align: center;
	margin-bottom: 2.5rem;
	position: relative;
	overflow: hidden;
}

.sm-single__cta-band::before {
	content: '';
	position: absolute;
	width: 300px;
	height: 300px;
	top: -100px;
	right: -50px;
	background: radial-gradient(circle, rgba(212, 168, 83, 0.2) 0%, transparent 70%);
	pointer-events: none;
}

.sm-single__cta-band-inner {
	position: relative;
	z-index: 1;
	max-width: 560px;
	margin: 0 auto;
}

.sm-single__cta-band h2 {
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	font-weight: 800;
	color: var(--sm-white);
	margin: 0 0 0.75rem;
}

.sm-single__cta-band p {
	color: rgba(255, 255, 255, 0.78);
	margin: 0 0 1.5rem;
	line-height: 1.65;
	font-size: 1rem;
}

.sm-single__cta-band--navy {
	background: var(--sm-navy);
}

/* ── Related products ── */
.sm-single__related {
	margin-bottom: 2rem;
}

.sm-single__related-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--sm-navy);
	margin: 0 0 1.25rem;
}

.sm-cards--compact {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

/* ── Footer nav ── */
.sm-single__footer {
	padding-top: 0.5rem;
}

/* ── Free gift (unchanged) ── */
.sm-gift-download {
	text-align: center;
	padding: 2.5rem 2rem;
	background: var(--sm-white);
	border-radius: var(--sm-radius);
	border: 1px solid var(--sm-border);
	margin-bottom: 2rem;
	box-shadow: var(--sm-shadow);
}

.sm-gift-download__note {
	color: var(--sm-muted);
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
}

.sm-gift-download__alt {
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
	text-align: center;
}

.sm-gift-download__alt a {
	color: var(--sm-navy);
	text-decoration: underline;
}

/* Legacy */
.sm-single__included {
	background: var(--sm-white);
	border-radius: var(--sm-radius);
	border: 1px solid var(--sm-border);
	border-left: 4px solid var(--sm-gold);
	padding: 1.5rem 2rem;
	margin-bottom: 2rem;
	box-shadow: var(--sm-shadow);
}

.sm-single__included h2 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--sm-navy);
	margin: 0 0 1rem;
}

.sm-single__included ul {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.sm-single__included li {
	margin-bottom: 0.6rem;
	padding-left: 1.5rem;
	position: relative;
	line-height: 1.5;
}

.sm-single__badge--free {
	background: rgba(37, 211, 102, 0.12);
	border-color: rgba(37, 211, 102, 0.4);
	color: #1a9e4f;
}

.sm-single__body--gift .sm-single__aside-card--gift::before {
	background: linear-gradient(90deg, #25d366, #1ebe57);
}

.sm-archive--gifts .sm-card--gift .sm-card__thumb img {
	height: 160px;
	object-fit: cover;
}

.sm-card__icon--gift {
	background: linear-gradient(145deg, #061224 0%, #1a4080 100%);
}
