/**
 * Lokino Header (global) – responsive mit Hamburger-Menu.
 */

:root {
  --lk-bg-1: #FFF7EF;
  --lk-bg-2: #FFFFFF;
  --lk-bg-3: #FDF3E7;
  --lk-bg-4: #F4E7D9;
  --lk-line: #F0E6DA;
  --lk-line-soft: #EFE2D2;
  --lk-ink: #2F1F12;
  --lk-muted: #6F6258;
  --lk-chip-bg: #F1E5D6;
  --lk-green: #7BA245;
  --lk-green-deep: #5C8F3A;
  --lk-orange: #EA8A37;
  --lk-shadow-card: 0 8px 24px rgba(0,0,0,0.04);
  --lk-shadow-soft: 0 4px 16px rgba(47,31,18,0.05);
  --lk-radius-card: 20px;
  --lk-radius-block: 24px;
  --lk-radius-pill: 999px;
  --lk-container: 1200px;
}

/* Container */
.lk-container {
  width: 100%;
  max-width: var(--lk-container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* -----------------------------------------------------------
   Header
   ----------------------------------------------------------- */
header.lk-header {
  height: 64px;
  background: #FFFFFF;
  color: var(--lk-ink);
  padding: 0;
  border-bottom: 1px solid var(--lk-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.mm-customer.lk-global-header {
  padding-top: 0 !important;
}

header.lk-header a {
  color: inherit;
  text-decoration: none;
}

header.lk-header a:hover {
  text-decoration: none;
}

.lk-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lk-header__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
  color: var(--lk-ink);
  line-height: 1;
  flex-shrink: 0;
}

.lk-header__brand:hover {
  text-decoration: none;
  color: var(--lk-ink);
}

.lk-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.8px;
}

.lk-wordmark__loki { color: #4A3625; }
.lk-wordmark__n    { color: #7BA245; }
.lk-wordmark__o    { color: #EA8A37; }

.lk-claim {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.85px;
  color: var(--lk-muted);
  margin-top: 4px;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* -----------------------------------------------------------
   Right-side controls (cart icon + burger — visible on mobile)
   ----------------------------------------------------------- */
.lk-header__right {
  display: none;
  align-items: center;
  gap: 4px;
}

/* -----------------------------------------------------------
   Hamburger button
   ----------------------------------------------------------- */
.lk-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.lk-burger:hover,
.lk-burger:focus-visible {
  background: var(--lk-bg-3);
  outline: none;
}

.lk-burger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lk-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.lk-burger--open .lk-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.lk-burger--open .lk-burger__bar:nth-child(2) {
  opacity: 0;
}
.lk-burger--open .lk-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -----------------------------------------------------------
   Desktop nav
   ----------------------------------------------------------- */
.lk-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lk-nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--lk-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.lk-nav__link:hover {
  color: var(--lk-green);
  text-decoration: none;
}

.lk-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--lk-green);
  color: var(--lk-green);
  background: transparent;
  border-radius: var(--lk-radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.lk-nav__btn:hover {
  background: var(--lk-green);
  color: #fff;
  text-decoration: none;
}

.lk-nav__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--lk-ink);
  text-decoration: none;
  font-size: 18px;
}

.lk-nav__cart:hover {
  color: var(--lk-green);
  text-decoration: none;
}

/* Desktop cart icon (icon only) — visible on desktop, hidden on mobile */
.lk-nav__cart--desktop {
  display: inline-flex;
}

/* Drawer cart (icon + label) — hidden on desktop, visible in mobile drawer */
.lk-nav__cart--drawer {
  display: none !important;
}

/* Prevent scroll when mobile nav is open */
body.lk-nav-lock {
  overflow: hidden !important;
}

/* -----------------------------------------------------------
   MOBILE (< 768px)
   ----------------------------------------------------------- */
@media (max-width: 767.98px) {
  header.lk-header {
    height: 56px;
  }

  .lk-header__inner {
    padding-left: 16px;
    padding-right: 8px;
  }

  .lk-wordmark {
    font-size: 22px;
  }

  .lk-claim {
    font-size: 8px;
    letter-spacing: 0.6px;
  }

  /* Show right-side controls */
  .lk-header__right {
    display: flex;
  }

  .lk-burger {
    display: flex;
  }

  /* Hide desktop nav, show as mobile drawer */
  .lk-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 env(safe-area-inset-bottom, 0);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--lk-line);
    animation: lk-nav-slideIn 0.25s ease both;
  }

  @keyframes lk-nav-slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .lk-nav--open {
    display: flex;
  }

  .lk-nav__link,
  .lk-nav__btn {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--lk-line-soft);
    color: var(--lk-ink);
    background: transparent;
    text-align: left;
    justify-content: flex-start;
    transition: background 0.12s ease;
  }

  .lk-nav__link:hover,
  .lk-nav__btn:hover {
    background: var(--lk-bg-3);
    color: var(--lk-green);
  }

  .lk-nav__link:active,
  .lk-nav__btn:active {
    background: var(--lk-bg-4);
  }

  .lk-nav__link--secondary {
    color: var(--lk-muted);
    font-weight: 500;
  }

  .lk-nav__btn {
    color: var(--lk-green);
    font-weight: 700;
  }

  /* Hide the desktop-only cart icon on mobile */
  .lk-nav__cart--desktop {
    display: none !important;
  }

  /* Cart link inside mobile drawer */
  .lk-nav__cart--drawer {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--lk-ink);
    border-bottom: 1px solid var(--lk-line-soft);
    width: auto;
    height: auto;
  }

  .lk-nav__cart--drawer i {
    font-size: 18px;
  }
}
