/**
* Theme Name: Bookory Child
* Description: This is a child theme of Bookory, generated by Merlin WP.
* Author: <a href="https://pavothemes.com/">PavoThemes</a>
* Template: bookory
* Version: 2.5.11
*/

/* Header top bar – vertically center widgets on all pages */
/* The navigation now lives in the top bar. Its old empty Elementor row
   still has a 1px minimum height, leaving a white seam above page titles. */
@media (min-width: 992px) {
	.elementor-125.aai-header-nav-in-place .elementor-element-ae4fcde {
		display: none !important;
	}
}

/* Font selection bounds exceed the title's line box. Keep them inside the
   breadcrumb surface rather than underneath the higher-stacked header. */
.breadcrumb-wrap .elementor-widget-bookory-woocommerce-breadcrumb > .elementor-widget-container {
	padding-block: 12px;
}

.elementor-bc-flex-widget .elementor-125 .elementor-element.elementor-element-cb137cb.elementor-column .elementor-widget-wrap,
.elementor-bc-flex-widget .elementor-125 .elementor-element.elementor-element-5df76f4.elementor-column .elementor-widget-wrap {
	align-items: center;
}

.elementor-125 .elementor-element.elementor-element-cb137cb.elementor-column.elementor-element[data-element_type="column"] > .elementor-widget-wrap.elementor-element-populated,
.elementor-125 .elementor-element.elementor-element-5df76f4.elementor-column.elementor-element[data-element_type="column"] > .elementor-widget-wrap.elementor-element-populated {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: center;
	align-items: center;
	min-height: 44px;
	height: 100%;
}

.elementor-125 .elementor-element.elementor-element-f87b6fa > .elementor-container > .elementor-column {
	align-self: stretch;
}

.elementor-125 .elementor-element.elementor-element-cb137cb .elementor-widget__width-auto,
.elementor-125 .elementor-element.elementor-element-5df76f4 .elementor-widget__width-auto {
	align-self: center;
	margin-block-end: 0;
}

.elementor-125 .header-group-action > .site-header-account > a {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Overlay single-row desktop header: Logo | Nav | Search | Actions */
@media (min-width: 992px) {
	.elementor-125 .elementor-element-9ca9792 {
		position: relative;
		z-index: 100;
	}

	/* User-edited header: nav already sits in the top bar — don't restack columns */
	.elementor-125.aai-header-nav-in-place .elementor-element-9ca9792 {
		position: relative !important;
		overflow: visible !important;
		z-index: 200;
	}

	.elementor-125.aai-header-nav-in-place .elementor-element-9ca9792 > .elementor-container,
	.elementor-125.aai-header-nav-in-place .elementor-element-e595b4c,
	.elementor-125.aai-header-nav-in-place .elementor-element-e595b4c > .elementor-widget-wrap,
	.elementor-125.aai-header-nav-in-place .elementor-element-fe34fca,
	.elementor-125.aai-header-nav-in-place .elementor-element-fe34fca > .elementor-container,
	.elementor-125.aai-header-nav-in-place .elementor-element-5dbb3b4,
	.elementor-125.aai-header-nav-in-place .elementor-element-5dbb3b4 > .elementor-widget-wrap,
	.elementor-125.aai-header-nav-in-place .elementor-element-0041078,
	.elementor-125.aai-header-nav-in-place .elementor-nav-menu-wrapper,
	.elementor-125.aai-header-nav-in-place .main-navigation,
	.elementor-125.aai-header-nav-in-place .primary-navigation,
	.elementor-125.aai-header-nav-in-place ul.menu,
	.elementor-125.aai-header-nav-in-place li.aai-mega-menu-item {
		overflow: visible !important;
		position: static !important;
	}

	.elementor-125.aai-header-nav-in-place .main-navigation .primary-navigation {
		position: static !important;
	}

	.elementor-125.aai-header-consolidated .elementor-element-9ca9792 > .elementor-container {
		display: flex !important;
		flex-wrap: nowrap;
		align-items: center !important;
		gap: 8px 28px;
		width: 100%;
		min-height: 114px !important;
	}

	.elementor-125.aai-header-consolidated .elementor-element-6cbd2d5,
	.elementor-125.aai-header-consolidated .elementor-element-e595b4c {
		width: auto !important;
		max-width: none !important;
		flex: 0 0 auto;
		align-self: center !important;
	}

	.elementor-125.aai-header-consolidated .elementor-element-6cbd2d5 > .elementor-widget-wrap,
	.elementor-125.aai-header-consolidated .elementor-element-e595b4c > .elementor-widget-wrap {
		display: flex !important;
		align-items: center !important;
		align-content: center !important;
	}

	.elementor-125.aai-header-consolidated .aai-header-nav-slot {
		flex: 1 1 auto;
		min-width: 0;
		display: flex !important;
		align-items: center !important;
		align-self: center !important;
		justify-content: flex-start;
		gap: 4px 10px;
		overflow: visible;
		margin: 0 !important;
		padding: 0 !important;
	}

	.elementor-125.aai-header-consolidated .aai-header-nav-slot .aai-search-trigger {
		flex: 0 0 auto;
		margin-left: 8px;
		align-self: center !important;
		width: 38px !important;
		min-width: 38px !important;
		max-width: 38px !important;
		height: 38px !important;
		min-height: 38px !important;
	}

	.elementor-125.aai-header-consolidated .elementor-element-5dbb3b4.aai-search-col-empty {
		display: none !important;
	}

	.elementor-125.aai-header-consolidated .aai-header-nav-slot .elementor-element-0041078,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot .elementor-widget-container,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot .elementor-nav-menu-wrapper,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot .main-navigation,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot .primary-navigation {
		width: auto !important;
		max-width: none !important;
		display: flex !important;
		align-items: center !important;
		align-self: center !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		line-height: 1 !important;
	}

	.elementor-125.aai-header-consolidated .aai-header-nav-slot .primary-navigation > ul.menu {
		display: flex !important;
		flex-wrap: nowrap;
		align-items: center !important;
		justify-content: flex-start;
		gap: 4px 8px;
		margin: 0 !important;
		padding: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		line-height: 1 !important;
	}

	.elementor-125.aai-header-consolidated .aai-header-nav-slot .primary-navigation > ul.menu > li {
		display: flex !important;
		align-items: center !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
		height: auto !important;
		line-height: 1 !important;
	}

	.elementor-125.aai-header-consolidated .aai-header-nav-slot .primary-navigation > ul.menu > li > a {
		display: inline-flex !important;
		align-items: center !important;
		padding: 8px 14px !important;
		line-height: 1.2 !important;
		white-space: nowrap;
		height: auto !important;
		min-height: 0 !important;
	}

	/* Hide Categories button — primary nav replaces it */
	.elementor-125 .elementor-element-cca66af {
		display: none !important;
	}

	.elementor-125.aai-header-consolidated .elementor-element-e595b4c .elementor-element-fe34fca > .elementor-container {
		display: flex !important;
		justify-content: flex-end;
		align-items: center;
		gap: 12px 18px;
	}

	.elementor-125.aai-header-consolidated .elementor-element-5dbb3b4,
	.elementor-125.aai-header-consolidated .elementor-element-ef34409 {
		width: auto !important;
		max-width: none !important;
		flex: 0 0 auto;
	}

	.elementor-125 .elementor-element-ae4fcde.aai-header-nav-section-empty {
		display: none !important;
	}

	.elementor-125 .elementor-element-ae4fcde,
	.elementor-125 .elementor-element-6132e73,
	.elementor-125 .elementor-nav-menu-wrapper,
	.elementor-125 .main-navigation,
	.elementor-125 .aai-header-nav-slot {
		overflow: visible;
	}

	.elementor-125.aai-header-consolidated .aai-header-main-consolidated {
		position: relative !important;
	}

	.elementor-125.aai-header-consolidated .aai-header-nav-slot,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot .elementor-element-0041078,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot .elementor-widget-container,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot .elementor-nav-menu-wrapper,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot .main-navigation,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot .primary-navigation,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot ul.menu,
	.elementor-125.aai-header-consolidated .aai-header-nav-slot li.aai-mega-menu-item {
		position: static !important;
	}

	.elementor-125 .main-navigation .primary-navigation {
		position: relative !important;
	}

}

/* Format navigation. Independent of Bookory's nested flyout-menu styles. */
.aai-mega-chevron, .aai-mega-panel { display: none; }
@media (min-width: 992px) {
	.elementor-125 .primary-navigation > ul.menu > li.aai-mega-menu-item {
		position: static !important;
		display: inline-flex !important;
		align-items: center;
	}
	.elementor-125 .primary-navigation > ul.menu > li.aai-mega-menu-item::before,
	.elementor-125 .primary-navigation > ul.menu > li.aai-mega-menu-item::after,
	.elementor-125 .primary-navigation > ul.menu > li.aai-mega-menu-item > a::after { content: none !important; }
	.elementor-125 .primary-navigation > ul.menu > li.aai-mega-menu-item > a {
		display: inline-flex;
		align-items: center;
		gap: 12px;
		transition: color .16s ease;
	}
	.elementor-125 .primary-navigation > ul.menu > li.aai-mega-is-open > a { color: var(--primary, #f65d4e); }
	.elementor-125 .primary-navigation > ul.menu > li.aai-mega-menu-item > a > span::before,
	.elementor-125 .primary-navigation > ul.menu > li.aai-mega-menu-item > a > span::after { content: none !important; display: none !important; }
	.elementor-125 .aai-mega-chevron {
		display: block;
		flex: 0 0 6px;
		pointer-events: none;
		width: 6px;
		height: 6px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .16s ease;
	}
	.elementor-125 .aai-mega-is-open > a > .aai-mega-chevron { transform: translateY(2px) rotate(225deg); }
	.elementor-125 .aai-mega-panel {
		position: absolute;
		top: calc(100% - 1px);
		left: 50%;
		transform: translateX(-50%) translateY(6px);
		display: grid;
		grid-template-columns: 230px minmax(0, 1fr);
		width: min(1080px, calc(100vw - 48px));
		max-height: calc(100dvh - 150px);
		overflow: auto;
		padding: 8px;
		border: 1px solid #eee4df;
		border-radius: 18px;
		background: #fff;
		box-shadow: 0 20px 50px rgba(56, 34, 25, .13);
		z-index: 99999;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .16s ease, transform .16s ease;
		text-align: left;
		white-space: normal;
	}
	.elementor-125 .aai-mega-is-open > .aai-mega-panel {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(-50%) translateY(0);
	}
	.elementor-125 .aai-mega-intro {
		padding: 30px 24px;
		border-radius: 12px;
		background: #faf0e9;
		display: flex;
		align-items: flex-start;
		flex-direction: column;
	}
	.elementor-125 .aai-mega-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.3px; line-height: 1.6; color: #a15c48; }
	.elementor-125 .aai-mega-intro strong { margin-top: 18px; font-size: 29px; line-height: 1.2; letter-spacing: -.8px; color: #282320; }
	.elementor-125 .aai-mega-intro p { margin: 14px 0 28px; font-size: 13px; line-height: 1.8; color: #75665e; }
	.elementor-125 .aai-mega-panel a { text-decoration: none; }
	.elementor-125 .aai-mega-panel .aai-mega-all {
		display: inline-flex;
		align-items: center;
		justify-content: space-between;
		gap: 15px;
		margin-top: auto;
		padding: 12px 15px;
		border: 1px solid #ebc6b8;
		border-radius: 10px;
		background: #fff;
		color: #994235;
		font-size: 12px;
		font-weight: 700;
		line-height: 1.5;
	}
	.elementor-125 .aai-mega-content { min-width: 0; padding: 24px 22px 12px; }
	.elementor-125 .aai-mega-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
	.elementor-125 .aai-mega-group h2 { margin: 0 0 12px; padding: 0 8px 12px; border-bottom: 1px solid #eee8e4; font-size: 13px; font-weight: 700; line-height: 1.5; color: #282320; }
	.elementor-125 .main-navigation .aai-mega-links {
		position: static !important;
		display: block !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none;
		border: 0;
		box-shadow: none;
		background: transparent;
		opacity: 1 !important;
		visibility: inherit !important;
		transform: none !important;
	}
	.elementor-125 .main-navigation .aai-mega-links li { display: block; float: none; width: auto; margin: 0; padding: 0; }
	.elementor-125 .main-navigation .aai-mega-links a {
		display: block;
		padding: 8px !important;
		border: 0 !important;
		border-radius: 7px;
		color: #615650;
		font-size: 12px;
		font-weight: 400;
		line-height: 1.5;
		white-space: normal;
		transition: background .16s, color .16s;
	}
	.elementor-125 .main-navigation .aai-mega-links a span { margin: 0 !important; }
	.elementor-125 .main-navigation .aai-mega-links a span::before { content: none !important; }
	.elementor-125 .aai-mega-panel a:hover,
	.elementor-125 .main-navigation .aai-mega-links a:hover { background: #fff1ec; color: #b74437; }
	.elementor-125 .aai-mega-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #eee8e4; }
	.elementor-125 .aai-mega-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 7px; background: #faf7f4; color: #68594f; font-size: 11px; font-weight: 600; line-height: 1.5; }
	.elementor-125 .aai-mega-menu-item > a:focus-visible,
	.elementor-125 .aai-mega-panel a:focus-visible { outline: 2px solid #c64e43; outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
	.elementor-125 .aai-mega-panel,
	.elementor-125 .aai-mega-chevron { transition: none; }
}

/* Mobile product carousels: clip slides that Slick parked off-screen. */
@media (max-width: 767px) {
	.layout-carousel-3.elementor-widget-bookory-products .woocommerce-carousel .slick-list {
		overflow: hidden;
	}
}
