/* Pagina de produs v2 – butonul „☰ Produse” și panoul lateral cu meniul de produse */

.tipro-pdp-menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	line-height: 40px;
	min-height: 40px;
	cursor: pointer;
	box-shadow: none;
}
.tipro-pdp-menu-btn:hover,
.tipro-pdp-menu-btn:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.tipro-pdp-menu-btn__icon { display: inline-grid; gap: 3px; width: 16px; }
.tipro-pdp-menu-btn__icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; }

/* În bara albastră: lipit de marginea din stânga, meniul de sus rămâne centrat */
.tipro-pdp-has-menu-btn { position: relative; }
.tipro-pdp-menu-btn.is-header { position: absolute; left: 15px; top: 0; z-index: 5; }

/* Pe pagină (mobil): ascuns pe desktop */
.tipro-pdp-menu-btn.is-inline {
	display: none;
	margin: 0 0 12px;
	padding: 0 14px;
	border-radius: 8px;
	background: var(--pdp-navy, #024059);
	line-height: 38px;
	min-height: 38px;
}
@media (max-width: 1024px) {
	.tipro-pdp-menu-btn.is-inline { display: inline-flex; }
}

/* ---------- Panoul ---------- */
.tipro-pdp-drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; }
.tipro-pdp-drawer.is-open { visibility: visible; }
.tipro-pdp-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(2, 30, 45, .45);
	opacity: 0;
	transition: opacity .2s ease;
}
.tipro-pdp-drawer.is-open .tipro-pdp-drawer__overlay { opacity: 1; }
.tipro-pdp-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(340px, 88vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: 4px 0 24px rgba(2, 64, 89, .18);
	transform: translateX(-100%);
	transition: transform .22s ease;
}
.tipro-pdp-drawer.is-open .tipro-pdp-drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.tipro-pdp-drawer__panel,
	.tipro-pdp-drawer__overlay { transition: none; }
}
.tipro-pdp-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #024059;
	color: #fff;
	font-weight: 800;
	font-size: 16px;
}
.tipro-pdp-drawer__close {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 36px;
	cursor: pointer;
}
.tipro-pdp-drawer__close:hover,
.tipro-pdp-drawer__close:focus-visible { background: rgba(255, 255, 255, .15); }

.tipro-pdp-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 0 16px; }
.tipro-pdp-drawer__menu,
.tipro-pdp-drawer__menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.tipro-pdp-drawer__menu li { position: relative; margin: 0; }
.tipro-pdp-drawer__menu a {
	display: block;
	padding: 8px 48px 8px 16px;
	color: #11293a;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}
.tipro-pdp-drawer__menu a:hover { background: #edf4fa; color: #024059; }
.tipro-pdp-drawer__menu > li + li { border-top: 1px solid #eef2f5; }
.tipro-pdp-drawer__menu .current-menu-item > a {
	background: #edf4fa;
	color: #024059;
	font-weight: 800;
	box-shadow: inset 3px 0 0 #049dbf;
}

/* Grupe pliabile */
.tipro-pdp-drawer__menu .sub-menu { display: none; padding-bottom: 6px; }
.tipro-pdp-drawer__menu li.is-open > .sub-menu { display: block; }
.tipro-pdp-drawer__menu .sub-menu a { padding-left: 30px; font-size: 13px; color: #355266; }
.tipro-pdp-drawer__toggle {
	position: absolute;
	top: 2px;
	right: 6px;
	width: 34px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #587286;
	cursor: pointer;
}
.tipro-pdp-drawer__toggle::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .15s ease;
}
.tipro-pdp-drawer__menu li.is-open > .tipro-pdp-drawer__toggle::before { transform: rotate(-135deg); }
.tipro-pdp-drawer__toggle:hover,
.tipro-pdp-drawer__toggle:focus-visible { background: #edf4fa; color: #024059; }

html.tipro-pdp-menu-open { overflow: hidden; }

/* ---------- Tema (Woodmart) stilizează toate <button>-urile: le readucem la forma noastră ---------- */
.whb-header-bottom button.tipro-pdp-menu-btn.is-header {
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 14px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fff !important;
	font-size: 13px !important;
	line-height: 40px !important;
	box-shadow: none !important;
	top: 0 !important;
}
.whb-header-bottom button.tipro-pdp-menu-btn.is-header:hover,
.whb-header-bottom button.tipro-pdp-menu-btn.is-header:focus-visible { background: rgba(255, 255, 255, .14) !important; }
button.tipro-pdp-menu-btn.is-inline {
	padding: 0 14px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #024059 !important;
	color: #fff !important;
	line-height: 38px !important;
	min-height: 38px !important;
	height: 38px !important;
	font-size: 13px !important;
	box-shadow: none !important;
}
#tipro-pdp-menu button.tipro-pdp-drawer__close {
	width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: #fff !important;
	font-size: 20px !important;
	line-height: 36px !important;
	box-shadow: none !important;
}
#tipro-pdp-menu button.tipro-pdp-drawer__close:hover,
#tipro-pdp-menu button.tipro-pdp-drawer__close:focus-visible { background: rgba(255, 255, 255, .15) !important; }
#tipro-pdp-menu button.tipro-pdp-drawer__toggle {
	position: absolute !important;
	top: 2px !important;
	right: 6px !important;
	display: block !important;
	width: 34px !important;
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	color: #587286 !important;
	box-shadow: none !important;
	font-size: 0 !important;
}
#tipro-pdp-menu button.tipro-pdp-drawer__toggle:hover,
#tipro-pdp-menu button.tipro-pdp-drawer__toggle:focus-visible { background: #edf4fa !important; color: #024059 !important; }

/* Butonul din bară centrat vertical (pe mobil banda e mai înaltă) */
.whb-header-bottom button.tipro-pdp-menu-btn.is-header { top: 50% !important; transform: translateY(-50%) !important; }
.whb-header-bottom button.tipro-pdp-menu-btn.is-header:hover { transform: translateY(-50%) !important; }
/* Butonul de rezervă de deasupra titlului apare doar când bara lipsește */
button.tipro-pdp-menu-btn.is-inline.is-fallback { display: inline-flex !important; }
