/*
 * Theme Assets — Zig Trading
 * Global header/footer presentation.
 * Typography intentionally inherits the active GreenBox theme.
 */

:root {
	--ta-green: #32cd32;
	--ta-green-dark: #30af30;
	--ta-text: #333333;
	--ta-soft: #f5f4f2;
	--ta-footer: #1b1b1b;
	--ta-footer-2: #1c1c1c;
	--ta-copyright: #2b2b2b;
}

/* The legacy GreenBox chrome remains untouched on disk and is simply replaced visually. */
body.wdp-theme-assets-active .top_panel,
body.wdp-theme-assets-active .menu_mobile_overlay,
body.wdp-theme-assets-active .menu_mobile,
body.wdp-theme-assets-active .site_footer_wrap {
	display: none !important;
}

.ta-theme-assets,
.ta-theme-assets *,
.ta-theme-assets button,
.ta-theme-assets input,
.ta-theme-assets select,
.ta-theme-assets textarea {
	font-family: inherit;
	box-sizing: border-box;
}

.ta-theme-assets a {
	text-decoration: none;
}

html.ta-mobile-menu-open,
html.ta-mobile-menu-open body {
	overflow: hidden;
}

/* ---------- Header ---------- */

.ta-header {
	position: relative;
	width: 100%;
	background: #fff;
	color: var(--ta-text);
	z-index: 9998;
}

.ta-topbar {
	min-height: 46px;
	background: var(--ta-soft);
	border-top: 1px solid rgba(0,0,0,.04);
}

.ta-topbar-inner {
	width: min(100% - 32px, 1080px);
	min-height: 46px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 34px;
}

.ta-contact-line {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--ta-text) !important;
	font-size: 15px;
	line-height: 1.15;
	font-weight: 400;
	white-space: nowrap;
}

.ta-contact-line strong {
	font-weight: 700;
}

.ta-contact-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	color: var(--ta-green);
}

.ta-mainbar {
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
}

.ta-mainbar-inner {
	width: min(100% - 120px, 1280px);
	min-height: 104px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 104px minmax(0,1fr) 136px;
	align-items: center;
	column-gap: 24px;
}

.ta-logo {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: 98px;
	max-width: 100%;
}

.ta-logo img {
	display: block;
	width: 98px;
	height: auto;
	max-height: 78px;
	object-fit: contain;
}

.ta-desktop-nav {
	min-width: 0;
}

.ta-desktop-menu,
.ta-desktop-menu .ta-submenu,
.ta-mobile-menu,
.ta-mobile-menu .ta-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ta-desktop-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 1.05vw, 18px);
	width: 100%;
}

.ta-desktop-menu > .ta-menu-item {
	position: relative;
	flex: 0 0 auto;
}

.ta-desktop-menu > .ta-menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 44px;
	padding: 4px 2px;
	color: #2f2f2f !important;
	font-size: clamp(9.8px, 1vw, 12px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: .015em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color .18s ease;
}

.ta-desktop-menu > .ta-menu-item > a:hover,
.ta-desktop-menu > .ta-menu-item.ta-current > a,
.ta-desktop-menu > .ta-menu-item:focus-within > a {
	color: var(--ta-green-dark) !important;
}

.ta-menu-caret {
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transform-origin: 60% 60%;
	transition: transform .18s ease;
}

.ta-desktop-menu .ta-submenu {
	position: absolute;
	top: calc(100% - 2px);
	left: -16px;
	z-index: 10000;
	display: none;
	min-width: 220px;
	padding: 10px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.07);
	border-radius: 4px;
	box-shadow: 0 18px 55px rgba(0,0,0,.14);
}

.ta-desktop-menu .ta-submenu .ta-menu-item {
	position: relative;
}

.ta-desktop-menu .ta-submenu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	color: #333 !important;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 600;
	text-transform: none;
	white-space: nowrap;
	border-radius: 3px;
}

.ta-desktop-menu .ta-submenu a:hover,
.ta-desktop-menu .ta-submenu .ta-current > a {
	color: var(--ta-green-dark) !important;
	background: rgba(50,205,50,.07);
}

.ta-desktop-menu .ta-submenu .ta-submenu {
	top: -10px;
	left: calc(100% + 8px);
}

.ta-desktop-menu .ta-has-children:hover > .ta-submenu,
.ta-desktop-menu .ta-has-children:focus-within > .ta-submenu {
	display: block;
}

.ta-desktop-menu .ta-submenu .ta-menu-caret {
	transform: rotate(-45deg);
}

.ta-contact-button {
	justify-self: end;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 138px;
	min-height: 44px;
	padding: 6px 24px;
	color: #fff !important;
	background: linear-gradient(180deg, var(--ta-green) 0%, var(--ta-green-dark) 100%);
	border-radius: 100px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(48,175,48,.10);
	transition: transform .18s ease, box-shadow .18s ease;
}


.ta-contact-button {
	text-transform: none;
}

.ta-contact-button:hover,
.ta-contact-button:focus {
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(48,175,48,.18);
}

.ta-mobile-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 8px;
	margin: 0;
	border: 0;
	background: transparent;
	color: #333;
	cursor: pointer;
}

.ta-mobile-toggle span {
	display: block;
	width: 28px;
	height: 4px;
	margin: 4px auto;
	background: currentColor;
	border-radius: 1px;
}

.ta-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0,0,0,.38);
	backdrop-filter: blur(2px);
}

.ta-mobile-panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 10001;
	width: min(90vw, 390px);
	height: 100dvh;
	overflow-y: auto;
	background: #fff;
	box-shadow: -18px 0 55px rgba(0,0,0,.18);
	transform: translateX(104%);
	transition: transform .28s ease;
}

.ta-mobile-open .ta-mobile-panel {
	transform: translateX(0);
}

.ta-mobile-panel-head {
	min-height: 88px;
	padding: 10px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #ececec;
}

.ta-mobile-panel-logo img {
	display: block;
	width: 84px;
	height: auto;
	max-height: 64px;
	object-fit: contain;
}

.ta-mobile-close {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #333;
	font-size: 38px;
	line-height: 1;
	cursor: pointer;
}

.ta-mobile-nav {
	padding: 10px 0 32px;
}

.ta-mobile-menu > .ta-menu-item {
	border-bottom: 1px solid #efefef;
}

.ta-mobile-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 48px;
	padding: 11px 22px;
	color: #2f2f2f !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

.ta-mobile-menu .ta-current > a {
	color: var(--ta-green-dark) !important;
}

.ta-mobile-menu .ta-submenu {
	display: none;
	background: #f7f7f7;
}

.ta-mobile-menu .ta-child-open > .ta-submenu {
	display: block;
}

.ta-mobile-menu .ta-submenu a {
	padding-left: 34px;
	font-size: 12px;
	text-transform: none;
}

.ta-mobile-menu .ta-submenu .ta-submenu a {
	padding-left: 50px;
}

.ta-mobile-menu .ta-child-open > a > .ta-menu-caret {
	transform: rotate(225deg);
}

.ta-mobile-menu .ta-menu-cta-item > a {
	margin: 12px 20px;
	min-height: 46px;
	justify-content: center;
	color: #fff !important;
	background: linear-gradient(180deg, var(--ta-green) 0%, var(--ta-green-dark) 100%);
	border-radius: 100px;
}

/* ---------- Footer ---------- */

.ta-footer {
	position: relative;
	z-index: 5;
	width: 100%;
	color: #f2f2f2;
	background: var(--ta-footer);
}

.ta-footer-main {
	padding: 54px 28px 38px;
	background: linear-gradient(180deg, var(--ta-footer) 0%, var(--ta-footer-2) 100%);
}

.ta-footer-grid {
	width: min(100%, 1080px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 31fr 44fr 25fr;
	align-items: center;
	gap: 32px;
}

.ta-footer-column,
.ta-footer-column * {
	font-family: inherit;
}

.ta-footer-column h2 {
	margin: 0 0 20px;
	color: #fff;
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: capitalize;
}

.ta-footer-links-column h2 {
	text-align: left;
}

.ta-footer-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ta-footer-link-list li {
	position: relative;
	margin: 5px 0;
	padding-left: 13px;
}

.ta-footer-link-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .7em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ta-green);
	transform: translateY(-50%);
}

.ta-footer-link-list a {
	color: #f2f2f2 !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

.ta-footer-link-list a:hover {
	color: var(--ta-green) !important;
}

.ta-footer-payment-column {
	text-align: center;
}

.ta-footer-payment-column h2 {
	text-align: center;
}

.ta-banks-image {
	display: block;
	width: 58%;
	max-width: 300px;
	height: auto;
	margin: 0 auto;
}

.ta-footer-premises-column {
	text-align: center;
}

.ta-premises-image {
	display: block;
	width: 100%;
	max-width: 270px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	height: auto;
	margin: 0 auto;
}

.ta-footer-nav-strip {
	padding: 18px 24px 14px;
	background: #1a1a1a;
	border-top: 1px solid rgba(255,255,255,.035);
}

.ta-footer-nav-strip ul {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 34px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ta-footer-nav-strip li {
	position: relative;
	padding-left: 12px;
}

.ta-footer-nav-strip li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ta-green);
	transform: translateY(-50%);
}

.ta-footer-nav-strip a {
	color: #f2f2f2 !important;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.ta-footer-nav-strip a:hover {
	color: var(--ta-green) !important;
}

.ta-footer-copyright {
	min-height: 40px;
	padding: 15px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ta-copyright);
}

.ta-footer-copyright p {
	margin: 0;
	color: #969696;
	font-size: 13px;
	line-height: 18px;
	text-align: center;
}

.ta-footer-copyright a {
	color: var(--ta-green) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) and (min-width: 901px) {
	.ta-mainbar-inner {
		width: min(100% - 48px, 1040px);
		grid-template-columns: 92px minmax(0,1fr) 118px;
		column-gap: 11px;
	}

	.ta-logo,
	.ta-logo img {
		width: 88px;
	}

	.ta-desktop-menu {
		gap: 8px;
	}

	.ta-desktop-menu > .ta-menu-item > a {
		font-size: 9.5px;
	}

	.ta-contact-button {
		width: 128px;
		min-height: 42px;
		padding: 6px 18px;
		font-size: 12px;
		white-space: nowrap;
	}
}

@media (max-width: 900px) {
	.ta-topbar {
		min-height: 62px;
	}

	.ta-topbar-inner {
		width: min(100% - 28px, 480px);
		min-height: 62px;
		padding: 7px 0;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
	}

	.ta-contact-line {
		font-size: 13px;
		gap: 8px;
	}

	.ta-contact-icon {
		width: 18px;
		height: 18px;
		flex-basis: 18px;
	}

	.ta-mainbar-inner {
		width: 100%;
		min-height: 87px;
		padding: 0 17px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.ta-logo,
	.ta-logo img {
		width: 84px;
	}

	.ta-desktop-nav,
	.ta-contact-button {
		display: none;
	}

	.ta-mobile-toggle {
		display: block;
	}

	.ta-footer-main {
		padding: 42px 24px 34px;
	}

	.ta-footer-grid {
		grid-template-columns: 1fr;
		gap: 36px;
		max-width: 520px;
	}

	.ta-footer-column,
	.ta-footer-links-column h2,
	.ta-footer-payment-column h2 {
		text-align: center;
	}

	.ta-footer-column h2 {
		font-size: 20px;
		margin-bottom: 18px;
	}

	.ta-footer-link-list {
		display: inline-block;
		text-align: left;
	}

	.ta-banks-image {
		width: min(98%, 360px);
		border-radius: 10px;
	}

	.ta-premises-image {
		width: min(88%, 340px);
		max-width: 340px;
		border-radius: 10px;
	}

	.ta-footer-nav-strip ul {
		gap: 10px 18px;
	}

	.ta-footer-nav-strip a {
		font-size: 9px;
	}

	.ta-footer-copyright {
		padding: 11px 20px;
	}

	.ta-footer-copyright p {
		font-size: 9px;
		line-height: 13px;
	}
}

@media (max-width: 480px) {
	.ta-contact-line {
		font-size: 13px;
	}

	.ta-mainbar-inner {
		padding-left: 17px;
		padding-right: 17px;
	}

	.ta-mobile-panel {
		width: min(92vw, 380px);
	}

	.ta-footer-main {
		padding-left: 18px;
		padding-right: 18px;
	}

	.ta-footer-nav-strip ul {
		flex-direction: column;
		gap: 8px;
	}

	.ta-footer-nav-strip li {
		padding-left: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ta-mobile-panel,
	.ta-contact-button {
		transition: none;
	}
}


/* ---------- Products mega menu ---------- */

.ta-desktop-menu > .ta-menu-item.ta-has-children {
	position: relative;
}

.ta-desktop-menu > .ta-menu-item > .ta-products-mega {
	position: fixed;
	left: 50%;
	top: auto;
	z-index: 10020;
	display: none;
	width: min(645px, calc(100vw - 64px));
	padding: 15px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.07);
	border-radius: 10px;
	box-shadow: 0 24px 70px rgba(0,0,0,.16);
	transform: translateX(-50%);
}

.ta-desktop-menu > .ta-menu-item:hover > .ta-products-mega,
.ta-desktop-menu > .ta-menu-item:focus-within > .ta-products-mega {
	display: block;
}

.ta-products-mega-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 16px;
}

.ta-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 2px solid #ececec;
	border-radius: 12px;
	box-shadow: 0 9px 22px rgba(0,0,0,.08);
	transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.ta-product-card:hover,
.ta-product-card:focus,
.ta-product-card:focus-visible,
.ta-product-card:active,
.ta-product-card.ta-card-pressed {
	border-color: var(--ta-green);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0,0,0,.12);
	outline: none;
}

.ta-product-card-media {
	display: block;
	aspect-ratio: 1 / 1;
	padding: 7px 7px 0;
	background: #fff;
}

.ta-product-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 12px;
}

.ta-product-card-title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 7px 9px 9px;
	color: #333;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.ta-product-card:hover .ta-product-card-title,
.ta-product-card:focus .ta-product-card-title,
.ta-product-card.ta-card-pressed .ta-product-card-title {
	color: var(--ta-green-dark);
}

.ta-mobile-product-cards {
	display: none;
	padding: 18px 18px 28px;
	border-top: 1px solid #ececec;
}

.ta-mobile-product-cards h2 {
	margin: 0 0 14px;
	color: #333;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.ta-mobile-product-cards .ta-products-mega {
	display: block;
	position: static;
	width: 100%;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}

@media (max-width: 900px) {
	.ta-mobile-product-cards {
		display: block;
	}

	.ta-mobile-product-cards .ta-products-mega-grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
		gap: 12px;
	}

	.ta-mobile-product-cards .ta-product-card {
		border-radius: 10px;
		box-shadow: 0 6px 16px rgba(0,0,0,.07);
	}

	.ta-mobile-product-cards .ta-product-card-media {
		padding: 7px 7px 0;
	}

	.ta-mobile-product-cards .ta-product-card-title {
		min-height: 38px;
		padding: 6px 6px 8px;
		font-size: 10px;
	}

	/* The product mega cards are the mobile Products presentation, so hide the nested text submenu. */
	.ta-mobile-menu > .ta-menu-item.ta-has-children:first-of-type > .ta-submenu {
		display: none !important;
	}
}


/* ---------- Revolution Slider first-paint stabilizer ----------
 * GreenBox places WPBakery rows inside a boxed .content_wrap.
 * WPBakery normally stretches [data-vc-full-width] rows later in JavaScript.
 * This makes Revolution Slider full viewport width on first paint instead of
 * waiting for WPBakery/Slider Revolution runtime recalculation.
 */

body.wdp-theme-assets-active {
	overflow-x: clip;
}

body.wdp-theme-assets-active .wpb-content-wrapper > .vc_row[data-vc-full-width="true"][data-vc-stretch-content="true"]:has(.wpb_revslider_element),
body.wdp-theme-assets-active.home .wpb-content-wrapper > .vc_row:first-child[data-vc-full-width="true"][data-vc-stretch-content="true"] {
	position: relative !important;
	left: 50% !important;
	right: auto !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
}

body.wdp-theme-assets-active .wpb-content-wrapper > .vc_row[data-vc-full-width="true"][data-vc-stretch-content="true"]:has(.wpb_revslider_element) > .vc_column_container,
body.wdp-theme-assets-active.home .wpb-content-wrapper > .vc_row:first-child[data-vc-full-width="true"][data-vc-stretch-content="true"] > .vc_column_container {
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.wdp-theme-assets-active .wpb-content-wrapper > .vc_row[data-vc-full-width="true"][data-vc-stretch-content="true"]:has(.wpb_revslider_element) > .vc_column_container > .vc_column-inner,
body.wdp-theme-assets-active.home .wpb-content-wrapper > .vc_row:first-child[data-vc-full-width="true"][data-vc-stretch-content="true"] > .vc_column_container > .vc_column-inner {
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.wdp-theme-assets-active .wpb_revslider_element,
body.wdp-theme-assets-active .wpb_revslider_element > .wpb_wrapper {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.wdp-theme-assets-active .wpb_revslider_element rs-module-wrap {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}


/* ---------- Revolution Slider direct first-paint full bleed ----------
 * This does not wait for WPBakery or Slider Revolution JavaScript.
 * It gives Slider Revolution a viewport-wide parent from the moment the
 * slider markup is parsed, which mirrors the early layout/reflow Elementor
 * was effectively providing on this site.
 */
body.wdp-theme-assets-active .wpb-content-wrapper .wpb_revslider_element {
	position: relative !important;
	left: 50% !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	transform: translateX(-50%) !important;
}

body.wdp-theme-assets-active .wpb-content-wrapper .wpb_revslider_element > rs-module-wrap,
body.wdp-theme-assets-active .wpb-content-wrapper .wpb_revslider_element rs-module-wrap {
	display: block !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.wdp-theme-assets-active .wpb-content-wrapper .wpb_revslider_element rs-module {
	width: 100% !important;
	max-width: 100% !important;
}

/* GreenBox's custom desktop VC column padding must not be allowed to size
 * the slider before the builder's JS stretch calculation runs.
 */
body.wdp-theme-assets-active .wpb-content-wrapper .vc_row:has(.wpb_revslider_element) > .vc_column_container > .vc_column-inner,
body.wdp-theme-assets-active .wpb-content-wrapper .vc_row:has(.wpb_revslider_element) > .vc_column_container > .vc_column-inner > .wpb_wrapper {
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
