/* ========== Mobile bottom nav + search (phones) ========== */
.wk-mnav,
.wk-msearch {
  display: none;
}

@media (max-width: 767.98px) {
  body:not(.wkad-fullpage) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .wk-mnav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid var(--wk-border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
  }

  .wk-mnav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #6b7280;
    background: none;
    border: none;
    font-family: var(--wk-font);
    text-decoration: none;
    min-width: 0;
    padding: 6px 2px 4px;
    cursor: pointer;
    overflow: visible;
  }

  .wk-mnav-item span {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
  }

  .wk-mnav-item.is-active {
    color: #7c3aed;
  }

  .wk-mnav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--wk-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .wk-mnav-badge[hidden] {
    display: none !important;
  }

  .wk-mnav-badge-pink { background: #ec4899; }

  .wk-msearch[hidden] { display: none !important; }

  .wk-msearch {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: #f9fafb;
  }

  .wk-msearch-head {
    background: var(--wk-gradient);
    padding: 18px 16px 22px;
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .wk-msearch-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .wk-msearch-head h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
  }

  .wk-msearch-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .wk-msearch-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 4px 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }

  .wk-msearch-form i { color: #9ca3af; flex-shrink: 0; }

  .wk-msearch-form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    padding: 12px 0;
    font-family: var(--wk-font);
    min-width: 0;
  }

  .wk-msearch-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 24px;
  }

  .wk-msearch-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 12px;
  }

  .wk-msearch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }

  .wk-msearch-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
  }

  .wk-msearch-chip-cat {
    background: #f5f3ff;
    color: var(--wk-primary-dark);
  }
}
