/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
   GREY HEADER — MKTECHSUPPORT STYLE
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ */

/* ───────────────────────────────────────────────
   1. SITE HEADER BASE
─────────────────────────────────────────────── */
.site-header {
  padding: 0.75rem 1.25rem;
  background: #2f2f2f;
  color: #f3f6fa;
  border-bottom: 1px solid #444;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(8px);
}

/* Header container layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ───────────────────────────────────────────────
   2. LOGO + BRAND
─────────────────────────────────────────────── */
.logo-img {
  max-width: 80px;
  height: 50px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
  user-select: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo-img:hover,
.logo-img:focus {
  transform: scale(1.1);
  opacity: 0.8;
  outline: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #f3f6fa;
  user-select: none;
  transition: color 0.3s ease;
}
.brand:hover,
.brand:focus {
  color: #2196f3;
  outline: none;
}
.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.brand-tagline {
  font-size: 0.7rem;
  color: #b0b0b0;
}

/* ───────────────────────────────────────────────
   3. SEARCH
─────────────────────────────────────────────── */
.search-form {
  flex: 1 1 100px;
  display: flex;
  align-items: center;
  max-width: 300px;
  background: #3a3a3a;
  border: 1px solid #555;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-form:focus-within {
  border-color: #2196f3;
  box-shadow: 0 0 6px #2196f3aa;
}
.search-input {
  flex: 1;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  background: transparent;
  color: #e2e6ed;
  border: none;
  outline: none;
}
.search-input::placeholder {
  color: #aaa;
}
.btn-search {
  padding: 0.45rem 0.85rem;
  background: #2196f3;
  color: #fff;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0 6px 6px 0;
  transition: background 0.25s ease, transform 0.1s ease;
}
.btn-search:hover,
.btn-search:focus {
  background: #1c7ed6;
}
.btn-search:active {
  transform: scale(0.96);
}

/* ───────────────────────────────────────────────
   4. NAVIGATION
─────────────────────────────────────────────── */
.primary-nav {
  display: flex;
  align-items: center;
  user-select: none;
}
.nav-list {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.nav-list a,
.user-trigger {
  color: #f3f6fa;
  background: none;
  border: none;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}
.nav-list a:hover,
.nav-list a:focus,
.user-trigger:hover,
.user-trigger:focus {
  background: #444;
  outline: none;
}

/* Cart badge */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}
#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #e03131;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  text-align: center;
  pointer-events: none;
}

/* ───────────────────────────────────────────────
   5. DROPDOWN MENU
─────────────────────────────────────────────── */
.user-dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 115%;
  right: 0;
  background: #3a3a3a;
  border: 1px solid #555;
  border-radius: 6px;
  min-width: 150px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  z-index: 1100;
}
.user-dropdown:hover .dropdown-menu,
.user-dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: #d4d8df;
  transition: background 0.25s ease, color 0.25s ease;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #2196f3;
  color: #fff;
}

/* ───────────────────────────────────────────────
   6. MOBILE TOGGLE + RESPONSIVE
─────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #f3f6fa;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}
.nav-toggle:hover,
.nav-toggle:focus {
  color: #2196f3;
}
@media (max-width: 768px) {
  .search-form {
    order: 2;
    flex: 1 1 100%;
    margin: 0.5rem 0;
    max-width: 100%;
  }
  .nav-toggle {
    display: block;
    order: 3;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2f2f2f;
    border-top: 1px solid #444;
    flex-direction: column;
    display: none;
    padding: 1rem 1.25rem;
    row-gap: 0.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  }
  .primary-nav.active {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }
  .nav-list li {
    width: 100%;
  }
  .nav-list a,
  .user-trigger {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* ───────────────────────────────────────────────
   7. CATEGORY PAGE HEADING (RE-USEABLE)
─────────────────────────────────────────────── */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.3em;
  border-bottom: 3px solid #007BFF;
  padding-bottom: 6px;
  max-width: max-content;
}
