/**
 * Menu hamburguesa de categorias de la tienda (panel izquierdo).
 */

body.ls-shop-categories-nav {
	--ls-shop-cat-accent: #f86511;
	--ls-shop-cat-panel-bg: rgba(12, 12, 12, 0.96);
	--ls-shop-cat-text: #ffffff;
	--ls-shop-cat-muted: rgba(255, 255, 255, 0.72);
}

/* Boton en la barra de herramientas (reemplaza Show sidebar). */
body.ls-shop-categories-nav .wd-shop-tools .ls-shop-cat-burger {
	display: inline-flex;
	align-items: center;
	margin-right: auto;
}

.ls-shop-cat-burger button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.ls-shop-cat-burger button:hover,
.ls-shop-cat-burger button:focus-visible {
	outline: none;
}

.ls-shop-cat-burger__bars {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 18px;
	flex-shrink: 0;
}

.ls-shop-cat-burger__bars span {
	display: block;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ls-shop-cat-burger__label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

body.ls-shop-cat-drawer-open .ls-shop-cat-burger__bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

body.ls-shop-cat-drawer-open .ls-shop-cat-burger__bars span:nth-child(2) {
	opacity: 0;
}

body.ls-shop-cat-drawer-open .ls-shop-cat-burger__bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Ocultar controles de sidebar de Woodmart (sustituidos por nuestro drawer). */
body.ls-shop-categories-nav .wd-show-sidebar-btn,
body.ls-shop-categories-nav .wd-sidebar-opener.wd-on-shop {
	display: none !important;
}

/* Overlay y panel lateral. */
.ls-shop-cat-overlay {
	position: fixed;
	inset: 0;
	z-index: 400;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ls-shop-cat-drawer {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 410;
	display: flex;
	flex-direction: column;
	width: min(320px, 88vw);
	height: 100%;
	background: var(--ls-shop-cat-panel-bg);
	color: var(--ls-shop-cat-text);
	box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
	transform: translateX(-100%);
	transition: transform 0.28s ease;
	backdrop-filter: blur(8px);
}

body.ls-shop-cat-drawer-open .ls-shop-cat-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

body.ls-shop-cat-drawer-open .ls-shop-cat-drawer {
	transform: translateX(0);
}

.ls-shop-cat-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 18px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}

.ls-shop-cat-drawer__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ls-shop-cat-text);
}

.ls-shop-cat-drawer__close {
	border: 0;
	border-radius: 8px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--ls-shop-cat-text);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.ls-shop-cat-drawer__close:hover,
.ls-shop-cat-drawer__close:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	outline: none;
}

.ls-shop-cat-drawer__nav {
	flex: 1;
	overflow-y: auto;
	padding: 12px 10px 24px;
}

.ls-shop-categories-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ls-shop-categories-menu li + li {
	margin-top: 6px;
}

.ls-shop-categories-menu a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--ls-shop-cat-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ls-shop-cat-logo,
.ls-shop-cat-logo--icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.08);
}

.ls-shop-cat-logo--icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--btn-accented-bgcolor, #fe9a0c);
	background: rgba(254, 154, 12, 0.16);
}

.ls-shop-cat-logo--icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.ls-shop-cat-name {
	flex: 1 1 auto;
	min-width: 0;
}

.ls-shop-categories-menu a:hover,
.ls-shop-categories-menu a:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	outline: none;
}

.ls-shop-categories-menu li.is-active > a {
	background: rgba(248, 101, 17, 0.18);
	color: #ffffff;
	box-shadow: inset 3px 0 0 var(--ls-shop-cat-accent);
}

.ls-shop-categories-menu .count {
	margin-left: auto;
	font-size: 12px;
	font-weight: 500;
	color: var(--ls-shop-cat-muted);
}

body.ls-shop-cat-drawer-open {
	overflow: hidden;
}
