/* FoodHub247 - Luxury Header (Kokolet-inspired) */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.site-header__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 992px) {
  .site-header__nav { display: flex; }
}

.site-header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-transform: capitalize;
  position: relative;
}

.site-header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration) var(--ease-out);
}

.site-header__nav a:hover::after { width: 100%; }
.site-header__nav a:hover { color: var(--primary); }

.site-header__search {
  display: none;
  flex: 1;
  max-width: 320px;
  position: relative;
}

@media (min-width: 768px) {
  .site-header__search { display: block; }
}

.site-header__search input {
  padding: 10px 40px 10px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border-color: transparent;
  font-size: 0.875rem;
}

.site-header__search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__actions a {
  position: relative;
  color: var(--text);
  font-size: 1.1rem;
  padding: 6px;
}

.site-header__actions a:hover { color: var(--primary); }

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.badge-count.is-empty {
  display: none;
}

.site-header__account {
  display: none;
  font-size: 0.8rem;
}

@media (min-width: 992px) {
  .site-header__account { display: block; }
  .site-header__account a { color: var(--text-muted); }
  .site-header__account a:hover { color: var(--primary); }
}

.menu-toggle {
  display: flex;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 992px) {
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--white);
  z-index: 1100;
  transition: left 0.3s var(--ease-out);
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
}

.mobile-drawer.open { left: 0; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer__header {
  padding: var(--gap-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer__nav {
  padding: var(--gap);
}

.mobile-drawer__nav a {
  display: block;
  padding: 14px var(--gap);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer__nav a:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

/* Top announcement bar */
.announce-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px var(--page-padding);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.announce-bar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announce-bar a:hover { color: #f0e6d8; }
