/* G3 Header, Galleria On Third, by Design Fly 24 */
.g3h {
	--g3-primary: #2D82F5;
	--g3-primary-dark: #1E63C9;
	--g3-ink: #0F172A;
	--g3-border: #E6ECF5;
	--g3-surface: #F5F8FD;
	--g3h-top: var(--wp-admin--admin-bar--height, 0px);
	position: relative;
	z-index: 999;
	font-family: "Roboto", system-ui, sans-serif;
}
.g3h *, .g3h *::before, .g3h *::after { box-sizing: border-box; }
.g3h ul { list-style: none; margin: 0; padding: 0; }
.g3h a { text-decoration: none; }
.g3h [hidden] { display: none !important; }
.g3h .g3-ico { width: 18px; height: 18px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.g3h :where(a, button):focus-visible { outline: 3px solid var(--g3-primary); outline-offset: 3px; border-radius: 8px; }

.g3h-bar { position: relative; background: #fff; border-bottom: 1px solid var(--g3-border); transition: box-shadow .25s ease; }
.g3h.is-sticky .g3h-bar { position: fixed; top: var(--g3h-top); left: 0; right: 0; z-index: 999; }
.g3h.is-sticky.has-shadow.is-scrolled .g3h-bar { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .25); }
.g3h-spacer { display: none; }
.g3h.is-sticky .g3h-spacer { display: block; height: var(--g3h-h, 81px); }

.g3h-inner { width: calc(100% - 40px); max-width: 1440px; margin: 0 auto; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 640px) { .g3h-inner { gap: 24px; } }
.g3h-logo { flex-shrink: 0; display: inline-flex; align-items: center; color: var(--g3-ink); font-weight: 700; min-width: 0; }
.g3h-logo img { display: block; width: 160px; max-width: 100%; height: auto; }
@media (min-width: 1024px) { .g3h-logo img { width: 176px; } }

/* Desktop nav */
.g3h-nav { display: none; }
.g3h-nav > ul { display: flex; align-items: center; gap: 32px; }
.g3h-nav > ul > li { position: relative; display: flex; align-items: center; }
.g3h-nav > ul > li > a,
.g3h-nav > ul > li > button {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; margin: 0;
	background: none; border: 0; border-radius: 0; cursor: pointer; box-shadow: none;
	font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--g3-ink);
	transition: color .2s ease;
}
.g3h-nav > ul > li > a:hover,
.g3h-nav > ul > li > button:hover,
.g3h-nav > ul > li > button:focus,
.g3h-nav > ul > li.is-open > button,
.g3h-nav > ul > li.is-current > a { color: var(--g3-primary); background: none; }
.g3h-nav > ul > li > button .g3-ico { width: 16px; height: 16px; transition: transform .2s ease; }
.g3h-nav > ul > li.is-open > button .g3-ico { transform: rotate(180deg); }
.g3h-dd__wrap { position: absolute; left: 0; top: 100%; z-index: 50; padding-top: 12px; display: none; }
.g3h-dd.is-open .g3h-dd__wrap { display: block; }
.g3h-dd__panel { width: 256px; border-radius: 16px; border: 1px solid var(--g3-border); background: #fff; padding: 8px; box-shadow: 0 18px 44px -22px rgba(15, 23, 42, .30); }
.g3h-dd__panel a { display: flex; width: 100%; align-items: center; gap: 12px; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--g3-ink); transition: background-color .2s ease; }
.g3h-dd__panel a:hover { background: var(--g3-surface); }
.g3h-dd__panel .g3h-dd__all { color: var(--g3-primary); }
.g3h-dd__ico { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--g3-border); background: #fff; color: var(--g3-primary); }
.g3h-dd__ico .g3-ico { width: 16px; height: 16px; }

/* Actions */
.g3h-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.g3h-phone { display: none; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; color: var(--g3-ink); white-space: nowrap; }
.g3h a.g3h-phone:is(:hover, :focus, :active) { color: var(--g3-ink); }
.g3h-phone .g3-ico { width: 16px; height: 16px; color: var(--g3-primary); }
@media (min-width: 1024px) { .g3h-phone { display: inline-flex; } }
.g3h-btn {
	display: none; align-items: center; justify-content: center; height: 44px; padding: 0 20px;
	border-radius: 999px; border: 1.5px solid var(--g3-primary); background: var(--g3-primary); color: #fff !important;
	font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap; transition: background-color .2s ease;
}
.g3h-btn:hover, .g3h-btn:focus { background: var(--g3-primary); border-color: var(--g3-primary); color: #fff; }
@media (min-width: 640px) { .g3h-actions .g3h-btn { display: inline-flex; } }
.g3h .g3h-burger { display: inline-flex; align-items: center; justify-content: center; padding: 8px; margin: 0; background: none; border: 0; border-radius: 8px; color: var(--g3-ink); cursor: pointer; box-shadow: none; }
.g3h .g3h-burger:is(:hover, :focus, :active) { background: none; color: var(--g3-ink); }
.g3h .g3h-burger .g3-ico { width: 24px; height: 24px; }
.g3h-burger .is-close-ico { display: none; }
.g3h-burger[aria-expanded="true"] .is-close-ico { display: inline-flex; }
.g3h-burger[aria-expanded="true"] .is-open-ico { display: none; }

/* Breakpoints for the full menu */
@media (min-width: 1280px) {
	.g3h--bp1280 .g3h-nav { display: block; }
	.g3h--bp1280 .g3h-burger, .g3h--bp1280 .g3h-mobile { display: none !important; }
}
/* Many menu items: tighten a little on smaller laptops so everything stays on one line. */
@media (min-width: 1280px) and (max-width: 1439px) {
	.g3h--bp1280 .g3h-logo img { width: 150px; }
	.g3h--bp1280 .g3h-nav > ul { gap: 22px; }
	.g3h--bp1280 .g3h-nav > ul > li > a, .g3h--bp1280 .g3h-nav > ul > li > button { font-size: 14.5px; }
	.g3h--bp1280 .g3h-actions { gap: 16px; }
	.g3h--bp1280 .g3h-btn { padding: 0 18px; }
}
@media (min-width: 1440px) {
	.g3h-nav > ul { gap: 30px; }
}
@media (min-width: 1024px) {
	.g3h--bp1024 .g3h-nav { display: block; }
	.g3h--bp1024 .g3h-burger, .g3h--bp1024 .g3h-mobile { display: none !important; }
	.g3h--bp1024 .g3h-nav > ul { gap: 24px; }
}

/* Mobile panel */
.g3h-mobile {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 998;
	background: #fff; border-top: 1px solid var(--g3-border); padding: 0 20px 24px;
	max-height: calc(100dvh - 145px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
	box-shadow: 0 24px 40px -24px rgba(15, 23, 42, .3);
	-webkit-overflow-scrolling: touch; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
}
.g3h.is-sticky .g3h-mobile { position: fixed; top: calc(var(--g3h-top) + var(--g3h-h, 81px)); }
.g3h-mobile > ul > li { border-bottom: 1px solid var(--g3-border); }
.g3h-mobile > ul > li > a,
.g3h-mobile > ul > li > button {
	display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 0; margin: 0;
	background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; text-align: left;
	font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--g3-ink);
}
.g3h-mobile > ul > li > button:hover, .g3h-mobile > ul > li > button:focus { background: none; color: var(--g3-ink); }
.g3h .g3h-mobile .g3h-msub .g3-ico { display: block; width: 18px; height: 18px; min-width: 18px; flex: 0 0 18px; color: #2D82F5; stroke: #2D82F5; fill: none; overflow: visible; transition: transform .2s ease; }
.g3h .g3h-mobile .g3h-msub[aria-expanded="true"] .g3-ico { transform: rotate(180deg); }
.g3h-msub__list { padding-bottom: 12px; }
.g3h-msub__list a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--g3-ink); }
.g3h-mobile__btns { display: grid; gap: 12px; margin-top: 20px; }
.g3h .g3h-mobile .g3h-mobile__btns a.g3h-btn {
	display: flex; align-items: center; justify-content: center; height: auto; min-height: 48px; padding: 12px 18px;
	white-space: normal; text-align: center; font-family: "Roboto", system-ui, -apple-system, sans-serif;
	font-size: 16px !important; font-weight: 600; line-height: 1.3 !important; text-indent: 0; letter-spacing: normal;
	color: #fff !important; -webkit-text-fill-color: #fff; opacity: 1; visibility: visible;
}
.g3h .g3h-mobile .g3h-mobile__btns a.g3h-btn--outline { background: #fff; color: #2D82F5 !important; -webkit-text-fill-color: #2D82F5; }
.g3h-mobile__btns .g3h-btn--outline:hover { background: #fff; border-color: var(--g3-primary); }

/* Elementor editor: keep everything in normal flow */
.elementor-editor-active .g3h.is-sticky .g3h-bar,
.elementor-editor-active .g3h.is-sticky .g3h-mobile { position: absolute; top: auto; }
.elementor-editor-active .g3h.is-sticky .g3h-bar { position: relative; }
.elementor-editor-active .g3h-spacer { display: none !important; }

/* Sit flush: no default Elementor widget spacing under the header. */
.elementor-widget.elementor-widget-g3-header { margin-block-end: 0 !important; margin-bottom: 0 !important; }

/* Cart icon */
.g3h a.g3h-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; border-radius: 999px; color: var(--g3-ink); background: transparent; transition: background-color .2s ease, color .2s ease; text-decoration: none; flex-shrink: 0; }
.g3h a.g3h-cart:is(:hover, :focus-visible) { background: #EEF4FF; color: var(--g3-primary); }
.g3h a.g3h-cart:focus-visible { outline: 2px solid var(--g3-primary); outline-offset: 2px; }
.g3h-cart .g3-ico { width: 23px; height: 23px; }
.g3h-cart__count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; border: 2px solid #fff; background: var(--g3-primary); color: #fff; font: 700 10px/15px var(--g3-body, Roboto, sans-serif); text-align: center; pointer-events: none; }
.g3h-cart__count.is-empty { display: none; }
.g3h-actions { gap: 14px; }
@media (min-width: 1024px) { .g3h-actions { gap: 18px; } }
@media (max-width: 639px) { .g3h-actions { gap: 4px; } .g3h a.g3h-cart { width: 42px; height: 42px; } }

/* Cart badge: never clipped */
.g3h a.g3h-cart { overflow: visible !important; line-height: 1 !important; }
.g3h .g3h-cart__count { display: inline-flex; align-items: center; justify-content: center; top: 1px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-width: 2px; font-size: 11px !important; line-height: 1 !important; font-weight: 700; letter-spacing: 0; overflow: visible; z-index: 2; }
.g3h .g3h-cart__count.is-empty { display: none; }
.g3h .g3h-phone { flex-shrink: 0; margin-right: 4px; }
