/* ============================================================
   ADASH — Header & Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--header-bg);
  z-index: 1500;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}
@media (max-width: 1023px) {
  .site-header { height: var(--header-h-mobile); }
  .header-logo img { height: 44px; }
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { flex-shrink: 0; display: flex; align-items: center; }
.header-logo img { height: 64px; width: auto; display: block; }

.main-nav {
  display: none;
  align-items: center;
  height: 100%;
  margin-left: 2rem;
}
@media (min-width: 1024px) {
  .main-nav { display: flex; }
}

.nav-list {
  display: flex;
  align-items: stretch;
  height: 100%;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-link,
.nav-btn {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.nav-link:hover,
.nav-btn:hover,
.nav-link.active,
.nav-btn.open {
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
}
.nav-caret {
  width: 12px; height: 12px;
  margin-left: 4px;
  opacity: 0.5;
}

.nav-item { position: relative; height: 100%; display: flex; align-items: center; }

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100vw - 2rem));
  background: var(--white);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  border-top: 1px solid var(--border-100);
  padding: 2rem;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  z-index: 2000;
}
.has-mega.open .mega-menu { display: grid; }

.mega-col { display: flex; flex-direction: column; }
.mega-group { }

.mega-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.mega-heading a { color: var(--blue); }
.mega-heading a:hover { text-decoration: underline; }
.mega-heading.mt { margin-top: 1.5rem; }

.mega-menu ul { display: flex; flex-direction: column; gap: 0.5rem; }
.mega-menu ul li a {
  font-size: 0.875rem;
  color: var(--text-600);
  display: block;
  text-decoration: none;
}
.mega-menu ul li a:hover { color: var(--blue); text-decoration: none; }

.mega-preview-col { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.mega-preview-img { max-width: 100%; max-height: 300px; object-fit: contain; transition: opacity 0.3s; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 224px;
  background: var(--white);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  border-top: 1px solid var(--border-100);
  padding: 0.5rem 0;
  z-index: 2000;
}
.has-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
}
.dropdown-menu a:hover { background: #f9fafb; color: var(--blue); }

.header-right {
  display: none;
  align-items: center;
  margin-left: auto;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .header-right { display: flex; } }

.warranty-img { height: 56px; width: auto; object-fit: contain; transform: rotate(-6deg); transition: transform 0.3s; }
.warranty-img:hover { transform: rotate(0deg); }

.header-divider { height: 32px; width: 1px; background: #d1d5db; }

.search-wrapper { position: relative; }
.search-btn {
  display: flex; align-items: center; color: #4b5563; gap: 4px;
  background: none; border: none; cursor: pointer; font: inherit; padding: 0.25rem;
}
.search-btn:hover { color: var(--blue); }
.search-btn img { width: 20px; height: 20px; }
.search-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  width: 288px;
  padding-top: 6px;
  z-index: 2000;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.search-dropdown::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
}
.search-dropdown-inner {
  background: var(--white);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  border: 1px solid var(--border-100);
  padding: 1rem;
}
.search-wrapper:hover .search-dropdown,
.search-wrapper:focus-within .search-dropdown,
.search-wrapper.search-open .search-dropdown { display: block; }
.search-form { display: flex; gap: 0.5rem; }
.search-form input {
  flex: 1; border: 1px solid #d1d5db; padding: 0.5rem 0.75rem;
  font-size: 0.875rem; outline: none;
}
.search-form input:focus { border-color: var(--blue); }
.search-form button {
  background: var(--green); color: var(--white);
  padding: 0.5rem 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.search-form button:hover { background: var(--green-hover); }

.search-page-input:focus { border-color: var(--blue); }
.search-page-submit:hover { background: var(--green-hover); }

.lang-wrapper { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 4px;
  color: #1f2937; font-size: 0.875rem; font-weight: 500; cursor: pointer;
  background: none; border: none; font: inherit; padding: 0.25rem 0.35rem; border-radius: 4px;
}
.lang-trigger:hover { color: var(--blue); }
.lang-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang-trigger img { width: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.lang-trigger span.code { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.lang-dropdown {
  display: none;
  position: absolute;
  right: 0; top: 100%;
  width: 180px;
  padding-top: 6px;
  z-index: 2000;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.lang-dropdown::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
}
.lang-dropdown-inner {
  background: var(--white);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  border: 1px solid var(--border-100);
  padding: 0.5rem 0;
}
.lang-wrapper:hover .lang-dropdown,
.lang-wrapper:focus-within .lang-dropdown,
.lang-wrapper.lang-open .lang-dropdown { display: block; }
.lang-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; font-size: 0.875rem; color: #374151;
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
}
.lang-btn:hover { background: #f9fafb; color: var(--blue); }
.lang-btn.active { color: var(--blue); font-weight: 700; }
.lang-btn img { width: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.3); }

.header-mobile-right {
  display: flex; align-items: center; gap: 1rem;
}
@media (min-width: 1024px) { .header-mobile-right { display: none; } }
.header-mobile-right .warranty-img { height: 40px; }

.hamburger { color: #1f2937; padding: 0.5rem; display: flex; align-items: center; }
.hamburger:hover { color: var(--blue); }
.hamburger svg { width: 32px; height: 32px; }

.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1400;
}
.mobile-nav-overlay.visible { display: block; }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border-100);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
  max-height: calc(100dvh - var(--header-h-mobile));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-nav.open { display: block; }
.mobile-nav-inner { padding: 0.75rem 1rem 1.5rem; }
.mobile-nav > .mobile-nav-inner > a {
  display: block; font-size: 1rem; font-weight: 600; color: #1f2937;
  padding: 0.625rem 0; text-decoration: none;
  border-bottom: 1px solid var(--border-100);
}
.mobile-nav a:hover { color: var(--blue); }

.mobile-nav-section { border-bottom: 1px solid var(--border-100); }
.mobile-nav-heading {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.75rem 0;
  font-size: 0.875rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.04em;
  background: none; border: none; cursor: pointer; font-family: inherit;
  text-align: left;
}
.mobile-nav-heading::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-right: 4px;
}
.mobile-nav-section.open .mobile-nav-heading::after { transform: rotate(-135deg); }
.mobile-nav-children {
  display: none;
  padding: 0 0 0.75rem 0.75rem;
  border-left: 2px solid var(--border-100);
  margin-left: 0.25rem;
}
.mobile-nav-section.open .mobile-nav-children { display: block; }
.mobile-nav-children a {
  display: block;
  font-size: 0.875rem; color: #374151;
  padding: 0.4rem 0.75rem; text-decoration: none;
}
.mobile-nav-children a:hover { color: var(--blue); }
.mobile-search-form {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-100);
}
.mobile-search-input {
  flex: 1; min-width: 0;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  border-radius: 4px;
}
.mobile-search-submit {
  flex-shrink: 0;
  background: var(--green); color: var(--white);
  border: none; padding: 0.5rem 0.75rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  cursor: pointer; border-radius: 4px;
}
.mobile-search-submit:hover { background: var(--green-hover); }

.mobile-lang-btns { display: flex; gap: 0.75rem; padding-top: 0.5rem; }
.mobile-lang-btn {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 700;
  padding: 0.375rem 0.75rem; border: 1px solid #d1d5db; border-radius: 2px;
  color: #6b7280; cursor: pointer; background: none; font-family: inherit;
}
.mobile-lang-btn:hover, .mobile-lang-btn.active { border-color: var(--blue); color: var(--blue); }
.mobile-lang-btn img { width: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
