/* ==========================================================================
   Phone menu panel (markup: woodmart_mobile_menu() in functions.php)
   ========================================================================== */

.hp-mnav {
	--mn-bg: #FDF6E9;
	--mn-card: #FFFBF2;
	--mn-line: #EFE7D3;
	--mn-ink: #1C2620;
	--mn-mute: #6A6B62;
	--mn-green: #0F3A29;
	--mn-chip: #F4ECD8;
	width: min(88vw, 360px) !important;
	padding: 0 16px 24px !important;
	background: var(--mn-bg) !important;
	color: var(--mn-ink);
	font-family: "Inter", system-ui, sans-serif;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.hp-mnav ul { list-style: none; margin: 0; padding: 0; }
.hp-mnav a { color: inherit; text-decoration: none; }

/* head: brand left, close right, pinned while the panel scrolls */
.hp-mnav__head {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 -16px 14px;
	padding: 14px 16px 12px;
	background: var(--mn-bg);
	border-bottom: 1px solid var(--mn-line);
}
.hp-mnav__brand { display: flex; align-items: center; gap: 10px; }
.hp-mnav__brand img { width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.hp-mnav__brand span {   /* the footer's wordmark style */
	display: flex;
	flex-direction: column;
	font: 700 17px/1.1 "Haramain", Arial, Helvetica, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--mn-green);
}
.hp-mnav__brand small {
	font: 700 9px/1.4 "Haramain", Arial, Helvetica, sans-serif;
	letter-spacing: .17em;
	color: var(--mn-ink);
}
.hp-mnav__close a {
	position: relative;
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mn-chip);
	font-size: 0;
}
.hp-mnav__close a::before,
.hp-mnav__close a::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--mn-green);
	transform: translate(-50%, -50%) rotate(45deg);
}
.hp-mnav__close a::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* search */
.hp-mnav .wd-search-form { margin: 0 0 20px !important; padding: 0 !important; }
.hp-mnav .searchform input[type="text"] {
	height: 46px !important;
	padding-left: 18px !important;
	border: 1px solid var(--mn-line) !important;
	border-radius: 999px !important;
	background: var(--mn-card) !important;
	font-size: 15px !important;
}
.hp-mnav .searchform .searchsubmit { right: 6px !important; }

/* section label */
.hp-mnav__label {
	margin: 0 0 10px;
	font: 600 11.5px/1 "Inter", system-ui, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mn-mute);
}

/* categories: two-up tiles, count under the name */
.hp-mnav__cats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 22px !important;
}
.hp-mnav__cats a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-height: 52px;
	padding: 7px 12px;
	border: 1px solid var(--mn-line);
	border-radius: 14px;
	background: var(--mn-card);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	transition: border-color .15s, background .15s;
}
.hp-mnav__cats em {
	font-style: normal;
	font-size: 12px;
	font-weight: 500;
	color: var(--mn-mute);
}
.hp-mnav__cats li:first-child { grid-column: 1 / -1; }
.hp-mnav__cats li:first-child a {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	min-height: 50px;
	background: var(--mn-green);
	border-color: var(--mn-green);
	color: #fff;
}
.hp-mnav__cats li:first-child em { color: rgba(255, 255, 255, .75); }
.hp-mnav__cats a:active { background: var(--mn-chip); }
.hp-mnav__cats a[aria-current] { border-color: var(--mn-green); box-shadow: inset 0 0 0 1px var(--mn-green); }

/* pages and account: plain rows with a chevron */
.hp-mnav__links {
	margin-bottom: 18px !important;
	border-top: 1px solid var(--mn-line);
}
.hp-mnav__links a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	border-bottom: 1px solid var(--mn-line);
	font-size: 16px;
	font-weight: 500;
}
.hp-mnav__links a::after {
	content: "";
	margin-left: auto;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--mn-mute);
	border-right: 2px solid var(--mn-mute);
	transform: rotate(45deg);
}
.hp-mnav__links em {
	font-style: normal;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--mn-chip);
	color: var(--mn-mute);
}

/* help card */
.hp-mnav__help {
	padding: 16px;
	border-radius: 16px;
	background: var(--mn-chip);
}
.hp-mnav__help p { margin: 0 0 10px; font-size: 14px; color: var(--mn-mute); }
.hp-mnav__call {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	border-radius: 999px;
	background: var(--mn-green);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
}
.hp-mnav__call::before {
	content: "";
	width: 17px;
	height: 17px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hp-mnav__mail {
	display: block;
	margin-top: 10px;
	text-align: center;
	font-size: 14px;
	color: var(--mn-green) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}


/* ==========================================================================
   Instant search results (assets/js/hp-header.js), for the header search
   and the phone menu's search. Here because this file loads on every page.
   ========================================================================== */
.hp-sr {
	position: absolute;
	z-index: 400;
	top: calc(100% + 8px);
	right: 0;
	width: 380px;
	max-width: calc(100vw - 32px);
	max-height: min(70vh, 520px);
	overflow-y: auto;
	border: 1px solid #E6DDC8;
	border-radius: 16px;
	background: #FFFBF2;
	box-shadow: 0 18px 40px rgba(15, 58, 41, .14);
	text-align: left;
}
.hp-sr[hidden] { display: none; }
.hp-sr__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 16px;
	border-bottom: 1px solid #EFE7D3;
	color: #2D2E2B !important;
	text-decoration: none !important;
}
.hp-sr__item:hover,
.hp-sr__item.is-active { background: #F4ECD8; }
.hp-sr__item img {
	flex: none;
	width: 52px;
	height: 52px;
	padding: 4px;
	border-radius: 10px;
	background: #F6EBD3;
	object-fit: contain;
}
.hp-sr__item strong { display: block; font: 600 15px/1.3 "Playfair Display", Georgia, serif; color: #0F3A29; }
.hp-sr__item mark { padding: 0; background: none; color: #2E6B45; text-decoration: underline; text-underline-offset: 2px; }
.hp-sr__item em { display: block; margin-top: 3px; font-style: normal; font-size: 14px; color: #1D5C3B; }
.hp-sr__item em del { opacity: .6; margin-right: 4px; }
.hp-sr__none { margin: 0; padding: 16px; font-size: 14px; color: #5C5E55; }
.hp-sr__all {
	display: block;
	padding: 12px 16px;
	background: #F6EBD3;
	color: #0F3A29 !important;
	font: 600 13px/1.2 "Inter", sans-serif;
	letter-spacing: .04em;
	text-align: center;
	text-decoration: none !important;
}
/* in the phone menu the list opens in the flow, full width */
.mobile-nav .searchform { position: relative; }
.mobile-nav .hp-sr { position: static; width: auto; max-width: none; margin-top: 8px; box-shadow: none; }


/* ==========================================================================
   Size picker on product cards (assets/js/hp-quickshop.js): slides up over
   the bottom of the card. Here because cards appear on many page types.
   ========================================================================== */
.hp-qs-host { position: relative; }
.hp-qs {
	position: absolute;
	z-index: 6;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px 12px 14px;
	border-top: 1px solid #E6DDC8;
	border-radius: 0 0 16px 16px;
	background: #FFFBF2;
	box-shadow: 0 -12px 26px rgba(15, 58, 41, .10);
	text-align: left;
	visibility: hidden;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.hp-qs.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
.hp-qs__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font: 600 13px/1 "Inter", system-ui, sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #5C5E55;
}
.hp-qs__x {
	width: 28px;
	height: 28px;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50%;
	background: #F4ECD8 !important;
	color: #0F3A29 !important;
	font: 400 20px/1 "Inter", sans-serif !important;
	cursor: pointer;
}
.hp-qs__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hp-qs__pills.is-nudge { animation: hp-qs-nudge .35s ease; }
@keyframes hp-qs-nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.hp-qs__pill {
	min-width: 0;
	min-height: 0 !important;
	height: 34px;
	padding: 0 12px !important;
	border: 1px solid #CFC7B2 !important;
	border-radius: 999px !important;
	background: #FFFDF8 !important;
	color: #2D2E2B !important;
	font: 500 13.5px/1 "Inter", sans-serif !important;
	text-transform: none !important;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.hp-qs__pill:hover:not([disabled]) { border-color: #0F3A29 !important; }
.hp-qs__pill.is-on { border-color: #0F3A29 !important; background: #0F3A29 !important; color: #F4EFDD !important; }
.hp-qs__pill[disabled] { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.hp-qs .hp-qs__add {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 40px !important;
	min-height: 0 !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #0E4A31 0%, #07311F 100%) !important;
	color: #F4EFDD !important;
	font: 600 14px/1 "Inter", sans-serif !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
}
.hp-qs .hp-qs__add span { font-weight: 500; opacity: .85; }
.hp-qs .hp-qs__add[aria-disabled] { background: #E9E2CF !important; color: #6A6B62 !important; }
.hp-qs .hp-qs__add.loading { opacity: .7; }
.hp-qs .hp-qs__add::before,
.hp-qs .hp-qs__add::after { display: none !important; }   /* no cart icon or spinner glyph from the theme */
.hp-qs .added_to_cart { display: none !important; }      /* WooCommerce's "View cart" link: the cart badge updates instead */


/* ==========================================================================
   Signed in: initials disc (header, drop-down, phone menu, account page)
   ========================================================================== */
.hp-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(180deg, #0E4A31 0%, #07311F 100%);
	color: #F4EFDD;
	font: 700 14px/1 "Inter", system-ui, sans-serif;
	letter-spacing: .04em;
}
.hp-mnav__who {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #CBD5AE;
	border-radius: 14px;
	background: #EEF0DE;
	color: inherit !important;
	text-decoration: none !important;
}
.hp-mnav__who small { display: block; font: 500 12px/1.3 "Inter", sans-serif; color: #5C5E55; }
.hp-mnav__who strong { display: block; font: 700 16px/1.25 "Playfair Display", Georgia, serif; color: #0F3A29; }
.hp-mnav__who::after {
	content: "";
	margin-left: auto;
	width: 8px;
	height: 8px;
	border-top: 2px solid #5C5E55;
	border-right: 2px solid #5C5E55;
	transform: rotate(45deg);
}
/* phone header: a green dot on the menu button says "signed in" without opening it */
body.logged-in .wd-header-mobile-nav .wd-tools-icon { position: relative; }
body.logged-in .wd-header-mobile-nav .wd-tools-icon::after {
	content: "";
	position: absolute;
	top: -5px;
	right: -7px;
	width: 10px;
	height: 10px;
	border: 2px solid #FDF6E9;
	border-radius: 50%;
	background: #3FA34D;
}
