/* JPRO header — blue top bar + white logo/search row + nav below */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.t1-header--jpro.site-header,
.t1-header--jpro {
  background-color: var(--theme-header-bg, #ffffff);
  border-bottom: 1px solid var(--theme-border, #e8e8e8);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.t1-header--jpro.header--sticky,
.t1-header--jpro.site-header.header--sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.t1-header--jpro.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ===== Blue top bar ===== */
.t1-header--jpro .t1-header-announcement,
.t1-header--jpro .t1-header-topbar {
  width: 100%;
  background: var(--theme-announcement-bg, #1e3a8a);
  color: var(--theme-text-inverse, #ffffff);
  font-size: 13px;
  font-family: 'Montserrat', var(--theme-font-serif, sans-serif);
  font-weight: 500;
  letter-spacing: 0.2px;
  overflow: hidden;
}

.t1-header--jpro .t1-header-announcement[hidden] {
  display: none !important;
}

.t1-header--jpro .t1-header-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.t1-header--jpro .t1-header-topbar-left {
  justify-self: start;
  min-width: 0;
  flex: 1;
}

.t1-header--jpro .t1-header-announcement-inner {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t1-header--jpro .t1-header-announcement-inner > div {
  display: inline;
  padding: 0 0.35em;
}

.t1-header--jpro .t1-header-announcement a {
  color: #ffffff;
  text-decoration: underline;
}

.t1-header--jpro .t1-header-shipping {
  font-size: 12px;
  font-weight: 500;
}

.t1-header--jpro .t1-header-topbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.t1-header--jpro .t1-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.t1-header--jpro .t1-social-icon:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ===== Main white row ===== */
.t1-header--jpro .header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(220px, 480px) minmax(120px, 1fr);
  align-items: center;
  gap: 16px 20px;
  min-height: 80px;
  background: var(--theme-header-bg, #ffffff);
}

/* Pin columns so hiding search does not pull login/cart into the middle */
.t1-header--jpro .header-inner > .site-logo,
.t1-header--jpro .header-inner > [data-header-logo-wrap] {
  grid-column: 1;
  justify-self: start;
}

.t1-header--jpro .header-inner > .t1-header-search,
.t1-header--jpro .header-inner > [data-header-search-root] {
  grid-column: 2;
  justify-self: stretch;
}

.t1-header--jpro .header-inner > .header-right {
  grid-column: 3;
  justify-self: end;
}

.t1-header--jpro.t1-header--no-search .header-inner {
  grid-template-columns: 1fr auto;
}

.t1-header--jpro.t1-header--no-search .header-inner > .site-logo,
.t1-header--jpro.t1-header--no-search .header-inner > [data-header-logo-wrap] {
  grid-column: 1;
}

.t1-header--jpro.t1-header--no-search .header-inner > .header-right {
  grid-column: 2;
}

.t1-header--jpro .site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 0;
  justify-self: start;
  text-decoration: none;
}

.t1-header--jpro .site-logo-text,
.t1-header--jpro [data-header-logo-text] {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--theme-primary, #1e3a8a);
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.t1-header--jpro .site-logo-text[hidden],
.t1-header--jpro [data-header-logo-text][hidden],
.t1-header--jpro .logo-img[hidden],
.t1-header--jpro [data-header-logo][hidden] {
  display: none !important;
}

.t1-header--jpro .site-logo[hidden],
.t1-header--jpro [data-header-logo-wrap][hidden] {
  display: none !important;
}

.t1-header--jpro .site-logo img,
.t1-header--jpro .logo-img {
  display: block;
  /* Honours theme header.logoSize via StoreHeaderSettingsApplier (--layout-logo-height) */
  height: var(--layout-logo-height, 70px);
  max-height: var(--layout-logo-height, 70px);
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
}

.t1-header--jpro .site-logo img[hidden],
.t1-header--jpro .logo-img[hidden],
.t1-header--jpro [data-header-logo][hidden] {
  display: none !important;
}

.t1-header--jpro .site-logo img:not([hidden]),
.t1-header--jpro [data-header-logo]:not([hidden]) {
  display: block !important;
}

.t1-header--jpro .t1-header-search {
  --t1-search-h: 42px;
  --t1-search-btn-w: 48px;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  justify-self: stretch;
  min-width: 0;
  gap: 0;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  box-sizing: border-box;
  overflow: hidden;
}

.t1-header--jpro .t1-header-search[hidden],
.t1-header--jpro [data-header-search-root][hidden],
.t1-header--jpro .t1-header-search-btn[hidden],
.t1-header--jpro [data-header-search][hidden],
.t1-header--jpro.t1-header--no-search .t1-header-search,
.t1-header--jpro.t1-header--no-search [data-header-search-root],
.t1-header--jpro.t1-header--no-search .t1-header-search-btn,
.t1-header--jpro.t1-header--no-search [data-header-search] {
  display: none !important;
}

.t1-header--jpro .t1-header-search > label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.t1-header--jpro .t1-header-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 14px 0 18px;
  border: 0;
  border-radius: 999px 0 0 999px;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 42px;
  color: #222;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #d2d2d2;
  box-sizing: border-box;
  margin: 0;
  width: auto;
}

.t1-header--jpro .t1-header-search input[type="search"]::-webkit-search-decoration,
.t1-header--jpro .t1-header-search input[type="search"]::-webkit-search-cancel-button,
.t1-header--jpro .t1-header-search input[type="search"]::-webkit-search-results-button,
.t1-header--jpro .t1-header-search input[type="search"]::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.t1-header--jpro .t1-header-search input[type="search"]::placeholder {
  color: #8a8f98;
  opacity: 1;
  line-height: 42px;
}

.t1-header--jpro .t1-header-search input[type="search"]:focus {
  background: #fff;
  border-color: #1e3a8a;
}

.t1-header--jpro .t1-header-search:focus-within {
  background: #fff;
}

.t1-header--jpro .t1-header-search:focus-within input[type="search"] {
  background: #fff;
}

.t1-header--jpro .t1-header-search-btn {
  flex: 0 0 var(--t1-search-btn-w);
  width: var(--t1-search-btn-w);
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: #1e3a8a;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  box-sizing: border-box;
  font: inherit;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}

.t1-header--jpro .t1-header-search-btn svg {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.t1-header--jpro .t1-header-search-btn:hover {
  background: #000 !important;
}

.t1-header--jpro .header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  justify-self: end;
}

.t1-header--jpro .header-account[hidden],
.t1-header--jpro .cart-icon[hidden],
.t1-header--jpro [data-header-user][hidden],
.t1-header--jpro [data-header-cart][hidden] {
  display: none !important;
}

.t1-header--jpro .header-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.t1-header--jpro .header-account:hover {
  color: #e14b5a !important;
}

.t1-header--jpro .header-account svg {
  flex-shrink: 0;
}

.t1-header--jpro .cart-icon {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: none !important;
  color: #fff;
  text-decoration: none;
  transition: none;
}

.t1-header--jpro .cart-icon:hover {
  background: none !important;
}

.t1-header--jpro .cart-icon svg,
.t1-header--jpro .cart-icon .cart-bag-icon {
  width: 33px;
  height: 33px;
  fill: rgb(30 58 138);
}

/* Count rendered inside the bag body */
.t1-header--jpro .cart-bag-count,
.t1-header--jpro .cart-icon svg text[data-minicart-count] {
  fill: #ffffff;
  stroke: none;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
}

/* Legacy round badge — hidden; count lives inside the bag SVG */
.t1-header--jpro .cart-count.basket-badge:not(text),
.t1-header--jpro span.cart-count,
.t1-header--jpro span.basket-badge {
  display: none !important;
}

.t1-header--jpro .mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.t1-header--jpro .mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #222;
  transition: all 0.3s ease;
}

.t1-header--jpro.is-mobile-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.t1-header--jpro.is-mobile-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.t1-header--jpro.is-mobile-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Nav row below logo ===== */
.t1-header--jpro .t1-header-nav-row {
  width: 100%;
  background: var(--theme-header-nav-bg, #ffffff);
  border-top: 1px solid #ececec;
}

.t1-header--jpro .t1-header-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Match main header row visual weight */
  min-height: 56px;
  box-sizing: border-box;
}

.t1-header--jpro .t1-header-nav-inner > .t1-header-menu,
.t1-header--jpro .t1-header-nav-inner > .jpro-header-menu {
  width: 100%;
}

.t1-header--jpro .t1-header-top-strip,
.t1-header--jpro .t1-header-bottom-strip {
  display: none !important;
}

.t1-header--jpro .t1-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--theme-border, #e8e8e8);
  padding: 4px 36px 14px;
}

.t1-header--jpro .t1-mobile-menu ul,
.t1-header--jpro .t1-mobile-menu li {
    list-style: none !important;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 8px;
}

.t1-header--jpro.is-mobile-open .t1-mobile-menu,
.t1-header--jpro .t1-mobile-menu:not([hidden]) {
  display: block;
}

.t1-header--jpro .t1-mobile-menu[hidden] {
  display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .t1-header--jpro .t1-header-topbar-inner {
    gap: 6px 12px;
    padding: 8px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .t1-header--jpro .t1-header-topbar-left {
    min-width: 0;
    overflow: hidden;
  }

  .t1-header--jpro .t1-header-announcement-inner {
    max-width: 100%;
  }

  .t1-header--jpro .t1-header-topbar-right {
    flex-shrink: 0;
    max-width: 48%;
  }

  .t1-header--jpro .t1-header-nav-row {
    display: none;
  }

  .t1-header--jpro .mobile-menu-toggle {
    display: flex;
  }

  .t1-header--jpro .header-inner {
    min-height: 64px;
    padding: 10px 16px;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
  }

  .t1-header--jpro .header-inner > .site-logo,
  .t1-header--jpro .header-inner > [data-header-logo-wrap] {
    grid-column: 1;
    order: 1;
    justify-self: start;
  }

  .t1-header--jpro .header-inner > .header-right {
    grid-column: 2;
    order: 2;
    justify-self: end;
    margin-left: 0;
  }

  .t1-header--jpro .header-inner > .t1-header-search,
  .t1-header--jpro .header-inner > [data-header-search-root] {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
    width: 100%;
    margin: 0;
    justify-self: stretch;
  }

  .t1-header--jpro.t1-header--no-search .header-inner {
    grid-template-columns: 1fr auto;
  }

  .t1-header--jpro .site-logo {
    order: 1;
    justify-self: start;
  }

  .t1-header--jpro .header-right {
    order: 2;
    justify-self: end;
    margin-left: 0;
  }

  .t1-header--jpro .t1-header-search {
    order: 3;
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
    margin: 0;
    justify-self: stretch;
  }

  .t1-header--jpro .site-logo img,
  .t1-header--jpro .logo-img {
    height: min(44px, var(--layout-logo-height, 44px));
    max-height: min(44px, var(--layout-logo-height, 44px));
  }

  .t1-header--jpro .header-account span {
    display: none;
  }

  .t1-header--jpro .header-account {
    width: 42px;
    height: 42px;
    justify-content: center;
    gap: 0;
  }

  .t1-header--jpro .header-account svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .t1-header--jpro .t1-header-shipping {
    font-size: 11px;
  }

  .t1-header--jpro .t1-header-search {
    --t1-search-h: 40px;
    --t1-search-btn-w: 42px;
  }

  .t1-header--jpro .t1-header-search input[type="search"] {
    font-size: 13px;
  }
}

/* Scroll to top */
.jpro-scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d2b6b;
  background-color: #0d2b6b;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 900;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  border: 0 !important;
}

.jpro-scroll-to-top:hover,
.jpro-scroll-to-top:focus {
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
}

.jpro-scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.jpro-scroll-to-top svg {
  width: 20px;
  height: 20px;
}