/*
 * Site header (design-main 3.1-3.5, design-shop 2.x, main-behaviour 4).
 * Desktop >= 1025px: 41px top bar + 96px row. <= 1024px: one 60px row.
 * Sticky states (header.js): .is-sticky (row fixed), .is-hidden (slid up).
 */

.lvt-header {
	position: relative;
	z-index: var(--lvt-z-header);
}

/* Top bar ------------------------------------------------------------- */

.lvt-topbar {
	position: relative;
	z-index: 2;
	border-bottom: 1px solid var(--lvt-c-line);
	background: var(--lvt-c-bg);
}

.lvt-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
}

.lvt-topbar__contacts {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lvt-topbar__item {
	position: relative;
	display: flex;
	align-items: center;
}

.lvt-topbar__item + .lvt-topbar__item {
	margin-left: 32px;
}

.lvt-topbar__item + .lvt-topbar__item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -16px;
	height: 18px;
	margin-top: -9px;
	border-left: 1px solid var(--lvt-c-line);
}

.lvt-topbar__link,
.lvt-topbar__link:hover {
	display: flex;
	align-items: center;
	color: var(--lvt-c-secondary);
	font-family: var(--lvt-font-body);
	font-size: 14px;
	line-height: 18px;
}

.lvt-topbar__icon {
	margin-right: 9px;
	color: var(--lvt-c-primary);
}

/* Language dropdown */
.lvt-lang__item {
	position: relative;
}

/*
 * Live: the link is Arial 12px (errata #4) but Woodmart's `.whb-top-bar *`
 * rule sets the visible label to 14px/18px #352F2D (matches the screenshots).
 */
.lvt-lang__current {
	display: flex;
	align-items: center;
	height: 40px;
	margin-right: -10px;
	padding: 0 10px;
	border: 0;
	background: none;
	color: var(--lvt-c-secondary);
	font-family: var(--lvt-font-arial);
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	text-transform: capitalize;
	cursor: pointer;
}

.lvt-lang__chevron {
	width: 6px;
	height: 4px;
	margin-left: 4px;
	color: rgba(82, 82, 82, .45);
}

.lvt-site-shop .lvt-lang__current {
	margin-right: 0;
	padding: 0;
}

.lvt-site-shop .lvt-lang__chevron {
	color: rgba(51, 51, 51, .5);
}

/* Dropdown (shared: nav, language, account) ----------------------------- */

.lvt-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: var(--lvt-z-dropdown);
	padding: 12px 20px;
	background: #FFFFFF;
	box-shadow: var(--lvt-shadow-dropdown);
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: opacity .4s var(--lvt-ease), visibility .4s var(--lvt-ease), transform .4s var(--lvt-ease);
}

/* Invisible bridge so the pointer can travel from the trigger to the box. */
.lvt-dropdown::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 15px;
}

.lvt-has-dropdown:hover > .lvt-dropdown,
.lvt-has-dropdown:focus-within > .lvt-dropdown,
.lvt-has-dropdown.is-open > .lvt-dropdown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.lvt-has-dropdown.is-closed > .lvt-dropdown {
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
}

.lvt-dropdown__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lvt-dropdown__item {
	margin: 0;
}

.lvt-dropdown__link {
	display: flex;
	align-items: center;
	padding: 8px 0;
	color: var(--lvt-c-sub);
	font-family: var(--lvt-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 18.2px;
	white-space: nowrap;
	transition: color .25s ease;
}

.lvt-dropdown__link:hover {
	color: var(--lvt-c-primary);
}

.lvt-lang__dropdown::after {
	height: 10px;
}

.lvt-site-shop .lvt-lang__dropdown {
	right: -10px;
	left: auto;
}

/* Main row ------------------------------------------------------------- */

.lvt-header__holder {
	height: var(--lvt-bar-h);
}

.lvt-header__bar {
	position: relative;
	z-index: 1;
	height: var(--lvt-bar-h);
	background: var(--lvt-c-bg);
	box-shadow: var(--lvt-shadow-header);
}

.lvt-header.is-sticky .lvt-header__bar {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	transition: transform .3s ease;
}

.lvt-header.is-sticky.is-hidden .lvt-header__bar {
	transform: translateY(calc(-100% - 10px));
}

@media (min-width: 601px) {
	.admin-bar .lvt-header.is-sticky .lvt-header__bar {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

.lvt-header__inner {
	display: flex;
	align-items: center;
	height: 100%;
}

.lvt-logo {
	display: block;
	flex: none;
	margin-right: var(--lvt-logo-gap);
	padding: 5px 0;
	line-height: 0;
}

.lvt-logo__img {
	display: block;
	width: 123px;
	max-width: 123px;
	height: auto;
}

.lvt-header__burger {
	display: none;
}

/* Desktop navigation */
.lvt-nav {
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	min-width: 0;
}

.lvt-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lvt-nav__item {
	position: relative;
	margin: 0;
}

.lvt-nav__link {
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 20px;
	color: var(--lvt-c-secondary);
	font-family: var(--lvt-font-nav);
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	transition: color .25s ease;
}

.lvt-nav__text {
	position: relative;
	display: block;
	padding: 1px 0;
	line-height: 1.2;
}

.lvt-nav__text::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--lvt-c-primary);
	transition: width .4s var(--lvt-ease-nav);
}

.lvt-nav__item:hover > .lvt-nav__link,
.lvt-nav__item.current-menu-item > .lvt-nav__link {
	color: var(--lvt-nav-hover-color);
}

.lvt-nav__item:hover > .lvt-nav__link .lvt-nav__text::after,
.lvt-nav__item.current-menu-item > .lvt-nav__link .lvt-nav__text::after {
	width: 100%;
}

.lvt-nav__chevron {
	width: 8px;
	height: 5px;
	margin-left: 4px;
	color: rgba(82, 82, 82, .45);
}

.lvt-nav__dropdown {
	left: 20px;
	margin-top: 15px;
}

/*
 * Sticky bar (96px, the 40px rows centred): live opens the boxes under the
 * bar, the nav boxes flush (28px below the item), the shop account box 27px
 * below the icon; the hover bridge spans the whole gap.
 */
.lvt-header.is-sticky .lvt-nav__dropdown {
	margin-top: 28px;
}

.lvt-header.is-sticky .lvt-dropdown--account {
	margin-top: 27px;
}

.lvt-header.is-sticky .lvt-nav__dropdown::after,
.lvt-header.is-sticky .lvt-dropdown--account::after {
	height: 28px;
}

/* Shop tools ----------------------------------------------------------- */

.lvt-tools {
	display: flex;
	flex: none;
	align-items: center;
	margin-right: -10px;
}

.lvt-tools__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: #333333;
	cursor: pointer;
	transition: color .25s ease;
}

/*
 * Hover (live): search, account and cart (with the subtotal) dim to 60%;
 * the search/cart pictures (image files on live) fade to opacity .6, the
 * count bubble stays white.
 */
.lvt-tools__btn:hover,
.lvt-tools__account:hover > .lvt-tools__btn,
.lvt-tools__cart:hover {
	color: rgba(51, 51, 51, .6);
}

.lvt-tools__search .lvt-icon--search {
	transition: opacity .3s;
}

.lvt-tools__cart-icon .lvt-icon--cart {
	transition: opacity .25s;
}

.lvt-tools__search:hover .lvt-icon--search,
.lvt-tools__cart:hover .lvt-icon--cart {
	opacity: .6;
}

.lvt-tools__search {
	width: 44px;
}

.lvt-tools__search .lvt-icon--search {
	width: 24px;
	height: 24px;
	color: var(--lvt-c-secondary);
}

.lvt-tools__icon-close {
	display: none;
	width: 21px;
	height: 21px;
	color: #828282;
}

.lvt-tools__search[aria-expanded="true"] .lvt-tools__icon-open {
	display: none;
}

.lvt-tools__search[aria-expanded="true"] .lvt-tools__icon-close {
	display: block;
}

.lvt-tools__account {
	position: relative;
}

.lvt-tools__account .lvt-icon--account {
	width: 20px;
	height: 20px;
}

.lvt-dropdown--account {
	right: 0;
	left: auto;
	width: 350px;
	margin-top: 15px;
	padding: 25px;
	color: var(--lvt-c-muted);
}

.lvt-tools__cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 13px;
	height: 40px;
	padding: 0 10px;
	color: #333333;
}

.lvt-tools__cart-icon {
	position: relative;
	display: block;
	line-height: 0;
}

.lvt-tools__cart-icon .lvt-icon--cart {
	width: 24px;
	height: 24px;
	color: var(--lvt-c-secondary);
}

.lvt-tools__cart-icon .lvt-icon--cart-mobile {
	display: none;
	width: 19.7px;
	height: 20px;
}

.lvt-tools__count {
	position: absolute;
	top: -5px;
	right: -9px;
	z-index: 1;
	min-width: 15px;
	height: 15px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--lvt-c-primary);
	color: #FFFFFF;
	font-family: var(--lvt-font-arial);
	font-size: 9px;
	line-height: 15px;
	text-align: center;
}

.lvt-tools__subtotal {
	color: inherit;
	font-family: var(--lvt-font-arial);
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Tablet + mobile header (<= 1024px) ----------------------------------- */

@media (max-width: 1024px) {
	.lvt-topbar,
	.lvt-nav,
	.lvt-tools__search,
	.lvt-tools__subtotal {
		display: none;
	}

	.lvt-header__inner {
		justify-content: space-between;
	}

	.lvt-logo {
		order: 1;
		margin-right: 0;
	}

	.lvt-logo__img {
		width: var(--lvt-logo-mobile-w);
		max-width: var(--lvt-logo-mobile-w);
	}

	.lvt-header__burger {
		order: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 37px;
		height: 40px;
		margin-right: -10px;
		padding: 0 10px;
		border: 0;
		background: none;
		color: #333333;
		cursor: pointer;
	}

	.lvt-header__burger .lvt-icon {
		width: 17px;
		height: 13px;
	}

	/* Main: live's icon-font glyph sits 1px above the row centre. */
	.lvt-site-main .lvt-header__burger .lvt-icon {
		transform: translateY(-1px);
	}

	/*
	 * Shop: burger left, logo in Woodmart's 153px centre column (left-aligned
	 * with a 10px inset, as live), account + cart right.
	 */
	.lvt-site-shop .lvt-header__inner {
		display: grid;
		grid-template-columns: 1fr 153px 1fr;
	}

	.lvt-site-shop .lvt-header__burger {
		justify-self: start;
		order: 0;
		width: 40px;
		margin-right: 0;
		margin-left: -10px;
		padding: 0;
	}

	.lvt-site-shop .lvt-header__burger .lvt-icon {
		width: 18px;
		height: 14px;
	}

	.lvt-site-shop .lvt-logo {
		order: 1;
		justify-self: start;
		margin-left: 10px;
	}

	.lvt-site-shop .lvt-tools {
		order: 2;
		justify-self: end;
	}

	/*
	 * The account icon opens the account side panel here (header.js), so the
	 * desktop hover/focus dropdown must never show: on touch screens the tap
	 * (and the focus that returns to the icon when the panel closes) would
	 * otherwise leave the 350px "Sign in" box on screen behind/after the panel.
	 */
	.lvt-tools__account .lvt-dropdown--account {
		display: none;
	}

	.lvt-tools__cart {
		padding: 0 16px 0 10px;
	}

	.lvt-tools__cart-icon .lvt-icon--cart {
		display: none;
	}

	.lvt-tools__cart-icon .lvt-icon--cart-mobile {
		display: block;
	}
}

/* Off-canvas panels + overlay (drawer, side cart, account) -------------- */

.lvt-offcanvas {
	position: fixed;
	top: 0;
	bottom: 0;
	z-index: var(--lvt-z-panel);
	display: flex;
	flex-direction: column;
	width: 300px;
	max-width: 100%;
	background: #FFFFFF;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	visibility: hidden;
	transition: transform .5s var(--lvt-ease), visibility 0s linear .5s;
}

.lvt-offcanvas--left {
	left: 0;
	transform: translateX(-100%);
}

.lvt-offcanvas--right {
	right: 0;
	transform: translateX(100%);
}

.lvt-offcanvas.is-open {
	visibility: visible;
	transform: none;
	transition: transform .5s var(--lvt-ease), visibility 0s;
}

@media (min-width: 601px) {
	.admin-bar .lvt-offcanvas {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

.lvt-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--lvt-z-overlay);
	background: rgba(0, 0, 0, .7);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility 0s linear .25s;
}

.lvt-overlay.is-visible {
	opacity: 1;
	visibility: visible;
	transition: opacity .25s ease, visibility 0s;
}

/* Mobile drawer */
@media (min-width: 1025px) {
	.lvt-drawer {
		display: none;
	}
}

@media (max-width: 350px) {
	.lvt-drawer {
		width: 270px;
	}
}

.lvt-drawer-nav,
.lvt-drawer-nav__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lvt-drawer-nav__sub {
	overflow: hidden;
}

.lvt-drawer-nav__sub.is-animating {
	transition: height .2s ease;
}

.lvt-drawer-nav__item {
	position: relative;
	margin: 0;
}

.lvt-drawer-nav__link {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 5px 20px;
	border: 0;
	border-bottom: 1px solid var(--lvt-c-line-soft);
	background: none;
	color: #333333;
	font-family: var(--lvt-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 15.6px;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .25s ease, background-color .25s ease;
}

/* Shop drawer rows: Arial 13px with an 18.2px line (main: Figtree 15.6px). */
.lvt-site-shop .lvt-drawer-nav__link {
	line-height: 18.2px;
}

.lvt-has-sub > .lvt-drawer-nav__link {
	padding-right: 55px;
}

.lvt-drawer-nav__item--sub > .lvt-drawer-nav__link {
	color: var(--lvt-c-sub);
	font-size: 14px;
	font-weight: 400;
	line-height: 18.2px;
	text-transform: none;
}

.lvt-drawer-nav__link:hover,
.lvt-drawer-nav__item.current-menu-item > .lvt-drawer-nav__link,
.lvt-drawer-nav__item.is-current > .lvt-drawer-nav__link {
	color: var(--lvt-c-primary);
}

/* Language sub-items: the current language stays grey like the other one (live); aria-current marks it. */
.lvt-drawer-nav__lang .lvt-drawer-nav__item--sub.is-current > .lvt-drawer-nav__link {
	color: var(--lvt-c-sub);
}

.lvt-drawer-nav__lang .lvt-drawer-nav__item--sub.is-current > .lvt-drawer-nav__link:hover {
	color: var(--lvt-c-primary);
}

.lvt-has-sub.is-open > .lvt-drawer-nav__link {
	background: var(--lvt-c-bg);
}

.lvt-drawer-nav__opener {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--lvt-c-line-soft);
	background: none;
	color: var(--lvt-c-dark);
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease;
}

.lvt-drawer-nav__opener .lvt-icon {
	width: 7px;
	height: 12px;
	transition: transform .25s ease;
}

/* Shop: thin (1px) chevron as live; main keeps the bold one. */
.lvt-site-shop .lvt-drawer-nav__opener .lvt-icon path {
	stroke-width: 1;
}

.lvt-has-sub.is-open > .lvt-drawer-nav__opener {
	background: var(--lvt-c-primary);
	color: #FFFFFF;
}

.lvt-has-sub.is-open > .lvt-drawer-nav__opener .lvt-icon {
	transform: rotate(90deg);
}

.lvt-drawer-nav__icon {
	width: 14px;
	height: 14px;
	margin-right: 6px;
}

/* Side panels (side cart, account): live 340px on desktop, 300px from 1024px down. */
.lvt-side-panel {
	width: 340px;
}

@media (max-width: 1024px) {
	.lvt-side-panel {
		width: 300px;
	}
}

.lvt-side-panel__head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	min-height: 70px;
	padding: 0 15px;
	border-bottom: 1px solid var(--lvt-c-line-soft);
}

.lvt-side-panel__title {
	margin: 0;
	color: var(--lvt-c-heading);
	font-family: var(--lvt-font-heading);
	font-size: 20.8px;
	font-weight: 600;
	line-height: 29px;
}

.lvt-side-panel__close {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--lvt-c-grey-btn);
	font-family: var(--lvt-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	cursor: pointer;
	transition: color .25s ease;
}

.lvt-side-panel__close:hover {
	color: #333333;
}

/*
 * Live "Close" label: #333 at every width; weight 500 in the side cart and
 * 600 (bold) in the account panel; the side cart's × is grey, the account
 * panel's #333 (computed on live at 1440/1024/768/390).
 */
.lvt-site-shop .lvt-side-panel__close {
	color: #333333;
	font-weight: 500;
}

.lvt-site-shop #lvt-account-panel .lvt-side-panel__close {
	font-weight: 600;
}

.lvt-site-shop .lvt-side-panel__close:hover {
	color: var(--lvt-c-grey-btn);
}

/* Phones: smaller panel head (live: title 18.2px with a 1.4 line, "Close" 14px,
   row 66.5px = 20px + 25.48px + 20px + the 1px line). */
@media (max-width: 767px) {
	.lvt-site-shop .lvt-side-panel__head {
		min-height: 66.48px;
	}

	.lvt-site-shop .lvt-side-panel__title {
		font-size: 18.2px;
		line-height: 25.48px;
	}

	.lvt-site-shop .lvt-side-panel__close {
		font-size: 14px;
		line-height: 20px;
	}
}

.lvt-side-panel__close .lvt-icon {
	width: 16px;
	height: 16px;
	color: #333333;
}

/*
 * Live draws the × of both shop panels as an icon-font glyph in #333 (the
 * grey computed on its wrapper does not reach the glyph): about 14 x 13px with
 * a 1.5px line on computers, 12 x 11.5px on phones.
 */
.lvt-site-shop .lvt-side-panel__close .lvt-icon {
	width: 18px;
	height: 18px;
	margin: 0 -1.36px 0 -.64px;
	transform: translateY(-1.2px);
}

.lvt-site-shop .lvt-side-panel__close .lvt-icon path {
	stroke-width: 1.85;
}

@media (max-width: 767px) {
	.lvt-site-shop .lvt-side-panel__close .lvt-icon {
		width: 16px;
		height: 16px;
		margin: 0 -2.4px 0 3.4px;
		transform: translateY(-1.25px);
	}

	.lvt-site-shop .lvt-side-panel__close .lvt-icon path {
		stroke-width: 1.7;
	}
}

.lvt-side-panel__body {
	flex: 1 1 auto;
	min-height: 0;
}

/* Full-screen search (shop) ------------------------------------------- */

.lvt-search {
	position: fixed;
	top: var(--lvt-search-top, 137px);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--lvt-z-search);
	background: #FFFFFF;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s;
}

.lvt-search.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s ease, visibility 0s;
}

.lvt-search__bar {
	position: relative;
	border-bottom: 1px solid var(--lvt-c-line-soft);
}

.lvt-search__form {
	margin: 0;
}

.lvt-search .lvt-search__input {
	display: block;
	width: 100%;
	height: 110px;
	padding: 0 100px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #333333;
	font-family: var(--lvt-font-body);
	font-size: 48px;
	font-weight: 600;
	line-height: 110px;
	text-align: center;
}

.lvt-search .lvt-search__input::placeholder {
	color: #333333;
}

.lvt-search__close {
	position: absolute;
	top: 50%;
	right: 33px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	background: none;
	color: #333333;
	cursor: pointer;
}

.lvt-search__close .lvt-icon {
	width: 44px;
	height: 44px;
}

.lvt-search__close .lvt-icon path {
	stroke-width: 1.1;
}

.lvt-search__body {
	padding: 20px var(--lvt-gutter) 40px;
}

.lvt-search__hint {
	margin: 0;
	color: var(--lvt-c-text);
	font-size: 17.28px;
	line-height: 24px;
	text-align: center;
}

.lvt-search.has-results .lvt-search__hint {
	display: none;
}

.lvt-search__results {
	max-width: var(--lvt-container);
	margin: 0 auto;
}

.lvt-search.is-loading .lvt-search__results {
	opacity: .5;
}
