/* Shared store header — injected on every store LP via store-shell middleware */
.store-shell-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-cream, #fbf9eb);
  border-bottom: 1px solid rgba(32, 28, 26, 0.08);
}

.store-shell-header .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: var(--header-height, 67px);
  padding: 0 28px;
}

.store-shell-header .nav-left {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 16px;
}

.store-shell-header .nav-left a,
.store-shell-header .nav-right a {
  text-decoration: none;
  color: inherit;
}

.store-shell-header .nav-left a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.store-shell-header .nav-left .star {
  color: #e7a932;
  font-size: 15px;
}

.store-shell-header .logo {
  font-family: var(--font-heading, 'Figtree', sans-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  color: var(--color-text, #201c1a);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-shell-header .logo span {
  display: block;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  margin-top: 2px;
}

.store-shell-header .logo .quizz-brand-logo-img {
  max-height: 52px;
  width: auto;
  display: block;
}

.store-shell-header .nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.store-shell-header #store-market-picker {
  display: flex;
  align-items: center;
}

.store-shell-header .cart-link {
  position: relative;
  display: inline-flex;
}

.store-shell-header .cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  background: #e7a932;
  color: var(--color-text, #201c1a);
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-shell-header .mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-text, #201c1a);
  padding: 0;
}

.store-shell-header .mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 14px;
  right: 14px;
  background: var(--color-cream, #fbf9eb);
  border: 1px solid rgba(32, 28, 26, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(32, 28, 26, 0.16);
  padding: 8px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-shell-header .mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.store-shell-header .mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  text-decoration: none;
  font-size: 16px;
  border-radius: 12px;
  color: inherit;
}

.store-shell-header .mobile-menu a:active {
  background: var(--color-mint-soft, #e8f5ea);
}

.store-shell-header .mobile-menu a + a {
  border-top: 1px solid rgba(32, 28, 26, 0.08);
}

@media (max-width: 900px) {
  .store-shell-header .nav-right .nav-text {
    display: none;
  }

  .store-shell-header .nav-left {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .store-shell-header .mobile-menu-btn {
    display: inline-flex;
  }

  .store-shell-header .mobile-menu {
    display: block;
    visibility: hidden;
  }

  .store-shell-header .mobile-menu.is-open {
    visibility: visible;
  }

  .store-shell-header .nav-left {
    display: none;
  }

  .store-shell-header .nav-right {
    gap: 0;
  }

  .store-shell-header .header-inner {
    padding: 0 16px;
  }
}
