/* ==== Weaver Hut layout fixes v1.4 ==== */

/* Kill any top gap on homepage */
html,
body.tbay-homepage-demo {
	margin: 0 !important;
	padding: 0 !important;
}

.tbay-homepage-demo .wrapper-container {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Home: pin overlay header flush to viewport top */
body.tbay-homepage-demo #tbay-header.header-on-slider,
.tbay-homepage-demo #tbay-header.header-on-slider {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	z-index: 1001 !important;
	width: 100% !important;
}

.tbay-homepage-demo #tbay-main-content,
.tbay-homepage-demo #tbay-main-content > .elementor {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Hero must start at top (no outer top margin creating blank band) */
.tbay-homepage-demo .elementor-11247 > .elementor-section:first-child,
.tbay-homepage-demo .elementor-element-6840e3c {
	margin-top: 0 !important;
}

.tbay-homepage-demo #tbay-header.header-on-slider > .elementor > .elementor-section:first-child {
	margin-top: 0 !important;
}

/* Blog / archives: never let absolute homepage header overlay content */
body.blog #tbay-header.header-on-slider,
body.archive #tbay-header.header-on-slider,
body.single-post #tbay-header.header-on-slider,
body.search #tbay-header.header-on-slider,
body:not(.tbay-homepage-demo) #tbay-header.header-on-slider {
	position: relative !important;
	background: #FEF0E2 !important;
	width: 100%;
	top: auto !important;
}

body.blog #tbay-main-content,
body.archive #tbay-main-content,
body.single-post #tbay-main-content {
	padding-top: 20px;
}

body.blog #main-container,
body.archive #main-container {
	padding-top: 30px;
}

/* Header logo: SVG was saved as 1x1 */
.elementor-2799 .elementor-element-8f569e6 img {
	width: auto !important;
	height: 65px !important;
	max-width: 200px !important;
	object-fit: contain;
}

/* Allow dropdowns to escape clipped wrappers */
.wrapper-container,
#tbay-header,
#tbay-header .elementor,
#tbay-header .elementor-section,
#tbay-header .elementor-container,
#tbay-header .elementor-column,
#tbay-header .elementor-widget-wrap,
#tbay-header .elementor-widget-nav-menu,
#tbay-header .elementor-nav-menu--main {
	overflow: visible !important;
}

/* Desktop header menu row + working dropdowns */
@media (min-width: 1025px) {
	.elementor-2799 .elementor-nav-menu--main .elementor-nav-menu {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 0 16px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.elementor-2799 .elementor-nav-menu--main .elementor-nav-menu > li {
		display: inline-flex !important;
		position: relative !important;
		float: none !important;
		width: auto !important;
		margin: 0;
		align-items: center;
	}

	.elementor-2799 .elementor-nav-menu--main .elementor-nav-menu > li > a {
		white-space: nowrap;
		padding: 10px 6px;
	}

	/* Dropdown panel */
	.elementor-2799 .elementor-nav-menu--dropdown,
	.elementor-2799 .elementor-nav-menu--main .sub-menu {
		z-index: 10050 !important;
		min-width: 220px;
		text-align: left;
	}

	.elementor-2799 .elementor-nav-menu--main .elementor-nav-menu > li:hover > .elementor-nav-menu--dropdown,
	.elementor-2799 .elementor-nav-menu--main .elementor-nav-menu > li:hover > .sub-menu,
	.elementor-2799 .elementor-nav-menu--main .elementor-nav-menu > li:focus-within > .sub-menu {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	.elementor-2799 .elementor-element-2cb7ba1 > .elementor-container {
		align-items: center;
	}
}

/* Hide orphan home sections under Trending */
.elementor-11247 .elementor-element-39142d4,
.elementor-11247 .elementor-element-0783312,
.elementor-11247 .elementor-element-65611eb,
.elementor-11247 .elementor-element-c848fdc,
.elementor-11247 .elementor-element-41d2984 {
	display: none !important;
}

/* Customer Diaries: unstick Elementor entrance animation (was invisible forever) */
.elementor-11247 .elementor-element-34b1649 .elementor-invisible,
.elementor-11247 #customer_diaries .elementor-invisible,
.elementor-11247 .elementor-element-34b1649 .elementor-column {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

/* Undo old custom rule that hid diary carousel images */
#customer_diaries .swiper-slide-image {
	display: block !important;
}

/* Product Gallery fallback if e-gallery JS is slow/fails */
.elementor-11247 .elementor-element-105f638 .elementor-gallery__container {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	min-height: 280px;
}

@media (max-width: 1024px) {
	.elementor-11247 .elementor-element-105f638 .elementor-gallery__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.elementor-11247 .elementor-element-105f638 .elementor-gallery__container {
		grid-template-columns: 1fr;
	}
}

.elementor-11247 .elementor-element-105f638 .e-gallery-item {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	padding-top: 120%;
	overflow: hidden;
	opacity: 1 !important;
}

.elementor-11247 .elementor-element-105f638 .elementor-gallery-item__image {
	position: absolute !important;
	inset: 0 !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

/* Mobile offcanvas menu: never offset below topbar/adminbar */
#tbay-mobile-menu-navbar,
#tbay-mobile-menu-navbar.mm-menu,
.mm-page__blocker {
	top: 0 !important;
}

/* Footer: remove leftover gap / credit strip spacing */
html,
body,
.wrapper-container,
#tbay-footer,
#tbay-footer .elementor,
#tbay-footer .elementor-section:last-child {
	margin-bottom: 0 !important;
}

#tbay-footer {
	padding-bottom: 0 !important;
}

#tbay-footer .tbay-copyright,
#tbay-footer #copyright,
body:not(.mobile-hidden-footer) #tbay-footer .tbay-copyright,
body:not(.mobile-hidden-footer) #tbay-footer #copyright,
.footer-device-mobile ~ #tbay-footer .tbay-copyright {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* Don't leave a beige strip under the last footer section */
#tbay-footer .elementor-element-34a94cb {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

@media (max-width: 1199px) {
	body:not(.mobile-hidden-footer) #tbay-footer,
	body:not(.mobile-hidden-footer) #tbay-footer .tbay-copyright,
	body:not(.mobile-hidden-footer) #tbay-footer #copyright {
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}

	/* Empty leftover after last orange bar = same color, no beige strip */
	#tbay-footer {
		background-color: #C05A21;
	}
}

body .wrapper-container > p[style*="font-size:12px"] {
	display: none !important;
}

/* WhatsApp floating button - fixed bottom-left, above mobile bars */
#whatsapp_btn,
.whatsapp#whatsapp_btn,
#tbay-footer #whatsapp_btn {
	position: fixed !important;
	left: 18px !important;
	bottom: 24px !important;
	right: auto !important;
	top: auto !important;
	z-index: 99999 !important;
	width: 56px !important;
	height: 56px !important;
	margin: 0 !important;
	line-height: 0 !important;
}

#whatsapp_btn a,
#whatsapp_btn img {
	display: block !important;
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	border-radius: 50%;
}

/* Hide empty footer_bar section height that creates gap under footer */
#tbay-footer .footer_bar {
	min-height: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	background: transparent !important;
}

#tbay-footer .footer_bar .elementor-container,
#tbay-footer .footer_bar .elementor-column,
#tbay-footer .footer_bar .elementor-widget-wrap {
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Keep featured products grid tidy */
.elementor-11247 .elementor-element-30fca57 .products.products-grid .row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -8px;
	margin-right: -8px;
}

.elementor-11247 .elementor-element-30fca57 .products.products-grid .row > .product {
	padding-left: 8px;
	padding-right: 8px;
}

#tbay-footer .elementor-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
