/* birdie.lv — Mobile nav enhancements
   Icons on top-level items + "Show all" link in drilldown submenus.
   Enqueued via woodmart_child_enqueue_styles() after child-style.
*/

/* ── Icon + text: flex row on level-0 links ── */
.mobile-nav .item-level-0 > .woodmart-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Our display:flex has specificity (0,3,0) which beats Woodmart's drilldown
   hide rule (0,2,1). Restore display:none when Woodmart hides the parent level.
   Same specificity (0,3,0) but declared after, so this wins. */
.wd-drilldown-fade-in.wd-drilldown-hide > .item-level-0 > .woodmart-nav-link,
.wd-drilldown-fade-in .wd-drilldown-hide > .item-level-0 > .woodmart-nav-link {
  display: none;
}

/* ── Nav item icon ── */
.mobile-nav .birdie-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.52;
  color: inherit;
  display: block;
  transition: opacity 0.15s ease;
}

/* Active / highlighted items (e.g. sale) inherit their colour */
.mobile-nav .text-red .birdie-nav-icon,
.mobile-nav .current-menu-item > .woodmart-nav-link .birdie-nav-icon {
  opacity: 0.85;
}

/* ── "Skatīt visu" item wrapper ── */
.mobile-nav .birdie-show-all-item {
  margin: 4px 0 10px;
  list-style: none;
}

/* ── "Skatīt visu" link ── */
.mobile-nav .birdie-show-all-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  margin: 0 12px;
  color: #2e8035;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  background: rgba(46, 128, 53, 0.07);
  border: 1px solid rgba(46, 128, 53, 0.18);
  border-radius: 9px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.mobile-nav .birdie-show-all-link:hover,
.mobile-nav .birdie-show-all-link:focus-visible {
  background: rgba(46, 128, 53, 0.13);
  border-color: rgba(46, 128, 53, 0.3);
}

.mobile-nav .birdie-show-all-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.65;
}

.mobile-nav .birdie-show-all-link span {
  flex: 1;
}

.mobile-nav .birdie-show-all-link strong {
  font-weight: 700;
}

.mobile-nav .birdie-arrow-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.6;
}

/* ── Drilldown back button ── */
.mobile-nav .wd-drilldown-back {
  background: #f2f2f2;
  margin-bottom: 16px !important;
}

.mobile-nav .wd-drilldown-back a {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  gap: 6px;
  border-bottom-color: #e0e0e0;
}

.mobile-nav .wd-drilldown-back .wd-nav-opener {
  width: 36px;
  min-width: 36px;
  border-inline-end-color: #e0e0e0;
  opacity: 0.6;
}
