/**
 * Full-page drawer menu styles.
 * Full viewport on all devices; wizard-style slide panels.
 */

/* -------------------------------------------------------------------------
   Drawer overlay & panel - full page
   ------------------------------------------------------------------------- */
.wt-drawer-menu {
	position: fixed;
	inset: 0;
	/* Put drawer below Woodmart header (header uses ~390/391) */
	z-index: 380;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear 0.35s;
}

.wt-drawer-menu.wt-drawer-menu--open {
	visibility: visible;
	pointer-events: auto;
	transition: visibility 0s linear 0s;
}

/* Drawer reveal animation (inspired by Karavan drawer) */
@keyframes wt-drawer-menu-revealed {
	0% {
		opacity: 0;
		transform: translateY(12px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.wt-drawer-menu.wt-drawer-menu--open,
.wt-drawer-menu.animation--drawer-menu-revealed.wt-drawer-menu--open {
	animation: wt-drawer-menu-revealed 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.wt-drawer-menu__overlay {
	position: absolute;
	inset: 0;
	/* Disable visual dimming and click blocking */
	background: transparent;
	opacity: 0;
	pointer-events: none;
	transition: none;
}

.wt-drawer-menu--open .wt-drawer-menu__overlay {
	opacity: 0;
}

.wt-drawer-menu__panel {
	position: absolute;
	max-width: 640px;
	/* Default: preheader (45px) + header (90px) = 135px */
	top: 135px;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #000;
	overflow: hidden;
	transform: translateX(-100%);
	transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.wt-drawer-menu--open .wt-drawer-menu__panel {
	transform: translateX(0);
}

/* When Woodmart header is stuck (collapsed), only header height ~60px */
:root:has(.whb-sticked) .wt-drawer-menu__panel {
	top: 60px;
}

/* RTL */
[dir="rtl"] .wt-drawer-menu__panel {
	transform: translateX(-100%);
}

[dir="rtl"] .wt-drawer-menu--open .wt-drawer-menu__panel {
	transform: translateX(0);
}

/* -------------------------------------------------------------------------
   Panel content layout
   ------------------------------------------------------------------------- */
.wt-drawer-menu__bottom {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.wt-drawer-menu__all-links {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.wt-drawer-menu__contents {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
}

.wt-drawer-menu__header {
	display:none!important;
	flex-shrink: 0;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wt-drawer-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	margin: -0.5rem 0 -0.5rem -0.5rem;
	background: none;
	border: none!important;
	background: transparent!important;
	cursor: pointer;
	color: inherit;
	font: inherit;
	line-height: 1;
}

.wt-drawer-menu__close:hover {
	opacity: 0.8;
}

.wt-drawer-menu__close-icon {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
	fill: #fff!important;
	color: #fff!important;
}

.wt-drawer-menu__close-icon svg {
	width: 100%;
	height: 100%;
	display: block;
	fill: #fff!important;
	color: #fff!important;
}
.wt-drawer-menu__close-icon svg path {
	fill: #fff!important;
	color: #fff!important;
}

.wt-drawer-menu__main {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	padding-top: 2.5rem;
	border-top: .5px solid black!important;;
}

/* -------------------------------------------------------------------------
   Track: horizontal strip of panels
   ------------------------------------------------------------------------- */
.wt-drawer-track {
	display: flex;
	flex-direction: row;
	height: 100%;
	transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
	will-change: transform;
}

/* -------------------------------------------------------------------------
   Each panel = one full-width view
   ------------------------------------------------------------------------- */
.wt-drawer-panel {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.wt-drawer-panel--root {
	padding: 0.5rem 0;
}

/* -------------------------------------------------------------------------
   Lists & links
   ------------------------------------------------------------------------- */
.wt-drawer-menu__primary-links,
.wt-drawer-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wt-drawer-menu__item {
	margin: 0;
	padding: 0;
	border: none;
}

/* Initially hide items, ready for animation */
.wt-drawer-panel .wt-drawer-menu__item {
	opacity: 0;
	transform: translateY(-10px);
}

/* Staggered animation for menu items when panel becomes active */
.wt-drawer-panel.wt-panel-active .wt-drawer-menu__item {
	animation: wt-drawer-item-reveal 0.4s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* Initial drawer open: add delay for root panel */
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(1) { animation-delay: 0.55s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(2) { animation-delay: 0.6s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(3) { animation-delay: 0.65s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(4) { animation-delay: 0.7s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(5) { animation-delay: 0.75s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(6) { animation-delay: 0.8s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(7) { animation-delay: 0.85s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(8) { animation-delay: 0.9s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(9) { animation-delay: 0.95s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(10) { animation-delay: 1s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(11) { animation-delay: 1.05s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(12) { animation-delay: 1.1s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(13) { animation-delay: 1.15s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(14) { animation-delay: 1.2s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(15) { animation-delay: 1.25s; }
.wt-drawer-menu--open .wt-drawer-panel--root.wt-panel-active .wt-drawer-menu__item:nth-child(n+16) { animation-delay: 1.3s; }

/* Sub-panels: no initial delay, immediate animation on navigation */
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(1) { animation-delay: 0.05s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(2) { animation-delay: 0.1s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(3) { animation-delay: 0.15s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(4) { animation-delay: 0.2s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(5) { animation-delay: 0.25s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(6) { animation-delay: 0.3s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(7) { animation-delay: 0.35s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(8) { animation-delay: 0.4s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(9) { animation-delay: 0.45s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(10) { animation-delay: 0.5s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(11) { animation-delay: 0.55s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(12) { animation-delay: 0.6s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(13) { animation-delay: 0.65s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(14) { animation-delay: 0.7s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(15) { animation-delay: 0.75s; }
.wt-drawer-panel:not(.wt-drawer-panel--root).wt-panel-active .wt-drawer-menu__item:nth-child(n+16) { animation-delay: 0.8s; }

/* Animation keyframes for menu items reveal */
@keyframes wt-drawer-item-reveal {
	0% {
		opacity: 0;
		transform: translateY(-10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.wt-drawer-menu__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.875rem 1.25rem;
	color: inherit;
	text-decoration: none;
	font-size: 1.1rem;
	padding-left: 3em;
	line-height: 1.4;
	transition: background-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.wt-drawer-menu__link:hover,
.wt-drawer-menu__link:focus {
	background: rgba(255, 255, 255, 0.06);
}
.wt-drawer-menu__link:hover {
    color: #030a4d!important;
}

.wt-drawer-menu__link-text {
	flex: 1;
	text-align: left;
}

.wt-drawer-menu__chevron {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	display: block;
	transform: rotate(-90deg);
	position: absolute;
	right: 20px;
}

.wt-drawer-menu__chevron svg {
	width: 100%;
	height: 100%;
	display: block;
}

[dir="rtl"] .wt-drawer-menu__chevron {
	transform: rotate(180deg);
}

/* Back link (heading row) */
.wt-drawer-menu__item--heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.03);
}

.wt-drawer-menu__back-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem;
	margin: -0.35rem 0;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	transform: rotate(-180deg);
	-webkit-tap-highlight-color: transparent;
}

.wt-drawer-menu__back-link:hover {
	opacity: 0.8;
}

.wt-drawer-menu__back-icon {
	width: 1.25rem;
	height: 1.25rem;
	display: block;
}

.wt-drawer-menu__back-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

[dir="rtl"] .wt-drawer-menu__back-icon svg {
	transform: scaleX(-1);
}

.wt-drawer-menu__heading-title {
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Sub list padding */
.wt-drawer-menu__list--sub {
	padding-top: 0.25rem;
}

/* -------------------------------------------------------------------------
   Social Icons Section
   ------------------------------------------------------------------------- */
.wt-drawer-menu__social {
	flex-shrink: 0;
	padding: 1.5rem;
	padding-left: 3em;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: start;
	gap: 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.wt-drawer-menu__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	color: #000;
	transition: opacity 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.wt-drawer-menu__social a:hover {
	opacity: 0.7;
	transform: scale(1.1);
}

.wt-drawer-menu__social svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: #000;
	display: block;
}

/* -------------------------------------------------------------------------
   Body scroll lock when drawer open
   ------------------------------------------------------------------------- */
body.wt-drawer-menu-open {
	overflow: hidden;
	height: 100%;
}

/* Prevent pull-to-refresh / overscroll on mobile when drawer open */
body.wt-drawer-menu-open .wt-drawer-menu__panel {
	overscroll-behavior: contain;
}

/* -------------------------------------------------------------------------
   Hide close button inside drawer header
   ------------------------------------------------------------------------- */
.wt-drawer-menu__close {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Transform burger menu to close button when drawer is open
   ------------------------------------------------------------------------- */
.wd-header-mobile-nav a:before {
	transition: transform 0.3s ease, opacity 0.3s ease;
	display: inline-block;
}
.wd-header-mobile-nav a:before {
    font-size: 20px;
}
@media (max-width: 768px) {
	.wd-header-mobile-nav a:before {
		display: none !important;
	}
}
/* When drawer is open, change burger icon to close icon (X) */
.wd-header-mobile-nav.wt-drawer-open a:before {
	content: "\f112" !important;
    transform: rotate(180deg);
}
