/* ═══════════════════════════════════════════════════════
   DK Makes — Premium Navbar Stylesheet
   Minimalist · Technical · Elegant
   ═══════════════════════════════════════════════════════ */

/* ── Top Announcement Bar ─────────────────────────────── */
.dk-topbar {
  background: #1C1D24;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3px;
  text-align: center;
  padding: 6px 16px;
  line-height: 1;
}
.dk-topbar a {
  color: #C7A263;
  text-decoration: none;
  font-weight: 600;
}
.dk-topbar a:hover {
  text-decoration: underline;
}

/* ── Main Header ──────────────────────────────────────── */
.dk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: box-shadow .3s ease, background .3s ease;
}
.dk-header.has-topbar {
  /* topbar offset: body padding-top accounts for topbar + header height */
  top: 0;
}
.dk-header-inner {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s ease;
}
.dk-header.scrolled .dk-header-inner {
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.dk-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* ── Logo ─────────────────────────────────────────────── */
.dk-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 60px;
}
.dk-logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  max-height: 36px;
  object-fit: contain;
  display: block;
  transition: transform .2s ease;
}
.dk-logo:hover .dk-logo-img {
  transform: scale(1.05);
}
/* legacy fallback */
.dk-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1C1D24 0%, #2B2C36 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.5px;
  transition: transform .2s ease;
}
.dk-logo:hover .dk-logo-mark {
  transform: scale(1.05);
}

/* ── Desktop Navigation ───────────────────────────────── */
.dk-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.dk-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.dk-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s ease, background .15s ease;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.4;
}
.dk-nav-link:hover,
.dk-nav-link.active {
  color: #1C1D24;
  background: rgba(0,0,0,.03);
}
.dk-nav-link .dk-chevron {
  width: 10px;
  height: 10px;
  transition: transform .2s ease;
  opacity: .5;
  flex-shrink: 0;
}
.dk-nav-item.open .dk-nav-link .dk-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown ─────────────────────────────────────────── */
.dk-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.04);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.dk-nav-item.open .dk-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dk-dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s ease;
}
.dk-dropdown-link:hover {
  background: rgba(0,0,0,.03);
}
.dk-dropdown-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1C1D24;
  line-height: 1.3;
}
.dk-dropdown-desc {
  font-size: 12px;
  color: #747A8E;
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Right Utilities ──────────────────────────────────── */
.dk-utils {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dk-util-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s ease, background .15s ease;
  position: relative;
  text-decoration: none;
}
.dk-util-btn:hover {
  color: #1C1D24;
  background: rgba(0,0,0,.04);
}
.dk-util-btn svg {
  width: 20px;
  height: 20px;
}

/* Cart badge */
.dk-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #C7A263;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.dk-cart-badge.visible {
  display: flex;
}

/* Language switcher spacing fix */
#dk-lang-switcher .dk-lang-btn {
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: none;
  font-size: 13px;
  padding: 6px 10px;
  color: #555;
}
#dk-lang-switcher .dk-lang-btn:hover {
  background: rgba(0,0,0,.04);
  color: #1C1D24;
}

/* ── Mobile Hamburger ─────────────────────────────────── */
.dk-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #1C1D24;
  padding: 0;
  transition: background .15s ease;
}
.dk-hamburger:hover {
  background: rgba(0,0,0,.04);
}
.dk-hamburger svg {
  width: 22px;
  height: 22px;
}

/* ── Mobile Panel ─────────────────────────────────────── */
.dk-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  transition: opacity .25s ease;
}
.dk-mobile-overlay.open {
  display: block;
  opacity: 1;
}
.dk-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #fff;
  z-index: 91;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.dk-mobile-panel.open {
  transform: translateX(0);
}
.dk-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.dk-mobile-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C1D24;
  transition: background .15s ease;
}
.dk-mobile-close:hover {
  background: rgba(0,0,0,.04);
}
.dk-mobile-nav {
  flex: 1;
  padding: 12px 16px;
}
.dk-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1C1D24;
  text-decoration: none;
  border-radius: 10px;
  transition: background .15s ease;
}
.dk-mobile-link:hover {
  background: rgba(0,0,0,.03);
}
.dk-mobile-sub {
  display: none;
  padding-left: 16px;
}
.dk-mobile-sub.open {
  display: block;
}
.dk-mobile-sub a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.dk-mobile-sub a:hover {
  background: rgba(0,0,0,.03);
  color: #1C1D24;
}
.dk-mobile-utils {
  padding: 16px 20px;
  border-top: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Search Overlay (refined) ─────────────────────────── */
.dk-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding: 120px 24px 24px;
}
.dk-search-overlay.active {
  display: flex;
}
.dk-search-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.15);
  width: 100%;
  max-width: 560px;
  padding: 24px;
  position: relative;
}
.dk-search-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,0,0,.04);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #747A8E;
  font-size: 18px;
  transition: background .15s;
}
.dk-search-close:hover {
  background: rgba(0,0,0,.08);
}
.dk-search-title {
  font-size: 16px;
  font-weight: 700;
  color: #1C1D24;
  margin-bottom: 16px;
}
.dk-search-form {
  display: flex;
  gap: 8px;
}
.dk-search-input {
  flex: 1;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  color: #1C1D24;
}
.dk-search-input:focus {
  border-color: #C7A263;
}
.dk-search-input::placeholder {
  color: #aaa;
}
.dk-search-btn {
  background: linear-gradient(135deg, #E6C587 0%, #C7A263 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s;
}
.dk-search-btn:hover {
  transform: translateY(-1px);
}
.dk-search-results {
  margin-top: 16px;
  max-height: 260px;
  overflow-y: auto;
}
.dk-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s;
}
.dk-search-result:hover {
  background: rgba(0,0,0,.03);
}
.dk-search-result img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.dk-search-result-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #aaa;
}
.dk-search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: #1C1D24;
}
.dk-search-result-price {
  font-size: 13px;
  font-weight: 600;
  color: #C7A263;
}
.dk-search-empty {
  font-size: 13px;
  color: #747A8E;
  padding: 8px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .dk-nav {
    display: none;
  }
  .dk-hamburger {
    display: flex;
  }
  .dk-header-container {
    height: 56px;
  }
  .dk-logo-img {
    height: 30px;
    max-width: 110px;
    max-height: 30px;
  }
  .dk-search-overlay {
    padding: 80px 16px 16px;
  }
}

@media (max-width: 480px) {
  .dk-mobile-panel {
    width: 100%;
    max-width: 100%;
  }
  .dk-header-container {
    padding: 0 16px;
  }
  .dk-logo-img {
    height: 28px;
    max-width: 100px;
    max-height: 28px;
  }
}

/* ── Existing compatibility ───────────────────────────── */
/* Keep original utility classes working for pages */
.btn-gold { background: linear-gradient(135deg, #E6C587 0%, #C7A263 100%); color: #fff; box-shadow: 0 10px 25px rgba(199,162,99,0.3); transition: transform 0.2s; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(199,162,99,0.4); }
.btn-dark { background: #1C1D24; color: #fff; transition: transform 0.2s; }
.btn-dark:hover { transform: translateY(-2px); background: #2B2C36; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); border-color: rgba(199,162,99,0.3); }
