/* ICTech custom header */
:root {
  --ictech-navy: #0B1F3A;
  --ictech-cyan: #00A8E8;
  --ictech-orange: #F15A29;
  --ictech-primary: #2937E9;
  --ictech-accent: #e31c23;
  --ictech-border: #e5e7eb;
  --ictech-muted: #6b7280;
}

.ictech-header {
  background: #fff;
  border-bottom: 1px solid var(--ictech-border);
  position: relative;
  z-index: 10040;
  font-family: inherit;
}

.ictech-header__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
}

.ictech-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.ictech-header__logo {
  display: block;
  height: 96px; /* ~3× typical header logo */
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.ictech-header__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.ictech-header__title {
  display: block;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--ictech-navy);
  letter-spacing: -0.02em;
}
.ictech-header__subtitle {
  display: block;
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ictech-muted);
}

.ictech-header__search {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.ictech-header__search form {
  display: flex;
  width: 100%;
  border: 1px solid var(--ictech-border);
  border-radius: 999px;
  overflow: hidden;
  background: #f9fafb;
}
.ictech-header__search input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font: inherit;
  min-width: 0;
  outline: none;
}
.ictech-header__search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--ictech-btn-bg, var(--ictech-primary, #2937E9));
  color: #fff;
  padding: 0 16px;
  min-width: 52px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
}
.ictech-header__search button svg {
  width: 20px;
  height: 20px;
}
.ictech-header__search button:hover { background: var(--ictech-btn-bg-hover, #1f2bd0); }
.ictech-header__search button:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--ictech-btn-bg, #2937E9);
}

.ictech-header__account {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ictech-header__account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ictech-primary, #2937E9);
  background: #fff;
  color: var(--ictech-primary, #2937E9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.ictech-header__account-btn:hover {
  background: var(--ictech-primary, #2937E9);
  color: #fff;
}
.ictech-header__account-btn--primary {
  background: var(--ictech-primary, #2937E9);
  border-color: var(--ictech-primary, #2937E9);
  color: #fff;
}
.ictech-header__account-btn--primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

.ictech-header__account-btn svg {
  width: 18px; height: 18px; flex: 0 0 auto;
}

.ictech-header__nav {
  border-top: 0;
  background: #fff;
  position: relative;
  z-index: 10050;
}
.ictech-header__nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
}
.ictech-header__nav-item {
  appearance: none;
  text-decoration: none;

  border: 0;
  background: transparent;
  padding: 14px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--ictech-navy);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ictech-header__nav-item:hover,
.ictech-header__nav-item[aria-expanded="true"] {
  /* colors set per data-mega-trigger schema below */
  border-bottom-color: transparent;
}
.ictech-header__nav-item svg { width: 12px; height: 12px; opacity: .7; flex-shrink: 0; }
.ictech-header__nav-item .ictech-header__nav-icon { width: 16px; height: 16px; opacity: .9; }
.ictech-header__nav-item--link {
  text-decoration: none;
  color: inherit;
}

/* Mega panels — centered under nav (max content width) */
.ictech-mega {
  --mm-accent: var(--ictech-accent);
  --mm-navy: var(--ictech-navy);
  --mm-muted: var(--ictech-muted);
  --mm-border: var(--ictech-border);
  --mm-bg: #f3f4f6;
  display: none;
  position: absolute;
  left: 50%;
  right: auto;
  top: 100%;
  width: min(1240px, calc(100vw - 40px));
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--mm-border);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  z-index: 10050;
  overflow: hidden;
  margin-top: 0;
}
.ictech-mega.is-open { display: block; }
.ictech-mega--repair.is-open {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 360px;
}
.ictech-mega__series-title a {
  color: inherit;
  text-decoration: none;
}
.ictech-mega__empty {
  color: var(--mm-muted);
  padding: 24px;
  margin: 0;
}

.ictech-mega__devices {
  background: var(--mm-bg);
  padding: 12px 8px;
  border-right: 1px solid var(--mm-border);
}
.ictech-mega__device {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  border: 0; background: transparent;
  padding: 12px 14px; border-radius: 8px;
  font: inherit; color: var(--mm-navy); cursor: pointer;
}
.ictech-mega__device[aria-selected="true"] {
  background: #fff;
  box-shadow: 0 0 0 1px var(--mm-border);
  font-weight: 600;
}
.ictech-mega__device[disabled] { opacity: .45; cursor: not-allowed; }
.ictech-mega__device-icon { width: 22px; text-align: center; opacity: .8; }
.ictech-mega__main { display: flex; flex-direction: column; min-width: 0; }
.ictech-mega__brands {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px; border-bottom: 1px solid var(--mm-border);
  overflow-x: auto; scrollbar-width: thin;
}
.ictech-mega__brand {
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 12px; border-radius: 6px;
  font: inherit; color: var(--mm-navy); cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.ictech-mega__brand[aria-selected="true"] {
  color: var(--mm-accent);
  border-color: var(--mm-accent);
  font-weight: 600;
}
.ictech-mega__models {
  padding: 18px 20px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 24px;
  max-height: 420px; overflow: auto;
}
.ictech-mega__series-title {
  grid-column: 1 / -1;
  margin: 4px 0 6px;
  color: var(--mm-accent);
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.ictech-mega__model {
  display: block;
  color: #374151; text-decoration: none;
  padding: 4px 0; font-size: 14px;
}
.ictech-mega__model:hover { color: var(--mm-accent); }
.ictech-mega__footer {
  padding: 10px 20px 16px;
  border-top: 1px solid var(--mm-border);
  font-size: 13px;
}

/* Simple grid panels (Brands / Protection / Accessories) */
.ictech-mega__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 20px;
}
.ictech-mega__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--mm-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--mm-navy);
  background: #fff;
}
.ictech-mega__card:hover {
  border-color: var(--mm-accent);
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
}
.ictech-mega__card strong { font-size: 15px; }
.ictech-mega__card span { font-size: 12px; color: var(--mm-muted); }

@media (max-width: 900px) {
  .ictech-mega__devices {
    display: flex; gap: 6px; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--mm-border);
  }
}

/* Brands: Mobilax column layout */
.ictech-mega--columns.is-open {
  display: block;
  padding: 8px 0 4px;
}
.ictech-mega__columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  max-height: 420px;
  overflow: hidden;
}
.ictech-mega__col {
  min-width: 0;
  padding: 0 8px 12px;
  border-right: 1px solid #f0f0f0;
  max-height: 420px;
  overflow: auto;
  scrollbar-width: thin;
}
.ictech-mega__col:last-child { border-right: 0; }
.ictech-mega__col-head {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 4px 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ictech-mega__col-head[data-tone="repair"] { color: #e11d48; }
.ictech-mega__col-head[data-tone="protection"] { color: #65a30d; }
.ictech-mega__col-head[data-tone="phone"] { color: #374151; }
.ictech-mega__col-head[data-tone="accessories"] { color: #0284c7; }
.ictech-mega__col-head[data-tone="computer"] { color: #ea580c; }
.ictech-mega__col-list {
  list-style: none;
  margin: 0;
  padding: 0 8px;
}
.ictech-mega__col-list a {
  display: block;
  padding: 5px 4px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
}
.ictech-mega__col-list a:hover {
  color: #0284c7;
  background: #eff6ff;
}

/* Accessories: horizontal drill-down */
.ictech-mega--accessories.is-open {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.ictech-mega__level2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ictech-mega__level2-btn {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}
.ictech-mega__level2-btn[aria-selected="true"] {
  background: #dbeafe;
  color: #0f172a;
}
.ictech-mega__level3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  min-height: 64px;
}
.ictech-mega__level3-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  color: #0284c7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
}
.ictech-mega__level3-link:hover {
  background: #eff6ff;
  border-color: #0284c7;
}

/* Active nav pill like Mobilax */


@media (max-width: 900px) {
  .ictech-mega__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

/* Protection mega = same as repair, green accent */
.ictech-mega--protection.is-open {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 360px;
}
.ictech-mega--protection {
  --mm-accent: #65a30d;
}

.ictech-mega--protection .ictech-mega__brand[aria-selected="true"] {
  color: #65a30d;
  border-color: #65a30d;
}
.ictech-mega--protection .ictech-mega__series-title {
  color: #65a30d;
}


/* Mega nav hover / open — color schema */
.ictech-header__nav-item {
  border-radius: 8px 8px 0 0;
  transition: background .15s ease, color .15s ease;
}
.ictech-header__nav-item[aria-expanded="true"],
.ictech-header__nav-item:hover {
  border-bottom-color: transparent;
}

/* Brands: orange */
.ictech-header__nav-item[data-mega-trigger="brands"]:hover,
.ictech-header__nav-item[data-mega-trigger="brands"][aria-expanded="true"] {
  background: #ffedd5;
  color: #c2410c;
}

/* Repair: red */
.ictech-header__nav-item[data-mega-trigger="repair"]:hover,
.ictech-header__nav-item[data-mega-trigger="repair"][aria-expanded="true"] {
  background: #fee2e2;
  color: #b91c1c;
}

/* Protection: green */
.ictech-header__nav-item[data-mega-trigger="protection"]:hover,
.ictech-header__nav-item[data-mega-trigger="protection"][aria-expanded="true"] {
  background: #ecfccb;
  color: #3f6212;
}

/* Accessories: blue */
.ictech-header__nav-item[data-mega-trigger="accessories"]:hover,
.ictech-header__nav-item[data-mega-trigger="accessories"][aria-expanded="true"] {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Deals: orange (link, no mega) */
.ictech-header__nav-item--link:hover,
.ictech-header__nav-item--link:focus-visible {
  background: #ffedd5;
  color: #c2410c;
}


/* Less air under custom header before page content */
.ictech-header + *,
body .ct-header { margin-bottom: 0; }
#main {
  --theme-content-vertical-spacing: 24px;
}
body.ictech-front #main {
  --theme-content-vertical-spacing: 0;
}

/* Header cart button */
.ictech-header__cart.ictech-header__account-btn {
  position: relative;
  gap: 0;
  padding: 10px 12px !important;
  min-width: 44px;
  justify-content: center;
}
.ictech-header__cart-icon {
  display: inline-flex;
  line-height: 0;
}
.ictech-header__cart-icon svg {
  width: 20px;
  height: 20px;
}
.ictech-header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ictech-accent, #e31c23);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.ictech-header__cart:hover .ictech-header__cart-count {
  box-shadow: 0 0 0 2px var(--ictech-primary, #2937E9);
}
