/* ==========================================================================
   FULL-WIDTH LAYOUT GUARD — v1.2.20
   --------------------------------------------------------------------------
   On the live site a page builder / plugin stylesheet can inject a centred
   narrow shell (typically ~870px with a #f1f1f1 body background) that squeezes
   the whole storefront into a column. The theme itself is full-width: the
   .hp-topnav / .hp-topbar / .hp-header / .hp-hero-shell / .hp-section /
   .hp-footer bands are edge-to-edge, and only the inner .hp-container is
   capped at 1290px and centred.

   This re-locks those bands to 100% width + white background with the highest
   specificity (html.hp-wide is set by an inline script in <head> before first
   paint), while preserving the 1290px content container. It mirrors the inline
   guard printed at the end of wp_head() — redundant by design so that if one
   is stripped by a cache/minifier the other still holds.
   ========================================================================== */

html.hp-wide,
html.hp-wide body {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html.hp-wide body { background: #ffffff !important; }

/* Neutralise common third-party wrappers that force a boxed layout. */
html.hp-wide body #page,
html.hp-wide body .site,
html.hp-wide body .site-inner,
html.hp-wide body .site-content,
html.hp-wide body .wp-site-blocks,
html.hp-wide body main#main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: transparent !important;
}
html.hp-wide body #content,
html.hp-wide body .content-area,
html.hp-wide body .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Theme full-width bands. */
html.hp-wide body .hp-topnav,
html.hp-wide body .hp-topbar,
html.hp-wide body .hp-header,
html.hp-wide body .hp-hero-shell,
html.hp-wide body .hp-section,
html.hp-wide body .hp-footer {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Force the top navigation row to stay visible.
   Some cached/legacy stylesheets collapse .hp-topnav-inner and hide its menu
   and tools, leaving only a thin white strip. These high-specificity rules
   pin the row open and keep its children visible regardless of stale CSS. */
html.hp-wide body .hp-topnav-inner {
  display: flex !important;
  min-height: 40px !important;
  height: auto !important;
  overflow: visible !important;
}
html.hp-wide body .hp-topnav-links,
html.hp-wide body .hp-topnav-tools {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
html.hp-wide body .hp-topnav-tools { flex: 0 0 auto !important; margin-left: auto !important; }
html.hp-wide body .hp-topnav-links a,
html.hp-wide body .hp-topnav-tools a { visibility: visible !important; opacity: 1 !important; }

/* Admin-bar logged-in state: when a WP admin is signed in, the fixed toolbar
   (~32px) can overlap the top navigation. Reserve space for it and force the
   top nav to render in its normal light style, below the admin bar. */
html.wp-toolbar { padding-top: 32px !important; }
body.logged-in .hp-topnav,
html.hp-wide body.logged-in .hp-topnav {
  position: relative !important;
  z-index: 1 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e7ebef !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.logged-in .hp-topnav a { color: #454e57 !important; visibility: visible !important; }
body.logged-in .hp-topnav-inner { display: flex !important; min-height: 40px !important; height: auto !important; overflow: visible !important; }
body.logged-in .hp-topnav-links,
body.logged-in .hp-topnav-tools { display: flex !important; visibility: visible !important; opacity: 1 !important; }

/* Keep the designed content width — never let an external rule shrink it. */
html.hp-wide body .hp-container {
  width: 100% !important;
  max-width: 1290px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
