/* ═══════════════════════════════════════════════════════════════════════════
   LOOM INDICA — NAV ADDITIONS  v3.0
   Append this to loom-nav.css  (or include as a separate stylesheet)
   These are additive rules — they do not override existing loom-nav.css styles.
═══════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────────
   MEGA CONTENT WRAPPER
   Houses all the panels — fills the right side of the mega wrapper
────────────────────────────────────────────────────────────────────────── */
.li-mega-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* ──────────────────────────────────────────────────────────────────────────
   MEGA SIDEBAR HEADER & "ALL X" LINK
────────────────────────────────────────────────────────────────────────── */
.li-mega-sidebar-header {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--loom-primary, #3D2B6B);
  padding: 14px 18px 10px;
  border-bottom: 1.5px solid var(--loom-border, #E8E2D8);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.li-mega-sidebar-all {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 10px 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--loom-primary, #3D2B6B);
  background: rgba(61, 43, 107, 0.06);
  border-radius: 8px;
  border: 1.5px solid rgba(61, 43, 107, 0.12);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.li-mega-sidebar-all:hover {
  background: var(--loom-primary, #3D2B6B);
  color: #fff;
}
.li-mega-sidebar-all i { font-size: 14px; }

/* ──────────────────────────────────────────────────────────────────────────
   MEGA PANEL  (flex row: columns + optional banner)
   The panel fills the right side of the mega wrapper
────────────────────────────────────────────────────────────────────────── */
.li-mega-panel {
  flex: 1;
  display: none;
  flex-direction: row;
  padding: 22px 26px 16px;
  gap: 0;
  animation: fadeInPanel 0.15s ease;
  align-items: flex-start;
}
.li-mega-panel.active {
  display: flex;
}

/* ──────────────────────────────────────────────────────────────────────────
   COLUMN TITLE — clickable link style
────────────────────────────────────────────────────────────────────────── */
.li-mega-col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.li-mega-col-title-link {
  color: var(--loom-accent, #D4A017) !important;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 !important;
  transition: color 0.2s;
}
.li-mega-col-title-link:hover {
  color: var(--loom-primary, #3D2B6B) !important;
}
.li-mega-col-title-link::before { display: none !important; }

/* ──────────────────────────────────────────────────────────────────────────
   COLUMN DIVIDER (between L3 sections within one column)
────────────────────────────────────────────────────────────────────────── */
.li-mega-col-divider {
  height: 1px;
  background: var(--loom-border, #E8E2D8);
  margin: 12px 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   L5 DEEP LINKS (indented under L4 items)
────────────────────────────────────────────────────────────────────────── */
.li-mega-l5 {
  list-style: none;
  padding-left: 14px;
  margin-top: 2px;
  border-left: 2px solid var(--loom-border, #E8E2D8);
}
.li-mega-l5 li a {
  font-size: 12px !important;
  color: var(--loom-text-muted, #6C6C80) !important;
  padding: 3px 0 !important;
}
.li-mega-l5 li a:hover {
  color: var(--loom-primary, #3D2B6B) !important;
}
.li-mega-l5 li a::before { display: none !important; }

/* ──────────────────────────────────────────────────────────────────────────
   MEGA BANNER  (right-side category image)
────────────────────────────────────────────────────────────────────────── */
.li-mega-banner {
  width: 150px;
  flex-shrink: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: flex-start;
}
.li-mega-banner-img {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--loom-bg-warm, #F3EDE1);
}
.li-mega-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.li-mega-banner:hover .li-mega-banner-img img { transform: scale(1.05); }

.li-mega-banner-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--loom-primary, #3D2B6B);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.li-mega-banner-cta i { font-size: 13px; }
.li-mega-banner-cta:hover { color: var(--loom-accent, #D4A017); }

/* ──────────────────────────────────────────────────────────────────────────
   MEGA FOOTER ROW  (view all link at bottom of mega menu)
────────────────────────────────────────────────────────────────────────── */
.li-mega-footer {
  border-top: 1.5px solid var(--loom-border, #E8E2D8);
  padding: 11px 26px;
  background: var(--loom-bg-warm, #F3EDE1);
  flex-shrink: 0;
}
.li-mega-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--loom-primary, #3D2B6B);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.li-mega-footer-link i { font-size: 16px; }
.li-mega-footer-link:hover { color: var(--loom-accent, #D4A017); }
.li-mega-footer-count {
  background: var(--loom-primary, #3D2B6B);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

/* ──────────────────────────────────────────────────────────────────────────
   MOBILE DRAWER — deep tree additions
────────────────────────────────────────────────────────────────────────── */
.li-drawer-sub-section {
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--loom-border, #E8E2D8);
  margin-bottom: 4px;
}
.li-drawer-sub-section:last-child { border-bottom: none; }

.li-drawer-l3 {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--loom-text, #1A1A2E);
  transition: color 0.2s;
}
.li-drawer-l3:hover { color: var(--loom-primary, #3D2B6B); }

.li-drawer-l4 {
  padding-left: 24px;
  border-left: 2px solid var(--loom-border, #E8E2D8);
  margin-left: 14px;
  margin-bottom: 6px;
}
.li-drawer-l4 a {
  display: block;
  padding: 4px 0;
  font-size: 12px;
  color: var(--loom-text-muted, #6C6C80);
  transition: color 0.2s;
}
.li-drawer-l4 a:hover { color: var(--loom-primary, #3D2B6B); }

/* ──────────────────────────────────────────────────────────────────────────
   SEARCH WRAP — clickable cursor for the whole box
────────────────────────────────────────────────────────────────────────── */
.li-search-wrap {
  cursor: text;
}
.li-search-wrap .li-search-input {
  cursor: text;
  pointer-events: none; /* overlay handles interaction */
}

/* ──────────────────────────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .li-mega-banner { display: none; }
  .li-mega-panel  { padding: 18px 20px; }
}

@media (max-width: 900px) {
  .li-nav-bar     { display: none; }
  .li-btn-menu    { display: block !important; }
}