/* ============================================================
   HOENSPORT HEADER — topbar + navbar + mobile nav
   Global: active on ALL pages (including shop)
   ============================================================ */

/* --- Topbar --- */
.hs-topbar {
  background: #0d0d0d;
  color: #aaaaaa;
  font-size: 1.2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #222;
}

.hs-topbar .hs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
}

.hs-topbar a {
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.2s;
}

.hs-topbar a:hover { color: #ffffff; }

.hs-topbar__left {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.hs-topbar__sep { color: #444; }

.hs-topbar__right a { font-size: 1.2rem; }

/* --- Container --- */
.hs-container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

/* --- Navbar --- */
.hs-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid #E63227;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.hs-navbar .hs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem;
}

/* Logo */
.hs-navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.hs-navbar__logo img {
  height: 4.4rem;
  width: auto;
}

/* Nav menu */
.hs-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hs-nav-item { position: relative; }

.hs-nav-link {
  display: block;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-heading-family);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: #111111;
  white-space: nowrap;
  border-radius: 0.8rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.hs-nav-link:hover,
.hs-nav-link.active {
  color: #E63227;
  background: rgba(230, 50, 39, 0.06);
}

.hs-nav-link__arrow {
  margin-left: 0.4rem;
  font-size: 1rem;
}

/* Dropdown */
.hs-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  background: #ffffff;
  min-width: 21rem;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 0.4rem 0.4rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
}

.hs-nav-item:hover > .hs-dropdown,
.hs-nav-item:focus-within > .hs-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hs-dropdown a {
  display: block;
  padding: 1rem 1.6rem;
  font-family: var(--font-body-family);
  font-size: 1.4rem;
  font-weight: 500;
  color: #3d3d3d;
  border-bottom: 1px solid #e0e0e0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.hs-dropdown a:last-child { border-bottom: none; }
.hs-dropdown a:hover { background: #f4f4f4; color: #E63227; }

/* --- Actions (cart + hamburger) --- */
.hs-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Cart link */
.hs-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  color: #111111;
  text-decoration: none;
  border-radius: 0.8rem;
  transition: background 0.2s;
}

.hs-cart-link:hover { background: rgba(0, 0, 0, 0.04); }

.hs-cart-link .svg-wrapper {
  display: flex;
  width: 2.2rem;
  height: 2.2rem;
}

.hs-cart-link svg {
  width: 100%;
  height: 100%;
}

.hs-cart-link .cart-count-bubble {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  min-width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E63227;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  padding: 0 0.4rem;
}

/* Hamburger */
.hs-hamburger {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.8rem;
  background: none;
  border: none;
}

.hs-hamburger span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background: #111111;
  transition: transform 0.3s, opacity 0.3s;
}

.hs-hamburger.is-open { display: none; }

/* --- Mobile nav --- */
.hs-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 999;
  overflow-y: auto;
  padding: 8rem 2.4rem 4rem;
}

.hs-mobile-nav.is-open { display: block; }

.hs-mobile-nav__close {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  text-align: right;
  background: #ffffff;
  border: none;
  font-size: 2.8rem;
  cursor: pointer;
  color: #111111;
  line-height: 1;
  padding: 1.2rem 0;
  margin: -1.6rem 0 0.8rem 0;
  z-index: 1;
}

.hs-mobile-nav a {
  display: block;
  padding: 1.2rem 0;
  font-family: var(--font-heading-family);
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  color: #111111;
  border-bottom: 1px solid #e0e0e0;
  text-decoration: none;
  transition: color 0.2s;
}

.hs-mobile-nav a:hover { color: #E63227; }

.hs-mobile-nav__category {
  padding: 1.6rem 0 0.4rem;
  font-family: var(--font-body-family);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  color: #E63227;
  display: block;
}

.hs-mobile-nav__sub {
  font-size: 1.5rem;
  padding-left: 1.6rem;
  color: #6b6b6b;
}

/* Mobile nav collapsible groups */
.hs-mobile-nav__group {
  border-bottom: 1px solid var(--hs-border, #e0e0e0);
}

.hs-mobile-nav__toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 0;
  font-family: var(--font-heading-family);
  font-weight: 700;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--hs-red, #E63227);
  cursor: pointer;
  list-style: none;
}

.hs-mobile-nav__toggle::-webkit-details-marker {
  display: none;
}

.hs-mobile-nav__toggle::after {
  content: '';
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -0.2rem;
}

.hs-mobile-nav__group[open] > .hs-mobile-nav__toggle::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.hs-mobile-nav__children {
  padding: 0 0 0.8rem 1.6rem;
}

/* Mobile nav info section */
.hs-mobile-nav__divider {
  display: block;
  height: 1px;
  background: var(--hs-border, #e0e0e0);
  margin: 2rem 0 0.8rem;
}

.hs-mobile-nav__address {
  display: block;
  padding: 0.8rem 0 1.2rem 1.6rem;
  font-size: 1.3rem;
  color: var(--hs-mid, #6b6b6b);
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 749px) {
  .hs-topbar { display: none; }

  .hs-nav-menu { display: none; }
  .hs-hamburger { display: flex; }

  .hs-navbar .hs-container { height: 5.6rem; }
  .hs-navbar__logo img { height: 3.2rem; }
  .hs-mobile-nav { padding-top: 6.4rem; }
}

@media (max-width: 480px) {
  .hs-navbar .hs-container { height: 4.8rem; }
  .hs-navbar__logo img { height: 2.8rem; }
  .hs-mobile-nav { padding-top: 5.6rem; }
}
