/* Local FSE candidate. Mirrors the approved R11 sizes/colors; selectors match saved block classes. */
body.page-id-9,
body.single-gogo_product {
  --gogo-admin-offset: 0px;
}

body.page-id-9 .gogo-products-page-brand-header,
body.single-gogo_product .gogo-product-detail-header {
  box-sizing: border-box;
  position: fixed;
  inset: var(--gogo-admin-offset) 0 auto;
  top: var(--gogo-admin-offset) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100%;
  margin: 0;
  z-index: 1000;
}

body.page-id-9 .gogo-products-page-brand-header,
body.single-gogo_product .gogo-product-detail-header-inner {
  box-sizing: border-box;
  height: 75px;
  min-height: 75px;
  width: 100%;
  position: relative;
}

body.page-id-9 .gogo-product-brandbar-inner,
body.single-gogo_product .gogo-product-brandbar-inner {
  box-sizing: border-box;
  display: block !important;
  height: 75px;
  min-height: 75px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 24px !important;
  position: relative;
}

body.page-id-9 .gogo-product-official-logo,
body.single-gogo_product .gogo-product-official-logo {
  box-sizing: border-box;
  height: auto;
  width: 120px;
  max-width: none !important;
  margin: 0 !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  line-height: 0;
}

body.page-id-9 .gogo-product-official-logo a,
body.single-gogo_product .gogo-product-official-logo a {
  display: block;
  width: 100%;
  line-height: 0;
}

body.page-id-9 .gogo-product-official-logo img,
body.single-gogo_product .gogo-product-official-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 68px;
  height: auto;
  object-fit: contain;
}

/* Products page keeps its own existing desktop nav and single Details menu in post_content. */

body.page-id-9 .gogo-c-page9-nav-shell,
body.page-id-9 #catalog-search,
body.single-gogo_product [id] {
  scroll-margin-top: 155px;
}

/* Product details use one native Navigation block with 8 existing inline link blocks. */
body.single-gogo_product .gogo-product-detail-header {
  height: 75px;
}

body.single-gogo_product .gogo-product-detail-header-inner {
  height: 75px;
  min-height: 75px;
}

/* The Hostinger builder also fixes the inner Group at viewport top. Keep it
   inside this product-only outer template part so toolbar offsets move the
   logo and native Navigation controls together. */
body.single-gogo_product header.gogo-product-detail-header .gogo-product-detail-header-inner {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
}

body.single-gogo_product .hostinger-ai-menu-wrapper.gogo-product-brandbar-inner {
  position: relative;
  height: 75px;
  min-height: 75px;
}

body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation-wrapper {
  box-sizing: border-box;
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 75px;
  height: 75px;
  margin: 0 !important;
  padding: 0;
  z-index: 3;
}

body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation {
  box-sizing: border-box;
  display: block !important;
  position: absolute !important;
  inset: 0;
  width: 100%;
  min-height: 75px;
  height: 75px;
}

body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation__container {
  align-items: center;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 152px repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: 75px !important;
  gap: 0 !important;
  width: 100%;
  max-width: none;
  min-height: 75px;
  height: 75px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item {
  display: flex;
  justify-content: center;
  min-width: 0;
  grid-row: 1;
}

body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item:nth-child(1) { grid-column: 1; grid-row: 1; }
body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item:nth-child(2) { grid-column: 2; grid-row: 1; }
body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item:nth-child(3) { grid-column: 3; grid-row: 1; }
body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item:nth-child(4) { grid-column: 4; grid-row: 1; }
body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item:nth-child(5) { grid-column: 6; grid-row: 1; }
body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item:nth-child(6) { grid-column: 7; grid-row: 1; }
body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item:nth-child(7) { grid-column: 8; grid-row: 1; }
body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item:nth-child(8) { grid-column: 9; grid-row: 1; }

body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-dialog {
  box-sizing: border-box;
  display: block;
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 75px;
  height: 75px;
}

body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item__content {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #46313a;
  font: 700 12px/14.4px system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
}

body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item__content:hover,
body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item__content:focus-visible {
  border-color: #ead9e2;
  outline: none;
}

body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item__content:focus-visible {
  box-shadow: 0 0 0 2px #9c4d70;
}

body.single-gogo_product .gogo-product-detail-main {
  /* Hostinger already reserves the fixed 75px header on body. */
  padding-top: 0 !important;
}

body.admin-bar.page-id-9,
body.admin-bar.single-gogo_product {
  --gogo-admin-offset: 32px;
}

body.admin-bar.single-gogo_product .gogo-product-detail-main {
  /* Hostinger body padding reserves the header; add only the 32px toolbar. */
  padding-top: 32px !important;
}

/* At widths below 1024px the longest navigation labels collide around the
   centered 120px logo. Keep the same logo and use the native overlay until the
   eight-link desktop grid has measured clearance. */
@media (min-width: 783px) and (max-width: 1023px) {
  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container-open {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-sizing: border-box;
    display: flex !important;
    justify-content: center !important;
    position: absolute !important;
    top: 15px;
    right: -12px;
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    min-height: 44px !important;
    z-index: 1100;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container.is-menu-open {
    box-sizing: border-box;
    display: block !important;
    position: fixed !important;
    top: calc(75px + var(--gogo-admin-offset)) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw;
    height: auto !important;
    max-height: none !important;
    overflow: auto;
    padding: 0 20px 24px !important;
    background: #fff;
    z-index: 1100;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
    height: auto !important;
    min-height: 0 !important;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container-close {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
    inset: auto !important;
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    min-height: 44px !important;
    margin: 8px 0 12px auto;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container-content {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    max-height: none;
    overflow: visible;
    position: relative !important;
    padding: 0 0 16px !important;
    width: 100%;
  }

  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation__container {
    align-items: stretch;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    position: static !important;
    gap: 4px;
    width: min(100%, 460px);
    max-width: 460px;
    min-height: 0;
    height: auto;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item,
  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item__content {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    font: 600 16px/22px system-ui, sans-serif;
    white-space: normal;
  }

  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item__content {
    border-bottom: 1px solid #eee5e7;
    border-radius: 0;
    padding: 10px 4px;
  }
}

@media (max-width: 782px) {
  body.page-id-9 .gogo-product-official-logo,
  body.single-gogo_product .gogo-product-official-logo {
    width: 98px;
  }

  body.page-id-9 .gogo-product-official-logo img,
  body.single-gogo_product .gogo-product-official-logo img {
    max-height: 56px;
  }

  body.single-gogo_product .gogo-product-detail-header,
  body.single-gogo_product .gogo-product-detail-header-inner {
    height: 75px;
    min-height: 75px;
  }

  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation-wrapper {
    position: absolute;
    inset: 0;
    display: block !important;
    height: 75px;
    min-height: 75px;
    padding: 0;
  }

  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation {
    position: absolute !important;
    inset: 0;
    display: block !important;
    height: 75px;
    min-height: 75px;
    width: 100%;
    pointer-events: none;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container-open {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-sizing: border-box;
    display: flex !important;
    justify-content: center !important;
    position: absolute !important;
    top: 15px;
    right: -12px;
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    min-height: 44px !important;
    z-index: 1100;
    pointer-events: auto;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container {
    z-index: 1100;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container.is-menu-open {
    box-sizing: border-box;
    position: fixed !important;
    top: calc(75px + var(--gogo-admin-offset)) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw;
    height: auto !important;
    max-height: none !important;
    overflow: auto;
    padding: 0 20px 24px !important;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
    height: auto !important;
    min-height: 0 !important;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container-close {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
    inset: auto !important;
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    min-height: 44px !important;
    margin: 8px 0 12px auto;
  }

  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container-content {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    max-height: none;
    overflow: visible;
    position: relative !important;
    padding: 0 0 16px !important;
    width: 100%;
  }

  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation__container {
    align-items: stretch;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    position: static !important;
    gap: 4px;
    width: min(100%, 460px);
    max-width: 460px;
    min-height: 0;
    height: auto;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item,
  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item__content {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    font: 600 16px/22px system-ui, sans-serif;
    white-space: normal;
  }

  body.single-gogo_product .gogo-product-detail-header .hostinger-ai-site-navigation .wp-block-navigation-item__content {
    border-bottom: 1px solid #eee5e7;
    border-radius: 0;
    padding: 10px 4px;
  }

  body.single-gogo_product .gogo-product-detail-main {
    /* Hostinger body padding already reserves the fixed 75px header. */
    padding-top: 0 !important;
  }

  body.admin-bar.page-id-9,
  body.admin-bar.single-gogo_product {
    --gogo-admin-offset: 46px;
  }

  /* The toolbar is 46px tall at mobile widths; Page 9's first block needs 6px clearance. */
  body.admin-bar.page-id-9 main#wp--skip-link--target {
    padding-top: 6px !important;
  }

  body.admin-bar.single-gogo_product .gogo-product-detail-main {
    /* Mobile toolbar is 46px; body padding already reserves the header. */
    padding-top: 46px !important;
  }
}

/* The product detail Navigation block disables pointer events on its parent
   while the responsive overlay is collapsed. Re-enable interaction only for
   the open overlay and its controls so the native close button and links work. */
@media (max-width: 1023px) {
  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container.is-menu-open,
  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container.is-menu-open *,
  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container.is-menu-open *::before,
  body.single-gogo_product .gogo-product-detail-header .wp-block-navigation__responsive-container.is-menu-open *::after {
    pointer-events: auto !important;
  }
}
