/* Shared HeyyPal navbar: used by the main site (assets/site-chrome.js) and the gift card store (web_store layout). */
.hp-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}
.hp-bar__inner { max-width: 1400px; margin: 0 auto; padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.hp-bar__logo { display: block; line-height: 0; flex-shrink: 0; }
.hp-bar__logo img { height: 48px; width: auto; display: block; }

.hp-nav, .hp-nav * { box-sizing: border-box; }
.hp-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; font-family: inherit; }
.hp-nav__links { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.hp-nav__link {
  display: inline-flex; align-items: center; padding: 0.55rem 0.85rem; border-radius: 10px;
  color: #475569; font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.hp-nav__link:hover { color: #28379b; background: #f1f5f9; }
.hp-nav__link[aria-current="page"] { color: #28379b; background: #eef2ff; }
.hp-nav__cta {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1.2rem; border-radius: 12px;
  background: linear-gradient(135deg, #28379b, #009fe3); color: #fff !important; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(40, 55, 155, 0.2);
}
.hp-nav__cta:hover { transform: translateY(-1px); }
.hp-nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
  color: #1e293b; cursor: pointer; align-items: center; justify-content: center;
}
.hp-nav__toggle svg { width: 22px; height: 22px; }
.hp-nav__toggle .hp-ic-close { display: none; }
.hp-nav__toggle[aria-expanded="true"] .hp-ic-open { display: none; }
.hp-nav__toggle[aria-expanded="true"] .hp-ic-close { display: block; }
.hp-nav__drawer { display: none; }

/* Store-only sub navigation */
.hp-subnav { border-top: 1px solid #f1f5f9; background: #fff; }
.hp-subnav__inner { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; display: flex; gap: 0.25rem; overflow-x: auto; }
.hp-subnav a { padding: 0.65rem 0.9rem; font-size: 0.85rem; font-weight: 700; color: #64748b; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.hp-subnav a:hover { color: #28379b; }
.hp-subnav a[aria-current="page"] { color: #28379b; border-bottom-color: #28379b; }

@media (max-width: 900px) {
  .hp-bar__inner { padding: 0.6rem 1rem; }
  .hp-bar__logo img { height: 40px; }
  .hp-nav { gap: 0; }
  .hp-nav__links, .hp-nav > .hp-nav__cta { display: none; }
  .hp-nav__toggle { display: inline-flex; }
  .hp-nav__drawer {
    display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
    overflow-y: auto; padding: 0.75rem 1rem 1.25rem; background: #fff; border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .hp-nav__drawer[data-open="true"] { visibility: visible; opacity: 1; transform: none; }
  .hp-nav__drawer ul { list-style: none; margin: 0 0 1rem; padding: 0; }
  .hp-nav__drawer .hp-nav__link { display: flex; width: 100%; padding: 0.95rem 0.75rem; font-size: 1.05rem; border-radius: 12px; }
  .hp-nav__drawer .hp-nav__cta { width: 100%; padding: 0.95rem 1rem; font-size: 1.05rem; }
  .hp-subnav__inner { padding: 0 0.5rem; }
}
@media (prefers-reduced-motion: reduce) { .hp-nav__drawer { transition: none; } }
