:root{
	--tx-pink:#ff167d;
	--tx-mag:#c515ff;
	--tx-purple:#682df3;
	--tx-blue:#126dff;
	--tx-cyan:#00d6ff;
	--tx-teal:#12d9c4;
	--tx-dark:#070a19;
	--tx-line:#e9edf5;
	--tx-grad:linear-gradient(110deg,#ff6a00,#ff167d,#682df3,#126dff,#00d6ff);
}

/* Product-page safe header only.
   No WooCommerce product layout, no sticky cart, no product gallery CSS here. */

body.tagx247-global-header-page .tagx247-global-header,
body.tagx247-smart-home-product-compatible .tagx247-global-header{
	display:block;
	position:relative;
	z-index:1000;
	background:#fff;
	border-bottom:1px solid rgba(234,238,246,.95);
	box-shadow:0 8px 28px rgba(15,23,42,.04);
}

body.tagx247-global-header-page .tagx247-header,
body.tagx247-smart-home-product-compatible .tagx247-header{
	position:relative;
	top:auto;
	z-index:1000;
	background:rgba(255,255,255,.96);
	backdrop-filter:blur(18px);
}

body.tagx247-global-header-page .tagx247-shell,
body.tagx247-smart-home-product-compatible .tagx247-shell{
	width:min(1420px,calc(100% - 44px));
	margin-inline:auto;
	box-sizing:border-box;
}

body.tagx247-global-header-page .tagx247-nav-wrap,
body.tagx247-smart-home-product-compatible .tagx247-nav-wrap{
	min-height:92px;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:26px;
}

body.tagx247-global-header-page .tagx247-logo,
body.tagx247-smart-home-product-compatible .tagx247-logo{
	display:flex;
	align-items:center;
	text-decoration:none;
	flex:0 0 auto;
}

body.tagx247-global-header-page .tagx247-logo img,
body.tagx247-smart-home-product-compatible .tagx247-logo img{
	display:block;
	width:160px;
	max-width:160px;
	max-height:62px;
	height:auto;
	object-fit:contain;
}

body.tagx247-global-header-page .tagx247-nav,
body.tagx247-smart-home-product-compatible .tagx247-nav{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:26px;
	flex:1 1 auto;
}

body.tagx247-global-header-page .tagx247-nav a,
body.tagx247-smart-home-product-compatible .tagx247-nav a{
	color:#111827;
	text-decoration:none;
	font-weight:900;
	font-size:15px;
	line-height:1.2;
	white-space:nowrap;
	transition:color .2s ease;
}

body.tagx247-global-header-page .tagx247-nav a:hover,
body.tagx247-smart-home-product-compatible .tagx247-nav a:hover{
	color:#126dff;
}

body.tagx247-global-header-page .tagx247-header-cta,
body.tagx247-smart-home-product-compatible .tagx247-header-cta{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:9px;
	min-height:54px;
	padding:0 24px;
	border-radius:14px;
	color:#fff;
	text-decoration:none;
	font-size:15px;
	font-weight:950;
	white-space:nowrap;
	background:var(--tx-grad);
	box-shadow:0 16px 38px rgba(255,22,125,.18);
}

body.tagx247-global-header-page .tagx247-menu-toggle,
body.tagx247-smart-home-product-compatible .tagx247-menu-toggle{
	display:none;
	width:46px;
	height:42px;
	border:0;
	border-radius:12px;
	background:#f4f7fb;
	padding:10px;
	cursor:pointer;
}

body.tagx247-global-header-page .tagx247-menu-toggle span,
body.tagx247-smart-home-product-compatible .tagx247-menu-toggle span{
	display:block;
	height:3px;
	margin:5px 0;
	border-radius:999px;
	background:#071126;
}

body.tagx247-global-header-page .tagx247-mobile-panel,
body.tagx247-smart-home-product-compatible .tagx247-mobile-panel{
	display:none;
	padding:0 22px 22px;
	background:#fff;
	border-top:1px solid var(--tx-line);
}

body.tagx247-global-header-page .tagx247-mobile-panel a,
body.tagx247-smart-home-product-compatible .tagx247-mobile-panel a{
	display:block;
	padding:14px 0;
	color:#071126;
	text-decoration:none;
	font-weight:850;
	border-bottom:1px solid #eef2f7;
}

body.tagx247-global-header-page .tagx247-mobile-panel .tagx247-mobile-cta,
body.tagx247-smart-home-product-compatible .tagx247-mobile-panel .tagx247-mobile-cta{
	margin-top:14px;
	padding:15px 18px;
	border:0;
	border-radius:14px;
	text-align:center;
	color:#fff;
	background:var(--tx-grad);
}

@media(max-width:1100px){
	body.tagx247-global-header-page .tagx247-nav,
	body.tagx247-smart-home-product-compatible .tagx247-nav{
		display:none;
	}
	body.tagx247-global-header-page .tagx247-menu-toggle,
	body.tagx247-smart-home-product-compatible .tagx247-menu-toggle{
		display:block;
	}
}

@media(max-width:768px){
	body.tagx247-global-header-page .tagx247-shell,
	body.tagx247-smart-home-product-compatible .tagx247-shell{
		width:min(100% - 26px,1420px);
	}
	body.tagx247-global-header-page .tagx247-nav-wrap,
	body.tagx247-smart-home-product-compatible .tagx247-nav-wrap{
		min-height:74px;
		gap:12px;
	}
	body.tagx247-global-header-page .tagx247-logo img,
	body.tagx247-smart-home-product-compatible .tagx247-logo img{
		width:126px;
		max-height:50px;
	}
	body.tagx247-global-header-page .tagx247-header-cta,
	body.tagx247-smart-home-product-compatible .tagx247-header-cta{
		display:none;
	}
	body.tagx247-global-header-page .tagx247-mobile-panel.is-open,
	body.tagx247-smart-home-product-compatible .tagx247-mobile-panel.is-open{
		display:block;
	}
}


/* v1.8.8 - Mobile menu button safe layout */
@media(max-width:768px){
	body.tagx247-global-header-page .tagx247-header,
	body.tagx247-smart-home-product-compatible .tagx247-header{
		overflow:visible!important;
	}
	body.tagx247-global-header-page .tagx247-nav-wrap,
	body.tagx247-smart-home-product-compatible .tagx247-nav-wrap{
		display:flex!important;
		align-items:center!important;
		justify-content:space-between!important;
		min-height:76px!important;
		gap:12px!important;
	}
	body.tagx247-global-header-page .tagx247-logo img,
	body.tagx247-smart-home-product-compatible .tagx247-logo img{
		width:auto!important;
		height:58px!important;
		max-width:150px!important;
		max-height:58px!important;
		object-fit:contain!important;
	}
	body.tagx247-global-header-page .tagx247-menu-toggle,
	body.tagx247-smart-home-product-compatible .tagx247-menu-toggle{
		display:inline-flex!important;
		flex-direction:column!important;
		align-items:center!important;
		justify-content:center!important;
		gap:5px!important;
		width:48px!important;
		height:48px!important;
		min-width:48px!important;
		max-width:48px!important;
		min-height:48px!important;
		max-height:48px!important;
		margin:0!important;
		padding:0!important;
		border:1px solid #dfe7f1!important;
		border-radius:14px!important;
		background:#fff!important;
		box-shadow:0 8px 18px rgba(15,23,42,.06)!important;
	}
	body.tagx247-global-header-page .tagx247-menu-toggle span,
	body.tagx247-smart-home-product-compatible .tagx247-menu-toggle span{
		display:block!important;
		width:24px!important;
		height:3px!important;
		min-height:3px!important;
		max-height:3px!important;
		margin:0!important;
		padding:0!important;
		background:#071126!important;
		border-radius:999px!important;
		border:0!important;
	}
	body.tagx247-global-header-page .tagx247-mobile-panel.is-open,
	body.tagx247-smart-home-product-compatible .tagx247-mobile-panel.is-open{
		display:grid!important;
		grid-template-columns:1fr!important;
		gap:0!important;
	}
}

/* =========================================================
   v1.8.8 SAFE PRODUCT COMPATIBILITY
   Header only. No WooCommerce product layout rules here.
   ========================================================= */

body.tagx247-smart-home-product-compatible .tagx247-global-header,
body.tagx247-global-header-page .tagx247-global-header {
	position: relative !important;
	z-index: 1000 !important;
	background: #ffffff !important;
	overflow: visible !important;
}

body.tagx247-smart-home-product-compatible .tagx247-header,
body.tagx247-global-header-page .tagx247-header {
	position: relative !important;
	z-index: 1000 !important;
	background: #ffffff !important;
	overflow: visible !important;
}

@media (max-width: 768px) {
	body.tagx247-smart-home-product-compatible .tagx247-shell,
	body.tagx247-global-header-page .tagx247-shell {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 18px !important;
		padding-right: 18px !important;
	}

	body.tagx247-smart-home-product-compatible .tagx247-nav-wrap,
	body.tagx247-global-header-page .tagx247-nav-wrap {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		min-height: 84px !important;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
		gap: 12px !important;
	}

	body.tagx247-smart-home-product-compatible .tagx247-logo,
	body.tagx247-global-header-page .tagx247-logo {
		display: inline-flex !important;
		align-items: center !important;
		max-width: calc(100% - 78px) !important;
		min-width: 0 !important;
	}

	body.tagx247-smart-home-product-compatible .tagx247-logo img,
	body.tagx247-global-header-page .tagx247-logo img {
		display: block !important;
		width: auto !important;
		height: 56px !important;
		max-width: 150px !important;
		max-height: 56px !important;
		object-fit: contain !important;
	}

	body.tagx247-smart-home-product-compatible .tagx247-nav,
	body.tagx247-global-header-page .tagx247-nav,
	body.tagx247-smart-home-product-compatible .tagx247-header-cta,
	body.tagx247-global-header-page .tagx247-header-cta {
		display: none !important;
	}

	body.tagx247-smart-home-product-compatible .tagx247-menu-toggle,
	body.tagx247-global-header-page .tagx247-menu-toggle,
	body.tagx247-smart-home-product-compatible button.tagx247-menu-toggle,
	body.tagx247-global-header-page button.tagx247-menu-toggle {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex-direction: column !important;
		gap: 6px !important;
		width: 58px !important;
		height: 58px !important;
		min-width: 58px !important;
		max-width: 58px !important;
		min-height: 58px !important;
		max-height: 58px !important;
		padding: 0 !important;
		margin: 0 !important;
		border-radius: 18px !important;
		border: 1px solid #dfe7f1 !important;
		background: #ffffff !important;
		box-shadow: 0 10px 26px rgba(15,23,42,.08) !important;
		appearance: none !important;
		-webkit-appearance: none !important;
		font-size: 0 !important;
		line-height: 1 !important;
	}

	body.tagx247-smart-home-product-compatible .tagx247-menu-toggle span,
	body.tagx247-global-header-page .tagx247-menu-toggle span,
	body.tagx247-smart-home-product-compatible button.tagx247-menu-toggle span,
	body.tagx247-global-header-page button.tagx247-menu-toggle span {
		display: block !important;
		width: 28px !important;
		height: 3px !important;
		min-height: 3px !important;
		max-height: 3px !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #071126 !important;
		border-radius: 999px !important;
		border: 0 !important;
		box-shadow: none !important;
	}

	body.tagx247-smart-home-product-compatible .tagx247-mobile-panel,
	body.tagx247-global-header-page .tagx247-mobile-panel {
		display: none !important;
		width: 100% !important;
		background: #ffffff !important;
		border-top: 1px solid #edf1f6 !important;
		padding: 8px 18px 18px !important;
	}

	body.tagx247-smart-home-product-compatible .tagx247-mobile-panel.is-open,
	body.tagx247-global-header-page .tagx247-mobile-panel.is-open {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
	}
}


/* v1.9.1 - Cart quantity badge beside Cart menu/button */
.tagx247-header-cta,
.tagx247-mobile-cta{
    position: relative !important;
}
.tagx247-cart-count{
    display: inline-grid !important;
    place-items: center !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #071126 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    box-shadow: 0 6px 14px rgba(15,23,42,.18) !important;
    margin-left: 2px !important;
}
.tagx247-header-cta .tagx247-cart-text,
.tagx247-mobile-cta .tagx247-cart-text{
    display: inline-block !important;
}
@media(max-width:768px){
    .tagx247-mobile-cta .tagx247-cart-count{
        min-width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
        margin-left: 6px !important;
    }
}

/* WooCommerce add-to-cart message style loaded on product pages too */
.woocommerce-message,
.woocommerce .woocommerce-message,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-checkout .woocommerce-message {
    background: #ffffff !important;
    color: #071126 !important;
    border: 1px solid #dfe7f1 !important;
    border-left: 6px solid #18d7c4 !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08) !important;
    padding: 0 !important;
    margin: 24px 0 28px 0 !important;
    overflow: hidden !important;
    font-weight: 500 !important;
}
.woocommerce-message::before,.woocommerce .woocommerce-message::before{display:none!important;content:none!important;}
.tagx247-cart-message-inner{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;width:100%!important;padding:18px 22px!important;box-sizing:border-box!important;}
.tagx247-cart-message-icon{flex:0 0 38px!important;width:38px!important;height:38px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#ff4b1f 0%,#ec1aa7 45%,#1bb7ff 100%)!important;color:#fff!important;font-size:22px!important;font-weight:900!important;box-shadow:0 12px 28px rgba(236,26,167,.22)!important;}
.tagx247-cart-message-text{flex:1 1 auto!important;font-size:18px!important;line-height:1.35!important;color:#071126!important;}.tagx247-cart-message-text strong{font-weight:900!important;color:#071126!important;}
.tagx247-cart-message-actions{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;gap:10px!important;}
.woocommerce-message .button,.woocommerce .woocommerce-message .button,.tagx247-cart-message-actions .button{float:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:0 22px!important;border-radius:999px!important;border:0!important;text-transform:uppercase!important;letter-spacing:.03em!important;font-size:13px!important;font-weight:900!important;text-decoration:none!important;color:#fff!important;background:linear-gradient(135deg,#ff4b1f 0%,#ec1aa7 45%,#1bb7ff 100%)!important;box-shadow:0 14px 32px rgba(27,183,255,.18)!important;}.tagx247-cart-message-actions .tagx247-view-cart-btn{background:#071126!important;}
@media(max-width:768px){.woocommerce-message,.woocommerce .woocommerce-message,body.woocommerce-cart .woocommerce-message,body.woocommerce-checkout .woocommerce-message{margin:18px 0 22px 0!important;border-radius:16px!important}.tagx247-cart-message-inner{flex-direction:column!important;align-items:flex-start!important;gap:14px!important;padding:18px!important}.tagx247-cart-message-text{font-size:16px!important}.tagx247-cart-message-actions{width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.tagx247-cart-message-actions .button{width:100%!important;min-height:48px!important}}
