:root {
	--ppum-black: #151515;
	--ppum-drawer: #171918;
	--ppum-yellow: #f7c500;
	--ppum-white: #ffffff;
	--ppum-border: #6d6d6d;
}

.ppum-root,
.ppum-root * {
	box-sizing: border-box;
}

.ppum-root {
	position: relative;
	z-index: 99990;
	width: 100%;
	font-family: inherit;
	color: var(--ppum-white);
}

.ppum-root button,
.ppum-root input {
	font: inherit;
}

.ppum-desktop-shell {
	position: relative;
	width: 100%;
	z-index: 3;
}

.ppum-desktop-header {
	position: relative;
	width: 100%;
	height: 92px;
	background: var(--ppum-black);
	border-bottom: 2px solid var(--ppum-yellow);
	transition: height .22s ease, box-shadow .22s ease;
}

.ppum-desktop-inner {
	width: min(1060px, calc(100% - 48px));
	height: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 42px;
}

.ppum-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex: 0 0 auto;
}

.ppum-logo-desktop {
	width: 128px;
	height: 82px;
	justify-content: center;
	align-self: flex-start;
}

.ppum-logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ppum-desktop-nav {
	flex: 1 1 auto;
	height: 100%;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 14px;
	min-width: 0;
}

.ppum-nav-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 6px;
	border: 0;
	background: transparent;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
}

.ppum-nav-item:hover,
.ppum-nav-item:focus-visible,
.ppum-nav-item.is-current,
.ppum-root.mega-open .ppum-products-trigger {
	color: var(--ppum-yellow);
	outline: none;
}

.ppum-nav-item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: transparent;
}

.ppum-nav-item.is-current::after,
.ppum-root.mega-open .ppum-products-trigger::after {
	background: var(--ppum-yellow);
}

.ppum-nav-icon {
	width: 27px;
	height: 27px;
	display: block;
	object-fit: contain;
	flex: 0 0 auto;
}

.ppum-search {
	position: relative;
	width: 52px;
	height: 42px;
	margin-left: 4px;
	padding-left: 18px;
	border-left: 1px solid rgba(255, 255, 255, .8);
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.ppum-search-toggle,
.ppum-mobile-search-open {
	width: 30px;
	height: 30px;
	padding: 3px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.ppum-search-toggle svg,
.ppum-mobile-search-open svg,
.ppum-mobile-search-form svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}

.ppum-search-form {
	position: absolute;
	top: 50px;
	right: 0;
	width: 330px;
	height: 65px;
	padding: 5px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
	display: flex;
	z-index: 8;
}

.ppum-search-form[hidden] {
	display: none;
}

.ppum-search-form input {
	flex: 1;
	min-width: 0;
	padding: 0 12px;
	border: 0;
	border-bottom: 1px solid #c3c3c3;
	color: #151515;
	outline: none;
}

.ppum-search-form button {
	border: 0;
	padding: 0 14px;
	background: var(--ppum-yellow);
	color: #151515;
	cursor: pointer;
	border-radius: 10px;
}

.ppum-mega-panel {
	position: absolute;
	top: 100%;
	left: 50%;
	width: calc(100vw - 60px);
	max-width: 1540px;
	min-height: 445px;
	transform: translateX(-50%) translateY(-8px);
	background: #fff;
	color: #111;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
	box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
	z-index: 2;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
}

.ppum-root.mega-open .ppum-mega-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.ppum-mega-inner {
	width: min(1060px, calc(100% - 72px));
	margin: 0 auto;
	padding: 48px 0 44px;
}

.ppum-mega-grid {
	display: grid;
	grid-template-columns: minmax(360px, 46%) 150px minmax(170px, 190px) minmax(290px, 1fr);
	min-height: 350px;
	align-items: stretch;
}

.ppum-mega-hero {
	padding-right: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.ppum-mega-hero img {
	display: block;
	width: 100%;
	height: 350px;
	object-fit: contain;
	object-position: center bottom;
}

.ppum-group-column {
	padding: 14px 18px 12px 0;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	gap: 8px;
	min-width: 0;
}

.ppum-group-tab,
.ppum-category-tab {
	position: relative;
	width: 100%;
	min-height: 44px;
	padding: 8px 8px 8px 18px;
	border: 0;
	background: transparent;
	color: #111;
	text-align: left;
	font-size: 14px;
	line-height: 1.25;
	cursor: pointer;
	appearance: none;
}

.ppum-group-tab:hover,
.ppum-group-tab:focus-visible,
.ppum-group-tab.is-active,
.ppum-category-tab:hover,
.ppum-category-tab:focus-visible,
.ppum-category-tab.is-active {
	font-weight: 700;
	outline: none;
}

.ppum-triangle {
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid var(--ppum-yellow);
	transform: translateY(-50%);
	opacity: 0;
}

.ppum-group-tab.is-active .ppum-triangle,
.ppum-category-tab.is-active .ppum-triangle {
	opacity: 1;
}

.ppum-mega-dynamic {
	border-left: 1px solid #555;
	grid-column: 3 / 5;
	min-width: 0;
}

.ppum-group-panel {
	display: grid;
	grid-template-columns: minmax(170px, 190px) minmax(290px, 1fr);
	min-height: 100%;
}

.ppum-group-panel[hidden] {
	display: none;
}

.ppum-category-column {
	padding: 8px 18px 8px 26px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	gap: 6px;
}

.ppum-products-column {
	padding: 4px 0 4px 18px;
	min-width: 0;
	background: #f4f4f4;
	border-radius: 15px;
}

.ppum-products-panel {
	height: 100%;
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 135px;
	gap: 18px;
	align-items: center;
}

.ppum-products-panel[hidden] {
	display: none;
}

.ppum-product-list {
	max-height: 318px;
	overflow: auto;
	padding: 4px 6px 4px 0;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	gap: 15px;
	scrollbar-width: thin;
}

.ppum-product-list a {
	color: #151515;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 600;
}

.ppum-product-list a:hover,
.ppum-product-list a:focus-visible {
	text-decoration: underline;
	outline: none;
}

.ppum-featured-product {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.ppum-featured-product--no-image {
	justify-content: flex-end;
}

.ppum-featured-image {
	display: flex;
	width: 125px;
	height: 245px;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.ppum-featured-image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.ppum-cta {
	display: inline-flex;
	min-width: 118px;
	min-height: 42px;
	padding: 10px 18px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--ppum-yellow);
	color: #181818;
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 3px;
	line-height: 1;
}

.ppum-root.is-fixed {
	padding-top: var(--ppum-header-height, 92px);
}

.ppum-root.is-fixed .ppum-desktop-shell {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99990;
}

.ppum-root.is-compact .ppum-desktop-header {
	height: 70px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
}

.ppum-root.is-compact .ppum-logo-desktop {
	width: 102px;
	height: 64px;
}

.ppum-root.is-compact .ppum-nav-icon {
	width: 23px;
	height: 23px;
}

.ppum-root.is-compact .ppum-nav-item {
	font-size: 13px;
}

.ppum-root.is-compact .ppum-mega-inner {
	padding-top: 34px;
	padding-bottom: 34px;
}

.ppum-mobile-header,
.ppum-mobile-drawer,
.ppum-mobile-backdrop {
	display: none;
}

/* Modo móvil: JS respeta el breakpoint configurado en ACF. */
.ppum-root.ppum-mobile-mode .ppum-desktop-shell {
	display: none;
}

.ppum-root.ppum-mobile-mode {
	height: 76px;
	z-index: 100000;
}

.ppum-root.ppum-mobile-mode .ppum-mobile-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 76px;
	padding: 0 18px;
	background: #111;
	border-bottom: 2px solid var(--ppum-yellow);
	display: grid;
	grid-template-columns: 48px 1fr 48px;
	align-items: center;
	z-index: 100001;
}

.ppum-mobile-open {
	width: 42px;
	height: 42px;
	padding: 9px 7px;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}

.ppum-mobile-open span {
	display: block;
	width: 27px;
	height: 2px;
	background: #fff;
}

.ppum-mobile-bar-logo {
	height: 62px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ppum-mobile-bar-logo img {
	display: block;
	max-width: 102px;
	max-height: 58px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ppum-mobile-search-open {
	justify-self: end;
}

.ppum-root.ppum-mobile-mode .ppum-mobile-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(105, 105, 105, .76);
	z-index: 100002;
}

.ppum-root.ppum-mobile-mode .ppum-mobile-backdrop:not([hidden]) {
	display: block;
}

.ppum-root.ppum-mobile-mode .ppum-mobile-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(392px, 86vw);
	padding: 0 0 44px;
	background: var(--ppum-drawer);
	color: #fff;
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(-102%);
	transition: transform .26s ease;
	z-index: 100003;
	display: block;
	scrollbar-width: thin;
}

.ppum-root.ppum-mobile-mode.drawer-open .ppum-mobile-drawer {
	transform: translateX(0);
}

.ppum-mobile-drawer-head {
	position: relative;
	min-height: 168px;
	padding: 46px 54px 28px 58px;
	display: flex;
	align-items: flex-start;
}

.ppum-logo-mobile {
	width: 276px;
	max-width: calc(100% - 24px);
	height: 70px;
	align-items: center;
	justify-content: flex-start;
}

.ppum-logo-mobile img {
	max-height: 70px;
	max-width: 100%;
}

.ppum-mobile-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	opacity: 0;
	cursor: pointer;
}

.ppum-mobile-search-form {
	margin: -18px 54px 20px 58px;
	height: 46px;
	display: flex;
	border-bottom: 1px solid #676767;
}

.ppum-mobile-search-form[hidden] {
	display: none;
}

.ppum-mobile-search-form input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	outline: none;
	padding: 0 8px 0 0;
	font-size: 17px;
}

.ppum-mobile-search-form button {
	width: 42px;
	padding: 8px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.ppum-mobile-nav {
	padding: 15px 38px 0 58px;
	border-top: 3px solid var(--ppum-yellow);
}

.ppum-mobile-simple-link,
.ppum-mobile-toggle {
	color: var(--ppum-yellow);
	font-size: 29px;
	font-weight: 400;
	line-height: 1.18;
	text-decoration: none;
}

.ppum-mobile-simple-link {
	display: block;
	padding: 16px 0;
}

.ppum-mobile-products-root {
	padding: 4px 0 4px;
}

.ppum-mobile-toggle {
	width: 100%;
	min-height: 50px;
	padding: 10px 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ppum-mobile-products-toggle {
	color: #fff;
	font-weight: 700;
}

.ppum-mobile-group {
	padding-left: 28px;
}

.ppum-mobile-group-toggle {
	color: var(--ppum-yellow);
	font-weight: 700;
}

.ppum-mobile-group-toggle[aria-expanded="true"] {
	color: #fff;
}

.ppum-mobile-category {
	padding-left: 28px;
}

.ppum-mobile-category-toggle {
	color: var(--ppum-yellow);
	font-size: 25px;
	font-weight: 500;
}

.ppum-mobile-products {
	padding: 4px 0 8px 30px;
}

.ppum-mobile-products a {
	display: block;
	padding: 11px 0;
	color: #fff;
	font-size: 23px;
	line-height: 1.18;
	text-decoration: none;
}

.ppum-chevron {
	position: relative;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin-right: 2px;
	transform: rotate(0deg);
	transition: transform .18s ease;
}

.ppum-chevron::before,
.ppum-chevron::after {
	content: "";
	position: absolute;
	top: 8px;
	width: 11px;
	height: 4px;
	background: currentColor;
	border-radius: 1px;
}

.ppum-chevron::before {
	left: 0;
	transform: rotate(45deg);
}

.ppum-chevron::after {
	right: 0;
	transform: rotate(-45deg);
}

.ppum-mobile-toggle[aria-expanded="true"]>.ppum-chevron {
	transform: rotate(180deg);
}

.ppum-mobile-collapse[hidden] {
	display: none;
}

body.ppum-lock {
	overflow: hidden;
}

.ppum-desktop-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, visibility .18s ease;
	z-index: 1;
}

.ppum-root.mega-open .ppum-desktop-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ppum-mega-panel {
	z-index: 2;
}

.ppum-desktop-header {
	z-index: 3;
}

@media (max-width: 1180px) {
	.ppum-desktop-inner {
		width: calc(100% - 32px);
		gap: 24px;
	}

	.ppum-mega-inner {
		width: calc(100% - 48px);
	}

	.ppum-mega-grid {
		grid-template-columns: minmax(320px, 42%) 140px minmax(155px, 175px) minmax(270px, 1fr);
	}

	.ppum-group-panel {
		grid-template-columns: minmax(155px, 175px) minmax(270px, 1fr);
	}
}

/* Fallback antes de que cargue JS, usando el breakpoint por defecto. */
@media (max-width: 1024px) {
	.ppum-root:not(.ppum-desktop-mode) .ppum-desktop-shell {
		display: none;
	}

	.ppum-root:not(.ppum-desktop-mode) {
		height: 76px;
	}

	.ppum-root:not(.ppum-desktop-mode) .ppum-mobile-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 76px;
		padding: 0 18px;
		background: #111;
		border-bottom: 2px solid var(--ppum-yellow);
		display: grid;
		grid-template-columns: 48px 1fr 48px;
		align-items: center;
		z-index: 100001;
	}
}

@media (max-width: 600px) {
	.ppum-root.ppum-mobile-mode .ppum-mobile-drawer {
		width: min(392px, 92vw);
	}

	.ppum-mobile-drawer-head {
		min-height: 150px;
		margin: 0 auto;
	}

	.ppum-mobile-nav {
		padding-left: 30px;
		padding-right: 24px;
	}

	.ppum-mobile-search-form {
		margin-left: 30px;
		margin-right: 28px;
	}

	.ppum-mobile-simple-link,
	.ppum-mobile-toggle {
		font-size: clamp(22px, 6.4vw, 20px) !important;
	}

	.ppum-mobile-category-toggle {
		font-size: clamp(20px, 5.6vw, 20px);
	}

	.ppum-mobile-products a {
		font-size: clamp(19px, 5.2vw, 20px);
	}
}