/**
 * Boxed content for terms page, blog archives, and single posts.
 * Does not change Woodmart global Site width (shop stays full width).
 */

body.pc-boxed-page .wd-page-content.main-page-wrapper {
	background-color: #f5f5f5;
}

html.pc-theme-dark body.pc-boxed-page .wd-page-content.main-page-wrapper {
	background: var(--pc-page-bg, #020617) !important;
}

/* Blog Elementor archive skips Woodmart .container; keep the same width as terms. */
body.pc-boxed-page #main-content.content-layout-wrapper {
	max-width: var(--wd-container-w, 1222px);
	width: 100%;
	margin-inline: auto;
	padding-inline: 15px;
	box-sizing: border-box;
}

body.pc-boxed-page #main-content.container > .wd-content-area,
body.pc-boxed-page #main-content.container > .wd-sidebar,
body.pc-boxed-page #main-content.content-layout-wrapper > .elementor-location-archive,
body.pc-boxed-page #main-content.content-layout-wrapper > [data-elementor-type="archive"] {
	background: var(--wd-main-bgcolor, #fff);
	border-radius: 16px;
	box-shadow: 0 1px 9px rgba(0, 0, 0, 0.08);
	padding: 28px 24px;
	margin-block: 16px 32px;
	box-sizing: border-box;
}

body.pc-boxed-page #main-content.container > .wd-sidebar {
	padding: 20px 16px;
	align-self: start;
}

html.pc-theme-dark body.pc-boxed-page #main-content.container > .wd-content-area,
html.pc-theme-dark body.pc-boxed-page #main-content.container > .wd-sidebar,
html.pc-theme-dark body.pc-boxed-page #main-content.content-layout-wrapper > .elementor-location-archive,
html.pc-theme-dark body.pc-boxed-page #main-content.content-layout-wrapper > [data-elementor-type="archive"] {
	background: var(--pc-bg-card, #0a1120) !important;
	box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Nested Elementor boxed width should fill the Woodmart container, not shrink again. */
body.pc-boxed-page #main-content .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: 100%;
}

@media (max-width: 767px) {
	body.pc-boxed-page #main-content.container > .wd-content-area,
	body.pc-boxed-page #main-content.container > .wd-sidebar,
	body.pc-boxed-page #main-content.content-layout-wrapper > .elementor-location-archive,
	body.pc-boxed-page #main-content.content-layout-wrapper > [data-elementor-type="archive"] {
		padding: 18px 14px;
		border-radius: 12px;
		margin-block: 12px 20px;
	}
}
