/* Single authoritative mobile header layer. */
@media (max-width: 767px), (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
  .up-header, .up-sticky-header { display:none !important; }
  .up-mobile-header { position:sticky !important; top:0; z-index:16000; display:block !important; width:100%; height:80px; padding:7px 16px; box-sizing:border-box; background:#fff; border:0; box-shadow:none !important; font-family:Montserrat,Arial,sans-serif; transition:none !important; }
  .up-mobile-header__top { position:absolute; top:7px; left:50%; z-index:2; width:52px; height:34px; margin:0; transform:translateX(-50%); }
  .up-mobile-header__logo img { display:block; width:52px; height:auto; }
  .up-mobile-header__info { display:grid !important; width:100%; min-height:35px; margin:0; grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr) 28px; align-items:center; gap:5px; }
  .up-mobile-header__location { grid-column:1; justify-self:start; }
  .up-mobile-header__hours { grid-column:3; justify-self:end; }
  .up-mobile-header__toggle { grid-column:4; justify-self:end; margin-right:4px !important; }
  .up-mobile-header__location, .up-mobile-header__hours { display:flex; align-items:center; gap:5px; min-width:0; }
  .up-mobile-header__location svg { width:16px; height:16px; flex:0 0 16px; fill:none; stroke:#ed1c24; stroke-width:2; }
  .up-mobile-header__hours i { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#39b54a; }
  .up-mobile-header__location strong, .up-mobile-header__hours strong, .up-mobile-header__location span, .up-mobile-header__hours span { display:block; white-space:nowrap; }
  .up-mobile-header__location strong, .up-mobile-header__hours strong { font-size:10px; line-height:1.1; }
  .up-mobile-header__location span, .up-mobile-header__hours span { margin-top:1px; color:#777; font-size:7px; line-height:1.1; }
  .up-mobile-header__toggle { display:block !important; width:28px; height:28px; min-height:28px; padding:2px 0; border:0; background:none; }
  .up-mobile-header__toggle span { position:static !important; display:block !important; width:23px !important; height:2px !important; margin:4px auto !important; transform:none !important; background:#ed1c24 !important; }
  .up-mobile-header__actions { display:flex; min-height:27px; margin-top:3px; align-items:center; justify-content:flex-end; gap:18px; }
  .up-mobile-header__phone, .up-mobile-header__login { display:inline-flex; align-items:center; gap:6px; color:#222; font-size:12px; font-weight:700; text-decoration:none; white-space:nowrap; }
  .up-mobile-header__phone svg, .up-mobile-header__login svg { width:18px; height:18px; fill:none; stroke:#ed1c24; stroke-width:1.8; }
  .up-mobile-header__login svg { stroke:#333; }
  .up-mobile-header.is-sticky { height:51px; }
  .up-mobile-header.is-sticky .up-mobile-header__actions { display:none; }
  .up-mobile-header__menu { display:none; position:absolute; top:100%; right:0; left:0; padding:8px 16px 14px; background:#fff; box-shadow:0 8px 14px rgba(0,0,0,.12); }
  .up-mobile-header__menu.is-open { display:block; }
  .up-mobile-header__menu .up-menu { display:block; margin:0; padding:0; list-style:none; }
  .up-mobile-header__menu .up-menu a { display:block; padding:11px 0; border-bottom:1px solid #eee; color:#222; text-decoration:none; }
  .unipizza-page .up-category-sticky, .unipizza-page .up-category-sticky::before, .unipizza-page .up-category-sticky.is-stuck::before { box-shadow:none !important; border:0 !important; filter:none !important; }
  .unipizza-page .up-category-sticky { z-index:15999 !important; top:0 !important; }
  body.up-mobile-header-stuck .unipizza-page .up-category-sticky { top:51px !important; box-shadow:0 5px 12px rgba(0,0,0,.13) !important; }
  .up-mobile-bottom-nav { background:#53585e !important; }
  .up-mobile-bottom-nav__item { color:rgba(255,255,255,.78) !important; }
  body.home .up-header-cart, body.page-template-index_home .up-header-cart, .single-product .up-header-cart, .up-header-cart { display:none !important; }
  .unipizza-page { padding-bottom:104px !important; }
  .unipizza-page .up-catalog { padding-bottom:120px !important; }
  .up-product-card__bottom { justify-content:center !important; padding:0 12px !important; background:#ed1c24 !important; }
  .up-product-card__bottom > strong, .up-product-card__bottom .price { width:100%; text-align:center; }
  .up-product-card .up-add-button { display:none !important; }
}
@media (min-width:992px) { .up-mobile-header { display:none !important; } }

/* No height transition while scrolling; shadow belongs only to actually stuck tags. */
@media (max-width: 767px), (min-width:768px) and (max-width:991px) and (orientation:landscape) {
  .up-mobile-header.is-sticky { height:80px !important; }
  .up-mobile-header.is-sticky .up-mobile-header__actions { display:flex !important; visibility:hidden; }
  .up-mobile-header__toggle { margin-right:0 !important; }
  body.up-mobile-header-stuck .unipizza-page .up-category-sticky { box-shadow:none !important; }
  .unipizza-page .up-category-sticky.is-stuck { box-shadow:0 5px 12px rgba(0,0,0,.13) !important; }
}

/* Final mobile authority: no second header height or competing tag layer. */
@media (max-width: 991px) {
  .up-header, .up-sticky-header { display:none !important; }
  .up-mobile-header { z-index:30000 !important; height:auto !important; min-height:96px !important; }
  .up-mobile-header.is-sticky { height:56px !important; min-height:56px !important; padding-top:8px !important; padding-bottom:8px !important; }
  .up-mobile-header.is-sticky .up-mobile-header__actions { display:none !important; visibility:visible !important; }
  .unipizza-page .up-category-sticky, .unipizza-page .up-category-sticky.is-stuck { top:56px !important; z-index:20000 !important; background:#fff !important; box-shadow:0 4px 10px rgba(0,0,0,.08) !important; }
  body.up-mobile-header-stuck .unipizza-page .up-category-sticky,
  body.up-mobile-header-stuck .unipizza-page .up-category-sticky.is-stuck { top:56px !important; }
  .up-mobile-bottom-nav { z-index:10000 !important; }
  .up-product-card .up-add-button { display:inline-flex !important; }
}

/* Stable compact header: no layout change at the first scroll pixel. */
@media (max-width: 991px) {
  .up-mobile-header,
  .up-mobile-header.is-sticky { height:56px !important; min-height:56px !important; padding-top:8px !important; padding-bottom:8px !important; }
  .up-mobile-header__actions,
  .up-mobile-header.is-sticky .up-mobile-header__actions { display:none !important; visibility:hidden !important; }
  .unipizza-page .up-category-sticky,
  .unipizza-page .up-category-sticky.is-stuck,
  body.up-mobile-header-stuck .unipizza-page .up-category-sticky,
  body.up-mobile-header-stuck .unipizza-page .up-category-sticky.is-stuck { top:56px !important; z-index:25000 !important; }
  .up-mobile-bottom-nav { z-index:9000 !important; }
}
