/**
 * Kedaranchal — unified inner page width & spacing (all non-home pages)
 */

:root {
	--kr-gutter: 20px;
	--kr-inner-y: 32px;
}

/* ── Shared content width (matches header 1200px) ── */
.kedaranchal-theme .kr-inner-wrap,
.kedaranchal-theme .kr-page-container,
.kedaranchal-theme .kr-shop-layout,
.kedaranchal-theme .page-bradcurm-container,
.kedaranchal-theme .kr-cat-banner__inner,
.kedaranchal-theme .main-header .container,
.kedaranchal-theme .container,
.kedaranchal-theme .woostify-container,
.kedaranchal-theme .product-page-container,
.kedaranchal-theme.single-product .content-top,
.kedaranchal-theme .woocommerce-cart .woocommerce,
.kedaranchal-theme .woocommerce-checkout .woocommerce,
.kedaranchal-theme.woocommerce-account .woocommerce,
.kedaranchal-theme .checkout-form {
	width: 100% !important;
	max-width: var(--kr-container, 1200px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

.kedaranchal-theme .kr-inner-wrap,
.kedaranchal-theme .kr-page-container,
.kedaranchal-theme .page-bradcurm-container,
.kedaranchal-theme .main-header .container,
.kedaranchal-theme .container,
.kedaranchal-theme .woocommerce-cart .woocommerce,
.kedaranchal-theme .woocommerce-checkout .woocommerce,
.kedaranchal-theme.woocommerce-account .woocommerce,
.kedaranchal-theme .checkout-form {
	padding:0px;}

.kedaranchal-theme .kr-shop-layout {
	padding:0px;
}

/* ── Remove Woostify default content margins on inner pages ── */
.kedaranchal-theme.kr-inner-page .site-content {
	margin: 0 !important;
}

.kedaranchal-theme.kr-inner-page #primary,
.kedaranchal-theme.kr-inner-page .content-area {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.kedaranchal-theme.kr-inner-page .site-main {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

/* Full-width content — hide theme sidebar on inner pages */
.kedaranchal-theme.kr-inner-page #secondary,
.kedaranchal-theme.kr-inner-page .sidebar {
	display: none !important;
}

/* ── Vertical rhythm ── */
.kedaranchal-theme.kr-inner-page .kr-page-shell {
	padding: var(--kr-inner-y) 0 48px;
}

.kedaranchal-theme.kr-inner-page.woocommerce:not(.kr-has-shop-filters) .site-main,
.kedaranchal-theme.kr-inner-page.woocommerce-page:not(.kr-has-shop-filters) .site-main {
	padding: var(--kr-inner-y) 0 48px;
}

.kedaranchal-theme.kr-has-shop-filters .site-main,
.kedaranchal-theme.kr-has-shop-filters.woocommerce-page .site-main {
	padding-top: 0 !important;
	padding-bottom: 40px !important;
}


/* ── Search results hero — align to site width ── */
.kr-search-page-hero .kr-inner-wrap {
	text-align: center;
}

/* ── Hide duplicate page headers / breadcrumbs in content ── */
.kedaranchal-theme .page-header,
.kedaranchal-theme .woostify-page-header {
	display: none !important;
}

.kedaranchal-theme .woocommerce-breadcrumb,
.kedaranchal-theme nav.breadcrumb {
	display: none !important;
}

.page-bradcurm-header .woocommerce-breadcrumb,
.page-bradcurm-header nav.breadcrumb,
.kr-page-hero .woocommerce-breadcrumb,
.kr-page-hero nav.breadcrumb {
	display: block !important;
}

.kedaranchal-theme.has-page-hero .kr-page-shell .woocommerce-products-header {
	display: none !important;
}

/* Elementor: first heading often duplicates kr-page-hero title */
.kedaranchal-theme.has-page-hero .kr-content-card > article.page .elementor > .e-con:first-child > .elementor-element.elementor-widget-heading:first-child,
.kedaranchal-theme.has-page-hero .kr-content-card > article.page .elementor > section:first-child .elementor-widget-heading:first-child {
	display: none !important;
}

/* ── 404 — centered panel inside same container width ── */
.kedaranchal-theme.error404 .site-main {
	max-width: var(--kr-container, 1200px) !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: var(--kr-inner-y) var(--kr-gutter) 48px !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.kedaranchal-theme.error404 .site-content {
	min-height: 0;
	padding: 0;
	display: block;
}

.kedaranchal-theme .kr-404-panel {
	max-width: 520px;
	margin: 0 auto;
	padding: 40px 32px;
	background: var(--kr-white, #fff);
	border-radius: var(--kr-radius-lg, 16px);
	box-shadow: var(--kr-shadow-md, 0 8px 32px rgba(0, 0, 0, 0.08));
	border: 1px solid var(--kr-border-light, #f0ece4);
	text-align: center;
}

@media (max-width: 767px) {
	:root {
		--kr-gutter: 16px;
		--kr-inner-y: 24px;
	}

	.kedaranchal-theme .kr-content-card {
		padding: 22px 18px;
	}

	.kedaranchal-theme .kr-404-panel {
		padding: 32px 20px;
	}

	.kedaranchal-theme.kr-has-shop-filters .kr-shop-layout {
		padding-left: 14px;
		padding-right: 14px;
	}
}
