/* Barra de productos: estilos encapsulados. No modifica el menú propio del tema. */
body.mpm-has-product-bar { --mpm-header-top:38px; }
body.mpm-has-product-bar.admin-bar { --mpm-header-top:70px; }
/* Compensa el desplazamiento de cabeceras sticky/fixed habituales en WP. En un header normal (static), top no tiene efecto. */
/* Solo en modo «fija»: el modo por defecto (mpm-bar-static) no toca el encabezado del tema. */
body.mpm-has-product-bar:not(.mpm-bar-static) header.wp-block-template-part,
body.mpm-has-product-bar:not(.mpm-bar-static) #masthead,
body.mpm-has-product-bar:not(.mpm-bar-static) .site-header { top:var(--mpm-header-top) !important; }
@media(max-width:782px) { body.mpm-has-product-bar.admin-bar { --mpm-header-top:84px; } }
@media(max-width:600px) { body.mpm-has-product-bar { --mpm-header-top:40px; } body.mpm-has-product-bar.admin-bar { --mpm-header-top:86px; } }

.mpm-product-bar,
.mpm-product-bar * { box-sizing: border-box; }
.mpm-product-bar { --mpm-accent:#e94b1a; --mpm-height:38px; --mpm-offset:0px; --mpm-text:#252a2b; --mpm-muted:#677071; --mpm-bg:#f7f7f5; --mpm-line:#dededb; --mpm-panel:#fff; position:relative; z-index:99990; height:var(--mpm-height); background:var(--mpm-bg); color:var(--mpm-text); border-bottom:1px solid var(--mpm-line); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:13px; line-height:1.2; }
body:not(.mpm-bar-static) .mpm-product-bar { position:fixed; inset:auto 0 auto 0; top:var(--mpm-offset); }
.mpm-product-bar.mpm-dark { --mpm-text:#f5f5f3; --mpm-muted:#c3c8c8; --mpm-bg:#202729; --mpm-line:#394244; --mpm-panel:#242c2e; }
body.admin-bar .mpm-product-bar { --mpm-offset:32px; }
.mpm-product-bar__spacer { height:38px !important; min-height:38px !important; max-height:38px !important; padding:0 !important; margin:0 !important; border:0 !important; width:100%; display:block; }
.mpm-product-bar__inner { width:min(calc(100% - 32px),1280px); height:100%; margin-inline:auto; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.mpm-product-bar__caption { color:var(--mpm-muted); font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mpm-product-bar__menu { position:relative; flex:0 0 auto; }
.mpm-product-bar__toggle { appearance:none; -webkit-appearance:none; min-height:31px; display:flex; align-items:center; gap:12px; background:transparent; color:var(--mpm-text); font-family:inherit; font-size:13px; font-weight:650; border:1px solid transparent; border-radius:4px; padding:5px 7px 5px 10px; margin:0; cursor:pointer; }
.mpm-product-bar__toggle:hover { background:rgba(127,127,127,.09); }
.mpm-product-bar__toggle:focus-visible,.mpm-product-bar__link:focus-visible { outline:2px solid var(--mpm-accent); outline-offset:2px; }
.mpm-product-bar__hamburger { width:17px; display:flex; flex-direction:column; align-items:flex-end; gap:3px; }
.mpm-product-bar__hamburger span { display:block; width:16px; height:2px; border-radius:10px; background:currentColor; transition:transform .15s ease, width .15s ease; }
.mpm-product-bar__hamburger span:nth-child(2) { width:12px; }
.mpm-product-bar__toggle[aria-expanded="true"] .mpm-product-bar__hamburger span:nth-child(1) { transform:translateY(5px) rotate(45deg); }
.mpm-product-bar__toggle[aria-expanded="true"] .mpm-product-bar__hamburger span:nth-child(2) { opacity:0; }
.mpm-product-bar__toggle[aria-expanded="true"] .mpm-product-bar__hamburger span:nth-child(3) { transform:translateY(-5px) rotate(-45deg); }
.mpm-product-bar__panel { position:absolute; top:calc(100% + 5px); right:0; width:min(372px,calc(100vw - 24px)); background:var(--mpm-panel); color:var(--mpm-text); border:1px solid var(--mpm-line); border-top:2px solid var(--mpm-accent); box-shadow:0 12px 32px rgba(13,20,20,.14); border-radius:0 0 10px 10px; padding:8px; max-height:min(70vh,390px); overflow-y:auto; overscroll-behavior:contain; }
.mpm-product-bar__panel--single { width:min(236px,calc(100vw - 24px)); }
.mpm-product-bar__panel[hidden] { display:none !important; }
.mpm-product-bar__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.mpm-product-bar__grid>.mpm-product-bar__link:only-child { grid-column:1 / -1; }
.mpm-product-bar__link { min-width:0; min-height:47px; display:flex; gap:7px; align-items:center; justify-content:space-between; padding:10px 11px; color:var(--mpm-text) !important; background:transparent; border:1px solid var(--mpm-line); border-radius:5px; font:600 13px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-decoration:none !important; overflow-wrap:anywhere; transition:background .15s ease,border-color .15s ease; }
.mpm-product-bar__link:hover { border-color:var(--mpm-accent); background:rgba(127,127,127,.07); color:var(--mpm-text) !important; }
.mpm-product-bar__link-main { min-width:0; display:flex; align-items:center; gap:8px; flex:1 1 auto; }
.mpm-product-bar__logo { display:block; flex:0 0 27px; width:27px; height:27px; max-width:27px; max-height:27px; border-radius:4px; object-fit:contain; }
.mpm-product-bar__name { min-width:0; overflow-wrap:anywhere; }
.mpm-product-bar__link svg { flex:none; color:var(--mpm-accent); }
@media(max-width:782px) { body.admin-bar .mpm-product-bar { --mpm-offset:46px; } }
@media(max-width:600px) {
 .mpm-product-bar { --mpm-height:40px; }
 .mpm-product-bar__spacer { height:40px !important; min-height:40px !important; max-height:40px !important; }
 .mpm-product-bar__inner { width:calc(100% - 24px); }
 .mpm-product-bar__caption { font-size:12px; }
 .mpm-product-bar__toggle { min-height:34px; gap:8px; padding-inline:5px; }
 .mpm-product-bar__toggle-label { font-size:12px; }
 .mpm-product-bar__panel { width:min(370px,calc(100vw - 20px)); }
 .mpm-product-bar__link { font-size:12px; min-height:48px; padding-inline:9px; }
}
@media(max-width:340px) { .mpm-product-bar__caption { max-width:104px; } .mpm-product-bar__panel{right:-2px;} }
@media(prefers-reduced-motion:reduce) { .mpm-product-bar * { transition:none !important; } }

@media(max-width:600px) { .mpm-product-bar__link-main { gap:6px; } .mpm-product-bar__logo { flex-basis:24px; width:24px; height:24px; max-width:24px; max-height:24px; } }

@media(max-width:600px) { .mpm-product-bar__panel.mpm-product-bar__panel--single { width:min(236px,calc(100vw - 20px)); } }
