/* ─── DS KONGEN — Navigation ─── */

/* Hide Astra's header entirely — we use our own header.php.
   Round 3 (2026-05-18): broadened selectors because the user reported
   a "top menu with DS Kongen and logo" leaking through above our nav.
   This catches Astra's primary, secondary, mobile, sticky, transparent
   and below-header bar variants plus the generic .site-header. */
#masthead,
.site-header,
.ast-main-header-bar,
.ast-primary-header-bar,
.ast-secondary-header-bar,
.ast-below-header,
.ast-mobile-header-wrap,
.ast-mobile-header,
.ast-header-break-point .main-header-bar,
.main-header-bar,
.ast-sticky-header,
.ast-transparent-header,
header[id*="masthead"],
header.entry-header.ast-no-thumbnail.ast-no-meta { display: none !important; }

.dskr-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,14,28,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,215,0,0.18);
  display: flex; align-items: center;
  padding: 0 40px;
  height: 68px;
  border-radius: 0 0 12px 12px;
}

.nav-logo {
  font-family: var(--pixel); font-size: 13px;
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow), 2px 2px 0 rgba(0,0,0,0.8);
  margin-right: auto;
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .crown-icon { font-size: 20px; filter: drop-shadow(0 0 6px var(--gold)); }
.nav-logo-tld { color: var(--text-dim); font-size: 9px; }
.nav-logo img { max-height: 40px; width: auto; }

/* the_custom_logo() outputs its own <a class="custom-logo-link"> — constrain it */
.nav-logo .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}
.nav-logo .custom-logo {
  max-height: 40px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}

.nav-links {
  display: flex; gap: 6px; list-style: none; align-items: center;
  margin: 0 24px 0 0; padding: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  font-family: var(--body); font-weight: 700; font-size: 15px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  padding: 8px 16px; border-radius: 8px;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links li.current-menu-item > a {
  color: var(--gold);
  background: rgba(255,215,0,0.10);
  box-shadow: 0 0 16px rgba(255,215,0,0.15), inset 0 0 12px rgba(255,215,0,0.05);
  transform: translateY(-1px);
}

.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.dskr-nav-search-form { margin: 0; }
.nav-search {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 4px;
  padding: 8px 14px;
  color: var(--text);
  font-family: var(--body); font-size: 14px;
  width: 180px; outline: none;
  transition: border-color 0.2s;
}
.nav-search:focus { border-color: var(--gold); }
.nav-search::placeholder { color: var(--text-dim); }

.nav-cart {
  background: var(--gold); color: var(--navy);
  font-family: var(--pixel); font-size: 9px;
  border: none; cursor: pointer;
  padding: 10px 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: bold;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border-radius: 10px; text-decoration: none;
}
.nav-cart:hover { background: #ffe84d; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,215,0,0.4); }

.cart-count {
  background: var(--red); color: white;
  border-radius: 50%; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: 11px; font-weight: 800;
}

/* Account / login pill in the nav-actions row */
.nav-account {
  font-family: var(--body); font-weight: 700; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  padding: 8px 12px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,215,0,0.18);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-account:hover { color: var(--gold); border-color: var(--gold); background: rgba(255,215,0,0.08); }
.nav-account span[aria-hidden] { font-size: 14px; }

/* Hide Astra's mobile sticky cart and any leftover [KURV 0] echoes in the page
   foot. Our .dskr-nav .nav-cart is the only intentional cart entry point. */
.ast-site-header-cart,
.astra-cart-drawer,
#ast-mobile-header,
body > a[href*="kurv"]:last-of-type:not(.nav-cart):not(.dskr-sale-cta) {
  display: none !important;
}

/* ─── Hamburger button (desktop hidden, mobile shown — see misc.css) ─── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  /* Make absolutely sure clicks reach the button even if some ancestor
     sets pointer-events: none in a weird state. */
  pointer-events: auto;
  position: relative;
  z-index: 102;
}
.nav-burger:hover,
.nav-burger[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(255,215,0,0.08);
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold);
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Slide-in drawer (mobile only — see misc.css for visibility rule) ─── */
.dskr-drawer {
  position: fixed;
  /* Two-row mobile nav is taller than the old 56px; use a CSS variable
     so any future nav-height change just updates one spot. The fallback
     covers very old browsers without var() support. */
  top: var(--dskr-nav-h, 116px);
  right: 0; bottom: 0; left: 0;
  background: rgba(8,14,28,0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 95;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: dskrDrawerIn 0.22s ease-out;
}

/* The drawer-search inside the drawer is now redundant since search is
   visible directly in the nav. Hide it to avoid a duplicate input. */
.dskr-drawer .dskr-drawer-search { display: none; }
.dskr-drawer[hidden] { display: none; }
@keyframes dskrDrawerIn {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.dskr-drawer-inner {
  padding: 24px 20px 40px;
  display: flex; flex-direction: column;
  gap: 24px;
}

.dskr-drawer-search {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 10px;
  padding: 4px;
}
.dskr-drawer-search input[type="search"] {
  flex: 1; min-width: 0;
  background: transparent; border: 0;
  color: var(--text);
  font-family: var(--body); font-size: 16px; /* 16+ to avoid iOS zoom on focus */
  padding: 10px 12px;
  outline: none;
}
.dskr-drawer-search input[type="search"]::placeholder { color: var(--text-dim); }
.dskr-drawer-search-go {
  width: 40px; height: 40px;
  background: var(--gold); color: var(--navy);
  border: 0; border-radius: 8px;
  font-family: var(--pixel); font-size: 14px;
  cursor: pointer;
}

.dskr-drawer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,215,0,0.12);
}
.dskr-drawer-links li { border-bottom: 1px solid rgba(255,215,0,0.12); }
.dskr-drawer-links a {
  display: block;
  padding: 18px 4px;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  min-height: 44px;
}
.dskr-drawer-links a:hover,
.dskr-drawer-links .current-menu-item > a {
  color: var(--gold);
}

.dskr-drawer-footer {
  display: flex; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,215,0,0.12);
}
.dskr-drawer-account,
.dskr-drawer-cart {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px;
  font-family: var(--pixel); font-size: 10px;
  text-decoration: none;
  border-radius: 10px;
  min-height: 44px;
}
.dskr-drawer-account {
  color: var(--text-dim);
  border: 1px solid rgba(255,215,0,0.22);
}
.dskr-drawer-account:hover { color: var(--gold); border-color: var(--gold); }
.dskr-drawer-cart {
  background: var(--gold); color: var(--navy);
  font-weight: bold;
}
.dskr-drawer-cart .cart-count {
  background: var(--red, #d62828); color: white;
  border-radius: 50%; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: 11px; font-weight: 800;
}

/* When the drawer is open, lock background scrolling */
body.dskr-drawer-open {
  overflow: hidden;
  touch-action: none;
}
