.catalogo-public-header{
  position:sticky;
  top:0;
  z-index:3250;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:64px;
  padding:10px clamp(16px,4vw,54px);
  background:rgba(15,15,15,.92);
  border-bottom:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.catalogo-brand{display:flex;align-items:center;gap:10px;min-width:0;color:#fff;text-decoration:none}
.catalogo-brand img{width:42px;height:42px;flex:0 0 42px;object-fit:contain}
.catalogo-brand span{display:grid;min-width:0}
.catalogo-brand strong{font-size:.96rem;white-space:nowrap}
.catalogo-brand small{color:#f7b733}
.catalogo-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.catalogo-header-actions nav{display:flex;align-items:center;flex:0 0 auto}
.catalogo-home-link{display:flex;align-items:center;gap:7px;padding:9px 14px;border-radius:999px;color:#fff;text-decoration:none;background:rgba(255,255,255,.07);white-space:nowrap}
.catalogo-home-link:hover{background:#f7b733;color:#151515}
.catalogo-header-actions .cliente-status{position:static;inset:auto;z-index:auto;width:auto;max-width:none;pointer-events:auto}
.catalogo-header-actions .cliente-login,
.catalogo-header-actions .cliente-logged{max-width:260px}
.catalogo-header-actions .cliente-login-text,
.catalogo-header-actions #cliente-greeting{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.catalogo-mobile-nav{display:none}

@media(max-width:900px) and (min-width:701px){
  .catalogo-public-header{gap:14px;padding-inline:18px}
  .catalogo-brand small{display:none}
  .catalogo-header-actions{gap:8px}
  .catalogo-home-link{padding-inline:12px}
  .catalogo-header-actions .cliente-login,
  .catalogo-header-actions .cliente-logged{max-width:220px}
}

@media(max-width:700px){
  body.catalogo-page{padding-bottom:76px}
  .catalogo-public-header{min-height:56px;padding:7px 62px 7px 13px}
  .catalogo-brand strong{font-size:.88rem}
  .catalogo-brand small{font-size:.7rem}
  .catalogo-header-actions nav{display:none}
  .catalogo-header-actions .cliente-status{position:absolute;top:8px;right:8px}
  .catalogo-mobile-nav{position:fixed;left:10px;right:10px;bottom:10px;z-index:2100;display:grid;grid-template-columns:repeat(3,1fr);padding:7px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(20,20,20,.94);box-shadow:0 14px 36px rgba(0,0,0,.4);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .catalogo-mobile-nav a,.catalogo-mobile-nav button{min-height:52px;border:0;border-radius:14px;background:transparent;color:#ddd;text-decoration:none;display:grid;place-items:center;gap:2px;font:inherit}
  .catalogo-mobile-nav [aria-current="page"]{background:rgba(247,183,51,.16);color:#f7b733}
  .catalogo-mobile-nav small{font-size:.7rem}
}

/* Etapa 108: navegación móvil fija, modal inmersivo y cuenta compacta. */
body.product-detail-open .catalogo-public-header,
body.product-detail-open .catalogo-mobile-nav{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-10px);
}
body.product-detail-open .catalogo-mobile-nav{transform:translateY(12px)}
.catalogo-public-header,.catalogo-mobile-nav{transition:opacity .18s ease,visibility .18s ease,transform .18s ease}

@media(min-width:769px){
  .catalogo-header-actions{flex:1;justify-content:flex-end}
  .catalogo-header-actions .cliente-logged{
    max-width:none;
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  .catalogo-header-actions .cliente-account-trigger{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    padding:0;
    border:1px solid rgba(255,255,255,.13);
    border-radius:14px;
    background:#181818;
    color:#fff;
    cursor:pointer;
  }
  .catalogo-header-actions .cliente-account-trigger[aria-expanded="true"]{border-color:rgba(255,179,71,.5);background:rgba(255,179,71,.12)}
  .catalogo-header-actions .cliente-account-panel{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:min(290px,calc(100vw - 32px));
    padding:16px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:18px;
    background:rgba(17,17,17,.98);
    box-shadow:0 20px 50px rgba(0,0,0,.5);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-7px) scale(.98);
    transform-origin:top right;
    transition:.18s ease;
  }
  .catalogo-header-actions .cliente-logged.is-account-open .cliente-account-panel{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
  }
  .catalogo-header-actions .cliente-account-eyebrow{display:block;margin-bottom:6px;color:#888;font-size:10px;text-transform:uppercase;letter-spacing:.12em}
  .catalogo-header-actions #cliente-logout{display:flex;width:100%;justify-content:center;margin-top:12px;padding:10px;border:1px solid rgba(248,113,113,.25);border-radius:11px;background:rgba(239,68,68,.08)}
}

@media(max-width:700px){
  body.catalogo-page{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  .catalogo-mobile-nav{
    left:10px;
    right:10px;
    bottom:max(8px,env(safe-area-inset-bottom,0px));
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .catalogo-mobile-nav a,.catalogo-mobile-nav button{cursor:pointer}
  .cart-floating{
    bottom:calc(82px + env(safe-area-inset-bottom,0px))!important;
  }
}


/* Etapa 109: navegación pública compacta, clara y sin superposiciones. */
.catalogo-home-compact{display:none}
@media(min-width:769px){
  .catalogo-public-header{z-index:4100}
  .catalogo-header-actions .cliente-logged{display:flex;align-items:center;gap:9px;position:relative}
  .catalogo-header-actions .cliente-account-trigger{
    width:auto;max-width:190px;min-height:42px;padding:0 12px;gap:8px;border-radius:14px;
  }
  .cliente-account-name{display:block;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffd27a;font-weight:800}
  .cliente-account-chevron{color:#999;font-size:13px;transition:transform .18s ease}
  .cliente-account-trigger[aria-expanded="true"] .cliente-account-chevron{transform:rotate(180deg)}
  body.catalogo-page.has-worker-session .catalogo-public-header{top:50px}
}
@media(max-width:1000px) and (min-width:769px){
  .catalogo-home-desktop{display:none}.catalogo-home-compact{display:inline}
  .cliente-account-name{max-width:82px}
}
@media(max-width:768px){
  .cliente-account-name,.cliente-account-chevron{display:none}
}

/* Etapa 111: una sola línea equilibrada también con sesión laboral. */
@media(min-width:901px){
  body.catalogo-page.has-worker-session .catalogo-public-header{top:0;padding-left:76px}
  body.catalogo-page.has-worker-session .catalogo-brand{margin-left:0}
  body.catalogo-page.has-worker-session .global-admin-menu-trigger{top:11px;left:18px;z-index:4300}
}

/* Etapa 112: una sola línea equilibrada para hamburguesa, marca y acciones. */
body.catalogo-page.has-worker-session .catalogo-public-header{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  column-gap:12px;
}
body.catalogo-page.has-worker-session .catalogo-brand{margin-left:0!important}
body.catalogo-page.has-worker-session .catalogo-header-actions{justify-self:end}
@media(max-width:700px){
  body.catalogo-page.has-worker-session .catalogo-public-header{
    grid-template-columns:auto minmax(0,1fr) auto;
    padding-right:62px;
  }
}

/* Etapa 113: cabecera laboral del catálogo alineada con la portada. */
@media(min-width:901px){
  body.catalogo-page.has-worker-session .catalogo-public-header{
    width:calc(100% - 32px);
    max-width:1380px;
    position:sticky;
    top:16px;
    left:auto;
    margin:16px auto 0;
    min-height:70px;
    padding:10px 14px 10px 68px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:20px;
    background:rgba(12,12,12,.82);
    box-shadow:0 16px 50px rgba(0,0,0,.28);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }
  body.catalogo-page.has-worker-session .catalogo-brand img{
    width:46px;height:46px;flex-basis:46px;border-radius:14px;background:#fff;
  }
  body.catalogo-page.has-worker-session .catalogo-brand strong{
    font-size:15px;letter-spacing:1.2px;text-transform:uppercase;
  }
  body.catalogo-page.has-worker-session .catalogo-brand small{display:none}
}

/* Etapa 114: cabecera fija y navegación inferior móvil más clara. */
body.catalogo-page{
  padding-top:64px;
}
.catalogo-public-header,
body.catalogo-page.has-worker-session .catalogo-public-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100%;
  max-width:none;
  min-height:64px;
  margin:0;
  padding:8px clamp(14px,3vw,38px);
  border-width:0 0 1px;
  border-radius:0;
  background:rgba(12,12,12,.95);
  box-shadow:0 10px 30px rgba(0,0,0,.24);
  z-index:4100;
}
body.catalogo-page.has-worker-session .catalogo-public-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding-left:76px;
}
body.catalogo-page.has-worker-session .catalogo-brand img{
  width:42px;
  height:42px;
  flex-basis:42px;
  border-radius:12px;
}
body.catalogo-page.has-worker-session .catalogo-brand strong{
  font-size:.96rem;
  letter-spacing:normal;
  text-transform:none;
}
body.catalogo-page.has-worker-session .catalogo-brand small{display:block}

@media(max-width:700px){
  body.catalogo-page{
    padding-top:58px;
    padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));
  }
  .catalogo-public-header,
  body.catalogo-page.has-worker-session .catalogo-public-header{
    min-height:58px;
    padding:6px 10px;
  }
  body.catalogo-page.has-worker-session .catalogo-public-header{
    padding-left:58px;
  }
  .catalogo-mobile-nav{
    left:0;
    right:0;
    bottom:0;
    min-height:72px;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));
    border-width:1px 0 0;
    border-radius:0;
    background:rgba(18,18,18,.97);
    box-shadow:0 -10px 30px rgba(0,0,0,.34);
  }
  .catalogo-mobile-nav a,
  .catalogo-mobile-nav button{
    min-height:58px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    border-radius:14px;
    line-height:1;
  }
  .catalogo-mobile-nav a>span,
  .catalogo-mobile-nav button>span{
    display:block;
    font-size:24px;
    line-height:1;
  }
  .catalogo-mobile-nav small{
    display:block;
    font-size:.76rem;
    line-height:1.1;
    font-weight:700;
  }
  .cart-floating{
    bottom:calc(82px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* Etapa 115: hamburguesa y marca del catálogo replican la posición de index.php en móvil. */
@media(max-width:700px){
  body.catalogo-page.has-worker-session .catalogo-public-header{
    padding:6px 10px 6px 12px;
  }
  body.catalogo-page.has-worker-session .catalogo-brand{
    margin-left:42px!important;
    min-width:0;
  }
  body.catalogo-page.has-worker-session .catalogo-brand img{
    width:40px;
    height:40px;
    flex-basis:40px;
  }
  body.catalogo-page.has-worker-session .catalogo-brand span{
    min-width:0;
  }
  body.catalogo-page.has-worker-session .catalogo-brand strong{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* Etapa 232: identidad circular unificada en todos los encabezados. */
.hm-brand-icon{
  display:block;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:center!important;
  background:#fff!important;
  border:2px solid rgba(255,255,255,.94)!important;
  box-shadow:0 7px 18px rgba(0,0,0,.34)!important;
  transform:none!important;
}


/* Etapa 294: carrito integrado en la barra inferior del catálogo móvil. */
@media(max-width:700px){
  .catalogo-mobile-cart{
    position:relative;
    color:#ddd;
  }
  .catalogo-mobile-cart[aria-expanded="true"]{
    background:rgba(247,183,51,.16);
    color:#f7b733;
  }
  .catalogo-mobile-cart-icon{
    position:relative;
  }
  .catalogo-mobile-cart-count{
    position:absolute;
    top:5px;
    left:calc(50% + 9px);
    min-width:19px;
    height:19px;
    padding:0 5px;
    display:grid!important;
    place-items:center;
    border:2px solid #151515;
    border-radius:999px;
    background:#f7b733;
    color:#141414;
    font-size:10px!important;
    line-height:1;
    font-weight:900;
    box-shadow:0 4px 12px rgba(0,0,0,.32);
    transform:none;
  }
  .catalogo-mobile-cart.cart-feedback-bounce{
    animation:catalogoMobileCartBounce .62s ease;
  }
  .catalogo-mobile-cart-count.cart-count-bounce{
    animation:catalogoMobileCountBounce .62s ease;
  }
  @keyframes catalogoMobileCartBounce{
    0%,100%{transform:scale(1)}
    38%{transform:scale(1.08)}
    68%{transform:scale(.98)}
  }
  @keyframes catalogoMobileCountBounce{
    0%,100%{transform:scale(1)}
    45%{transform:scale(1.42)}
  }
}
