/* ==========================================================================
   Indiatutors Online — Premium 3-Layer Header
   Layer 1: Slim topbar  (34px)
   Layer 2: Main header  (80px) — logo · primary nav · search/login/CTA
   Layer 3: Category bar (46px) — course nav mega-menus
   ========================================================================== */

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --h-charcoal:  #1c1c2e;   /* topbar bg */
  --h-white:     #ffffff;
  --h-navy:      #0B1220;   /* deep navy — text, logo fallback */
  --h-purple:    #1E40AF;   /* brand accent */
  --h-purple-dk: #1E3A8A;   /* hover */
  --h-border:    #ebebf5;
  --h-muted:     #64748b;
  --h-soft:      #F3F6FC;

  /* Typography */
  --h-font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --h-font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Heights */
  --h-topbar:    34px;
  --h-main:      82px;      /* generous — logo breathes */
  --h-cat:       46px;      /* category bar */

  /* Z layers */
  --h-z:         8800;
}

/* ── Reset inside header only ───────────────────────────────────────────── */
.ito-hdr *, .ito-hdr *::before, .ito-hdr *::after,
.ito-mob *, .ito-mob *::before, .ito-mob *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Shared inner container ─────────────────────────────────────────────── */
.ito-hdr-inner {
  width: 100%;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYER 1 — SLIM TOPBAR
   ══════════════════════════════════════════════════════════════════════════ */
.ito-topbar {
  background: var(--h-charcoal);
  height: var(--h-topbar);
  width: 100%;
  position: relative;
  z-index: calc(var(--h-z) + 2);
}

.ito-topbar .ito-hdr-inner {
  justify-content: space-between;
  gap: 16px;
}

/* Contact items — left */
.ito-topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.ito-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--h-font-body);
  font-size: .70rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
  transition: color .2s;
}
.ito-topbar__item:hover { color: rgba(255,255,255,.90); }
.ito-topbar__item svg { flex-shrink: 0; opacity: .65; }

/* Social + login — right */
.ito-topbar__right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.ito-tsoc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.ito-tsoc:hover { background: rgba(255,255,255,.07); }
.ito-tsoc--wa:hover  { color: #25D366; }
.ito-tsoc--fb:hover  { color: #1877F2; }
.ito-tsoc--ig:hover  { color: #E1306C; }
.ito-tsoc--yt:hover  { color: #FF0000; }
.ito-tsoc--gg:hover  { opacity: 1; }
.ito-tsoc--li:hover  { color: #0A66C2; }

.ito-topbar__login {
  margin-left: 10px;
  padding: 3px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  font-family: var(--h-font-head);
  font-size: .66rem;
  font-weight: 600;
  color: rgba(255,255,255,.60);
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: all .2s;
}
.ito-topbar__login:hover {
  color: #fff;
  border-color: rgba(255,255,255,.40);
  background: rgba(255,255,255,.06);
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYER 2 — MAIN HEADER
   Logo  ·  Primary nav (center)  ·  Search / Login / CTA
   ══════════════════════════════════════════════════════════════════════════ */
.ito-main-hdr {
  background: var(--h-white);
  height: var(--h-main);
  border-bottom: 1px solid var(--h-border);
  box-shadow: 0 1px 0 var(--h-border);
  position: sticky;
  top: 0;
  z-index: calc(var(--h-z) + 1);
  width: 100%;
}

.ito-main-hdr .ito-hdr-inner {
  gap: 0;
}

/* ── Logo ─────────────────────────────────────────────────────────────── */
.ito-logo {
  flex-shrink: 0;
  margin-right: 40px;          /* generous breathing room */
}
.ito-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.ito-logo img,
.ito-logo .ito-logo__img {
  max-height: calc(var(--h-main) - 24px);
  width: auto;
  display: block;
}
/* Text fallback */
.ito-logo__wordmark {
  font-family: var(--h-font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--h-navy);
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
}
.ito-logo__wordmark em {
  color: var(--h-purple);
  font-style: normal;
}

/* ── Primary nav (center of main header) ────────────────────────────── */
.ito-primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  list-style: none;
  gap: 4px;
}

.ito-primary-nav > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ito-primary-nav > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;             /* generous horizontal padding */
  font-family: var(--h-font-head);
  font-size: .82rem;
  font-weight: 500;            /* light weight = premium feel */
  color: var(--h-muted);
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.ito-primary-nav > li > a:hover,
.ito-primary-nav > li.active > a {
  color: var(--h-navy);
  border-bottom-color: var(--h-purple);
}

/* Drop arrow — only on items with dropdowns */
.ito-primary-nav > .hdr-drop > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 5px;
  opacity: .50;
  transition: transform .2s;
}
.ito-primary-nav > .hdr-drop:hover > a::after { transform: rotate(180deg); opacity: .80; }

/* ── Right side: search · login · CTA ──────────────────────────────── */
.ito-main-hdr__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
}

/* Search icon button */
.ito-srch-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--h-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.ito-srch-btn:hover { color: var(--h-navy); background: var(--h-soft); }

/* Login button */
.ito-login-btn {
  font-family: var(--h-font-head);
  font-size: .78rem;
  font-weight: 600;
  color: var(--h-navy);
  text-decoration: none;
  padding: 7px 18px;
  border: 1.5px solid var(--h-border);
  border-radius: 7px;
  white-space: nowrap;
  transition: all .2s;
}
.ito-login-btn:hover {
  border-color: var(--h-purple);
  color: var(--h-purple);
}

/* CTA button */
.ito-cta-btn {
  font-family: var(--h-font-head);
  font-size: .78rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--h-purple);
  text-decoration: none !important;
  padding: 9px 22px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s;
  letter-spacing: .02em;
}
.ito-cta-btn:hover {
  background: var(--h-purple-dk);
  box-shadow: 0 4px 20px rgba(30,64,175,.28);
}

/* Hamburger — mobile only */
.ito-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1.5px solid var(--h-border);
  border-radius: 8px;
  cursor: pointer;
  margin-left: 12px;
  flex-shrink: 0;
}
.ito-hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--h-navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.ito-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ito-hamburger.is-open span:nth-child(2) { opacity: 0; }
.ito-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════════════
   LAYER 3 — CATEGORY NAV BAR
   Clean flat bar: Home · Our Courses · Live Classes · … · Skill Programs
   ══════════════════════════════════════════════════════════════════════════ */
.ito-cat-bar {
  background: var(--h-white);
  height: var(--h-cat);
  border-bottom: 2px solid var(--h-purple);
  position: relative;              /* mega-menu positioning context */
  z-index: var(--h-z);
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.ito-cat-bar .ito-hdr-inner {
  padding: 0 24px;
}

.ito-cat-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  list-style: none;
  gap: 0;
  flex: 1;
}

.ito-cat-nav > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ito-cat-nav > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-family: var(--h-font-head);
  font-size: .70rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--h-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.ito-cat-nav > li > a:hover,
.ito-cat-nav > li.active > a,
.ito-cat-nav > li:hover > a {
  color: var(--h-purple);
  border-bottom-color: var(--h-purple);
}

/* Drop arrow on category items */
.ito-cat-nav > .hdr-mega > a::after,
.ito-cat-nav > .hdr-drop > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3px solid currentColor;
  margin-left: 4px;
  opacity: .50;
  transition: transform .2s;
}
.ito-cat-nav > .hdr-mega:hover > a::after,
.ito-cat-nav > .hdr-drop:hover > a::after { transform: rotate(180deg); opacity: .80; }

/* ══════════════════════════════════════════════════════════════════════════
   SIMPLE DROPDOWN — small menus on primary nav and category nav
   ══════════════════════════════════════════════════════════════════════════ */
.hdr-drop > .ito-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--h-white);
  border: 1px solid var(--h-border);
  border-top: 2px solid var(--h-purple);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
  padding: 8px 0;
  z-index: calc(var(--h-z) + 10);
  list-style: none;
}
.hdr-drop:hover > .ito-drop,
.hdr-drop:focus-within > .ito-drop { display: block; }

.ito-drop a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-family: var(--h-font-body);
  font-size: .83rem;
  font-weight: 400;
  color: #1E3A8A;
  text-decoration: none;
  transition: background .15s, color .15s, padding-left .15s;
  line-height: 1.4;
}
.ito-drop a:hover { background: var(--h-soft); color: var(--h-purple); padding-left: 24px; }

.ito-drop__sep {
  height: 1px;
  background: var(--h-border);
  margin: 6px 0;
}
.ito-drop__cat {
  padding: 8px 20px 2px;
  font-family: var(--h-font-head);
  font-size: .60rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-purple);
}

/* "View all" link at bottom of each simple dropdown */
.ito-drop__all {
  color: var(--h-purple) !important;
  font-weight: 600 !important;
}
.ito-drop__all:hover {
  background: var(--h-soft) !important;
  padding-left: 24px !important;
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════════════
   MEGA MENU — Our Courses (5 cols) and Find Tutors (2 cols)
   position:absolute relative to .ito-cat-bar (which is full-width + relative).
   left:50% + translateX(-50%) centres the panel without any overflow bug.
   ══════════════════════════════════════════════════════════════════════════ */
.hdr-mega { position: static; }

.ito-mega {
  display: none;
  position: absolute;
  top: 100%;                           /* flush below category bar */
  left: 50%;
  transform: translateX(-50%);
  background: var(--h-white);
  border: 1px solid var(--h-border);
  border-top: 3px solid var(--h-purple);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  z-index: calc(var(--h-z) + 10);
  padding: 28px 0 20px;
}

.ito-cat-bar { position: relative; }

/* Courses mega: centred, width-constrained panel (NOT full-bleed) dropping
   right below the 3-layer header. Reduced width so it no longer covers the
   whole front page; the inner grid wraps categories into multiple rows. */
.ito-mega--courses {
  position: fixed;
  top: calc(var(--h-topbar) + var(--h-main) + var(--h-cat));
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 48px));
  border-radius: 0 0 14px 14px;
  padding: 16px 0 12px;          /* tighter than the base 28/20 */
}
@media (max-width: 960px) {
  .ito-mega--courses { display: none !important; }
}

/* Group Classes mega: concise + centred (NOT full-bleed). Fixed so it
   centres on the viewport without the overflow-x clipping bug. */
.ito-mega--group {
  position: fixed;
  top: calc(var(--h-topbar) + var(--h-main) + var(--h-cat));
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 48px));
  border-radius: 0 0 14px 14px;
  padding: 16px 0 12px;
}
.ito-mega--group .ito-mega__grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  align-content: start;
  gap: 4px 16px;
  padding: 4px 24px 6px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
}
@media (max-width: 960px) {
  .ito-mega--group { display: none !important; }
}

/* Find Tutors mega: 2 cols */
.ito-mega--tutors  { width: min(520px, calc(100vw - 48px)); }

/* Events / Free Classes — centred grid-list mega (3 columns of items) */
.ito-mega--list {
  position: fixed;
  top: calc(var(--h-topbar) + var(--h-main) + var(--h-cat));
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 48px));
  border-radius: 0 0 14px 14px;
  padding: 14px 0 10px;
}
.ito-mega--list-sm { width: min(560px, calc(100vw - 48px)); }

/* When logged in, the WP admin bar (32px on desktop) shifts the whole header
   down, but the fixed mega panels are viewport-anchored and don't follow —
   so they overlap the category bar. Drop them by the admin-bar height to
   clear it. (The admin bar is 46px below 783px, but mega menus are hidden
   there anyway, so only the 32px desktop case applies.) */
.admin-bar .ito-mega--courses,
.admin-bar .ito-mega--group,
.admin-bar .ito-mega--list {
  top: calc(var(--h-topbar) + var(--h-main) + var(--h-cat) + 32px);
}
.ito-mega__lhead {
  font-family: var(--h-font-head);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-purple);
  padding: 2px 26px 10px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--h-border);
}
.ito-mega--list .ito-mega__items {
  list-style: none;
  margin: 0;
  padding: 2px 18px 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 12px;
}
.ito-mega--list .ito-mega__items a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-family: var(--h-font-body);
  font-size: .84rem;
  color: #1E3A8A;
  text-decoration: none;
  border-radius: 7px;
  line-height: 1.3;
  transition: background .15s, color .15s;
}
.ito-mega--list .ito-mega__items a:hover { background: var(--h-soft); color: var(--h-purple); }
@media (max-width: 960px) { .ito-mega--list { display: none !important; } }
@media (max-width: 720px) { .ito-mega--list .ito-mega__items { grid-template-columns: repeat(2, 1fr); } }

.hdr-mega:hover > .ito-mega,
.hdr-mega:focus-within > .ito-mega { display: block; }

/* Mega inner grid */
.ito-mega__grid {
  padding: 0 28px;
  display: grid;
  gap: 0 20px;
}
.ito-mega--courses .ito-mega__grid {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  align-content: start;      /* wrap categories onto a 2nd row, no empty bands */
  gap: 4px 16px;
  width: 100%;
  margin: 0;
  padding: 4px 24px 8px;
  max-height: min(76vh, 620px);
  overflow-y: auto;
}
.ito-mcol__ic {
  display: inline-block;
  width: 1.15em;
  text-align: center;
  flex-shrink: 0;
}
.ito-mega--tutors  .ito-mega__grid { grid-template-columns: repeat(2, 1fr); }

/* Column */
.ito-mcol { }

.ito-mcol__head {
  font-family: var(--h-font-head);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--h-purple);
  padding-bottom: 7px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--h-border);
}

.ito-mcol {
  padding: 2px 6px;
  min-width: 0;
}

.ito-mcol ul { list-style: none; }
.ito-mcol ul li { }

.ito-mcol ul a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--h-font-body);
  font-size: .81rem;
  font-weight: 400;
  color: #1E3A8A;
  text-decoration: none;
  padding: 5px 0;
  line-height: 1.35;
  transition: color .15s, padding-left .15s;
}
.ito-mcol ul a:hover {
  color: var(--h-purple);
  padding-left: 5px;
}
/* position:absolute top:100% always sits flush below the category bar —
   no top adjustment needed for scroll state or WP admin bar */

.ito-mcol__sub {
  font-family: var(--h-font-head);
  font-size: .60rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #1E40AF;
  margin-top: 14px;
  margin-bottom: 4px;
}

/* Mega footer */
.ito-mega__footer {
  margin: 20px 0 0;
  padding: 14px 28px 0;
  border-top: 1px solid var(--h-border);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ito-mega__footer a {
  font-family: var(--h-font-head);
  font-size: .75rem;
  font-weight: 600;
  color: var(--h-purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity .15s;
}
.ito-mega__footer a:hover { opacity: .75; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   SEARCH OVERLAY
   ══════════════════════════════════════════════════════════════════════════ */
.ito-search-bar {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  transform: translateY(100%);
  background: var(--h-white);
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
  padding: 12px 32px;
  z-index: calc(var(--h-z) + 20);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.ito-search-bar.is-open { display: block; }
.ito-search-bar__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--h-border);
  border-radius: 10px;
  padding: 8px 16px;
  transition: border-color .2s;
}
.ito-search-bar__inner:focus-within { border-color: var(--h-purple); }
.ito-search-bar__inner input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--h-font-body);
  font-size: .9rem;
  color: var(--h-navy);
}
.ito-search-bar__inner input::placeholder { color: #1E40AF; }
.ito-search-bar__close {
  background: none; border: none;
  color: #1E40AF; cursor: pointer;
  font-size: 1rem; line-height: 1;
  padding: 2px 4px;
  transition: color .15s;
}
.ito-search-bar__close:hover { color: var(--h-navy); }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE DRAWER
   ══════════════════════════════════════════════════════════════════════════ */
.ito-mob {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--h-z) + 200);
  pointer-events: none;
}
.ito-mob.is-open { pointer-events: all; }

.ito-mob__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
  opacity: 0;
  transition: opacity .3s;
}
.ito-mob.is-open .ito-mob__overlay { opacity: 1; }

.ito-mob__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--h-white);
  box-shadow: -8px 0 40px rgba(0,0,0,.14);
  transform: translateX(110%);
  transition: transform .32s cubic-bezier(.22,.68,0,1.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ito-mob.is-open .ito-mob__panel { transform: translateX(0); }

/* Panel header */
.ito-mob__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--h-navy);
  flex-shrink: 0;
}
.ito-mob__head-logo { max-height: 38px; width: auto; }
.ito-mob__head-text {
  font-family: var(--h-font-head);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.ito-mob__head-text em { color: var(--h-purple); font-style: normal; }
.ito-mob__close {
  background: none; border: none;
  color: rgba(255,255,255,.60);
  font-size: 1.25rem; cursor: pointer;
  padding: 4px 8px; line-height: 1;
  transition: color .15s;
}
.ito-mob__close:hover { color: #fff; }

/* Scrollable nav body */
.ito-mob__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ito-mob-nav { list-style: none; padding: 8px 0; }
.ito-mob-nav > li { border-bottom: 1px solid #f1f5f9; }
.ito-mob-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-family: var(--h-font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--h-navy);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.ito-mob-nav > li > a:hover { background: #f8faff; color: var(--h-purple); }

.ito-mob-toggle {
  font-size: .65rem;
  color: #cbd5e1;
  transition: transform .2s;
  flex-shrink: 0;
  padding-left: 8px;
}
.ito-mob-toggle.is-open { transform: rotate(180deg); }

/* Mobile sub-menu */
.ito-mob-sub {
  display: none;
  background: #f8faff;
  border-top: 1px solid var(--h-border);
  list-style: none;
  padding: 6px 0;
}
.ito-mob-sub.is-open { display: block; }

.ito-mob-sub__cat {
  padding: 9px 22px 2px;
  font-family: var(--h-font-head);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-purple);
}
.ito-mob-sub li a {
  display: block;
  padding: 7px 28px;
  font-family: var(--h-font-body);
  font-size: .83rem;
  font-weight: 400;
  color: #1E3A8A;
  text-decoration: none;
  transition: color .12s;
}
.ito-mob-sub li a:hover { color: var(--h-purple); }
.ito-mob-sub__line {
  height: 1px;
  background: var(--h-border);
  margin: 4px 20px;
}

/* Sticky mobile CTA */
.ito-mob__cta {
  padding: 16px 20px;
  border-top: 1px solid var(--h-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--h-white);
}
.ito-mob__btn {
  display: block;
  text-align: center;
  font-family: var(--h-font-head);
  font-weight: 700;
  font-size: .86rem;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
}
.ito-mob__btn--primary {
  background: var(--h-purple);
  color: #fff;
}
.ito-mob__btn--primary:hover { background: var(--h-purple-dk); }
.ito-mob__btn--outline {
  border: 2px solid var(--h-purple);
  color: var(--h-purple);
  background: transparent;
}
.ito-mob__btn--outline:hover { background: var(--h-soft); }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .ito-primary-nav > li > a { padding: 0 12px; }
  .ito-cat-nav > li > a    { padding: 0 10px; }
  .ito-logo { margin-right: 28px; }
  .ito-hdr-inner { padding: 0 28px; }
}

@media (max-width: 960px) {
  /* Hide desktop nav layers — everything goes into drawer */
  .ito-primary-nav, .ito-cat-bar, .ito-main-hdr__right .ito-login-btn { display: none; }
  .ito-hamburger { display: flex; }
  .ito-mob       { display: block; }

  /* Keep logo + search + CTA + hamburger in main header */
  .ito-main-hdr__right .ito-cta-btn { display: none; } /* hide CTA, show in drawer */
}

@media (max-width: 640px) {
  :root { --h-main: 66px; }
  .ito-topbar { font-size: .68rem; }
  .ito-topbar__left .ito-topbar__item:nth-child(2),
  .ito-topbar__left .ito-topbar__item:nth-child(3) { display: none; }
  .ito-topbar__right .ito-tsoc:nth-child(n+4) { display: none; }
  .ito-hdr-inner { padding: 0 16px; }
  .ito-cat-bar .ito-hdr-inner { padding: 0 16px; }
  .ito-logo { margin-right: 0; }
}

/* Header action icons — wishlist + cart */
.ito-hdr-ico {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; color: #0B1220; font-size: 1.15rem;
  text-decoration: none; transition: background .15s, color .15s; flex-shrink: 0;
}
.ito-hdr-ico:hover { background: var(--h-soft, #F3F6FC); color: var(--h-purple, #1E40AF); }
.ito-hdr-ico__n {
  position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #D4AF37; color: #0B1220;
  font: 700 10px/17px system-ui, sans-serif; text-align: center;
}
.ito-hdr-ico__n[hidden] { display: none; }
@media (max-width: 600px) { .ito-hdr-ico { width: 36px; height: 36px; } }

/* Scroll state: topbar collapses */
.ito-hdr-wrap.is-scrolled .ito-topbar { display: none; }
.ito-hdr-wrap.is-scrolled .ito-main-hdr { box-shadow: 0 2px 20px rgba(0,0,0,.10); }
