/**
 * Tekton — Polylang, WooCommerce, Yoast SEO, Smart Slider 3, Elementor.
 */

/* -------------------------------------------------------------------------
 * Elementor
 * ------------------------------------------------------------------------- */
body.tekton-elementor-page .site-content .entry-content,
body.tekton-elementor-page #primary {
	max-width: 100%;
	width: 100%;
}

body.tekton-elementor-canvas #page {
	margin: 0;
	padding: 0;
}

body.tekton-elementor-canvas .site-content,
body.tekton-elementor-canvas #content.site-content {
	padding: 0 !important;
	margin: 0 !important;
}

body.tekton-elementor-canvas .site-content .container {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.tekton-elementor-page .elementor-section.elementor-section-stretched {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	left: 0 !important;
}

body.tekton-elementor-full-width .site-content .container,
body.tekton-elementor-full-width #primary .entry-content {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0;
	padding-right: 0;
}

body.tekton-elementor-single-location #primary > .page-header,
body.tekton-elementor-archive-location #primary > .page-header {
	display: none;
}

body.tekton-elementor-page .elementor-widget-wrap > .elementor-element.elementor-widget-text-editor {
	max-width: 100%;
}

/* Elementor Theme Builder locations replace theme header/footer — no extra gap */
body.tekton-elementor-header .tekton-site-header,
body.tekton-elementor-footer .site-footer {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Smart Slider 3
 * ------------------------------------------------------------------------- */
body.tekton-smart-slider-active .n2-ss-slider,
body.tekton-smart-slider-active .n2-section-smartslider {
	max-width: 100%;
}

body.tekton-smart-slider-active .n2-ss-slider {
	position: relative;
	z-index: 1;
}

body.tekton-page-width-boxed .n2-ss-slider,
body.tekton-page-width-content .n2-ss-slider {
	margin-left: auto;
	margin-right: auto;
}

/* Full-width slider inside boxed page */
body.tekton-smart-slider-active .alignfull .n2-ss-slider,
body.tekton-smart-slider-active .wp-block-group.alignfull .n2-ss-slider {
	width: 100% !important;
	max-width: 100% !important;
}

/* -------------------------------------------------------------------------
 * WooCommerce + theme layout
 * ------------------------------------------------------------------------- */
body.tekton-woocommerce-active.woocommerce .site-content .container {
	box-sizing: border-box;
}

body.tekton-woocommerce-active .woocommerce-notices-wrapper {
	width: 100%;
}

/* Polylang switcher + cart in header */
body.tekton-woocommerce-polylang .tekton-language-item + .tekton-header-cart,
body.tekton-woocommerce-polylang .tekton-header-cart + .tekton-language-item {
	margin-inline-start: 0.5rem;
}

/* Yoast breadcrumbs above product */
body.tekton-woocommerce-yoast.single-product .tekton-breadcrumbs {
	margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------
 * Polylang
 * ------------------------------------------------------------------------- */
body.tekton-polylang .tekton-language-item .tekton-lang-trigger {
	white-space: nowrap;
}

body.tekton-polylang .pll-switcher {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

body.tekton-polylang .pll-switcher li {
	margin: 0;
}

/* Widget / menu language lists in sidebar */
body.tekton-polylang .widget_polylang ul,
body.tekton-polylang .widget_polylang li {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* -------------------------------------------------------------------------
 * Yoast SEO
 * ------------------------------------------------------------------------- */
body.tekton-yoast-seo .tekton-breadcrumbs + .yoast-breadcrumb {
	display: none;
}

/* Prevent duplicate breadcrumb when theme already outputs Yoast via setting */
body.tekton-yoast-seo .tekton-breadcrumbs:empty {
	display: none;
}
