/* v5.1.1 — Mobile category visibility polish */

@media (max-width: 782px) {
  /* Bottom appbar labels more readable */
  body.vlg-theme .vlg-mobile-appbar__item {
    gap: 4px !important;
    color: #334155 !important;
  }

  body.vlg-theme .vlg-mobile-appbar__item span {
    width: 28px !important;
    height: 28px !important;
    font-size: 19px !important;
  }

  body.vlg-theme .vlg-mobile-appbar__item b {
    font-size: 11px !important;
    font-weight: 950 !important;
    color: #334155 !important;
  }

  /* Make Categories CTA much clearer */
  body.vlg-theme .vlg-mobile-appbar__item--primary {
    transform: translateY(-10px) !important;
    min-height: 72px !important;
    padding-top: 8px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255, 187, 78, .28) !important;
    background:
      radial-gradient(circle at 50% 0, rgba(255, 176, 72, .28), transparent 45%),
      radial-gradient(circle at 100% 0, rgba(255,180,80,.32), transparent 34%),
      linear-gradient(135deg, #071224 0%, #152b4e 100%) !important;
    box-shadow: 0 16px 36px rgba(7,18,36,.30), 0 0 0 6px rgba(255,176,72,.10) !important;
  }

  body.vlg-theme .vlg-mobile-appbar__item--primary span {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: rgba(255, 179, 64, .14) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 179, 64, .15) !important;
    color: #fff !important;
    font-size: 18px !important;
  }

  body.vlg-theme .vlg-mobile-appbar__item--primary b {
    color: #ffffff !important;
    font-size: 11.5px !important;
    letter-spacing: -.015em !important;
  }

  body.vlg-theme .vlg-mobile-appbar__item--primary::after {
    content: none !important;
    display: none !important;
    position: absolute !important;
    top: 7px !important;
    right: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 28px !important;
    height: 16px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .12) !important;
    color: rgba(255,255,255,.90) !important;
    font-size: 8px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
  }

  /* Mobile category drawer rows stronger and easier to scan */
  body.vlg-theme .vlg-nav.is-open .vlg-cat-link,
  body.vlg-theme.vlg-menu-open .vlg-nav.is-open .vlg-cat-link {
    min-height: 62px !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(226, 232, 240, .96) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08) !important;
  }

  body.vlg-theme .vlg-nav.is-open .vlg-cat-link::before,
  body.vlg-theme.vlg-menu-open .vlg-nav.is-open .vlg-cat-link::before {
    width: 14px !important;
    height: 14px !important;
    box-shadow: 0 0 0 6px rgba(255,174,61,.16) !important;
  }

  body.vlg-theme .vlg-nav.is-open .vlg-cat-title,
  body.vlg-theme.vlg-menu-open .vlg-nav.is-open .vlg-cat-title {
    background: linear-gradient(180deg, #eef4fb 0%, #e8f0fa 100%) !important;
    color: #0f172a !important;
    font-size: clamp(14px, 3.8vw, 16px) !important;
    padding: 8px 12px !important;
  }

  body.vlg-theme .vlg-nav.is-open .vlg-cat-count,
  body.vlg-theme.vlg-menu-open .vlg-nav.is-open .vlg-cat-count {
    min-width: 44px !important;
    height: 40px !important;
    background: linear-gradient(180deg, #12305d 0%, #0b2347 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(11, 35, 71, .18) !important;
  }

  body.vlg-theme .vlg-nav.is-open .vlg-cat-subtoggle,
  body.vlg-theme.vlg-menu-open .vlg-nav.is-open .vlg-cat-subtoggle {
    width: 50px !important;
    min-width: 50px !important;
    height: 62px !important;
    border-color: #f5d9a5 !important;
    background: linear-gradient(180deg, #fff7ea 0%, #f7ecd9 100%) !important;
    color: #334155 !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .07) !important;
  }
}

@media (max-width: 420px) {
  body.vlg-theme .vlg-mobile-appbar__item b {
    font-size: 10.5px !important;
  }

  body.vlg-theme .vlg-mobile-appbar__item--primary {
    min-height: 70px !important;
    transform: translateY(-8px) !important;
  }

  body.vlg-theme .vlg-mobile-appbar__item--primary b {
    font-size: 11px !important;
  }

  body.vlg-theme .vlg-mobile-appbar__item--primary::after {
    top: 6px !important;
    right: 8px !important;
    min-width: 26px !important;
  }
}
