/* ==========================================================================
   জ্ঞানল্যাব একাডেমি — global layer
   Design tokens, sticky glass header, card/motion polish, layout clean-up.
   Loaded from the GyanLab Site Layer plugin; every rule is either a token
   or a progressive enhancement, so nothing here can hide content.
   ========================================================================== */

:root {
	--gl-green: #0F643E;
	--gl-green-dark: #0A4629;
	--gl-green-soft: #E8F5EE;
	--gl-mint: #7FE3B0;
	--gl-navy: #0F2442;
	--gl-slate: #324A6D;
	--gl-muted: #5B7089;
	--gl-amber: #F59E0B;
	--gl-surface: #F7FAF9;
	--gl-border: #E2EAE5;
	--gl-radius: 20px;
	--gl-radius-sm: 14px;
	--gl-shadow: 0 14px 40px rgba(15, 36, 66, .09);
	--gl-shadow-lg: 0 22px 60px rgba(15, 36, 66, .14);
	--gl-container: 1240px;
	--gl-font: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------- baseline -- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	font-family: var(--gl-font);
	color: var(--gl-slate);
	background: #fff;
	/* `clip`, not `hidden`: overflow:hidden turns body into a scroll container,
	   which silently breaks position:sticky on the header. */
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--gl-font);
	color: var(--gl-navy);
	line-height: 1.35;
}

/* Bengali needs a little more room on the line than Latin defaults give. */
p, li, .elementor-widget-text-editor { line-height: 1.8; }

img, svg, video { max-width: 100%; height: auto; }

/* Visible keyboard focus everywhere, without painting it on mouse clicks. */
:focus-visible {
	outline: 3px solid var(--gl-green);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ------------------------------------------------- header: sticky + glass -- */
/* Root element of the Theme Builder header carries .gl-header. */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
}

.gl-header {
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	background-color: rgba(255, 255, 255, .86);
	transition: background-color .25s ease, box-shadow .25s ease,
	            backdrop-filter .25s ease;
}

/* JS adds .gl-scrolled once the page is scrolled past the threshold. */
.gl-scrolled .gl-header,
.gl-header.gl-scrolled {
	background-color: rgba(255, 255, 255, .94);
	box-shadow: 0 8px 30px rgba(15, 36, 66, .10);
}

/* Elementor's own sticky wrapper (Pro) — keep it aligned with our rules. */
.elementor-sticky--effects > .gl-header,
.elementor-sticky--active > .gl-header {
	background-color: rgba(255, 255, 255, .94);
	box-shadow: 0 8px 30px rgba(15, 36, 66, .10);
}

@media (prefers-reduced-transparency: reduce) {
	.gl-header { background-color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Header bottom edge: a hairline that firms up on scroll. */
.elementor-location-header .gl-header {
	border-bottom: 1px solid rgba(15, 36, 66, .07);
}

/* Separate the search from the nav so it groups with the icon cluster. */
.gl-header .gl-nav { margin-right: 10px; }
/* The row's own 12px gap already separates the groups; no extra margin. */
.gl-header .gl-hdr-search { margin-right: 0; }
/* Header nav: pill hover, no layout shift. */
.gl-header .elementor-nav-menu--main .elementor-item {
	border-radius: 10px;
	transition: color .18s ease, background-color .18s ease;
}
.gl-header .elementor-nav-menu--main .elementor-item:hover,
.gl-header .elementor-nav-menu--main .elementor-item:focus {
	background-color: var(--gl-green-soft);
}

/* Cart: icon only.
   Elementor's `hide_empty_indicator` setting does not suppress the bubble on
   this build, so hide the zero state in CSS. `data-counter` is maintained by
   WooCommerce, giving us a reliable hook. */
.gl-header .elementor-menu-cart__toggle_button .elementor-button-text {
	display: none !important;
}

.gl-header .elementor-menu-cart__toggle .elementor-button-icon-qty[data-counter="0"] {
	display: none !important;
}

.gl-header .elementor-menu-cart__toggle .elementor-button-icon-qty {
	font-weight: 700;
	font-size: 11px;
	min-width: 18px;
	min-height: 18px;
	line-height: 18px;
	padding: 0;
}

/* Dropdown panels get the same radius language as the cards. */
.gl-header .elementor-nav-menu--dropdown {
	border-radius: var(--gl-radius-sm);
	overflow: hidden;
	padding: 8px;
}

/* Search field: keep the pill shape even when the input is empty. */
.gl-header .elementor-search-form__container {
	border-radius: 999px;
	overflow: hidden;
}

/* ---------------------------------------------------- cards & interaction -- */
.gl-card {
	transition: transform .28s cubic-bezier(.22, .61, .36, 1),
	            box-shadow .28s ease, border-color .28s ease;
	will-change: transform;
}
.gl-card:hover,
.gl-card:focus-within {
	transform: translateY(-5px);
	box-shadow: var(--gl-shadow);
	border-color: rgba(15, 100, 62, .28) !important;
}

/* Category links inside cards shouldn't underline on hover. */
.gl-card a { text-decoration: none; }
.gl-card a:hover { text-decoration: none; }

/* ------------------------------------------------------------------ buttons --
   Elementor serves the *global* kit rule
       `.elementor-widget-button .elementor-button { background: var(--accent) }`
   in a stylesheet that loads AFTER the per-widget document CSS, at identical
   specificity — so it wins the tie and every button comes back in the global
   accent colour with a transparent border. Pinning each variant with a class
   that keeps the widget in the selector (0,2,0 beats 0,2,0 by order, and the
   !important makes it order-independent) settles it for good. */
.elementor-widget-button .gl-btn--primary .elementor-button {
	background-color: var(--gl-green) !important;
	color: #FFFFFF !important;
	border: 2px solid var(--gl-green) !important;
	box-shadow: 0 10px 24px -12px rgba(15, 100, 62, .65);
}

.elementor-widget-button .gl-btn--primary .elementor-button:hover,
.elementor-widget-button .gl-btn--primary .elementor-button:focus {
	background-color: var(--gl-green-dark) !important;
	border-color: var(--gl-green-dark) !important;
	color: #FFFFFF !important;
}

.elementor-widget-button .gl-btn--outline .elementor-button {
	background-color: transparent !important;
	color: var(--gl-green) !important;
	border: 2px solid var(--gl-green) !important;
}

.elementor-widget-button .gl-btn--outline .elementor-button:hover,
.elementor-widget-button .gl-btn--outline .elementor-button:focus {
	background-color: var(--gl-green-soft) !important;
	border-color: var(--gl-green-dark) !important;
	color: var(--gl-green-dark) !important;
}

/* On the dark green hero band. */
.elementor-widget-button .gl-btn--outline_light .elementor-button {
	background-color: transparent !important;
	color: #FFFFFF !important;
	border: 2px solid rgba(255, 255, 255, .6) !important;
}

.elementor-widget-button .gl-btn--outline_light .elementor-button:hover,
.elementor-widget-button .gl-btn--outline_light .elementor-button:focus {
	background-color: #FFFFFF !important;
	color: var(--gl-green-dark) !important;
	border-color: #FFFFFF !important;
}

/* On the green closing band: solid white reads, solid green would vanish. */
.elementor-widget-button .gl-btn--on_green .elementor-button {
	background-color: #FFFFFF !important;
	color: var(--gl-green) !important;
	border: 2px solid #FFFFFF !important;
}

.elementor-widget-button .gl-btn--on_green .elementor-button:hover,
.elementor-widget-button .gl-btn--on_green .elementor-button:focus {
	background-color: var(--gl-green-soft) !important;
	color: var(--gl-green-dark) !important;
	border-color: var(--gl-green-soft) !important;
}

/* Base motion + focus ring for every button. */
.elementor-button {
	border-radius: 999px;
	transition: transform .2s ease, background-color .2s ease,
	            color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.elementor-button:hover { transform: translateY(-2px); }
.elementor-button:active { transform: translateY(0); }
.elementor-button:focus-visible { outline: 3px solid var(--gl-amber); outline-offset: 3px; }

/* --------------------------------------------------------------- nav menu -- */
/* Six Bengali items fit on one line at desktop width; wrapping pushes the last
   item onto a second row and strands the active underline. */
.gl-header .gl-nav .elementor-nav-menu--layout-horizontal .elementor-nav-menu,
.gl-header .gl-nav ul.elementor-nav-menu {
	flex-wrap: nowrap !important;
	white-space: nowrap;
}

.gl-header .gl-nav .elementor-nav-menu a.elementor-item {
	white-space: nowrap;
	padding: 6px 9px;
}

@media (max-width: 1280px) {
	.gl-header .gl-nav .elementor-nav-menu a.elementor-item { padding: 6px 9px; font-size: 15px; }
}

/* --------------------------------------------------------------- search ----- */
/* Elementor's "classic" search skin ships a borderless input, which reads as
   loose text next to the button. Give it a real field. */
.gl-header .gl-search .elementor-search-form__container {
	display: flex;
	align-items: center;
	border: 1px solid var(--gl-border);
	background: #FFFFFF;
	border-radius: 999px;
	overflow: hidden;
	height: 46px;
	/* The submit sits inset from the pill's right cap, so the field keeps a
	   visible white margin instead of the circle eating the border. */
	padding: 3px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.gl-header .gl-search .elementor-search-form__container:focus-within {
	border-color: var(--gl-green);
	box-shadow: 0 0 0 4px rgba(15, 100, 62, .12);
}

.gl-header .gl-search .elementor-search-form__input {
	border: 0 !important;
	background: transparent !important;
	height: 100%;
	flex: 1 1 auto;
	font-size: 14.5px !important;
	padding: 0 4px 0 15px !important;
	box-shadow: none !important;
	min-width: 0;
}

.gl-header .gl-search .elementor-search-form__input::placeholder {
	color: var(--gl-muted);
	opacity: 1;
}

.gl-header .gl-search .elementor-search-form__submit {
	background-color: var(--gl-green) !important;
	color: #FFFFFF !important;
	height: 40px;
	width: 40px;
	flex: 0 0 40px;
	border: 0 !important;
	border-radius: 999px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease;
}

.gl-header .gl-search .elementor-search-form__submit:hover {
	background-color: var(--gl-green-dark) !important;
}

.gl-header .gl-search .elementor-search-form__submit svg {
	fill: currentColor;
	width: 18px;
	height: 18px;
}

/* WooCommerce buttons inherit the same language. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	border-radius: 999px;
	font-family: var(--gl-font);
	font-weight: 600;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(15, 100, 62, .22);
}

/* The featured product shortcode sits inside its own padded frame. */
.gl-featured-box .woocommerce,
.gl-featured-box ul.products { margin: 0; }
.gl-featured-box ul.products li.product {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	text-align: left;
}
.gl-featured-box ul.products li.product img {
	border-radius: var(--gl-radius-sm);
	margin-bottom: 16px;
}
.gl-featured-box .woocommerce-loop-product__title {
	font-size: 20px !important;
	font-weight: 700;
	color: var(--gl-navy);
	padding: 0 !important;
}
.gl-featured-box .price {
	color: var(--gl-green) !important;
	font-size: 19px !important;
	font-weight: 700;
}
.gl-featured-box .price del { color: var(--gl-muted); font-weight: 400; font-size: 15px; }
.gl-featured-box .price ins { text-decoration: none; }
.gl-featured-box .woocommerce-LoopProduct-link { display: block; }
.gl-featured-box .star-rating { margin-bottom: 8px; }

/* Accordion (FAQ) polish. */
.elementor-accordion .elementor-tab-title { font-family: var(--gl-font); }
.elementor-accordion .elementor-tab-content { font-family: var(--gl-font); }

/* --------------------------------------------------- motion / scroll reveal -- */
/* Only armed when JS runs (the inline head snippet adds .gl-js), so if the
   script is blocked the sections are simply visible. */
.gl-js .gl-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
	            transform .7s cubic-bezier(.22, .61, .36, 1);
}
.gl-js .gl-reveal.gl-delay-1 { transition-delay: .12s; }
.gl-js .gl-reveal.gl-delay-2 { transition-delay: .24s; }
.gl-js .gl-reveal.gl-in { opacity: 1; transform: none; }

/* Belt and braces: if the observer never fires, everything shows anyway. */
.gl-js.gl-reveal-timeout .gl-reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gl-js .gl-reveal { opacity: 1; transform: none; transition: none; }
	.gl-card:hover, .gl-card:focus-within { transform: none; }
	.elementor-button:hover { transform: none; }
}

/* On small screens the heavy blur is expensive — drop it. */
@media (max-width: 767px) {
	.gl-header { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: #fff; }
	.gl-card:hover, .gl-card:focus-within { transform: none; box-shadow: none; }
}

/* --------------------------------------------------------- layout clean-up -- */
/* The Theme Builder footer is the only footer. GeneratePress renders its own
   footer markup inside .site-footer, and Elementor's location-footer lives
   inside that same wrapper — so hide the theme's own pieces, never the
   wrapper itself, or the real footer disappears with them. */
.site-footer > .site-info,
.site-footer > .footer-widgets,
.site-footer .footer-widgets-container,
#footer-widgets,
.site-info {
	display: none !important;
}

/* Elementor's footer must stay visible wherever it lands in the tree. */
footer[data-elementor-type="footer"],
.elementor-location-footer,
.gl-footer {
	display: block;
}

.elementor-location-footer .gl-footer,
.gl-footer {
	display: flex;
}

/* ============================================================ header layout ==
   Elementor writes the column widths as `.e-con { width: var(--width) }`, and
   the builder defaults that to 0% for the navigation column while the action
   column inherits 100%. Combined, the nav collapses to zero width and its
   links wrap into a vertical stack. These stable classes pin the three-column
   layout so it never depends on generated element ids. */
.gl-hdr-row,
.gl-hdr-row > .e-con-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;
	gap: 14px;
	width: 100%;
}

.gl-hdr-row > .e-con-inner {
	max-width: 1240px;
	margin-inline: auto;
}

.gl-hdr-logo {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: 260px;
}

.gl-hdr-logo img { display: block; }

.gl-hdr-nav {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0;
}

.gl-hdr-nav > .e-con-inner,
.gl-hdr-nav > .elementor-widget-nav-menu {
	width: 100%;
}

.gl-hdr-actions {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	/* Sized by content, never grown: the nav absorbs the leftover width. */
	flex: 0 0 auto;
	width: auto;
}

.gl-hdr-icons {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	margin-left: 0;
}

/* Every widget inside the action cluster sizes to its content. Elementor's
   `_element_width:auto` emits `--container-widget-width: calc((1 - 1) * 100%)`,
   i.e. a literal 0px, which collapses the CTA button to nothing. */
.gl-hdr-actions > .elementor-element,
.gl-hdr-icons > .elementor-element,
.gl-hdr-search > .elementor-element {
	width: auto !important;
	flex: 0 0 auto !important;
}

.gl-hdr-actions .elementor-button {
	width: auto;
	white-space: nowrap;
}

/* Below the tablet breakpoint the nav collapses into Elementor's own burger,
   so the row only carries the logo, the burger, the cart and the CTA. */
@media (max-width: 1024px) {
	.gl-hdr-row > .e-con-inner { gap: 10px; }
	.gl-hdr-logo { max-width: 200px; }
	/* The search field collapses to a zero-width ghost at this size — hide it
	   rather than leaving an unlabelled grey capsule in the middle of the row. */
	.gl-hdr-search { display: none !important; }
}

@media (max-width: 767px) {
	.gl-hdr-row > .e-con-inner { gap: 8px; }
	.gl-hdr-logo { max-width: 168px; }
	.gl-hdr-actions > .e-con-inner { gap: 6px; }

	/* Mobile header carries only: logo · burger · cart.
	   The desktop CTA would be clipped here, and it is already offered twice
	   in the hero, so it moves out of the bar instead of overflowing off-canvas. */
	.gl-hdr-actions .gl-btn--primary { display: none !important; }

	/* Reclaim the row so the burger and cart are not pushed off screen. */
	.gl-hdr-row > .e-con-inner { flex-wrap: wrap; }
	.gl-hdr-nav { order: 2; flex: 0 0 auto !important; }
	.gl-hdr-logo { order: 1; flex: 1 1 auto !important; }
	.gl-hdr-actions { order: 3; }

	/* 44px minimum tap targets. */
	.gl-hdr-nav .elementor-menu-toggle,
	.gl-hdr-icons .elementor-icon,
	.gl-header .elementor-menu-cart__toggle_button {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

/* Elementor's burger only becomes visible when the breakpoint matches; pin it
   so a mis-set widget breakpoint can never leave mobile with no navigation. */
@media (max-width: 1024px) {
	.gl-hdr-nav .elementor-menu-toggle { display: inline-flex !important; }
	.gl-hdr-nav .elementor-nav-menu--main { display: none !important; }
}

/* Logo wordmark: keep it inside the bar at every size. */
.gl-hdr-logo img {
	max-width: 100%;
	height: auto;
}

/* No sidebars anywhere — the sites uses full-width layouts only, and the theme
   sidebar leaks "Recent Posts / Recent Comments" onto WooCommerce pages that
   do not carry our page template. */
#right-sidebar,
#left-sidebar,
.widget-area.is-right-sidebar,
.widget-area.is-left-sidebar,
.woocommerce-page .widget-area,
.single-product .widget-area,
.single-product #right-sidebar {
	display: none !important;
}

/* The matching page-grid rule, so hiding the sidebar actually widens the
   content column instead of leaving a 360px hole. */
.woocommerce-page .site.grid-container,
.single-product .site.grid-container,
.woocommerce-page #content,
.single-product #content {
	grid-template-columns: 1fr !important;
	width: 100% !important;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 20px;
}

.page-template-elementor_header_footer .widget-area,
.page-template-elementor_canvas .widget-area,
.page-template-elementor_header_footer #right-sidebar,
.page-template-elementor_canvas #right-sidebar,
.page-id-2497 .widget-area,
.page-id-2497 #right-sidebar,
.gl-no-sidebar .widget-area,
.gl-no-sidebar #right-sidebar {
	display: none !important;
}

/* Kill the stray margins that put white bands above the header and below the
   footer — Elementor already provides its own spacing. */
body.page-template-elementor_header_footer #page,
body.page-template-elementor_canvas #page { margin: 0 !important; }

body.page-template-elementor_header_footer .site.grid-container,
body.page-template-elementor_canvas .site.grid-container,
.gl-no-sidebar .site.grid-container {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.page-template-elementor_header_footer .site-content,
body.page-template-elementor_canvas .site-content,
.gl-no-sidebar .site-content { padding: 0 !important; }

body.page-template-elementor_header_footer .inside-article,
body.page-template-elementor_canvas .inside-article,
.gl-no-sidebar .inside-article {
	padding: 0 !important;
	background: transparent !important;
}

/* Elementor full-width/canvas pages shouldn't inherit theme content padding. */
.elementor-template-full-width .site-content,
.elementor-template-full-width .inside-article { padding: 0 !important; }

/* Canvas-style pages still need breathing room when a template omits it. */
.page-template-elementor_canvas .entry-content:not(:empty) { padding: 0; }

/* ------------------------------------------------------------- WooCommerce -- */
/* Shop archive: consistent cards, readable prices, tidy grid. */
.woocommerce ul.products li.product {
	border: 1px solid var(--gl-border);
	border-radius: var(--gl-radius);
	background: #fff;
	padding: 18px;
	transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .28s ease;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-5px);
	box-shadow: var(--gl-shadow);
}
.woocommerce ul.products li.product img { border-radius: var(--gl-radius-sm); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--gl-font);
	font-weight: 600;
	color: var(--gl-navy);
}
.woocommerce ul.products li.product .price { color: var(--gl-green); font-weight: 700; }

/* Sale badge. */
.woocommerce span.onsale {
	background: var(--gl-amber);
	color: #3B2400;
	border-radius: 999px;
	font-weight: 700;
	min-height: 0;
	line-height: 1.4;
	padding: 6px 12px;
}

/* Cart page: strip the promotional cross-sell / "new in store" noise. */
.woocommerce-cart .cross-sells,
.woocommerce-cart .cart_totals + .cross-sells,
.woocommerce .cart-collaterals .cross-sells { display: none !important; }

/* Single product: keep price and CTA prominent. */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--gl-green);
	font-size: 26px;
	font-weight: 700;
}
.woocommerce div.product .product_title {
	font-family: var(--gl-font);
	color: var(--gl-navy);
}

/* My Account: card-like panels and a calmer tab row. */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
	border: 1px solid var(--gl-border);
	border-radius: 999px;
	overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 18px;
	font-weight: 600;
	color: var(--gl-slate);
	text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active {
	background: var(--gl-green);
	border-color: var(--gl-green);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: #fff; }

.woocommerce form.login,
.woocommerce form.register,
.woocommerce-account .woocommerce-MyAccount-content {
	border: 1px solid var(--gl-border);
	border-radius: var(--gl-radius);
	padding: 28px;
	background: #fff;
}

/* Forms: soft fields that match the roundness of the rest of the site. */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="search"],
select, textarea {
	border: 1px solid var(--gl-border);
	border-radius: var(--gl-radius-sm);
	font-family: var(--gl-font);
	padding: 12px 15px;
}
input:focus, select:focus, textarea:focus {
	border-color: var(--gl-green);
	box-shadow: 0 0 0 3px rgba(15, 100, 62, .12);
	outline: none;
}

/* ------------------------------------------------------------- footer ----- */
.gl-footer, footer[data-elementor-type="footer"] { margin-top: 0; }
.gl-footer a { text-decoration: none; }
.gl-footer a:hover { color: #fff; }

/* The FAQ card shouldn't clip its own shadow. */
.elementor-widget-accordion { overflow: visible; }

/* Print: drop interactive chrome. */
@media print {
	.elementor-location-header, .gl-footer { display: none !important; }
}

/* Hero band is dark green (#0A4629). A green button on green reads as a
   hairline; inside the hero the primary CTA becomes white-on-green instead. */
.gl-hero .gl-btn--primary .elementor-button {
	background-color: #FFFFFF !important;
	color: var(--gl-green-dark) !important;
	border-color: #FFFFFF !important;
}

.gl-hero .gl-btn--primary .elementor-button:hover,
.gl-hero .gl-btn--primary .elementor-button:focus {
	background-color: var(--gl-amber) !important;
	border-color: var(--gl-amber) !important;
	color: var(--gl-navy) !important;
}

/* Mobile burger: Elementor Pro paints a grey chip behind the icon. On a white
   bar that reads as an unlabelled placeholder, so flatten it to the icon only. */
@media (max-width: 1024px) {
	.gl-hdr-nav .elementor-menu-toggle {
		background-color: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		padding: 0 6px !important;
	}
	.gl-hdr-nav .elementor-menu-toggle .e-font-icon-svg-container,
	.gl-hdr-nav .elementor-menu-toggle i {
		color: var(--gl-green) !important;
	}
	/* Keep the burger and the cart on the same optical baseline as the logo. */
	.gl-hdr-row > .e-con-inner { align-items: center; }
	.gl-hdr-nav { align-self: center; }
}

/* The cart's screen-reader label must never render as visible "Cart" text. */
.gl-header .elementor-menu-cart__toggle_button .elementor-screen-only {
	position: absolute !important;
	width: 1px !important; height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}

/* Burger internals: the icon box is taller than the three bars, which lifts the
   stack above the logo and cart on the centre line. Pin every wrapper to the
   same box so all three sit on one optical baseline. */
@media (max-width: 1024px) {
	.gl-hdr-row > .e-con-inner > .e-con,
	.gl-hdr-row > .e-con-inner > .elementor-element {
		align-self: center;
	}
	.gl-hdr-nav .elementor-menu-toggle {
		height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.gl-hdr-nav .elementor-menu-toggle svg {
		display: block;
		width: 22px;
		height: 22px;
	}
	.gl-hdr-nav .elementor-menu-toggle svg,
	.gl-hdr-nav .elementor-menu-toggle i,
	.gl-hdr-nav .elementor-menu-toggle .e-font-icon-svg-container {
		position: static;
		transform: none;
		margin: 0;
	}
	/* 44x44 tap targets for cart and burger. */
	.gl-header .elementor-menu-cart__toggle_button { min-width: 44px; min-height: 44px; }
}

/* The nav column measured 90px tall on mobile (the burger button plus its
   collapsed menu container), so `align-items:center` centred a 90px box and
   the 44px burger still sat 25px above the logo/cart centre line. Pinning the
   column's own height is what actually fixes the baseline. */
@media (max-width: 1024px) {
	.gl-hdr-row > .e-con-inner > .gl-hdr-nav {
		height: 44px !important;
		min-height: 44px !important;
		max-height: 44px !important;
		align-self: center;
		overflow: visible;
	}
	.gl-hdr-row > .e-con-inner > .gl-hdr-nav > .e-con-inner,
	.gl-hdr-row > .e-con-inner > .gl-hdr-nav > .elementor-widget-nav-menu,
	.gl-hdr-row > .e-con-inner > .gl-hdr-nav > .elementor-widget-nav-menu > .elementor-widget-container {
		height: 44px !important;
		min-height: 0 !important;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	/* The collapsed dropdown panel must escape the pinned height. */
	.gl-hdr-nav .elementor-nav-menu--dropdown {
		position: absolute;
	}
	.gl-hdr-nav { position: relative; }
}

/* --- header column budget -------------------------------------------------
   Three groups share a 1240px row: logo (208) + nav (grows) + actions
   (search 196 · icons 106 · CTA 148 + gaps). Elementor gives the widgets
   width:100% by default, so the nav column was squeezed to 385px while its
   <ul> stayed 544px and spilled over the search field. Fix the action-group
   widths and let only the nav absorb the remainder. */
.gl-header .gl-hdr-search {
	/* Fixed shelf for the search field; the nav takes what is left. */
	flex: 0 0 auto;
	width: 180px;
	max-width: 180px;
	min-width: 0;
}
.gl-header .gl-hdr-icons { flex: 0 0 auto; }
.gl-header .gl-hdr-nav {
	min-width: 0;
	flex: 1 1 auto;
	overflow: visible;
}
/* The nav list must never push past its column; shrink the item padding
   before allowing an overlap. */
.gl-header .gl-hdr-nav .elementor-nav-menu--main > ul.elementor-nav-menu {
	flex-wrap: nowrap;
	max-width: 100%;
}
@media (max-width: 1280px) {
	.gl-header .gl-hdr-search { width: 150px; max-width: 150px; }
	.gl-header .gl-nav .elementor-nav-menu a.elementor-item { padding: 6px 8px; font-size: 15px; }
}

/* The nav's last item's right padding stacks on top of the gap that already
   separates the nav column from the action cluster — 14px of dead space. Trim
   it so the six labels fit their 468px column exactly. */
.gl-header .gl-hdr-nav .elementor-nav-menu--main > ul.elementor-nav-menu > li:last-child > a.elementor-item {
	padding-right: 0;
}

/* --- header height budget -------------------------------------------------
   The bar measured 145px because padding stacked at three levels: the row's
   e-con-inner (10px), the action container (10px) and each widget (14px). A
   premium header wants ~76px, so own the heights here instead of inheriting
   Elementor's defaults. */
.gl-header .gl-hdr-row > .e-con-inner,
.gl-header .gl-hdr-actions,
.gl-header .gl-hdr-icons,
.gl-header .gl-hdr-logo,
.gl-header .gl-hdr-search {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* The logo image drives the bar's height, so pin it and let the width follow
   the SVG's own aspect ratio. */
.gl-header .gl-hdr-logo img {
	height: 42px !important;
	width: auto !important;
	max-width: 100%;
	display: block;
}

/* The header CTA keeps the button itself at 44px tall. */
.gl-header .gl-hdr-actions .gl-btn,
.gl-header .gl-hdr-actions .gl-btn .elementor-button {
	height: 44px;
	min-height: 44px;
}

@media (max-width: 1024px) {
	.gl-header .gl-hdr-logo img { height: 38px !important; }
}
@media (max-width: 767px) {
	.gl-header .gl-hdr-logo img { height: 34px !important; }
	/* The logo column is 168px wide on mobile; let the image fill it so the
	   wordmark does not shrink to 103px on a 390px viewport. */
	.gl-header .gl-hdr-logo { width: auto; }
	.gl-header .gl-hdr-logo img { max-width: none; }
}

/* ---------------------------------------------------- loop / product cards -- */
/* The Elementor Loop Item (247) renders every shop grid card. Its legacy
   styling was a 2px square green outline; these rules carry the new surface
   language and give the card a real hover state. */
.gl-card {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.gl-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--gl-shadow);
	border-color: rgba(15, 100, 62, .28);
}
.gl-card img { display: block; width: 100%; height: auto; }
/* The loop item's inner container has no horizontal padding, so every body
   widget ran flush to the rounded edge (the CTA looked clipped). Pad the body
   widgets rather than the card, so the image can stay edge-to-edge. */
.gl-card > .e-con-inner > *:not(:first-child) { padding-left: 18px; padding-right: 18px; }
.gl-card .elementor-heading-title { margin: 14px 0 6px; }
.gl-card .product_meta { margin: 0 0 8px; }
.gl-card .elementor-widget-woocommerce-product-price { margin: 0 0 14px; }
.gl-card .subhan-eac-buy-now {
	display: block;
	width: 100%;
	border-radius: 999px;
	background-color: var(--gl-green);
	color: #fff;
	text-align: center;
	font-weight: 600;
	font-size: 15px;
	padding: 11px 18px;
	/* width:100% + horizontal margin stacks on top of the body padding above,
	   which pushed the pill past the card's right edge. box-sizing keeps the
	   pill inside the padded column. */
	box-sizing: border-box;
	margin: 0;
	transition: background-color .2s ease;
}
.gl-card .subhan-eac-buy-now:hover { background-color: var(--gl-green-dark); }

/* Product-meta labels ("Categories") stay in the brand's type, not the theme's. */
.gl-card .posted_in .detail-label,
.product_meta .detail-label {
	font-family: var(--gl-font);
	color: var(--gl-muted);
	font-weight: 500;
}

/* ------------------------------------------------------------ shop sidebar -- */
/* The archive's category menu is the last component still on the old theme.
   Left-align it, give the rows real padding, and mark the current category. */
.gl-cat-box .elementor-nav-menu--layout-vertical ul.elementor-nav-menu {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.gl-cat-box .elementor-nav-menu a.elementor-item {
	text-align: left;
	justify-content: flex-start;
	font-weight: 500;
	font-size: 15.5px;
	color: var(--gl-slate);
	padding: 10px 14px;
	border-radius: 10px;
	transition: background-color .18s ease, color .18s ease;
}
.gl-cat-box .elementor-nav-menu a.elementor-item:hover,
.gl-cat-box .elementor-nav-menu a.elementor-item:focus {
	background-color: var(--gl-green-soft);
	color: var(--gl-green);
}
/* WooCommerce marks the current category with .current-menu-item. */
.gl-cat-box .elementor-nav-menu li.current-menu-item > a.elementor-item,
.gl-cat-box .elementor-nav-menu li.current-product_cat-ancestor > a.elementor-item {
	background-color: var(--gl-green-soft);
	color: var(--gl-green);
	font-weight: 600;
}

.elementor-widget-heading .elementor-heading-title { font-family: var(--gl-font); }

/* The nav-menu WIDGET itself carries a 2px brand-green outline (set in the
   archive template's widget style, not the container) — that hard stroke was
   the leftover "old box" inside the new card. Neutralise it so the rail reads
   as one surface, and give the rows a real hover/active affordance. */
.gl-cat-box .elementor-widget-nav-menu,
.gl-cat-box .elementor-widget-container {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
}
.gl-cat-box .elementor-nav-menu__align-center { justify-content: flex-start; }
.gl-cat-box { align-self: flex-start; }

/* Active category: a filled pill, so the rail reads as filters, not a list. */
.gl-cat-box .elementor-nav-menu li.current-menu-item > a.elementor-item,
.gl-cat-box .elementor-nav-menu li.current_page_item > a.elementor-item {
	background-color: var(--gl-green);
	color: #fff;
	font-weight: 600;
}
.gl-cat-box .elementor-nav-menu li.current-menu-item > a.elementor-item:hover {
	background-color: var(--gl-green-dark);
	color: #fff;
}
.gl-cat-box .elementor-nav-menu a.elementor-item { min-height: 40px; align-items: center; }

/* Elementor Pro's product-meta widget prints a hard-coded English
   "Categories" label (not passed through gettext), so swap it at paint time. */
.product_meta .detail-label { font-size: 0; }
.product_meta .detail-label::after {
	content: "বিভাগ";
	font-size: 13.5px;
	font-family: var(--gl-font);
	color: var(--gl-muted);
	font-weight: 500;
}
.product_meta .detail-content a { color: var(--gl-slate); text-decoration: none; }
.product_meta .detail-content a:hover { color: var(--gl-green); text-decoration: underline; }

/* Final rail/card harmony: same radius, same elevation, and the heading
   starts on the rail's left edge (it was 10px adrift). */
.gl-cat-box {
	border-radius: 18px !important;
	box-shadow: 0 10px 30px rgba(15, 36, 66, .06);
}
.gl-cat-box .elementor-nav-menu a.elementor-item:hover { text-decoration: none; }

/* Price row: a struck price in coral read as an error state; mute it so green
   stays the only accent. */
.gl-card del,
.gl-card del .woocommerce-Price-amount { color: var(--gl-muted) !important; opacity: .85; }
.gl-card ins,
.gl-card ins .woocommerce-Price-amount { color: var(--gl-green) !important; font-weight: 700; text-decoration: none; }

/* --------------------------------------------------- empty cart / cross-sell --
   WooCommerce's empty-cart block lays the cross-sell products into a fixed
   4-up grid. With one product in the catalogue that leaves three empty tracks
   and a ~1000px void, which was the loudest thing on the page. Collapse the
   grid to the number of items actually present. */
.wc-block-cart__empty-cart__title { margin-bottom: 8px; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__products,
.wp-block-woocommerce-empty-cart-block ul.wc-block-grid__products {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 24px;
}
.wp-block-woocommerce-empty-cart-block ul.wc-block-grid__products > li.wc-block-grid__product {
	width: 288px;
	max-width: 288px;
	flex: 0 0 288px;
	margin: 0;
}
/* The block grid's "SALE" corner flash is a theme string; restyle it so the
   badge matches the site's amber accent instead of the default crimson. */
.wc-block-grid__product-onsale,
.woocommerce span.onsale {
	background-color: var(--gl-amber) !important;
	color: var(--gl-navy) !important;
	font-weight: 700;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12.5px;
	line-height: 1.5;
	text-transform: none;
}
/* Title colour: the block grid used link-blue, the only blue on the page. */
.wc-block-grid__product-title,
.wc-block-grid__product-title a { color: var(--gl-navy) !important; font-weight: 600; }
.wc-block-grid__product-title a:hover { color: var(--gl-green) !important; }
/* The add-to-cart in the block grid renders as a full-width grey button. */
.wc-block-grid__product-add-to-cart .wp-block-button__link {
	background-color: var(--gl-green) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 600;
	padding: 10px 18px;
	width: 100%;
	text-align: center;
}
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
	background-color: var(--gl-green-dark) !important;
}
/* Stray separator dots between the empty message and the cross-sell. */
.wp-block-woocommerce-empty-cart-block hr.wp-block-separator { display: none; }

/* Small pill badges (e.g. "জনপ্রিয়") must size to their content; a flex child
   with no intrinsic width collapses and breaks Bengali one glyph per line. */
.gl-badge, .gl-badge .elementor-widget-container {
	width: auto !important;
	flex: 0 0 auto !important;
	white-space: nowrap;
}
/* A "Popular" tag belongs on the card's top-right corner, not stacked in the
   content column under the CTA. Absolute positioning takes it out of the flow
   entirely, so the card's own rhythm is untouched. */
.gl-card { position: relative; }
.gl-card > .gl-badge,
.gl-card > .e-con-inner > .gl-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	margin: 0;
}

/* ------------------------------------------------------ audience card rows --
   The "who is this for" and "Q&A" blocks hold 4 and 3 icon-box widgets, but the
   container was authored flex-column, so each tile stretched to the full 1240px
   inner width and centred one short line inside a huge empty band. The widgets
   are direct children of .e-con-inner, so target them there. */
.gl-cols > .e-con-inner {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: stretch;
}
.gl-cols > .e-con-inner > .elementor-widget {
	flex: 1 1 calc(25% - 22px);
	max-width: calc(25% - 22px);
	min-width: 0;
	width: auto;
}
/* the 3-item block should not leave a quarter-width hole */
.gl-cols.gl-cols--3 > .e-con-inner > .elementor-widget {
	flex: 1 1 calc(33.333% - 22px);
	max-width: calc(33.333% - 22px);
}
@media (max-width: 1024px) {
	.gl-cols > .e-con-inner > .elementor-widget,
	.gl-cols.gl-cols--3 > .e-con-inner > .elementor-widget {
		flex: 1 1 calc(50% - 22px);
		max-width: calc(50% - 22px);
	}
}
@media (max-width: 640px) {
	.gl-cols > .e-con-inner > .elementor-widget,
	.gl-cols.gl-cols--3 > .e-con-inner > .elementor-widget {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

/* ------------------------------------------------------------- hero polish --
   The three panels' one-line descriptions were ~2.5:1 against the translucent
   panel fill — below AA and unreadable at 80% zoom. Lift them to a mint that
   clears 4.5:1 and take the panel border up so the cards read as surfaces. */
.gl-hero .elementor-widget-container > .e-con,
.gl-hero .gl-panel {
	border-color: rgba(255, 255, 255, .16);
	background-color: rgba(255, 255, 255, .07);
}
.gl-hero h3, .gl-hero h4, .gl-hero .elementor-heading-title { color: #FFFFFF; }
.gl-hero p { color: #BFD8CB; }
.gl-hero .elementor-widget-text-editor p { color: #D8EDE2; font-size: 14.5px; line-height: 1.55; }

/* Hero CTA pair: both are .elementor-button, but the secondary one shipped with
   a fully transparent border, so it read as bare text beside the solid cream
   pill. Only style the button row — the feature-card titles are anchors too and
   must stay as plain headings. */
.gl-hero .elementor-widget-button .elementor-button {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
}
.gl-hero .elementor-widget-button .elementor-button[style*="transparent"],
.gl-hero .elementor-widget-button + .elementor-widget-button .elementor-button {
	border: 1px solid rgba(255, 255, 255, .45) !important;
}
.gl-hero .elementor-widget-button .elementor-button[style*="transparent"]:hover,
.gl-hero .elementor-widget-button .elementor-button[style*="transparent"]:focus-visible {
	background-color: rgba(255, 255, 255, .12) !important;
	border-color: rgba(255, 255, 255, .8) !important;
}
