/* HoleyPocket — branded header */

html {
  overflow-x: hidden;
}

body.hp-body {
  overflow-x: hidden;
}

/* Undo legacy fixed-header offsets — header is sticky, not fixed */
body.hp-body #page {
  margin-top: 0 !important;
  padding-top: 12px;
}

body.hp-body .container-pull,
body.hp-body .cat-pull,
body.hp-body .gifts-pull,
body.hp-body .product-pull {
  margin-top: 12px !important;
}

body.hp-body .feat-img-hidden {
  padding-top: 0 !important;
}

/* Kill Giftora shrink / slide-down header animation */
#masthead.hp-header,
#masthead.hp-header.shrink {
  position: sticky !important;
  top: 0 !important;
  margin-top: 0 !important;
  animation: none !important;
  transform: none !important;
}

.hp-header #nav-container,
body.hp-body .hp-header #nav-container,
.hp-header.shrink #nav-container {
  position: relative !important;
  top: auto !important;
  width: 100%;
  background: #fff;
}

/* Header shell */
#masthead.hp-header {
  background: #fff;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

/* Neutralize all legacy .shrink size changes inside our header */
.hp-header.shrink #logo,
.hp-header.shrink #logo img,
.hp-header.shrink #logo #center-logo,
.hp-header.shrink #logo #search-bar,
.hp-header.shrink #logo #search-bar .searchbox,
.hp-header.shrink .nav,
.hp-header.shrink .nav a,
.hp-header.shrink .nav li:hover a,
.hp-header.shrink .nav li a.selected {
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: inherit !important;
  animation: none !important;
}

/* Top bar — 3-column grid keeps logo centered regardless of search/login widths */
.hp-header .hp-header-bar,
.hp-header #logo.hp-header-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  min-height: 72px;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  text-align: initial !important;
}

.hp-header .hp-header-side {
  display: flex;
  align-items: center;
  min-width: 0;
  z-index: 2;
}

.hp-header .hp-header-side--left {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  justify-content: flex-start;
}

.hp-header .hp-header-side--right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  justify-content: flex-end;
  gap: 8px;
}

.hp-header .hp-header-center {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 3;
  pointer-events: auto;
}

/* Undo Giftora absolute logo positioning (left:50% + margin-left:-125px) */
.hp-header #logo #center-logo,
.hp-header .hp-header-center #center-logo {
  position: static !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  display: block;
  float: none !important;
}

.hp-header #logo img,
.hp-header #center-logo img {
  max-height: 52px;
  width: auto;
  max-width: min(300px, 46vw);
  display: block;
  margin: 0 auto !important;
  margin-top: 0 !important;
}

/* Accent gradient strip */
.hp-header .hp-accent-bar {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--rib_1, #f86700) 0%,
    var(--rib_2, #f99b00) 25%,
    var(--rib_3, #00a4d8) 50%,
    var(--rib_4, #007abf) 75%,
    var(--rib_5, #034760) 100%
  );
}

/* Search */
.hp-header #search-bar {
  width: 100%;
  max-width: 280px;
}

.hp-header .searchbox {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0 16px;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  min-height: 42px;
  display: flex;
  align-items: center;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-header .searchbox:focus-within {
  border-color: var(--themeColor, #ff6d6d);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--themeColor, #ff6d6d) 18%, transparent);
}

.hp-header .searchbox i {
  color: var(--themeColor, #ff6d6d);
  margin-right: 10px;
}

.hp-header .searchbox input.elasticsearch {
  border: 0;
  background: transparent;
  width: 100%;
  font: 14px/1.4 "Inter", system-ui, sans-serif;
  color: #0f172a;
  padding: 9px 0;
  text-transform: none;
  letter-spacing: 0;
}

.hp-header .searchbox input.elasticsearch:focus {
  outline: none;
}

/* Login button */
.hp-header #navbarRight {
  float: none !important;
  margin: 0;
  display: flex;
  align-items: center;
}

.hp-header #navbarRight li {
  float: none;
  list-style: none;
}

.hp-header .hp-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 14px/1 "Inter", system-ui, sans-serif !important;
  font-weight: 600 !important;
  color: #fff !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--themeColor, #ff6d6d), color-mix(in srgb, var(--themeColor, #ff6d6d) 75%, #1e293b));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--themeColor, #ff6d6d) 35%, transparent);
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}

.hp-header .hp-login-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--themeColor, #ff6d6d) 45%, transparent);
  color: #fff !important;
  transform: none !important;
}

.hp-header .mobile-hamburger {
  display: none;
}

.hp-header #open-mobile-search,
.hp-header .mobile-search-box {
  display: none;
}

/* Main navigation */
.hp-header #menu.nav {
  height: auto !important;
  min-height: 0 !important;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-top: none;
}

.hp-header #menu .hp-nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 8px;
}

.hp-header #menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  gap: 2px;
}

.hp-header #menu ul > li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  position: relative;
}

.hp-header #menu ul > li > a.hp-nav-link,
.hp-header #menu ul > li > a.auto-localize {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 108px;
  padding: 12px 10px 14px;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 10px;
  height: auto !important;
  min-height: 88px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hp-header #menu ul > li > a:hover,
.hp-header #menu ul > li:hover > a,
.hp-header #menu ul > li > a:focus,
.hp-header #menu ul > li > a.selected {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  height: auto !important;
  transform: none !important;
}

/* Category icon badges */
.hp-header .hp-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.hp-header .hp-nav-icon i,
.hp-header .hp-nav-icon .fa,
.hp-header .hp-nav-icon .fas,
.hp-header .hp-nav-icon .fa-solid {
  display: inline-block !important;
  font-size: 16px !important;
  line-height: 1 !important;
  height: auto !important;
  width: auto !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  text-shadow: none;
  opacity: 1 !important;
  visibility: visible !important;
}

.hp-header .hp-nav-icon--accent-1 { background: linear-gradient(135deg, var(--rib_1, #f86700), #ff9f43); }
.hp-header .hp-nav-icon--accent-2 { background: linear-gradient(135deg, var(--rib_2, #f99b00), #fbbf24); }
.hp-header .hp-nav-icon--accent-3 { background: linear-gradient(135deg, var(--rib_3, #00a4d8), #38bdf8); }
.hp-header .hp-nav-icon--accent-4 { background: linear-gradient(135deg, var(--rib_4, #007abf), #60a5fa); }
.hp-header .hp-nav-icon--accent-5 { background: linear-gradient(135deg, var(--rib_5, #034760), #1e3a5f); }

.hp-header .hp-nav-label,
.hp-header .hp-nav-label h3 {
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0;
  font: 11px/1.25 "Inter", system-ui, sans-serif;
  font-weight: 600;
  color: inherit;
  text-transform: none;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 100px;
}

/* Dropdowns */
.hp-header #menu .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 8px 0;
  z-index: 1100;
}

.hp-header #menu .dropdown:hover .dropdown-content,
.hp-header #menu .dropdown:focus-within .dropdown-content {
  display: block;
}

.hp-header #menu .dropdown-content a,
.hp-header #menu .dropdown-content a.hp-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #334155;
  text-decoration: none;
  font: 14px/1.4 "Inter", system-ui, sans-serif;
  height: auto !important;
}

.hp-header #menu .dropdown-content a:hover {
  background: #f8fafc;
  color: #0f172a;
}

.hp-header #menu .dropdown-content a h3 {
  margin: 0;
  font: inherit;
  font-weight: 500;
  text-transform: none;
  color: inherit;
}

.hp-header .hp-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--themeColor, #ff6d6d);
  flex-shrink: 0;
}

.hp-header .hp-dropdown-icon i {
  font-size: 13px !important;
  color: var(--themeColor, #ff6d6d) !important;
  height: auto !important;
  padding: 0 !important;
}

/* Mobile category icons */
.hp-header .hp-mobile-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 7px;
  background: #f1f5f9;
  vertical-align: middle;
}

.hp-header .hp-mobile-cat-icon i {
  font-size: 13px !important;
  color: var(--themeColor, #ff6d6d) !important;
}

.hp-header .nav-stripe-container {
  display: none !important;
}

.hp-header .sub_menu_wrapper {
  margin-top: 12px;
  clear: both;
}

/* Mobile */
@media (max-width: 990px) {
  body.hp-body #page {
    margin-top: 0 !important;
    padding-top: 8px;
  }

  body.hp-body .container-pull {
    margin-top: 8px !important;
  }

  .hp-header .hp-header-bar,
  .hp-header #logo.hp-header-bar {
    grid-template-columns: 40px 1fr 40px;
    column-gap: 8px;
    padding: 12px 16px;
    min-height: 60px;
  }

  .hp-header .hp-header-side--left {
    width: 40px;
  }

  .hp-header .hp-header-side--right {
    width: 40px;
    justify-content: flex-end;
  }

  .hp-header .hp-header-center {
    grid-column: 2;
  }

  .hp-header #logo #center-logo {
    left: auto !important;
    margin-left: 0 !important;
  }

  .hp-header #search-bar,
  .hp-header #navbarRight {
    display: none !important;
  }

  .hp-header #open-mobile-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--themeColor, #ff6d6d);
    font-size: 18px;
  }

  .hp-header .mobile-hamburger {
    display: block;
  }

  .hp-header .mobile-hamburger a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #1e293b;
    font-size: 22px;
  }

  .hp-header #center-logo img {
    max-height: 40px;
  }

  .hp-header #menu {
    display: none !important;
  }
}
