/* ═══ NAVBAR ═══ */
.kp-navbar {
  background: var(--kp-ink, #0b0e14);
  position: relative;
  z-index: 90;
  display: block;
}
.kp-navbar-inner {
  display: flex;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
}
.kp-navbar-departments {
  background: var(--kp-blue, #2563eb);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  position: relative;
}
.kp-navbar-departments:hover { background: var(--kp-blue-dark, #1d4ed8); }
.kp-navbar-departments svg { width: 18px; height: 18px; }
.kp-navbar-departments .kp-navbar-chevron {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}
.kp-navbar-departments.open .kp-navbar-chevron { transform: rotate(180deg); }

.kp-navbar-links {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px;
}
.kp-navbar-link {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(180, 184, 196, 1);
  transition: color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.kp-navbar-link:hover { color: #fff; }
.kp-navbar-link.green { color: #059669; }
.kp-navbar-link.green:hover { color: #34d399; }
.kp-navbar-link.yellow { color: #fbbf24; }
.kp-navbar-link.yellow:hover { color: #fcd34d; }
.kp-navbar-link svg { width: 14px; height: 14px; }

/* ═══ MEGA MENU ═══ */
.kp-mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--kp-blue, #2563eb);
  box-shadow: 0 16px 48px rgba(11,14,20,0.12);
  z-index: 80;
}
.kp-mega-menu[aria-hidden="false"] { display: flex; animation: kp-slideDown 0.25s ease both; }

@keyframes kp-slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.kp-mega-menu-inner {
  display: flex;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 420px;
}

/* Sidebar */
.kp-mega-sidebar {
  width: 260px;
  background: var(--kp-ink-02, #f8f8fa);
  border-right: 1px solid var(--kp-ink-10, #dfe1e7);
  padding: 12px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.kp-mega-sidebar::-webkit-scrollbar { display: none; }

.kp-mega-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--kp-ink-60, #494e5c);
  border-left: 3px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.kp-mega-sidebar-item:hover,
.kp-mega-sidebar-item.active {
  background: #fff;
  color: var(--kp-blue, #2563eb);
  border-left-color: var(--kp-blue, #2563eb);
}
.kp-mega-sidebar-item svg:first-child {
  width: 20px; height: 20px; margin-right: 10px;
}
.kp-mega-sidebar-item .kp-mega-arrow {
  width: 14px; height: 14px;
  color: var(--kp-ink-20, #b4b8c4);
}
.kp-mega-sidebar-item.active .kp-mega-arrow { color: var(--kp-blue, #2563eb); }

.kp-mega-sidebar-footer {
  margin-top: auto;
  padding: 12px 24px;
  border-top: 1px solid var(--kp-ink-10, #dfe1e7);
}
.kp-mega-sidebar-footer a {
  font-size: 13px;
  font-weight: 700;
  color: var(--kp-blue, #2563eb);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.kp-mega-sidebar-footer a:hover { text-decoration: underline; }
.kp-mega-sidebar-footer a svg { width: 14px; height: 14px; }

/* Content */
.kp-mega-content { flex: 1; padding: 0; }
.kp-mega-panel { display: none; padding: 32px 40px; }
.kp-mega-panel.active { display: block; }

.kp-mega-content-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--kp-ink, #0b0e14);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.kp-mega-content-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--kp-blue, #2563eb);
  background: var(--kp-blue-light, #eff5ff);
  padding: 4px 12px;
  border-radius: 9999px;
  text-decoration: none;
}
.kp-mega-content-badge:hover { background: var(--kp-blue, #2563eb); color: #fff; }

.kp-mega-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 200px;
  gap: 32px;
}

.kp-mega-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--kp-ink, #0b0e14);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--kp-ink-10, #dfe1e7);
  margin-bottom: 12px;
}

.kp-mega-link {
  display: block;
  font-size: 13px;
  color: var(--kp-ink-60, #494e5c);
  padding: 6px 0;
  transition: all 0.2s;
  text-decoration: none;
}
.kp-mega-link:hover {
  color: var(--kp-blue, #2563eb);
  transform: translateX(4px);
}

/* Promo card */
.kp-mega-promo {
  border-left: 1px solid var(--kp-ink-10, #dfe1e7);
  padding-left: 32px;
}
.kp-mega-promo-card {
  background: var(--kp-ink-02, #f8f8fa);
  border: 1px solid var(--kp-ink-10, #dfe1e7);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.kp-mega-promo-card:hover {
  border-color: var(--kp-blue, #2563eb);
  box-shadow: 0 4px 16px rgba(11,14,20,0.06);
}
.kp-mega-promo-img {
  aspect-ratio: 4/3;
  background: var(--kp-ink-05, #f0f1f4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kp-ink-20, #b4b8c4);
  font-size: 32px;
}
.kp-mega-promo-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.kp-mega-promo-card:hover .kp-mega-promo-img img { transform: scale(1.05); }
.kp-mega-promo-body { padding: 14px; }
.kp-mega-promo-tag {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--kp-blue, #2563eb); margin-bottom: 6px;
}
.kp-mega-promo-title {
  font-size: 13px; font-weight: 700; color: var(--kp-ink, #0b0e14); margin-bottom: 8px;
}
.kp-mega-promo-cta {
  font-size: 12px; font-weight: 700; color: var(--kp-blue, #2563eb);
  display: flex; align-items: center; gap: 4px; text-decoration: none;
}
.kp-mega-promo-cta svg { width: 12px; height: 12px; }

/* ═══ FACET LINKS ═══ */
.kp-mega-facet { position: relative; }
.kp-mega-facet-count {
  font-size: 11px; color: var(--kp-ink-40, #8a8f9e);
  margin-left: 4px; font-weight: 400;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .kp-navbar { display: none; }
}

/* ═══ MOBILE DRAWER ═══ */
.kp-mobile-overlay {
  position: fixed; inset: 0; background: rgba(11,14,20,0.55);
  z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.kp-mobile-overlay.active { opacity: 1; pointer-events: auto; }

.kp-mobile-drawer {
  position: fixed; top: 0; left: 0; width: 85vw; max-width: 360px;
  height: 100dvh; background: #fff; z-index: 1000;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  display: none;
}
@media (max-width: 768px) {
  .kp-mobile-drawer { display: flex; }
}
.kp-mobile-drawer[aria-hidden="false"] { transform: translateX(0); }

.kp-mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--kp-ink, #0b0e14);
}
.kp-mobile-drawer-logo {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 18px; font-weight: 800;
  text-decoration: none; letter-spacing: -0.03em;
}
.kp-mobile-drawer-logo svg { background: var(--kp-blue, #2563eb); border-radius: 6px; padding: 3px; }
.kp-mobile-drawer-close {
  background: none; border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; padding: 4px; transition: color 0.2s;
}
.kp-mobile-drawer-close:hover { color: #fff; }

.kp-mobile-drawer-search {
  padding: 12px 16px; border-bottom: 1px solid var(--kp-ink-10, #dfe1e7);
}
.kp-mobile-drawer-search form {
  display: flex; background: var(--kp-ink-02, #f8f8fa);
  border: 1px solid var(--kp-ink-10, #dfe1e7); border-radius: 8px;
  overflow: hidden;
}
.kp-mobile-search-input {
  flex: 1; border: none; background: none; padding: 10px 12px;
  font-size: 14px; outline: none; color: var(--kp-ink, #0b0e14);
}
.kp-mobile-search-btn {
  background: none; border: none; padding: 10px 12px;
  color: var(--kp-ink-40, #7a7f8e); cursor: pointer;
}

.kp-mobile-drawer-body {
  flex: 1; overflow-y: auto; padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

.kp-mobile-cat { border-bottom: 1px solid var(--kp-ink-05, #f0f1f4); }
.kp-mobile-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0; min-height: 48px;
}
.kp-mobile-cat-link {
  flex: 1; padding: 14px 20px; font-size: 15px; font-weight: 600;
  color: var(--kp-ink, #0b0e14); text-decoration: none;
  transition: color 0.2s;
}
.kp-mobile-cat-link:hover { color: var(--kp-blue, #2563eb); }
.kp-mobile-cat-toggle {
  background: none; border: none; padding: 14px 16px;
  color: var(--kp-ink-40, #7a7f8e); cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}
.kp-mobile-cat.open .kp-mobile-cat-toggle { transform: rotate(180deg); color: var(--kp-blue, #2563eb); }

.kp-mobile-cat-sub {
  display: none; padding: 0 20px 12px 32px;
}
.kp-mobile-cat.open .kp-mobile-cat-sub { display: block; }
.kp-mobile-sub-link {
  display: block; padding: 8px 0; font-size: 14px;
  color: var(--kp-ink-60, #494e5c); text-decoration: none;
  transition: color 0.2s;
}
.kp-mobile-sub-link:hover { color: var(--kp-blue, #2563eb); }
.kp-mobile-sub-all {
  color: var(--kp-blue, #2563eb); font-weight: 600;
  margin-top: 4px;
}

.kp-mobile-drawer-footer {
  border-top: 1px solid var(--kp-ink-10, #dfe1e7);
  padding: 12px 20px;
}
.kp-mobile-footer-link {
  display: block; padding: 8px 0; font-size: 13px;
  color: var(--kp-ink-60, #494e5c); text-decoration: none;
}
.kp-mobile-footer-contact {
  display: flex; gap: 16px; padding-top: 8px;
  border-top: 1px solid var(--kp-ink-05, #f0f1f4); margin-top: 8px;
}
.kp-mobile-footer-contact a {
  font-size: 12px; color: var(--kp-ink-40, #7a7f8e);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}

/* Hide drawer + overlay on desktop */
@media (min-width: 769px) {
  .kp-mobile-drawer, .kp-mobile-overlay { display: none !important; }
}
.kp-mobile-overlay { display: none; }
@media (max-width: 768px) {
  .kp-mobile-overlay { display: block; }
}
