/* EastDigi — Shopify ecosystem long-form guides (SEO, TikTok, etc.) (typography aligned with .main-content) */
.ed-shopify-guide-page {
	--ed-violet: #8200fa;
	--ed-magenta: #f024f6;
	--ed-deep: #0e0018;
	--ed-mid: #220041;
	--ed-rich: #2b0052;
	--ed-text: #333;
	--ed-body: #666;
	--ed-muted: #666;
	--ed-border: rgba(130, 0, 250, 0.18);
	--ed-surface: #faf8fc;
	--ed-font-body: 16px;
	--ed-lh-body: 30px;
	--ed-font-h2: 32px;
	--ed-font-h3: 20px;
	--ed-font-h4: 18px;
	font-family: "Microsoft YaHei", webfont, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ed-shopify-guide-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(155deg, var(--ed-deep) 0%, var(--ed-mid) 42%, var(--ed-rich) 100%);
	color: #fff;
	padding: 7.5rem 1.25rem 4.5rem;
	text-align: center;
}
.ed-shopify-guide-hero::before {
	content: "";
	position: absolute;
	inset: -15%;
	background:
		radial-gradient(ellipse 50% 45% at 15% 20%, rgba(130, 0, 250, 0.45) 0%, transparent 55%),
		radial-gradient(ellipse 45% 40% at 85% 75%, rgba(240, 36, 246, 0.32) 0%, transparent 52%);
	pointer-events: none;
}
.ed-shopify-guide-hero::after {
	content: "";
	position: absolute;
	inset: -8%;
	opacity: 0.12;
	background-image: url(../images/bg-violet-floral.svg);
	background-size: 480px 480px;
	pointer-events: none;
}
.ed-shopify-guide-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 52rem;
	margin: 30px auto;
}
.ed-shopify-guide-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 1rem;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(180, 94, 255, 0.35);
	margin-bottom: 1.25rem;
}
.ed-shopify-guide-hero h1 {
	margin: 0 0 1rem;
	font-size: clamp(1.85rem, 4.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.ed-shopify-guide-hero__lead {
	margin: 0 auto 1.75rem;
	max-width: 40rem;
	font-size: 18px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.88);
}
.ed-shopify-guide-hero__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}
.ed-shopify-guide-hero__chip {
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 15px;
	background: rgba(130, 0, 250, 0.22);
	border: 1px solid rgba(180, 94, 255, 0.35);
	color: #f3e8ff;
}

.ed-shopify-guide-layout {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	box-sizing: border-box;
}

.ed-shopify-guide-main,
.ed-shopify-guide-toc {
	min-width: 0;
	max-width: 100%;
}
@media (min-width: 1024px) {
	.ed-shopify-guide-layout {
		grid-template-columns: 240px minmax(0, 1fr);
		align-items: start;
	}
}

.ed-shopify-guide-toc {
	background: var(--ed-surface);
	border: 1px solid var(--ed-border);
	border-radius: 12px;
	padding: 1.25rem 1rem;
}
@media (min-width: 1024px) {
	.ed-shopify-guide-toc {
		position: sticky;
		top: 6.5rem;
		max-height: calc(100vh - 8rem);
		overflow-y: auto;
	}
}
.ed-shopify-guide-toc__title {
	margin: 0 0 0.75rem;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ed-violet);
}
.ed-shopify-guide-toc nav {
	font-size: var(--ed-font-body);
	line-height: var(--ed-lh-body);
}
.ed-shopify-guide-toc a {
	display: block;
	padding: 0.35rem 0.5rem;
	color: var(--ed-muted);
	text-decoration: none;
	border-left: 2px solid transparent;
	border-radius: 0 6px 6px 0;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ed-shopify-guide-toc a:hover,
.ed-shopify-guide-toc a.is-active {
	color: var(--ed-violet);
	border-left-color: var(--ed-magenta);
	background: rgba(130, 0, 250, 0.06);
}
.ed-shopify-guide-toc a[data-level="3"] {
	padding-left: 1.25rem;
	font-size: 15px;
}

.ed-shopify-guide-panels {
	display: grid;
	gap: 1rem;
	margin-bottom: 2rem;
}
@media (min-width: 768px) {
	.ed-shopify-guide-panels {
		grid-template-columns: repeat(3, 1fr);
	}
}
.ed-shopify-guide-panel {
	background: #fff;
	border: 1px solid var(--ed-border);
	border-radius: 12px;
	padding: 1.15rem 1.25rem;
	box-shadow: 0 4px 20px rgba(14, 0, 24, 0.04);
}
.ed-shopify-guide-panel strong {
	display: block;
	margin-bottom: 0.35rem;
	font-size: var(--ed-font-h4);
	color: var(--ed-violet);
}
.ed-shopify-guide-panel p {
	margin: 0;
	font-size: var(--ed-font-body);
	line-height: var(--ed-lh-body);
	color: var(--ed-body);
}

.ed-shopify-guide-article {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 16px;
	padding: 2rem 1.5rem 2.5rem;
	box-shadow: 0 8px 32px rgba(14, 0, 24, 0.06);
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
	box-sizing: border-box;
}
@media (min-width: 768px) {
	.ed-shopify-guide-article {
		padding: 2.5rem 2.75rem 3rem;
	}
}

/* WP / VC content inside article — prevent row negative margins from overflowing */
.ed-shopify-guide-article .wpb-content-wrapper,
.ed-shopify-guide-article .wpb_row,
.ed-shopify-guide-article .vc_row,
.ed-shopify-guide-article .vc_row-fluid {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	left: auto !important;
	right: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box;
}

.ed-shopify-guide-article .vc_row::before,
.ed-shopify-guide-article .vc_row::after,
.ed-shopify-guide-article .vc_row-fluid::before,
.ed-shopify-guide-article .vc_row-fluid::after {
	display: none;
}

.ed-shopify-guide-article .vc_column_container,
.ed-shopify-guide-article [class*="vc_col-"] {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	min-width: 0;
}

.ed-shopify-guide-article .vc_column-inner {
	padding-left: 0 !important;
	padding-right: 0 !important;
	min-width: 0;
}

.ed-shopify-guide-article .wpb_wrapper,
.ed-shopify-guide-article .wpb_content_element,
.ed-shopify-guide-article .wpb_text_column {
	max-width: 100%;
	min-width: 0;
}

.ed-shopify-guide-article p,
.ed-shopify-guide-article li,
.ed-shopify-guide-article .wpb_wrapper p {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* VC full-width stretch rows */
.ed-shopify-guide-article .vc_row[data-vc-full-width="true"],
.ed-shopify-guide-page .vc_row[data-vc-full-width="true"] {
	width: 100% !important;
	max-width: 100% !important;
}

.ed-shopify-guide-article > .vc_row:last-child .vc_btn3-container,
.ed-shopify-guide-article .wpb_content_element:has(.vc_btn3-center) {
	max-width: 100%;
	overflow-x: clip;
}

/* Duplicate in-content quote block (footer already has CTA) */
.ed-shopify-guide-article .wpb_text_column h4 + h2,
.ed-shopify-guide-article .wpb_text_column h2:last-of-type {
	max-width: 100%;
}
.ed-shopify-guide-article > h1:first-child,
.ed-shopify-guide-article .wpb_wrapper > h1:first-child {
	display: none;
}
.ed-shopify-guide-article h2,
.ed-shopify-guide-article .wpb_wrapper h2 {
	margin: 20px 0;
	padding-bottom: 0.5rem;
	font-size: var(--ed-font-h2);
	font-weight: 700;
	line-height: 1.5em;
	color: var(--ed-text);
	border-bottom: 2px solid transparent;
	border-image: linear-gradient(90deg, var(--ed-violet), var(--ed-magenta)) 1;
	scroll-margin-top: 6rem;
}
.ed-shopify-guide-article h2:first-child {
	margin-top: 0;
}
.ed-shopify-guide-article h3,
.ed-shopify-guide-article .wpb_wrapper h3 {
	margin: 30px 0 15px;
	font-size: var(--ed-font-h3);
	font-weight: 600;
	line-height: 1.5em;
	color: #2c3e50;
	scroll-margin-top: 6rem;
}
.ed-shopify-guide-article h4,
.ed-shopify-guide-article .wpb_wrapper h4 {
	margin: 20px 0 10px;
	font-size: var(--ed-font-h4);
	font-weight: 600;
	line-height: 1.5em;
	color: var(--ed-violet);
}
.ed-shopify-guide-article p,
.ed-shopify-guide-article li,
.ed-shopify-guide-article .wpb_wrapper p,
.ed-shopify-guide-article .wpb_text_column p {
	font-size: var(--ed-font-body);
	line-height: var(--ed-lh-body);
	color: var(--ed-body);
}
.ed-shopify-guide-article ul,
.ed-shopify-guide-article ol,
.ed-shopify-guide-article .wpb_wrapper ul {
	margin: 0.75rem 0 1.25rem;
	padding-left: 15px;
	font-size: var(--ed-font-body);
	line-height: 33px;
	color: var(--ed-body);
}
.ed-shopify-guide-article li {
	margin-bottom: 0.35rem;
}
.ed-shopify-guide-article a {
	color: var(--ed-violet);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ed-shopify-guide-article a:hover {
	color: var(--ed-magenta);
}
.ed-shopify-guide-article img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 1.25rem 0;
	box-shadow: 0 4px 16px rgba(14, 0, 24, 0.08);
}
.ed-shopify-guide-article code {
	padding: 0.15em 0.4em;
	font-size: 0.9em;
	background: rgba(130, 0, 250, 0.08);
	border-radius: 4px;
	color: var(--ed-mid);
	word-break: break-all;
}
.ed-shopify-guide-article pre,
.ed-shopify-guide-article pre code {
	display: block;
	padding: 1rem 1.15rem;
	margin: 1rem 0 1.5rem;
	overflow-x: auto;
	font-size: 0.85rem;
	line-height: 1.6;
	background: #1a1030;
	color: #e9ddf8;
	border-radius: 10px;
	white-space: pre-wrap;
}
.ed-shopify-guide-article blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem 1rem 1.5rem;
	border-left: 4px solid var(--ed-magenta);
	background: var(--ed-surface);
	border-radius: 0 10px 10px 0;
}
.ed-shopify-guide-article blockquote p {
	margin: 0;
	font-style: italic;
	color: var(--ed-muted);
}
.ed-shopify-guide-article table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1.25rem 0;
	border-collapse: collapse;
	font-size: var(--ed-font-body);
	overflow-x: auto;
}
.ed-shopify-guide-article th,
.ed-shopify-guide-article td {
	padding: 0.65rem 0.85rem;
	border: 1px solid rgba(130, 0, 250, 0.15);
	text-align: left;
}
.ed-shopify-guide-article th {
	background: var(--ed-surface);
	color: var(--ed-violet);
	font-weight: 600;
}
.ed-shopify-guide-article .wpb_text_column > h4:first-child {
	display: none;
}

.ed-shopify-guide-callout {
	margin: 1.75rem 0;
	padding: 1.15rem 1.35rem;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(130, 0, 250, 0.08) 0%, rgba(240, 36, 246, 0.06) 100%);
	border: 1px solid var(--ed-border);
}
.ed-shopify-guide-callout p {
	margin: 0;
	font-size: var(--ed-font-body);
	line-height: var(--ed-lh-body);
	color: var(--ed-body);
}
.ed-shopify-guide-callout strong {
	color: var(--ed-violet);
}

.ed-shopify-guide-cta {
	margin-top: 2.5rem;
	padding: 2rem 1.5rem;
	text-align: center;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--ed-deep) 0%, var(--ed-rich) 100%);
	color: #fff;
}
.ed-shopify-guide-cta h2 {
	margin: 0 0 0.75rem;
	font-size: var(--ed-font-h2);
	line-height: 1.5em;
	border: none;
	color: #fff;
}
.ed-shopify-guide-cta p {
	margin: 0 0 1.25rem;
	font-size: var(--ed-font-body);
	line-height: var(--ed-lh-body);
	color: rgba(255, 255, 255, 0.88);
}
.ed-shopify-guide-cta__btn {
	display: inline-block;
	padding: 0.75rem 2rem;
	border-radius: 999px;
	font-size: var(--ed-font-body);
	font-weight: 600;
	text-decoration: none !important;
	color: #fff !important;
	background: linear-gradient(90deg, var(--ed-violet), var(--ed-magenta));
	box-shadow: 0 8px 24px rgba(130, 0, 250, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ed-shopify-guide-cta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(240, 36, 246, 0.4);
	color: #fff !important;
}

.page-template-page-shopify-seo-php .top-banner,
.page-template-page-shopify-tiktok-php .top-banner,
.page-template-page-google-business-php .top-banner {
	display: none;
}
.page-template-page-shopify-seo-php #main-content.main-content,
.page-template-page-shopify-tiktok-php #main-content.main-content,
.page-template-page-google-business-php #main-content.main-content {
	padding-top: 0;
	min-height: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.page-template-page-shopify-seo-php #main-content .vc_row,
.page-template-page-shopify-tiktok-php #main-content .vc_row,
.page-template-page-google-business-php #main-content .vc_row,
.page-template-page-shopify-seo-php #main-content .vc_row-fluid,
.page-template-page-shopify-tiktok-php #main-content .vc_row-fluid,
.page-template-page-google-business-php #main-content .vc_row-fluid {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.page-template-page-shopify-seo-php .main-content > .vc_row:first-child .wpb_text_column h4,
.page-template-page-shopify-tiktok-php .main-content > .vc_row:first-child .wpb_text_column h4,
.page-template-page-google-business-php .main-content > .vc_row:first-child .wpb_text_column h4 {
	background: transparent;
	padding: 0;
	border: none;
}

/* Last-resort: clip stray horizontal bleed (header/footer/VC); does not affect sticky TOC */
body.page-template-page-shopify-seo-php,
body.page-template-page-shopify-tiktok-php,
body.page-template-page-google-business-php {
	overflow-x: hidden;
}
